emit a warning message when we drop a G.729B CNG frame destined for the transcoder
[asterisk-bristuff.git] / configure
blob2c9810dd1be48c9bd0f6012612f579bf602c2466
1 #! /bin/sh
2 # From configure.ac Revision: 91032 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
49 rm -f conf$$.sh
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
67 IFS=" "" $as_nl"
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 done
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
139 /^X\/\(\/\/\)$/{
140 s//\1/
143 /^X\/\(\/\).*/{
144 s//\1/
147 s/.*/./; q'`
149 # CDPATH.
150 $as_unset CDPATH
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
164 as_func_success () {
165 as_func_return 0
167 as_func_failure () {
168 as_func_return 1
170 as_func_ret_success () {
171 return 0
173 as_func_ret_failure () {
174 return 1
177 exitcode=0
178 if as_func_success; then
180 else
181 exitcode=1
182 echo as_func_success failed.
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 else
205 exitcode=1
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
274 (as_func_return () {
275 (exit $1)
277 as_func_success () {
278 as_func_return 0
280 as_func_failure () {
281 as_func_return 1
283 as_func_ret_success () {
284 return 0
286 as_func_ret_failure () {
287 return 1
290 exitcode=0
291 if as_func_success; then
293 else
294 exitcode=1
295 echo as_func_success failed.
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 else
318 exitcode=1
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330 _ASEOF
331 }; then
332 break
337 done
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
364 (exit \$1)
366 as_func_success () {
367 as_func_return 0
369 as_func_failure () {
370 as_func_return 1
372 as_func_ret_success () {
373 return 0
375 as_func_ret_failure () {
376 return 1
379 exitcode=0
380 if as_func_success; then
382 else
383 exitcode=1
384 echo as_func_success failed.
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 else
407 exitcode=1
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
477 ECHO_N='-n';;
478 esac
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
530 rm -f conf$$.file
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
561 PACKAGE_NAME=
562 PACKAGE_TARNAME=
563 PACKAGE_VERSION=
564 PACKAGE_STRING=
565 PACKAGE_BUGREPORT=
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
651 CFLAGS
652 LDFLAGS
653 CPPFLAGS
654 ac_ct_CC
655 EXEEXT
656 OBJEXT
658 GREP
659 EGREP
660 BUILD_PLATFORM
661 BUILD_CPU
662 BUILD_VENDOR
663 BUILD_OS
664 HOST_PLATFORM
665 HOST_CPU
666 HOST_VENDOR
667 HOST_OS
668 OSARCH
669 UNAME
670 PBX_OSREV
673 RANLIB
674 CXXFLAGS
675 ac_ct_CXX
676 CXXCPP
679 INSTALL_PROGRAM
680 INSTALL_SCRIPT
681 INSTALL_DATA
682 LN_S
683 GNU_MAKE
684 STRIP
686 GNU_LD
687 FIND
688 COMPRESS
689 BASENAME
691 DIRNAME
694 WGET
695 FETCH
696 DOWNLOAD
697 acx_pthread_config
698 PTHREAD_CC
699 PTHREAD_LIBS
700 PTHREAD_CFLAGS
701 AST_DEVMODE
702 ALSA_LIB
703 ALSA_INCLUDE
704 ALSA_DIR
705 PBX_ALSA
706 CURL_LIB
707 CURL_INCLUDE
708 CURL_DIR
709 PBX_CURL
710 CURSES_LIB
711 CURSES_INCLUDE
712 CURSES_DIR
713 PBX_CURSES
714 GNUTLS_LIB
715 GNUTLS_INCLUDE
716 GNUTLS_DIR
717 PBX_GNUTLS
718 GSM_LIB
719 GSM_INCLUDE
720 GSM_DIR
721 PBX_GSM
722 IKSEMEL_LIB
723 IKSEMEL_INCLUDE
724 IKSEMEL_DIR
725 PBX_IKSEMEL
726 IMAP_TK_LIB
727 IMAP_TK_INCLUDE
728 IMAP_TK_DIR
729 PBX_IMAP_TK
730 ISDNNET_LIB
731 ISDNNET_INCLUDE
732 ISDNNET_DIR
733 PBX_ISDNNET
734 KDE_LIB
735 KDE_INCLUDE
736 KDE_DIR
737 PBX_KDE
738 LTDL_LIB
739 LTDL_INCLUDE
740 LTDL_DIR
741 PBX_LTDL
742 MISDN_LIB
743 MISDN_INCLUDE
744 MISDN_DIR
745 PBX_MISDN
746 NBS_LIB
747 NBS_INCLUDE
748 NBS_DIR
749 PBX_NBS
750 NCURSES_LIB
751 NCURSES_INCLUDE
752 NCURSES_DIR
753 PBX_NCURSES
754 NETSNMP_LIB
755 NETSNMP_INCLUDE
756 NETSNMP_DIR
757 PBX_NETSNMP
758 NEWT_LIB
759 NEWT_INCLUDE
760 NEWT_DIR
761 PBX_NEWT
762 UNIXODBC_LIB
763 UNIXODBC_INCLUDE
764 UNIXODBC_DIR
765 PBX_UNIXODBC
766 OGG_LIB
767 OGG_INCLUDE
768 OGG_DIR
769 PBX_OGG
770 OSPTK_LIB
771 OSPTK_INCLUDE
772 OSPTK_DIR
773 PBX_OSPTK
774 OSS_LIB
775 OSS_INCLUDE
776 OSS_DIR
777 PBX_OSS
778 POPT_LIB
779 POPT_INCLUDE
780 POPT_DIR
781 PBX_POPT
782 PGSQL_LIB
783 PGSQL_INCLUDE
784 PGSQL_DIR
785 PBX_PGSQL
786 PRI_LIB
787 PRI_INCLUDE
788 PRI_DIR
789 PBX_PRI
790 PWLIB_LIB
791 PWLIB_INCLUDE
792 PWLIB_DIR
793 PBX_PWLIB
794 OPENH323_LIB
795 OPENH323_INCLUDE
796 OPENH323_DIR
797 PBX_OPENH323
798 QT_LIB
799 QT_INCLUDE
800 QT_DIR
801 PBX_QT
802 RADIUS_LIB
803 RADIUS_INCLUDE
804 RADIUS_DIR
805 PBX_RADIUS
806 SPEEX_LIB
807 SPEEX_INCLUDE
808 SPEEX_DIR
809 PBX_SPEEX
810 SQLITE_LIB
811 SQLITE_INCLUDE
812 SQLITE_DIR
813 PBX_SQLITE
814 SUPPSERV_LIB
815 SUPPSERV_INCLUDE
816 SUPPSERV_DIR
817 PBX_SUPPSERV
818 OPENSSL_LIB
819 OPENSSL_INCLUDE
820 OPENSSL_DIR
821 PBX_OPENSSL
822 FREETDS_LIB
823 FREETDS_INCLUDE
824 FREETDS_DIR
825 PBX_FREETDS
826 TERMCAP_LIB
827 TERMCAP_INCLUDE
828 TERMCAP_DIR
829 PBX_TERMCAP
830 TINFO_LIB
831 TINFO_INCLUDE
832 TINFO_DIR
833 PBX_TINFO
834 TONEZONE_LIB
835 TONEZONE_INCLUDE
836 TONEZONE_DIR
837 PBX_TONEZONE
838 USB_LIB
839 USB_INCLUDE
840 USB_DIR
841 PBX_USB
842 VORBIS_LIB
843 VORBIS_INCLUDE
844 VORBIS_DIR
845 PBX_VORBIS
846 VPB_LIB
847 VPB_INCLUDE
848 VPB_DIR
849 PBX_VPB
850 ZLIB_LIB
851 ZLIB_INCLUDE
852 ZLIB_DIR
853 PBX_ZLIB
854 ZAPTEL_LIB
855 ZAPTEL_INCLUDE
856 ZAPTEL_DIR
857 PBX_ZAPTEL
858 ALLOCA
859 LIBOBJS
860 POW_LIB
861 GC_CFLAGS
862 GC_LDFLAGS
863 AST_DECLARATION_AFTER_STATEMENT
864 GSM_INTERNAL
865 KDEINIT
866 KDEDIR
867 NETSNMP_CONFIG
868 PG_CONFIG
869 PTLIB_CONFIG
870 PWLIBDIR
871 PWLIB_INCDIR
872 PWLIB_LIBDIR
873 PWLIB_PLATFORM
874 OPENH323DIR
875 OPENH323_INCDIR
876 OPENH323_LIBDIR
877 OPENH323_SUFFIX
878 OPENH323_BUILD
879 QTMOC
880 PBX_ZAPTEL_VLDTMF
881 PBX_ZAPTEL_TRANSCODE
882 EDITLINE_LIB
883 PBX_H323
884 PBX_IXJUSER
885 GTKCONFIG
886 PBX_GTK
887 GTK_INCLUDE
888 GTK_LIB
889 PKGCONFIG
890 PBX_GTK2
891 GTK2_INCLUDE
892 GTK2_LIB
893 CURL_CONFIG
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
900 CFLAGS
901 LDFLAGS
902 CPPFLAGS
905 CXXFLAGS
907 CXXCPP'
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
956 ac_prev=
957 ac_dashdash=
958 for ac_option
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
967 case $ac_option in
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *) ac_optarg=yes ;;
970 esac
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
976 ac_dashdash=yes ;;
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
995 --config-cache | -C)
996 cache_file=config.cache ;;
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1010 -disable-* | --disable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1017 eval enable_$ac_feature=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1036 eval enable_$ac_feature=\$ac_optarg ;;
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1049 with_gas=yes ;;
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 ac_prev=htmldir ;;
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 | --ht=*)
1067 htmldir=$ac_optarg ;;
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 ac_prev=infodir ;;
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1081 -libdir | --libdir | --libdi | --libd)
1082 ac_prev=libdir ;;
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 ac_prev=mandir ;;
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1112 with_fp=no ;;
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1116 no_create=yes ;;
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 no_recursion=yes ;;
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 ac_prev=prefix ;;
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 ac_prev=pdfdir ;;
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1172 -psdir | --psdir | --psdi | --psd | --ps)
1173 ac_prev=psdir ;;
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 psdir=$ac_optarg ;;
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1179 silent=yes ;;
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 ac_prev=sbindir ;;
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 | --sbi=* | --sb=*)
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1190 | --sha | --sh)
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 | --sha=* | --sh=*)
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1199 ac_prev=site ;;
1200 -site=* | --site=* | --sit=*)
1201 site=$ac_optarg ;;
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 ac_prev=srcdir ;;
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 verbose=yes ;;
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1226 -with-* | --with-*)
1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package| sed 's/-/_/g'`
1233 eval with_$ac_package=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/-/_/g'`
1242 eval with_$ac_package=no ;;
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264 { (exit 1); exit 1; }; }
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272 { (exit 1); exit 1; }; }
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 esac
1285 done
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 { echo "$as_me: error: missing argument to $ac_option" >&2
1290 { (exit 1); exit 1; }; }
1293 # Be sure to have absolute directory names.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305 { (exit 1); exit 1; }; }
1306 done
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 { echo "$as_me: error: Working directory cannot be determined" >&2
1336 { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 { echo "$as_me: error: pwd does not report name of working directory" >&2
1339 { (exit 1); exit 1; }; }
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$0" : 'X\(//\)[^/]' \| \
1349 X"$0" : 'X\(//\)$' \| \
1350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1360 /^X\(\/\/\)$/{
1361 s//\1/
1364 /^X\(\/\).*/{
1365 s//\1/
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1373 else
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379 { (exit 1); exit 1; }; }
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384 { (exit 1); exit 1; }; }
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1465 cat <<\_ACEOF
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1473 if test -n "$ac_init_help"; then
1475 cat <<\_ACEOF
1477 Optional Features:
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-dev-mode Turn on developer mode
1481 --disable-largefile omit support for large files
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1488 --with-curl=PATH use cURL files in PATH
1489 --with-curses=PATH use curses files in PATH
1490 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1491 PATH
1492 --with-gsm=PATH use GSM files in PATH , or 'internal'
1493 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1494 --with-imap=PATH use UW IMAP Toolkit files in PATH
1495 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1496 --with-kde=PATH use KDE files in PATH
1497 --with-ltdl=PATH use libtool files in PATH
1498 --with-misdn=PATH use mISDN User Library files in PATH
1499 --with-nbs=PATH use Network Broadcast Sound files in PATH
1500 --with-ncurses=PATH use ncurses files in PATH
1501 --with-netsnmp=PATH use Net-SNMP files in PATH
1502 --with-newt=PATH use newt files in PATH
1503 --with-odbc=PATH use unixODBC files in PATH
1504 --with-ogg=PATH use OGG files in PATH
1505 --with-osptk=PATH use OSP Toolkit files in PATH
1506 --with-oss=PATH use Open Sound System files in PATH
1507 --with-popt=PATH use popt files in PATH
1508 --with-postgres=PATH use PostgreSQL files in PATH
1509 --with-pri=PATH use ISDN PRI files in PATH
1510 --with-pwlib=PATH use PWlib files in PATH
1511 --with-h323=PATH use OpenH323 files in PATH
1512 --with-qt=PATH use Qt files in PATH
1513 --with-radius=PATH use Radius Client files in PATH
1514 --with-speex=PATH use Speex files in PATH
1515 --with-sqlite=PATH use SQLite files in PATH
1516 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1517 --with-ssl=PATH use OpenSSL files in PATH
1518 --with-tds=PATH use FreeTDS files in PATH
1519 --with-termcap=PATH use Termcap files in PATH
1520 --with-tinfo=PATH use Term Info files in PATH
1521 --with-tonezone=PATH use tonezone files in PATH
1522 --with-usb=PATH use usb files in PATH
1523 --with-vorbis=PATH use Vorbis files in PATH
1524 --with-vpb=PATH use Voicetronix API files in PATH
1525 --with-z=PATH use zlib files in PATH
1526 --with-zaptel=PATH use Zaptel files in PATH
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CPP C preprocessor
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1538 CXXCPP C++ preprocessor
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 _ACEOF
1544 ac_status=$?
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" || continue
1551 ac_builddir=.
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 configure
1604 generated by GNU Autoconf 2.60
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1611 "Asterisk"
1612 _ACEOF
1613 exit
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.60. Invocation command line was
1622 $ $0 $@
1624 _ACEOF
1625 exec 5>>config.log
1627 cat <<_ASUNAME
1628 ## --------- ##
1629 ## Platform. ##
1630 ## --------- ##
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649 _ASUNAME
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 echo "PATH: $as_dir"
1657 done
1658 IFS=$as_save_IFS
1660 } >&5
1662 cat >&5 <<_ACEOF
1665 ## ----------- ##
1666 ## Core tests. ##
1667 ## ----------- ##
1669 _ACEOF
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_configure_args=
1678 ac_configure_args0=
1679 ac_configure_args1=
1680 ac_must_keep_next=false
1681 for ac_pass in 1 2
1683 for ac_arg
1685 case $ac_arg in
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 continue ;;
1690 *\'*)
1691 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 esac
1693 case $ac_pass in
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1699 else
1700 case $ac_arg in
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 esac
1709 -* ) ac_must_keep_next=true ;;
1710 esac
1712 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 esac
1715 done
1716 done
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log. We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1728 echo
1730 cat <<\_ASBOX
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1734 _ASBOX
1735 echo
1736 # The following way of writing the cache mishandles newlines in values,
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in #(
1741 *${as_nl}*)
1742 case $ac_var in #(
1743 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1744 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745 esac
1746 case $ac_var in #(
1747 _ | IFS | as_nl) ;; #(
1748 *) $as_unset $ac_var ;;
1749 esac ;;
1750 esac
1751 done
1752 (set) 2>&1 |
1753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1754 *${as_nl}ac_space=\ *)
1755 sed -n \
1756 "s/'\''/'\''\\\\'\'''\''/g;
1757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758 ;; #(
1760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 esac |
1763 sort
1765 echo
1767 cat <<\_ASBOX
1768 ## ----------------- ##
1769 ## Output variables. ##
1770 ## ----------------- ##
1771 _ASBOX
1772 echo
1773 for ac_var in $ac_subst_vars
1775 eval ac_val=\$$ac_var
1776 case $ac_val in
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 esac
1779 echo "$ac_var='\''$ac_val'\''"
1780 done | sort
1781 echo
1783 if test -n "$ac_subst_files"; then
1784 cat <<\_ASBOX
1785 ## ------------------- ##
1786 ## File substitutions. ##
1787 ## ------------------- ##
1788 _ASBOX
1789 echo
1790 for ac_var in $ac_subst_files
1792 eval ac_val=\$$ac_var
1793 case $ac_val in
1794 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 esac
1796 echo "$ac_var='\''$ac_val'\''"
1797 done | sort
1798 echo
1801 if test -s confdefs.h; then
1802 cat <<\_ASBOX
1803 ## ----------- ##
1804 ## confdefs.h. ##
1805 ## ----------- ##
1806 _ASBOX
1807 echo
1808 cat confdefs.h
1809 echo
1811 test "$ac_signal" != 0 &&
1812 echo "$as_me: caught signal $ac_signal"
1813 echo "$as_me: exit $exit_status"
1814 } >&5
1815 rm -f core *.core core.conftest.* &&
1816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817 exit $exit_status
1819 for ac_signal in 1 2 13 15; do
1820 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 done
1822 ac_signal=0
1824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1825 rm -f -r conftest* confdefs.h
1827 # Predefined preprocessor variables.
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 _ACEOF
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 _ACEOF
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 _ACEOF
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 _ACEOF
1854 # Let the site file select an alternate cache file if it wants to.
1855 # Prefer explicitly selected file to automatically selected ones.
1856 if test -n "$CONFIG_SITE"; then
1857 set x "$CONFIG_SITE"
1858 elif test "x$prefix" != xNONE; then
1859 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1860 else
1861 set x "$ac_default_prefix/share/config.site" \
1862 "$ac_default_prefix/etc/config.site"
1864 shift
1865 for ac_site_file
1867 if test -r "$ac_site_file"; then
1868 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869 echo "$as_me: loading site script $ac_site_file" >&6;}
1870 sed 's/^/| /' "$ac_site_file" >&5
1871 . "$ac_site_file"
1873 done
1875 if test -r "$cache_file"; then
1876 # Some versions of bash will fail to source /dev/null (special
1877 # files actually), so we avoid doing that.
1878 if test -f "$cache_file"; then
1879 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880 echo "$as_me: loading cache $cache_file" >&6;}
1881 case $cache_file in
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
1884 esac
1886 else
1887 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888 echo "$as_me: creating cache $cache_file" >&6;}
1889 >$cache_file
1892 # Check that the precious variables saved in the cache have kept the same
1893 # value.
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
1900 case $ac_old_set,$ac_new_set in
1901 set,)
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,set)
1906 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1909 ,);;
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
1912 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1915 echo "$as_me: former value: $ac_old_val" >&2;}
1916 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1917 echo "$as_me: current value: $ac_new_val" >&2;}
1918 ac_cache_corrupted=:
1919 fi;;
1920 esac
1921 # Pass precious variables to config.status.
1922 if test "$ac_new_set" = set; then
1923 case $ac_new_val in
1924 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1926 esac
1927 case " $ac_configure_args " in
1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 esac
1932 done
1933 if $ac_cache_corrupted; then
1934 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1938 { (exit 1); exit 1; }; }
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 # cross-compile macros
1966 ac_aux_dir=
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1971 break
1972 elif test -f "$ac_dir/install.sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1975 break
1976 elif test -f "$ac_dir/shtool"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 break
1981 done
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997 # Make sure we can run config.sub.
1998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1999 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2000 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2001 { (exit 1); exit 1; }; }
2003 { echo "$as_me:$LINENO: checking build system type" >&5
2004 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2005 if test "${ac_cv_build+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 ac_build_alias=$build_alias
2009 test "x$ac_build_alias" = x &&
2010 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2011 test "x$ac_build_alias" = x &&
2012 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2013 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2014 { (exit 1); exit 1; }; }
2015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2018 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2022 echo "${ECHO_T}$ac_cv_build" >&6; }
2023 case $ac_cv_build in
2024 *-*-*) ;;
2025 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2026 echo "$as_me: error: invalid value of canonical build" >&2;}
2027 { (exit 1); exit 1; }; };;
2028 esac
2029 build=$ac_cv_build
2030 ac_save_IFS=$IFS; IFS='-'
2031 set x $ac_cv_build
2032 shift
2033 build_cpu=$1
2034 build_vendor=$2
2035 shift; shift
2036 # Remember, the first character of IFS is used to create $*,
2037 # except with old shells:
2038 build_os=$*
2039 IFS=$ac_save_IFS
2040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2043 { echo "$as_me:$LINENO: checking host system type" >&5
2044 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2045 if test "${ac_cv_host+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test "x$host_alias" = x; then
2049 ac_cv_host=$ac_cv_build
2050 else
2051 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2054 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2059 echo "${ECHO_T}$ac_cv_host" >&6; }
2060 case $ac_cv_host in
2061 *-*-*) ;;
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2063 echo "$as_me: error: invalid value of canonical host" >&2;}
2064 { (exit 1); exit 1; }; };;
2065 esac
2066 host=$ac_cv_host
2067 ac_save_IFS=$IFS; IFS='-'
2068 set x $ac_cv_host
2069 shift
2070 host_cpu=$1
2071 host_vendor=$2
2072 shift; shift
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2075 host_os=$*
2076 IFS=$ac_save_IFS
2077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081 # check existence of the package
2084 # specify output header file
2085 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2092 cat >>confdefs.h <<\_ACEOF
2093 #define _GNU_SOURCE 1
2094 _ACEOF
2097 ac_ext=c
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
2126 IFS=$as_save_IFS
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6; }
2134 else
2135 { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2141 if test -z "$ac_cv_prog_CC"; then
2142 ac_ct_CC=$CC
2143 # Extract the first word of "gcc", so it can be a program name with args.
2144 set dummy gcc; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test -n "$ac_ct_CC"; then
2151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_CC="gcc"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2164 done
2165 done
2166 IFS=$as_save_IFS
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6; }
2174 else
2175 { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2179 if test "x$ac_ct_CC" = x; then
2180 CC=""
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet. If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&5
2187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2188 whose name does not start with the host triplet. If you think this
2189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2190 ac_tool_warned=yes ;;
2191 esac
2192 CC=$ac_ct_CC
2194 else
2195 CC="$ac_cv_prog_CC"
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2201 set dummy ${ac_tool_prefix}cc; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_CC="${ac_tool_prefix}cc"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2221 done
2222 done
2223 IFS=$as_save_IFS
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229 { echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6; }
2231 else
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2239 if test -z "$CC"; then
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 ac_prog_rejected=no
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259 ac_prog_rejected=yes
2260 continue
2262 ac_cv_prog_CC="cc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2266 done
2267 done
2268 IFS=$as_save_IFS
2270 if test $ac_prog_rejected = yes; then
2271 # We found a bogon in the path, so make sure we never use it.
2272 set dummy $ac_cv_prog_CC
2273 shift
2274 if test $# != 0; then
2275 # We chose a different compiler from the bogus one.
2276 # However, it has the same basename, so the bogon will be chosen
2277 # first if we set CC to just the basename; use the full file name.
2278 shift
2279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286 { echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6; }
2288 else
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2295 if test -z "$CC"; then
2296 if test -n "$ac_tool_prefix"; then
2297 for ac_prog in cl.exe
2299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2320 done
2321 done
2322 IFS=$as_save_IFS
2326 CC=$ac_cv_prog_CC
2327 if test -n "$CC"; then
2328 { echo "$as_me:$LINENO: result: $CC" >&5
2329 echo "${ECHO_T}$CC" >&6; }
2330 else
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2336 test -n "$CC" && break
2337 done
2339 if test -z "$CC"; then
2340 ac_ct_CC=$CC
2341 for ac_prog in cl.exe
2343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 if test -n "$ac_ct_CC"; then
2351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_CC="$ac_prog"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2364 done
2365 done
2366 IFS=$as_save_IFS
2370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371 if test -n "$ac_ct_CC"; then
2372 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373 echo "${ECHO_T}$ac_ct_CC" >&6; }
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2380 test -n "$ac_ct_CC" && break
2381 done
2383 if test "x$ac_ct_CC" = x; then
2384 CC=""
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396 CC=$ac_ct_CC
2403 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2409 # Provide some information about the compiler.
2410 echo "$as_me:$LINENO: checking for C compiler version" >&5
2411 ac_compiler=`set X $ac_compile; echo $2`
2412 { (ac_try="$ac_compiler --version >&5"
2413 case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compiler --version >&5") 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (ac_try="$ac_compiler -v >&5"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_compiler -v >&5") 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432 { (ac_try="$ac_compiler -V >&5"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compiler -V >&5") 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2451 main ()
2455 return 0;
2457 _ACEOF
2458 ac_clean_files_save=$ac_clean_files
2459 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2460 # Try to create an executable without -o first, disregard a.out.
2461 # It will help us diagnose broken compilers, and finding out an intuition
2462 # of exeext.
2463 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2464 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2467 # List of possible output files, starting from the most likely.
2468 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2469 # only as a last resort. b.out is created by i960 compilers.
2470 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2472 # The IRIX 6 linker writes into existing files which may not be
2473 # executable, retaining their permissions. Remove them first so a
2474 # subsequent execution test works.
2475 ac_rmfiles=
2476 for ac_file in $ac_files
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2481 esac
2482 done
2483 rm -f $ac_rmfiles
2485 if { (ac_try="$ac_link_default"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link_default") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2497 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2498 # so that the user can short-circuit this test for compilers unknown to
2499 # Autoconf.
2500 for ac_file in $ac_files
2502 test -f "$ac_file" || continue
2503 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2506 [ab].out )
2507 # We found the default executable, but exeext='' is most
2508 # certainly right.
2509 break;;
2510 *.* )
2511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2512 then :; else
2513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 # We set ac_cv_exeext here because the later test for it is not
2516 # safe: cross compilers may not add the suffix if given an `-o'
2517 # argument, so we may need to know it at that point already.
2518 # Even if this section looks crufty: it has the advantage of
2519 # actually working.
2520 break;;
2522 break;;
2523 esac
2524 done
2525 test "$ac_cv_exeext" = no && ac_cv_exeext=
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&5
2533 echo "$as_me: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&2;}
2535 { (exit 77); exit 77; }; }
2538 ac_exeext=$ac_cv_exeext
2539 { echo "$as_me:$LINENO: result: $ac_file" >&5
2540 echo "${ECHO_T}$ac_file" >&6; }
2542 # Check that the compiler produces executables we can run. If not, either
2543 # the compiler is broken, or we cross compile.
2544 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2545 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2546 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2547 # If not cross compiling, check that we can run a simple program.
2548 if test "$cross_compiling" != yes; then
2549 if { ac_try='./$ac_file'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 cross_compiling=no
2560 else
2561 if test "$cross_compiling" = maybe; then
2562 cross_compiling=yes
2563 else
2564 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2565 If you meant to cross compile, use \`--host'.
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2574 { echo "$as_me:$LINENO: result: yes" >&5
2575 echo "${ECHO_T}yes" >&6; }
2577 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2578 ac_clean_files=$ac_clean_files_save
2579 # Check that the compiler produces executables we can run. If not, either
2580 # the compiler is broken, or we cross compile.
2581 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2582 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2583 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2584 echo "${ECHO_T}$cross_compiling" >&6; }
2586 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2587 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2588 if { (ac_try="$ac_link"
2589 case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_link") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; then
2598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2600 # work properly (i.e., refer to `conftest.exe'), while it won't with
2601 # `rm'.
2602 for ac_file in conftest.exe conftest conftest.*; do
2603 test -f "$ac_file" || continue
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 break;;
2608 * ) break;;
2609 esac
2610 done
2611 else
2612 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2615 See \`config.log' for more details." >&2;}
2616 { (exit 1); exit 1; }; }
2619 rm -f conftest$ac_cv_exeext
2620 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2621 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2623 rm -f conftest.$ac_ext
2624 EXEEXT=$ac_cv_exeext
2625 ac_exeext=$EXEEXT
2626 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2627 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2628 if test "${ac_cv_objext+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2639 main ()
2643 return 0;
2645 _ACEOF
2646 rm -f conftest.o conftest.obj
2647 if { (ac_try="$ac_compile"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compile") 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 for ac_file in conftest.o conftest.obj conftest.*; do
2658 test -f "$ac_file" || continue;
2659 case $ac_file in
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662 break;;
2663 esac
2664 done
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2678 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2679 echo "${ECHO_T}$ac_cv_objext" >&6; }
2680 OBJEXT=$ac_cv_objext
2681 ac_objext=$OBJEXT
2682 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2695 main ()
2697 #ifndef __GNUC__
2698 choke me
2699 #endif
2702 return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_compiler_gnu=yes
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 ac_compiler_gnu=no
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2756 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2757 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_cc_g+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 ac_save_c_werror_flag=$ac_c_werror_flag
2762 ac_c_werror_flag=yes
2763 ac_cv_prog_cc_g=no
2764 CFLAGS="-g"
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 ac_cv_prog_cc_g=yes
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 CFLAGS=""
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_c_werror_flag=$ac_save_c_werror_flag
2875 CFLAGS="-g"
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2906 { (case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_try") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_try") 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 ac_cv_prog_cc_g=yes
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940 ac_c_werror_flag=$ac_save_c_werror_flag
2942 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2944 if test "$ac_test_CFLAGS" = set; then
2945 CFLAGS=$ac_save_CFLAGS
2946 elif test $ac_cv_prog_cc_g = yes; then
2947 if test "$GCC" = yes; then
2948 CFLAGS="-g -O2"
2949 else
2950 CFLAGS="-g"
2952 else
2953 if test "$GCC" = yes; then
2954 CFLAGS="-O2"
2955 else
2956 CFLAGS=
2959 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2960 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2961 if test "${ac_cv_prog_cc_c89+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 ac_cv_prog_cc_c89=no
2965 ac_save_CC=$CC
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <stdarg.h>
2973 #include <stdio.h>
2974 #include <sys/types.h>
2975 #include <sys/stat.h>
2976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2977 struct buf { int x; };
2978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979 static char *e (p, i)
2980 char **p;
2981 int i;
2983 return p[i];
2985 static char *f (char * (*g) (char **, int), char **p, ...)
2987 char *s;
2988 va_list v;
2989 va_start (v,p);
2990 s = g (p, va_arg (v,int));
2991 va_end (v);
2992 return s;
2995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2996 function prototypes and stuff, but not '\xHH' hex character constants.
2997 These don't provoke an error unfortunately, instead are silently treated
2998 as 'x'. The following induces an error, until -std is added to get
2999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3000 array size at least. It's necessary to write '\x00'==0 to get something
3001 that's true only with -std. */
3002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3005 inside strings and character constants. */
3006 #define FOO(x) 'x'
3007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3009 int test (int i, double x);
3010 struct s1 {int (*f) (int a);};
3011 struct s2 {int (*f) (double a);};
3012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3013 int argc;
3014 char **argv;
3016 main ()
3018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3020 return 0;
3022 _ACEOF
3023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3026 CC="$ac_save_CC $ac_arg"
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cc_c89=$ac_arg
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f core conftest.err conftest.$ac_objext
3070 test "x$ac_cv_prog_cc_c89" != "xno" && break
3071 done
3072 rm -f conftest.$ac_ext
3073 CC=$ac_save_CC
3076 # AC_CACHE_VAL
3077 case "x$ac_cv_prog_cc_c89" in
3079 { echo "$as_me:$LINENO: result: none needed" >&5
3080 echo "${ECHO_T}none needed" >&6; } ;;
3081 xno)
3082 { echo "$as_me:$LINENO: result: unsupported" >&5
3083 echo "${ECHO_T}unsupported" >&6; } ;;
3085 CC="$CC $ac_cv_prog_cc_c89"
3086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3087 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3088 esac
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3104 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3105 # On Suns, sometimes $CPP names a directory.
3106 if test -n "$CPP" && test -d "$CPP"; then
3107 CPP=
3109 if test -z "$CPP"; then
3110 if test "${ac_cv_prog_CPP+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 # Double quotes because CPP needs to be expanded
3114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 ac_preproc_ok=false
3117 for ac_c_preproc_warn_flag in '' yes
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 # <limits.h> exists even on freestanding compilers.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp. "Syntax error" is here to catch this case.
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #ifdef __STDC__
3132 # include <limits.h>
3133 #else
3134 # include <assert.h>
3135 #endif
3136 Syntax error
3137 _ACEOF
3138 if { (ac_try="$ac_cpp conftest.$ac_ext"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } >/dev/null; then
3151 if test -s conftest.err; then
3152 ac_cpp_err=$ac_c_preproc_warn_flag
3153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3154 else
3155 ac_cpp_err=
3157 else
3158 ac_cpp_err=yes
3160 if test -z "$ac_cpp_err"; then
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 # Broken: fails on valid input.
3167 continue
3170 rm -f conftest.err conftest.$ac_ext
3172 # OK, works on sane cases. Now check whether nonexistent headers
3173 # can be detected and how.
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #include <ac_nonexistent.h>
3181 _ACEOF
3182 if { (ac_try="$ac_cpp conftest.$ac_ext"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null; then
3195 if test -s conftest.err; then
3196 ac_cpp_err=$ac_c_preproc_warn_flag
3197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3198 else
3199 ac_cpp_err=
3201 else
3202 ac_cpp_err=yes
3204 if test -z "$ac_cpp_err"; then
3205 # Broken: success on invalid input.
3206 continue
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 # Passes both tests.
3212 ac_preproc_ok=:
3213 break
3216 rm -f conftest.err conftest.$ac_ext
3218 done
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.err conftest.$ac_ext
3221 if $ac_preproc_ok; then
3222 break
3225 done
3226 ac_cv_prog_CPP=$CPP
3229 CPP=$ac_cv_prog_CPP
3230 else
3231 ac_cv_prog_CPP=$CPP
3233 { echo "$as_me:$LINENO: result: $CPP" >&5
3234 echo "${ECHO_T}$CPP" >&6; }
3235 ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #ifdef __STDC__
3251 # include <limits.h>
3252 #else
3253 # include <assert.h>
3254 #endif
3255 Syntax error
3256 _ACEOF
3257 if { (ac_try="$ac_cpp conftest.$ac_ext"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
3272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273 else
3274 ac_cpp_err=
3276 else
3277 ac_cpp_err=yes
3279 if test -z "$ac_cpp_err"; then
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 # Broken: fails on valid input.
3286 continue
3289 rm -f conftest.err conftest.$ac_ext
3291 # OK, works on sane cases. Now check whether nonexistent headers
3292 # can be detected and how.
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <ac_nonexistent.h>
3300 _ACEOF
3301 if { (ac_try="$ac_cpp conftest.$ac_ext"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } >/dev/null; then
3314 if test -s conftest.err; then
3315 ac_cpp_err=$ac_c_preproc_warn_flag
3316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3317 else
3318 ac_cpp_err=
3320 else
3321 ac_cpp_err=yes
3323 if test -z "$ac_cpp_err"; then
3324 # Broken: success on invalid input.
3325 continue
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3335 rm -f conftest.err conftest.$ac_ext
3337 done
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3342 else
3343 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3346 See \`config.log' for more details." >&2;}
3347 { (exit 1); exit 1; }; }
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3358 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3359 if test "${ac_cv_path_GREP+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 # Extract the first word of "grep ggrep" to use in msg output
3363 if test -z "$GREP"; then
3364 set dummy grep ggrep; ac_prog_name=$2
3365 if test "${ac_cv_path_GREP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 ac_path_GREP_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_prog in grep ggrep; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3378 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3379 # Check for GNU ac_path_GREP and select it if it is found.
3380 # Check for GNU $ac_path_GREP
3381 case `"$ac_path_GREP" --version 2>&1` in
3382 *GNU*)
3383 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3385 ac_count=0
3386 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3387 while :
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 echo 'GREP' >> "conftest.nl"
3393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395 ac_count=`expr $ac_count + 1`
3396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_GREP="$ac_path_GREP"
3399 ac_path_GREP_max=$ac_count
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405 esac
3408 $ac_path_GREP_found && break 3
3409 done
3410 done
3412 done
3413 IFS=$as_save_IFS
3418 GREP="$ac_cv_path_GREP"
3419 if test -z "$GREP"; then
3420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3421 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3422 { (exit 1); exit 1; }; }
3425 else
3426 ac_cv_path_GREP=$GREP
3431 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3432 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3433 GREP="$ac_cv_path_GREP"
3436 { echo "$as_me:$LINENO: checking for egrep" >&5
3437 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3438 if test "${ac_cv_path_EGREP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3442 then ac_cv_path_EGREP="$GREP -E"
3443 else
3444 # Extract the first word of "egrep" to use in msg output
3445 if test -z "$EGREP"; then
3446 set dummy egrep; ac_prog_name=$2
3447 if test "${ac_cv_path_EGREP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_path_EGREP_found=false
3451 # Loop through the user's path and test for each of PROGNAME-LIST
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_prog in egrep; do
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3460 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3461 # Check for GNU ac_path_EGREP and select it if it is found.
3462 # Check for GNU $ac_path_EGREP
3463 case `"$ac_path_EGREP" --version 2>&1` in
3464 *GNU*)
3465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3467 ac_count=0
3468 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3469 while :
3471 cat "conftest.in" "conftest.in" >"conftest.tmp"
3472 mv "conftest.tmp" "conftest.in"
3473 cp "conftest.in" "conftest.nl"
3474 echo 'EGREP' >> "conftest.nl"
3475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3477 ac_count=`expr $ac_count + 1`
3478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3479 # Best one so far, save it but keep looking for a better one
3480 ac_cv_path_EGREP="$ac_path_EGREP"
3481 ac_path_EGREP_max=$ac_count
3483 # 10*(2^10) chars as input seems more than enough
3484 test $ac_count -gt 10 && break
3485 done
3486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3487 esac
3490 $ac_path_EGREP_found && break 3
3491 done
3492 done
3494 done
3495 IFS=$as_save_IFS
3500 EGREP="$ac_cv_path_EGREP"
3501 if test -z "$EGREP"; then
3502 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3503 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3504 { (exit 1); exit 1; }; }
3507 else
3508 ac_cv_path_EGREP=$EGREP
3514 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3515 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3516 EGREP="$ac_cv_path_EGREP"
3520 { echo "$as_me:$LINENO: checking for AIX" >&5
3521 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #ifdef _AIX
3530 #endif
3532 _ACEOF
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 $EGREP "yes" >/dev/null 2>&1; then
3535 { echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6; }
3537 cat >>confdefs.h <<\_ACEOF
3538 #define _ALL_SOURCE 1
3539 _ACEOF
3541 else
3542 { echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6; }
3545 rm -f conftest*
3548 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3550 if test "${ac_cv_header_stdc+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <stdlib.h>
3560 #include <stdarg.h>
3561 #include <string.h>
3562 #include <float.h>
3565 main ()
3569 return 0;
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_header_stdc=yes
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 if test $ac_cv_header_stdc = yes; then
3617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 #include <string.h>
3626 _ACEOF
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 $EGREP "memchr" >/dev/null 2>&1; then
3630 else
3631 ac_cv_header_stdc=no
3633 rm -f conftest*
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <stdlib.h>
3647 _ACEOF
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 $EGREP "free" >/dev/null 2>&1; then
3651 else
3652 ac_cv_header_stdc=no
3654 rm -f conftest*
3658 if test $ac_cv_header_stdc = yes; then
3659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3660 if test "$cross_compiling" = yes; then
3662 else
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <ctype.h>
3670 #include <stdlib.h>
3671 #if ((' ' & 0x0FF) == 0x020)
3672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3674 #else
3675 # define ISLOWER(c) \
3676 (('a' <= (c) && (c) <= 'i') \
3677 || ('j' <= (c) && (c) <= 'r') \
3678 || ('s' <= (c) && (c) <= 'z'))
3679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3680 #endif
3682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3684 main ()
3686 int i;
3687 for (i = 0; i < 256; i++)
3688 if (XOR (islower (i), ISLOWER (i))
3689 || toupper (i) != TOUPPER (i))
3690 return 2;
3691 return 0;
3693 _ACEOF
3694 rm -f conftest$ac_exeext
3695 if { (ac_try="$ac_link"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705 { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3715 else
3716 echo "$as_me: program exited with status $ac_status" >&5
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 ( exit $ac_status )
3721 ac_cv_header_stdc=no
3723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3731 if test $ac_cv_header_stdc = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3735 _ACEOF
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750 inttypes.h stdint.h unistd.h
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3783 { (case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_try") 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest.$ac_objext'
3793 { (case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_try") 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 eval "$as_ac_Header=yes"
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 eval "$as_ac_Header=no"
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_res=`eval echo '${'$as_ac_Header'}'`
3813 { echo "$as_me:$LINENO: result: $ac_res" >&5
3814 echo "${ECHO_T}$ac_res" >&6; }
3815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3816 cat >>confdefs.h <<_ACEOF
3817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3818 _ACEOF
3822 done
3825 if test "${ac_cv_header_minix_config_h+set}" = set; then
3826 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3827 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3828 if test "${ac_cv_header_minix_config_h+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3832 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3833 else
3834 # Is the header compilable?
3835 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3836 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3844 #include <minix/config.h>
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_header_compiler=yes
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_header_compiler=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3890 echo "${ECHO_T}$ac_header_compiler" >&6; }
3892 # Is the header present?
3893 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3894 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 #include <minix/config.h>
3902 _ACEOF
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3919 else
3920 ac_cpp_err=
3922 else
3923 ac_cpp_err=yes
3925 if test -z "$ac_cpp_err"; then
3926 ac_header_preproc=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_header_preproc=no
3934 rm -f conftest.err conftest.$ac_ext
3935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3936 echo "${ECHO_T}$ac_header_preproc" >&6; }
3938 # So? What about this header?
3939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3940 yes:no: )
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3942 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3944 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3945 ac_header_preproc=yes
3947 no:yes:* )
3948 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3949 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3951 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3953 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3955 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3957 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3959 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3962 esac
3963 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3964 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3965 if test "${ac_cv_header_minix_config_h+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 ac_cv_header_minix_config_h=$ac_header_preproc
3970 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3971 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3974 if test $ac_cv_header_minix_config_h = yes; then
3975 MINIX=yes
3976 else
3977 MINIX=
3981 if test "$MINIX" = yes; then
3983 cat >>confdefs.h <<\_ACEOF
3984 #define _POSIX_SOURCE 1
3985 _ACEOF
3988 cat >>confdefs.h <<\_ACEOF
3989 #define _POSIX_1_SOURCE 2
3990 _ACEOF
3993 cat >>confdefs.h <<\_ACEOF
3994 #define _MINIX 1
3995 _ACEOF
4009 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4010 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4011 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4021 # define __EXTENSIONS__ 1
4022 $ac_includes_default
4024 main ()
4028 return 0;
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_safe_to_define___extensions__=yes
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_cv_safe_to_define___extensions__=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4076 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4077 test $ac_cv_safe_to_define___extensions__ = yes &&
4078 cat >>confdefs.h <<\_ACEOF
4079 #define __EXTENSIONS__ 1
4080 _ACEOF
4082 cat >>confdefs.h <<\_ACEOF
4083 #define _POSIX_PTHREAD_SEMANTICS 1
4084 _ACEOF
4086 # note- does not work on FreeBSD
4088 case "${host_os}" in
4089 freebsd*)
4090 ac_default_prefix=/usr/local
4091 CPPFLAGS=-I/usr/local/include
4092 LDFLAGS=-L/usr/local/lib
4095 ac_default_prefix=/usr
4096 if test ${sysconfdir} = '${prefix}/etc'; then
4097 sysconfdir=/etc
4099 if test ${mandir} = '${prefix}/man'; then
4100 mandir=/usr/share/man
4103 esac
4105 if test ${localstatedir} = '${prefix}/var'; then
4106 localstatedir=/var
4109 BUILD_PLATFORM=${build}
4110 BUILD_CPU=${build_cpu}
4111 BUILD_VENDOR=${build_vendor}
4112 BUILD_OS=${build_os}
4119 HOST_PLATFORM=${host}
4120 HOST_CPU=${host_cpu}
4121 HOST_VENDOR=${host_vendor}
4122 HOST_OS=${host_os}
4129 case "${host_os}" in
4130 freebsd*)
4131 OSARCH=FreeBSD
4133 netbsd*)
4134 OSARCH=NetBSD
4136 openbsd*)
4137 OSARCH=OpenBSD
4139 solaris*)
4140 OSARCH=SunOS
4143 OSARCH=${HOST_OS}
4145 esac
4149 # check for uname
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}uname; ac_word=$2
4153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4155 if test "${ac_cv_path_UNAME+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 case $UNAME in
4159 [\\/]* | ?:[\\/]*)
4160 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4170 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4174 done
4175 done
4176 IFS=$as_save_IFS
4179 esac
4181 UNAME=$ac_cv_path_UNAME
4182 if test -n "$UNAME"; then
4183 { echo "$as_me:$LINENO: result: $UNAME" >&5
4184 echo "${ECHO_T}$UNAME" >&6; }
4185 else
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4192 if test -z "$ac_cv_path_UNAME"; then
4193 ac_pt_UNAME=$UNAME
4194 # Extract the first word of "uname", so it can be a program name with args.
4195 set dummy uname; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 case $ac_pt_UNAME in
4202 [\\/]* | ?:[\\/]*)
4203 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4222 esac
4224 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4225 if test -n "$ac_pt_UNAME"; then
4226 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4227 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4228 else
4229 { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4233 if test "x$ac_pt_UNAME" = x; then
4234 UNAME="No"
4235 else
4236 case $cross_compiling:$ac_tool_warned in
4237 yes:)
4238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4239 whose name does not start with the host triplet. If you think this
4240 configuration is useful to you, please write to autoconf@gnu.org." >&5
4241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4242 whose name does not start with the host triplet. If you think this
4243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246 UNAME=$ac_pt_UNAME
4248 else
4249 UNAME="$ac_cv_path_UNAME"
4252 if test ! x"${UNAME}" = xNo; then
4253 PBX_OSREV=$(${UNAME} -r)
4263 # cross-compile checks
4264 if test "${cross_compiling}" = "yes";
4265 then
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 if test -n "$CC"; then
4275 ac_cv_prog_CC="$CC" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 CC=$ac_cv_prog_CC
4295 if test -n "$CC"; then
4296 { echo "$as_me:$LINENO: result: $CC" >&5
4297 echo "${ECHO_T}$CC" >&6; }
4298 else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4305 if test -z "$ac_cv_prog_CC"; then
4306 ac_ct_CC=$CC
4307 # Extract the first word of "gcc", so it can be a program name with args.
4308 set dummy gcc; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CC="gcc"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4337 echo "${ECHO_T}$ac_ct_CC" >&6; }
4338 else
4339 { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4343 if test "x$ac_ct_CC" = x; then
4344 CC=":"
4345 else
4346 case $cross_compiling:$ac_tool_warned in
4347 yes:)
4348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4349 whose name does not start with the host triplet. If you think this
4350 configuration is useful to you, please write to autoconf@gnu.org." >&5
4351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4352 whose name does not start with the host triplet. If you think this
4353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356 CC=$ac_ct_CC
4358 else
4359 CC="$ac_cv_prog_CC"
4362 if test -n "$ac_tool_prefix"; then
4363 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4364 set dummy ${ac_tool_prefix}g++; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_prog_CXX+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test -n "$CXX"; then
4371 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 CXX=$ac_cv_prog_CXX
4391 if test -n "$CXX"; then
4392 { echo "$as_me:$LINENO: result: $CXX" >&5
4393 echo "${ECHO_T}$CXX" >&6; }
4394 else
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4401 if test -z "$ac_cv_prog_CXX"; then
4402 ac_ct_CXX=$CXX
4403 # Extract the first word of "g++", so it can be a program name with args.
4404 set dummy g++; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 if test -n "$ac_ct_CXX"; then
4411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_CXX="g++"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4431 if test -n "$ac_ct_CXX"; then
4432 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4433 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4434 else
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4439 if test "x$ac_ct_CXX" = x; then
4440 CXX=":"
4441 else
4442 case $cross_compiling:$ac_tool_warned in
4443 yes:)
4444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4445 whose name does not start with the host triplet. If you think this
4446 configuration is useful to you, please write to autoconf@gnu.org." >&5
4447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet. If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 CXX=$ac_ct_CXX
4454 else
4455 CXX="$ac_cv_prog_CXX"
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4460 set dummy ${ac_tool_prefix}ld; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_LD+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$LD"; then
4467 ac_cv_prog_LD="$LD" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_LD="${ac_tool_prefix}ld"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4482 IFS=$as_save_IFS
4486 LD=$ac_cv_prog_LD
4487 if test -n "$LD"; then
4488 { echo "$as_me:$LINENO: result: $LD" >&5
4489 echo "${ECHO_T}$LD" >&6; }
4490 else
4491 { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4497 if test -z "$ac_cv_prog_LD"; then
4498 ac_ct_LD=$LD
4499 # Extract the first word of "ld", so it can be a program name with args.
4500 set dummy ld; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 if test -n "$ac_ct_LD"; then
4507 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_ac_ct_LD="ld"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4522 IFS=$as_save_IFS
4526 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4527 if test -n "$ac_ct_LD"; then
4528 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4529 echo "${ECHO_T}$ac_ct_LD" >&6; }
4530 else
4531 { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4535 if test "x$ac_ct_LD" = x; then
4536 LD=":"
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539 yes:)
4540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4541 whose name does not start with the host triplet. If you think this
4542 configuration is useful to you, please write to autoconf@gnu.org." >&5
4543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4546 ac_tool_warned=yes ;;
4547 esac
4548 LD=$ac_ct_LD
4550 else
4551 LD="$ac_cv_prog_LD"
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_RANLIB+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$RANLIB"; then
4563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6; }
4586 else
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4593 if test -z "$ac_cv_prog_RANLIB"; then
4594 ac_ct_RANLIB=$RANLIB
4595 # Extract the first word of "ranlib", so it can be a program name with args.
4596 set dummy ranlib; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$ac_ct_RANLIB"; then
4603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_RANLIB="ranlib"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4623 if test -n "$ac_ct_RANLIB"; then
4624 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4625 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4631 if test "x$ac_ct_RANLIB" = x; then
4632 RANLIB=":"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4637 whose name does not start with the host triplet. If you think this
4638 configuration is useful to you, please write to autoconf@gnu.org." >&5
4639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4640 whose name does not start with the host triplet. If you think this
4641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4642 ac_tool_warned=yes ;;
4643 esac
4644 RANLIB=$ac_ct_RANLIB
4646 else
4647 RANLIB="$ac_cv_prog_RANLIB"
4652 # Checks for programs.
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688 { echo "$as_me:$LINENO: result: $CC" >&5
4689 echo "${ECHO_T}$CC" >&6; }
4690 else
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4697 if test -z "$ac_cv_prog_CC"; then
4698 ac_ct_CC=$CC
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4729 echo "${ECHO_T}$ac_ct_CC" >&6; }
4730 else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4741 whose name does not start with the host triplet. If you think this
4742 configuration is useful to you, please write to autoconf@gnu.org." >&5
4743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4744 whose name does not start with the host triplet. If you think this
4745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4746 ac_tool_warned=yes ;;
4747 esac
4748 CC=$ac_ct_CC
4750 else
4751 CC="$ac_cv_prog_CC"
4754 if test -z "$CC"; then
4755 if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}cc; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_prog_CC+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 if test -n "$CC"; then
4764 ac_cv_prog_CC="$CC" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_CC="${ac_tool_prefix}cc"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4783 CC=$ac_cv_prog_CC
4784 if test -n "$CC"; then
4785 { echo "$as_me:$LINENO: result: $CC" >&5
4786 echo "${ECHO_T}$CC" >&6; }
4787 else
4788 { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4795 if test -z "$CC"; then
4796 # Extract the first word of "cc", so it can be a program name with args.
4797 set dummy cc; ac_word=$2
4798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800 if test "${ac_cv_prog_CC+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 if test -n "$CC"; then
4804 ac_cv_prog_CC="$CC" # Let the user override the test.
4805 else
4806 ac_prog_rejected=no
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4815 ac_prog_rejected=yes
4816 continue
4818 ac_cv_prog_CC="cc"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4826 if test $ac_prog_rejected = yes; then
4827 # We found a bogon in the path, so make sure we never use it.
4828 set dummy $ac_cv_prog_CC
4829 shift
4830 if test $# != 0; then
4831 # We chose a different compiler from the bogus one.
4832 # However, it has the same basename, so the bogon will be chosen
4833 # first if we set CC to just the basename; use the full file name.
4834 shift
4835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4840 CC=$ac_cv_prog_CC
4841 if test -n "$CC"; then
4842 { echo "$as_me:$LINENO: result: $CC" >&5
4843 echo "${ECHO_T}$CC" >&6; }
4844 else
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4851 if test -z "$CC"; then
4852 if test -n "$ac_tool_prefix"; then
4853 for ac_prog in cl.exe
4855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_CC+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$CC"; then
4863 ac_cv_prog_CC="$CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 CC=$ac_cv_prog_CC
4883 if test -n "$CC"; then
4884 { echo "$as_me:$LINENO: result: $CC" >&5
4885 echo "${ECHO_T}$CC" >&6; }
4886 else
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 test -n "$CC" && break
4893 done
4895 if test -z "$CC"; then
4896 ac_ct_CC=$CC
4897 for ac_prog in cl.exe
4899 # Extract the first word of "$ac_prog", so it can be a program name with args.
4900 set dummy $ac_prog; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 if test -n "$ac_ct_CC"; then
4907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_CC="$ac_prog"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4927 if test -n "$ac_ct_CC"; then
4928 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4929 echo "${ECHO_T}$ac_ct_CC" >&6; }
4930 else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 test -n "$ac_ct_CC" && break
4937 done
4939 if test "x$ac_ct_CC" = x; then
4940 CC=""
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&5
4947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4948 whose name does not start with the host triplet. If you think this
4949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 CC=$ac_ct_CC
4959 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4960 See \`config.log' for more details." >&5
4961 echo "$as_me: error: no acceptable C compiler found in \$PATH
4962 See \`config.log' for more details." >&2;}
4963 { (exit 1); exit 1; }; }
4965 # Provide some information about the compiler.
4966 echo "$as_me:$LINENO: checking for C compiler version" >&5
4967 ac_compiler=`set X $ac_compile; echo $2`
4968 { (ac_try="$ac_compiler --version >&5"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compiler --version >&5") 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }
4978 { (ac_try="$ac_compiler -v >&5"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compiler -v >&5") 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }
4988 { (ac_try="$ac_compiler -V >&5"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compiler -V >&5") 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }
4999 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5000 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5001 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5012 main ()
5014 #ifndef __GNUC__
5015 choke me
5016 #endif
5019 return 0;
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (ac_try="$ac_compile"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_compile") 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5037 { (case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_try") 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_try") 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 ac_compiler_gnu=yes
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_compiler_gnu=no
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5068 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5069 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5070 GCC=`test $ac_compiler_gnu = yes && echo yes`
5071 ac_test_CFLAGS=${CFLAGS+set}
5072 ac_save_CFLAGS=$CFLAGS
5073 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5075 if test "${ac_cv_prog_cc_g+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 ac_save_c_werror_flag=$ac_c_werror_flag
5079 ac_c_werror_flag=yes
5080 ac_cv_prog_cc_g=no
5081 CFLAGS="-g"
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5090 main ()
5094 return 0;
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5112 { (case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_try") 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_try") 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_prog_cc_g=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 CFLAGS=""
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5145 main ()
5149 return 0;
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5167 { (case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_try") 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_try") 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_c_werror_flag=$ac_save_c_werror_flag
5192 CFLAGS="-g"
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5201 main ()
5205 return 0;
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (ac_try="$ac_compile"
5210 case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213 esac
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_compile") 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5223 { (case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_try") 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_prog_cc_g=yes
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 ac_c_werror_flag=$ac_save_c_werror_flag
5259 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5260 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5261 if test "$ac_test_CFLAGS" = set; then
5262 CFLAGS=$ac_save_CFLAGS
5263 elif test $ac_cv_prog_cc_g = yes; then
5264 if test "$GCC" = yes; then
5265 CFLAGS="-g -O2"
5266 else
5267 CFLAGS="-g"
5269 else
5270 if test "$GCC" = yes; then
5271 CFLAGS="-O2"
5272 else
5273 CFLAGS=
5276 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5277 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_c89+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 ac_cv_prog_cc_c89=no
5282 ac_save_CC=$CC
5283 cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h. */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 #include <stdarg.h>
5290 #include <stdio.h>
5291 #include <sys/types.h>
5292 #include <sys/stat.h>
5293 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5294 struct buf { int x; };
5295 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5296 static char *e (p, i)
5297 char **p;
5298 int i;
5300 return p[i];
5302 static char *f (char * (*g) (char **, int), char **p, ...)
5304 char *s;
5305 va_list v;
5306 va_start (v,p);
5307 s = g (p, va_arg (v,int));
5308 va_end (v);
5309 return s;
5312 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5313 function prototypes and stuff, but not '\xHH' hex character constants.
5314 These don't provoke an error unfortunately, instead are silently treated
5315 as 'x'. The following induces an error, until -std is added to get
5316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5317 array size at least. It's necessary to write '\x00'==0 to get something
5318 that's true only with -std. */
5319 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5321 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5322 inside strings and character constants. */
5323 #define FOO(x) 'x'
5324 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5326 int test (int i, double x);
5327 struct s1 {int (*f) (int a);};
5328 struct s2 {int (*f) (double a);};
5329 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5330 int argc;
5331 char **argv;
5333 main ()
5335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5337 return 0;
5339 _ACEOF
5340 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5341 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5343 CC="$ac_save_CC $ac_arg"
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_try") 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; } &&
5368 { ac_try='test -s conftest.$ac_objext'
5369 { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_try") 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_prog_cc_c89=$ac_arg
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f core conftest.err conftest.$ac_objext
5387 test "x$ac_cv_prog_cc_c89" != "xno" && break
5388 done
5389 rm -f conftest.$ac_ext
5390 CC=$ac_save_CC
5393 # AC_CACHE_VAL
5394 case "x$ac_cv_prog_cc_c89" in
5396 { echo "$as_me:$LINENO: result: none needed" >&5
5397 echo "${ECHO_T}none needed" >&6; } ;;
5398 xno)
5399 { echo "$as_me:$LINENO: result: unsupported" >&5
5400 echo "${ECHO_T}unsupported" >&6; } ;;
5402 CC="$CC $ac_cv_prog_cc_c89"
5403 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5404 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5405 esac
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 ac_ext=cpp
5415 ac_cpp='$CXXCPP $CPPFLAGS'
5416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5419 if test -z "$CXX"; then
5420 if test -n "$CCC"; then
5421 CXX=$CCC
5422 else
5423 if test -n "$ac_tool_prefix"; then
5424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5430 if test "${ac_cv_prog_CXX+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 if test -n "$CXX"; then
5434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 CXX=$ac_cv_prog_CXX
5454 if test -n "$CXX"; then
5455 { echo "$as_me:$LINENO: result: $CXX" >&5
5456 echo "${ECHO_T}$CXX" >&6; }
5457 else
5458 { echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6; }
5463 test -n "$CXX" && break
5464 done
5466 if test -z "$CXX"; then
5467 ac_ct_CXX=$CXX
5468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5470 # Extract the first word of "$ac_prog", so it can be a program name with args.
5471 set dummy $ac_prog; ac_word=$2
5472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5474 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 if test -n "$ac_ct_CXX"; then
5478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_ac_ct_CXX="$ac_prog"
5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5491 done
5492 done
5493 IFS=$as_save_IFS
5497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5498 if test -n "$ac_ct_CXX"; then
5499 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5500 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5501 else
5502 { echo "$as_me:$LINENO: result: no" >&5
5503 echo "${ECHO_T}no" >&6; }
5507 test -n "$ac_ct_CXX" && break
5508 done
5510 if test "x$ac_ct_CXX" = x; then
5511 CXX="g++"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5516 whose name does not start with the host triplet. If you think this
5517 configuration is useful to you, please write to autoconf@gnu.org." >&5
5518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5519 whose name does not start with the host triplet. If you think this
5520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5521 ac_tool_warned=yes ;;
5522 esac
5523 CXX=$ac_ct_CXX
5529 # Provide some information about the compiler.
5530 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5531 ac_compiler=`set X $ac_compile; echo $2`
5532 { (ac_try="$ac_compiler --version >&5"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compiler --version >&5") 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }
5542 { (ac_try="$ac_compiler -v >&5"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compiler -v >&5") 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }
5552 { (ac_try="$ac_compiler -V >&5"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compiler -V >&5") 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }
5563 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5576 main ()
5578 #ifndef __GNUC__
5579 choke me
5580 #endif
5583 return 0;
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5601 { (case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_try") 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_try") 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_compiler_gnu=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 ac_compiler_gnu=no
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5632 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5634 GXX=`test $ac_compiler_gnu = yes && echo yes`
5635 ac_test_CXXFLAGS=${CXXFLAGS+set}
5636 ac_save_CXXFLAGS=$CXXFLAGS
5637 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5639 if test "${ac_cv_prog_cxx_g+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5643 ac_cxx_werror_flag=yes
5644 ac_cv_prog_cxx_g=no
5645 CXXFLAGS="-g"
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5654 main ()
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_prog_cxx_g=yes
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 CXXFLAGS=""
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5709 main ()
5713 return 0;
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5731 { (case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_try") 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_try") 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5756 CXXFLAGS="-g"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5765 main ()
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5787 { (case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_try") 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_try") 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_prog_cxx_g=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5823 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5825 if test "$ac_test_CXXFLAGS" = set; then
5826 CXXFLAGS=$ac_save_CXXFLAGS
5827 elif test $ac_cv_prog_cxx_g = yes; then
5828 if test "$GXX" = yes; then
5829 CXXFLAGS="-g -O2"
5830 else
5831 CXXFLAGS="-g"
5833 else
5834 if test "$GXX" = yes; then
5835 CXXFLAGS="-O2"
5836 else
5837 CXXFLAGS=
5840 ac_ext=c
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5852 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5853 # On Suns, sometimes $CPP names a directory.
5854 if test -n "$CPP" && test -d "$CPP"; then
5855 CPP=
5857 if test -z "$CPP"; then
5858 if test "${ac_cv_prog_CPP+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 # Double quotes because CPP needs to be expanded
5862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5864 ac_preproc_ok=false
5865 for ac_c_preproc_warn_flag in '' yes
5867 # Use a header file that comes with gcc, so configuring glibc
5868 # with a fresh cross-compiler works.
5869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5870 # <limits.h> exists even on freestanding compilers.
5871 # On the NeXT, cc -E runs the code through the compiler's parser,
5872 # not just through cpp. "Syntax error" is here to catch this case.
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 #ifdef __STDC__
5880 # include <limits.h>
5881 #else
5882 # include <assert.h>
5883 #endif
5884 Syntax error
5885 _ACEOF
5886 if { (ac_try="$ac_cpp conftest.$ac_ext"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } >/dev/null; then
5899 if test -s conftest.err; then
5900 ac_cpp_err=$ac_c_preproc_warn_flag
5901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5902 else
5903 ac_cpp_err=
5905 else
5906 ac_cpp_err=yes
5908 if test -z "$ac_cpp_err"; then
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 # Broken: fails on valid input.
5915 continue
5918 rm -f conftest.err conftest.$ac_ext
5920 # OK, works on sane cases. Now check whether nonexistent headers
5921 # can be detected and how.
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <ac_nonexistent.h>
5929 _ACEOF
5930 if { (ac_try="$ac_cpp conftest.$ac_ext"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } >/dev/null; then
5943 if test -s conftest.err; then
5944 ac_cpp_err=$ac_c_preproc_warn_flag
5945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5946 else
5947 ac_cpp_err=
5949 else
5950 ac_cpp_err=yes
5952 if test -z "$ac_cpp_err"; then
5953 # Broken: success on invalid input.
5954 continue
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 # Passes both tests.
5960 ac_preproc_ok=:
5961 break
5964 rm -f conftest.err conftest.$ac_ext
5966 done
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.err conftest.$ac_ext
5969 if $ac_preproc_ok; then
5970 break
5973 done
5974 ac_cv_prog_CPP=$CPP
5977 CPP=$ac_cv_prog_CPP
5978 else
5979 ac_cv_prog_CPP=$CPP
5981 { echo "$as_me:$LINENO: result: $CPP" >&5
5982 echo "${ECHO_T}$CPP" >&6; }
5983 ac_preproc_ok=false
5984 for ac_c_preproc_warn_flag in '' yes
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 # <limits.h> exists even on freestanding compilers.
5990 # On the NeXT, cc -E runs the code through the compiler's parser,
5991 # not just through cpp. "Syntax error" is here to catch this case.
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #ifdef __STDC__
5999 # include <limits.h>
6000 #else
6001 # include <assert.h>
6002 #endif
6003 Syntax error
6004 _ACEOF
6005 if { (ac_try="$ac_cpp conftest.$ac_ext"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_c_preproc_warn_flag
6020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6021 else
6022 ac_cpp_err=
6024 else
6025 ac_cpp_err=yes
6027 if test -z "$ac_cpp_err"; then
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 # Broken: fails on valid input.
6034 continue
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether nonexistent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (ac_try="$ac_cpp conftest.$ac_ext"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev/null; then
6062 if test -s conftest.err; then
6063 ac_cpp_err=$ac_c_preproc_warn_flag
6064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6065 else
6066 ac_cpp_err=
6068 else
6069 ac_cpp_err=yes
6071 if test -z "$ac_cpp_err"; then
6072 # Broken: success on invalid input.
6073 continue
6074 else
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 # Passes both tests.
6079 ac_preproc_ok=:
6080 break
6083 rm -f conftest.err conftest.$ac_ext
6085 done
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.err conftest.$ac_ext
6088 if $ac_preproc_ok; then
6090 else
6091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6092 See \`config.log' for more details." >&5
6093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6094 See \`config.log' for more details." >&2;}
6095 { (exit 1); exit 1; }; }
6098 ac_ext=c
6099 ac_cpp='$CPP $CPPFLAGS'
6100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6104 ac_ext=cpp
6105 ac_cpp='$CXXCPP $CPPFLAGS'
6106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6109 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6111 if test -z "$CXXCPP"; then
6112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 # Double quotes because CXXCPP needs to be expanded
6116 for CXXCPP in "$CXX -E" "/lib/cpp"
6118 ac_preproc_ok=false
6119 for ac_cxx_preproc_warn_flag in '' yes
6121 # Use a header file that comes with gcc, so configuring glibc
6122 # with a fresh cross-compiler works.
6123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 # <limits.h> exists even on freestanding compilers.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef __STDC__
6134 # include <limits.h>
6135 #else
6136 # include <assert.h>
6137 #endif
6138 Syntax error
6139 _ACEOF
6140 if { (ac_try="$ac_cpp conftest.$ac_ext"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null; then
6153 if test -s conftest.err; then
6154 ac_cpp_err=$ac_cxx_preproc_warn_flag
6155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6156 else
6157 ac_cpp_err=
6159 else
6160 ac_cpp_err=yes
6162 if test -z "$ac_cpp_err"; then
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Broken: fails on valid input.
6169 continue
6172 rm -f conftest.err conftest.$ac_ext
6174 # OK, works on sane cases. Now check whether nonexistent headers
6175 # can be detected and how.
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <ac_nonexistent.h>
6183 _ACEOF
6184 if { (ac_try="$ac_cpp conftest.$ac_ext"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_cxx_preproc_warn_flag
6199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6200 else
6201 ac_cpp_err=
6203 else
6204 ac_cpp_err=yes
6206 if test -z "$ac_cpp_err"; then
6207 # Broken: success on invalid input.
6208 continue
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 # Passes both tests.
6214 ac_preproc_ok=:
6215 break
6218 rm -f conftest.err conftest.$ac_ext
6220 done
6221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6222 rm -f conftest.err conftest.$ac_ext
6223 if $ac_preproc_ok; then
6224 break
6227 done
6228 ac_cv_prog_CXXCPP=$CXXCPP
6231 CXXCPP=$ac_cv_prog_CXXCPP
6232 else
6233 ac_cv_prog_CXXCPP=$CXXCPP
6235 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6236 echo "${ECHO_T}$CXXCPP" >&6; }
6237 ac_preproc_ok=false
6238 for ac_cxx_preproc_warn_flag in '' yes
6240 # Use a header file that comes with gcc, so configuring glibc
6241 # with a fresh cross-compiler works.
6242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6243 # <limits.h> exists even on freestanding compilers.
6244 # On the NeXT, cc -E runs the code through the compiler's parser,
6245 # not just through cpp. "Syntax error" is here to catch this case.
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #ifdef __STDC__
6253 # include <limits.h>
6254 #else
6255 # include <assert.h>
6256 #endif
6257 Syntax error
6258 _ACEOF
6259 if { (ac_try="$ac_cpp conftest.$ac_ext"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev/null; then
6272 if test -s conftest.err; then
6273 ac_cpp_err=$ac_cxx_preproc_warn_flag
6274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6275 else
6276 ac_cpp_err=
6278 else
6279 ac_cpp_err=yes
6281 if test -z "$ac_cpp_err"; then
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 # Broken: fails on valid input.
6288 continue
6291 rm -f conftest.err conftest.$ac_ext
6293 # OK, works on sane cases. Now check whether nonexistent headers
6294 # can be detected and how.
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <ac_nonexistent.h>
6302 _ACEOF
6303 if { (ac_try="$ac_cpp conftest.$ac_ext"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } >/dev/null; then
6316 if test -s conftest.err; then
6317 ac_cpp_err=$ac_cxx_preproc_warn_flag
6318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6319 else
6320 ac_cpp_err=
6322 else
6323 ac_cpp_err=yes
6325 if test -z "$ac_cpp_err"; then
6326 # Broken: success on invalid input.
6327 continue
6328 else
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 # Passes both tests.
6333 ac_preproc_ok=:
6334 break
6337 rm -f conftest.err conftest.$ac_ext
6339 done
6340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6341 rm -f conftest.err conftest.$ac_ext
6342 if $ac_preproc_ok; then
6344 else
6345 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6346 See \`config.log' for more details." >&5
6347 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6348 See \`config.log' for more details." >&2;}
6349 { (exit 1); exit 1; }; }
6352 ac_ext=c
6353 ac_cpp='$CPP $CPPFLAGS'
6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6359 # the developers regenerating the configure script don't have to install libtool.
6360 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6361 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_SED+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6366 for ac_i in 1 2 3 4 5 6 7; do
6367 ac_script="$ac_script$as_nl$ac_script"
6368 done
6369 echo "$ac_script" | sed 99q >conftest.sed
6370 $as_unset ac_script || ac_script=
6371 # Extract the first word of "sed gsed" to use in msg output
6372 if test -z "$SED"; then
6373 set dummy sed gsed; ac_prog_name=$2
6374 if test "${ac_cv_path_SED+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 ac_path_SED_found=false
6378 # Loop through the user's path and test for each of PROGNAME-LIST
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_prog in sed gsed; do
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6387 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue
6388 # Check for GNU ac_path_SED and select it if it is found.
6389 # Check for GNU $ac_path_SED
6390 case `"$ac_path_SED" --version 2>&1` in
6391 *GNU*)
6392 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6394 ac_count=0
6395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6396 while :
6398 cat "conftest.in" "conftest.in" >"conftest.tmp"
6399 mv "conftest.tmp" "conftest.in"
6400 cp "conftest.in" "conftest.nl"
6401 echo '' >> "conftest.nl"
6402 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6404 ac_count=`expr $ac_count + 1`
6405 if test $ac_count -gt ${ac_path_SED_max-0}; then
6406 # Best one so far, save it but keep looking for a better one
6407 ac_cv_path_SED="$ac_path_SED"
6408 ac_path_SED_max=$ac_count
6410 # 10*(2^10) chars as input seems more than enough
6411 test $ac_count -gt 10 && break
6412 done
6413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6414 esac
6417 $ac_path_SED_found && break 3
6418 done
6419 done
6421 done
6422 IFS=$as_save_IFS
6427 SED="$ac_cv_path_SED"
6428 if test -z "$SED"; then
6429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6430 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6431 { (exit 1); exit 1; }; }
6434 else
6435 ac_cv_path_SED=$SED
6439 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6440 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6441 SED="$ac_cv_path_SED"
6442 rm -f conftest.sed
6444 { echo "$as_me:$LINENO: checking for egrep" >&5
6445 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_egrep+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6450 then ac_cv_prog_egrep='grep -E'
6451 else ac_cv_prog_egrep='egrep'
6454 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6455 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6456 EGREP=$ac_cv_prog_egrep
6460 # Check whether --with-gnu-ld was given.
6461 if test "${with_gnu_ld+set}" = set; then
6462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6463 else
6464 with_gnu_ld=no
6467 ac_prog=ld
6468 if test "$GCC" = yes; then
6469 # Check if gcc -print-prog-name=ld gives a path.
6470 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6472 case $host in
6473 *-*-mingw*)
6474 # gcc leaves a trailing carriage return which upsets mingw
6475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6478 esac
6479 case $ac_prog in
6480 # Accept absolute paths.
6481 [\\/]* | ?:[\\/]*)
6482 re_direlt='/[^/][^/]*/\.\./'
6483 # Canonicalize the pathname of ld
6484 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6486 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6487 done
6488 test -z "$LD" && LD="$ac_prog"
6491 # If it fails, then pretend we aren't using GCC.
6492 ac_prog=ld
6495 # If it is relative, then search for the first ld in PATH.
6496 with_gnu_ld=unknown
6498 esac
6499 elif test "$with_gnu_ld" = yes; then
6500 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6502 else
6503 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6506 if test "${lt_cv_path_LD+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 if test -z "$LD"; then
6510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6511 for ac_dir in $PATH; do
6512 IFS="$lt_save_ifs"
6513 test -z "$ac_dir" && ac_dir=.
6514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6515 lt_cv_path_LD="$ac_dir/$ac_prog"
6516 # Check to see if the program is GNU ld. I'd rather use --version,
6517 # but apparently some variants of GNU ld only accept -v.
6518 # Break only if it was the GNU/non-GNU ld that we prefer.
6519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6520 *GNU* | *'with BFD'*)
6521 test "$with_gnu_ld" != no && break
6524 test "$with_gnu_ld" != yes && break
6526 esac
6528 done
6529 IFS="$lt_save_ifs"
6530 else
6531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6535 LD="$lt_cv_path_LD"
6536 if test -n "$LD"; then
6537 { echo "$as_me:$LINENO: result: $LD" >&5
6538 echo "${ECHO_T}$LD" >&6; }
6539 else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6545 { (exit 1); exit 1; }; }
6546 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6552 case `$LD -v 2>&1 </dev/null` in
6553 *GNU* | *'with BFD'*)
6554 lt_cv_prog_gnu_ld=yes
6557 lt_cv_prog_gnu_ld=no
6559 esac
6561 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6563 with_gnu_ld=$lt_cv_prog_gnu_ld
6565 # note - does not work on freebsd
6566 for ac_prog in gawk mawk nawk awk
6568 # Extract the first word of "$ac_prog", so it can be a program name with args.
6569 set dummy $ac_prog; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AWK+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 if test -n "$AWK"; then
6576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_AWK="$ac_prog"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6589 done
6590 done
6591 IFS=$as_save_IFS
6595 AWK=$ac_cv_prog_AWK
6596 if test -n "$AWK"; then
6597 { echo "$as_me:$LINENO: result: $AWK" >&5
6598 echo "${ECHO_T}$AWK" >&6; }
6599 else
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6605 test -n "$AWK" && break
6606 done
6608 # Find a good install program. We prefer a C program (faster),
6609 # so one script is as good as another. But avoid the broken or
6610 # incompatible versions:
6611 # SysV /etc/install, /usr/sbin/install
6612 # SunOS /usr/etc/install
6613 # IRIX /sbin/install
6614 # AIX /bin/install
6615 # AmigaOS /C/install, which installs bootblocks on floppy discs
6616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6619 # OS/2's system install, which has a completely different semantic
6620 # ./install, which can be erroneously created by make from ./install.sh.
6621 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6622 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6623 if test -z "$INSTALL"; then
6624 if test "${ac_cv_path_install+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 # Account for people who put trailing slashes in PATH elements.
6633 case $as_dir/ in
6634 ./ | .// | /cC/* | \
6635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6636 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6637 /usr/ucb/* ) ;;
6639 # OSF1 and SCO ODT 3.0 have their own names for install.
6640 # Don't use installbsd from OSF since it installs stuff as root
6641 # by default.
6642 for ac_prog in ginstall scoinst install; do
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6645 if test $ac_prog = install &&
6646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6647 # AIX install. It has an incompatible calling convention.
6649 elif test $ac_prog = install &&
6650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6651 # program-specific install script used by HP pwplus--don't use.
6653 else
6654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6655 break 3
6658 done
6659 done
6661 esac
6662 done
6663 IFS=$as_save_IFS
6667 if test "${ac_cv_path_install+set}" = set; then
6668 INSTALL=$ac_cv_path_install
6669 else
6670 # As a last resort, use the slow shell script. Don't cache a
6671 # value for INSTALL within a source directory, because that will
6672 # break other packages using the cache if that directory is
6673 # removed, or if the value is a relative name.
6674 INSTALL=$ac_install_sh
6677 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6678 echo "${ECHO_T}$INSTALL" >&6; }
6680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6681 # It thinks the first close brace ends the variable substitution.
6682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6688 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6690 LN_S=$as_ln_s
6691 if test "$LN_S" = "ln -s"; then
6692 { echo "$as_me:$LINENO: result: yes" >&5
6693 echo "${ECHO_T}yes" >&6; }
6694 else
6695 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6696 echo "${ECHO_T}no, using $LN_S" >&6; }
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_prog_RANLIB+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6730 echo "${ECHO_T}$RANLIB" >&6; }
6731 else
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6770 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6771 else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6776 if test "x$ac_ct_RANLIB" = x; then
6777 RANLIB=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&5
6784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet. If you think this
6786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 RANLIB=$ac_ct_RANLIB
6791 else
6792 RANLIB="$ac_cv_prog_RANLIB"
6795 { echo "$as_me:$LINENO: checking for GNU make" >&5
6796 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6797 if test "${GNU_MAKE+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 GNU_MAKE='Not Found' ;
6801 GNU_MAKE_VERSION_MAJOR=0 ;
6802 GNU_MAKE_VERSION_MINOR=0 ;
6803 for a in make gmake gnumake ; do
6804 if test -z "$a" ; then continue ; fi ;
6805 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6806 GNU_MAKE=$a ;
6807 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6808 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6809 break;
6811 done ;
6814 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6815 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6816 if test "x$GNU_MAKE" = "xNot Found" ; then
6817 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6818 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6819 { (exit 1); exit 1; }; }
6820 exit 1
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}strip; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_path_STRIP+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 case $STRIP in
6834 [\\/]* | ?:[\\/]*)
6835 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6849 done
6850 done
6851 IFS=$as_save_IFS
6854 esac
6856 STRIP=$ac_cv_path_STRIP
6857 if test -n "$STRIP"; then
6858 { echo "$as_me:$LINENO: result: $STRIP" >&5
6859 echo "${ECHO_T}$STRIP" >&6; }
6860 else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6867 if test -z "$ac_cv_path_STRIP"; then
6868 ac_pt_STRIP=$STRIP
6869 # Extract the first word of "strip", so it can be a program name with args.
6870 set dummy strip; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 case $ac_pt_STRIP in
6877 [\\/]* | ?:[\\/]*)
6878 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6892 done
6893 done
6894 IFS=$as_save_IFS
6897 esac
6899 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6900 if test -n "$ac_pt_STRIP"; then
6901 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6902 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6903 else
6904 { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6908 if test "x$ac_pt_STRIP" = x; then
6909 STRIP=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6914 whose name does not start with the host triplet. If you think this
6915 configuration is useful to you, please write to autoconf@gnu.org." >&5
6916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6917 whose name does not start with the host triplet. If you think this
6918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 STRIP=$ac_pt_STRIP
6923 else
6924 STRIP="$ac_cv_path_STRIP"
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}ar; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_AR+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935 case $AR in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6956 esac
6958 AR=$ac_cv_path_AR
6959 if test -n "$AR"; then
6960 { echo "$as_me:$LINENO: result: $AR" >&5
6961 echo "${ECHO_T}$AR" >&6; }
6962 else
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6969 if test -z "$ac_cv_path_AR"; then
6970 ac_pt_AR=$AR
6971 # Extract the first word of "ar", so it can be a program name with args.
6972 set dummy ar; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 case $ac_pt_AR in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6996 IFS=$as_save_IFS
6999 esac
7001 ac_pt_AR=$ac_cv_path_ac_pt_AR
7002 if test -n "$ac_pt_AR"; then
7003 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
7004 echo "${ECHO_T}$ac_pt_AR" >&6; }
7005 else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7010 if test "x$ac_pt_AR" = x; then
7011 AR=":"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014 yes:)
7015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7016 whose name does not start with the host triplet. If you think this
7017 configuration is useful to you, please write to autoconf@gnu.org." >&5
7018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7019 whose name does not start with the host triplet. If you think this
7020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 AR=$ac_pt_AR
7025 else
7026 AR="$ac_cv_path_AR"
7030 GNU_LD=0
7031 if test "x$with_gnu_ld" = "xyes" ; then
7032 GNU_LD=1
7036 # Extract the first word of "grep", so it can be a program name with args.
7037 set dummy grep; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_GREP+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043 case $GREP in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7063 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
7065 esac
7067 GREP=$ac_cv_path_GREP
7068 if test -n "$GREP"; then
7069 { echo "$as_me:$LINENO: result: $GREP" >&5
7070 echo "${ECHO_T}$GREP" >&6; }
7071 else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "find", so it can be a program name with args.
7078 set dummy find; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_FIND+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 case $FIND in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7104 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
7106 esac
7108 FIND=$ac_cv_path_FIND
7109 if test -n "$FIND"; then
7110 { echo "$as_me:$LINENO: result: $FIND" >&5
7111 echo "${ECHO_T}$FIND" >&6; }
7112 else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "compress", so it can be a program name with args.
7119 set dummy compress; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_COMPRESS+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 case $COMPRESS in
7126 [\\/]* | ?:[\\/]*)
7127 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7141 done
7142 done
7143 IFS=$as_save_IFS
7145 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
7147 esac
7149 COMPRESS=$ac_cv_path_COMPRESS
7150 if test -n "$COMPRESS"; then
7151 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
7152 echo "${ECHO_T}$COMPRESS" >&6; }
7153 else
7154 { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7159 # Extract the first word of "basename", so it can be a program name with args.
7160 set dummy basename; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_BASENAME+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 case $BASENAME in
7167 [\\/]* | ?:[\\/]*)
7168 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7182 done
7183 done
7184 IFS=$as_save_IFS
7186 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
7188 esac
7190 BASENAME=$ac_cv_path_BASENAME
7191 if test -n "$BASENAME"; then
7192 { echo "$as_me:$LINENO: result: $BASENAME" >&5
7193 echo "${ECHO_T}$BASENAME" >&6; }
7194 else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "id", so it can be a program name with args.
7201 set dummy id; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_ID+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 case $ID in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_ID="$ID" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7227 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
7229 esac
7231 ID=$ac_cv_path_ID
7232 if test -n "$ID"; then
7233 { echo "$as_me:$LINENO: result: $ID" >&5
7234 echo "${ECHO_T}$ID" >&6; }
7235 else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 # Extract the first word of "dirname", so it can be a program name with args.
7242 set dummy dirname; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_DIRNAME+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $DIRNAME in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7268 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7270 esac
7272 DIRNAME=$ac_cv_path_DIRNAME
7273 if test -n "$DIRNAME"; then
7274 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7275 echo "${ECHO_T}$DIRNAME" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "sh", so it can be a program name with args.
7283 set dummy sh; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_SHELL+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 case $SHELL in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7309 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7311 esac
7313 SHELL=$ac_cv_path_SHELL
7314 if test -n "$SHELL"; then
7315 { echo "$as_me:$LINENO: result: $SHELL" >&5
7316 echo "${ECHO_T}$SHELL" >&6; }
7317 else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 # Extract the first word of "ln", so it can be a program name with args.
7324 set dummy ln; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_LN+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 case $LN in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7350 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7352 esac
7354 LN=$ac_cv_path_LN
7355 if test -n "$LN"; then
7356 { echo "$as_me:$LINENO: result: $LN" >&5
7357 echo "${ECHO_T}$LN" >&6; }
7358 else
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7364 # Extract the first word of "dot", so it can be a program name with args.
7365 set dummy dot; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_DOT+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 case $DOT in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7387 done
7388 done
7389 IFS=$as_save_IFS
7391 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7393 esac
7395 DOT=$ac_cv_path_DOT
7396 if test -n "$DOT"; then
7397 { echo "$as_me:$LINENO: result: $DOT" >&5
7398 echo "${ECHO_T}$DOT" >&6; }
7399 else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7405 # Extract the first word of "wget", so it can be a program name with args.
7406 set dummy wget; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_WGET+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412 case $WGET in
7413 [\\/]* | ?:[\\/]*)
7414 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7432 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7434 esac
7436 WGET=$ac_cv_path_WGET
7437 if test -n "$WGET"; then
7438 { echo "$as_me:$LINENO: result: $WGET" >&5
7439 echo "${ECHO_T}$WGET" >&6; }
7440 else
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7446 if test "${WGET}" != ":" ; then
7447 DOWNLOAD=${WGET}
7448 else
7449 # Extract the first word of "fetch", so it can be a program name with args.
7450 set dummy fetch; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_FETCH+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 case $FETCH in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7472 done
7473 done
7474 IFS=$as_save_IFS
7476 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7478 esac
7480 FETCH=$ac_cv_path_FETCH
7481 if test -n "$FETCH"; then
7482 { echo "$as_me:$LINENO: result: $FETCH" >&5
7483 echo "${ECHO_T}$FETCH" >&6; }
7484 else
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 DOWNLOAD=${FETCH}
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503 acx_pthread_ok=no
7505 # We used to check for pthread.h first, but this fails if pthread.h
7506 # requires special compiler flags (e.g. on True64 or Sequent).
7507 # It gets checked for in the link test anyway.
7509 # First of all, check if the user has set any of the PTHREAD_LIBS,
7510 # etcetera environment variables, and if threads linking works using
7511 # them:
7512 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7513 save_CFLAGS="$CFLAGS"
7514 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7515 save_LIBS="$LIBS"
7516 LIBS="$PTHREAD_LIBS $LIBS"
7517 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7518 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7526 /* Override any GCC internal prototype to avoid an error.
7527 Use char because int might match the return type of a GCC
7528 builtin and then its argument prototype would still apply. */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
7532 char pthread_join ();
7534 main ()
7536 return pthread_join ();
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_link") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7556 { (case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try='test -s conftest$ac_exeext'
7566 { (case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_try") 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 acx_pthread_ok=yes
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7586 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7587 if test x"$acx_pthread_ok" = xno; then
7588 PTHREAD_LIBS=""
7589 PTHREAD_CFLAGS=""
7591 LIBS="$save_LIBS"
7592 CFLAGS="$save_CFLAGS"
7595 # We must check for the threads library under a number of different
7596 # names; the ordering is very important because some systems
7597 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7598 # libraries is broken (non-POSIX).
7600 # Create a list of thread flags to try. Items starting with a "-" are
7601 # C compiler flags, and other items are library names, except for "none"
7602 # which indicates that we try without any flags at all, and "pthread-config"
7603 # which is a program returning the flags for the Pth emulation library.
7605 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7607 # The ordering *is* (sometimes) important. Some notes on the
7608 # individual items follow:
7610 # pthreads: AIX (must check this before -lpthread)
7611 # none: in case threads are in libc; should be tried before -Kthread and
7612 # other compiler flags to prevent continual compiler warnings
7613 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7614 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7615 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7616 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7617 # -pthreads: Solaris/gcc
7618 # -mthreads: Mingw32/gcc, Lynx/gcc
7619 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7620 # doesn't hurt to check since this sometimes defines pthreads too;
7621 # also defines -D_REENTRANT)
7622 # ... -mt is also the pthreads flag for HP/aCC
7623 # pthread: Linux, etcetera
7624 # --thread-safe: KAI C++
7625 # pthread-config: use pthread-config program (for GNU Pth library)
7627 case "${host_cpu}-${host_os}" in
7628 *solaris*)
7630 # On Solaris (at least, for some versions), libc contains stubbed
7631 # (non-functional) versions of the pthreads routines, so link-based
7632 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7633 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7634 # a function called by this macro, so we could check for that, but
7635 # who knows whether they'll stub that too in a future libc.) So,
7636 # we'll just look for -pthreads and -lpthread first:
7638 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7640 esac
7642 if test x"$acx_pthread_ok" = xno; then
7643 for flag in $acx_pthread_flags; do
7645 case $flag in
7646 none)
7647 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7648 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7652 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7653 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7654 PTHREAD_CFLAGS="$flag"
7657 pthread-config)
7658 # Extract the first word of "pthread-config", so it can be a program name with args.
7659 set dummy pthread-config; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test -n "$acx_pthread_config"; then
7666 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_acx_pthread_config="yes"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7683 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7686 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7687 if test -n "$acx_pthread_config"; then
7688 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7689 echo "${ECHO_T}$acx_pthread_config" >&6; }
7690 else
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 if test x"$acx_pthread_config" = xno; then continue; fi
7697 PTHREAD_CFLAGS="`pthread-config --cflags`"
7698 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7702 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7703 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7704 PTHREAD_LIBS="-l$flag"
7706 esac
7708 save_LIBS="$LIBS"
7709 save_CFLAGS="$CFLAGS"
7710 LIBS="$PTHREAD_LIBS $LIBS"
7711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7713 # Check for various functions. We must include pthread.h,
7714 # since some functions may be macros. (On the Sequent, we
7715 # need a special flag -Kthread to make this header compile.)
7716 # We check for pthread_join because it is in -lpthread on IRIX
7717 # while pthread_create is in libc. We check for pthread_attr_init
7718 # due to DEC craziness with -lpthreads. We check for
7719 # pthread_cleanup_push because it is one of the few pthread
7720 # functions on Solaris that doesn't have a non-functional libc stub.
7721 # We try pthread_create on general principles.
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 #include <pthread.h>
7730 main ()
7732 pthread_t th; pthread_join(th, 0);
7733 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7734 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (ac_try="$ac_link"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_link") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 acx_pthread_ok=yes
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7781 rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7784 LIBS="$save_LIBS"
7785 CFLAGS="$save_CFLAGS"
7787 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7788 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7789 if test "x$acx_pthread_ok" = xyes; then
7790 break;
7793 PTHREAD_LIBS=""
7794 PTHREAD_CFLAGS=""
7795 done
7798 # Various other checks:
7799 if test "x$acx_pthread_ok" = xyes; then
7800 save_LIBS="$LIBS"
7801 LIBS="$PTHREAD_LIBS $LIBS"
7802 save_CFLAGS="$CFLAGS"
7803 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7805 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7806 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7807 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7808 attr_name=unknown
7809 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #include <pthread.h>
7818 main ()
7820 int attr=$attr; return attr;
7822 return 0;
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7827 case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_link") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 attr_name=$attr; break
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 done
7870 { echo "$as_me:$LINENO: result: $attr_name" >&5
7871 echo "${ECHO_T}$attr_name" >&6; }
7872 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7874 cat >>confdefs.h <<_ACEOF
7875 #define PTHREAD_CREATE_JOINABLE $attr_name
7876 _ACEOF
7880 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7881 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7882 flag=no
7883 case "${host_cpu}-${host_os}" in
7884 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7885 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7886 esac
7887 { echo "$as_me:$LINENO: result: ${flag}" >&5
7888 echo "${ECHO_T}${flag}" >&6; }
7889 if test "x$flag" != xno; then
7890 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7893 LIBS="$save_LIBS"
7894 CFLAGS="$save_CFLAGS"
7896 # More AIX lossage: must compile with xlc_r or cc_r
7897 if test x"$GCC" != xyes; then
7898 for ac_prog in xlc_r cc_r
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 if test -n "$PTHREAD_CC"; then
7908 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_PTHREAD_CC="$ac_prog"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7927 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7928 if test -n "$PTHREAD_CC"; then
7929 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7930 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7931 else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 test -n "$PTHREAD_CC" && break
7938 done
7939 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7941 else
7942 PTHREAD_CC=$CC
7944 else
7945 PTHREAD_CC="$CC"
7952 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7953 if test x"$acx_pthread_ok" = xyes; then
7955 cat >>confdefs.h <<\_ACEOF
7956 #define HAVE_PTHREAD 1
7957 _ACEOF
7960 else
7961 acx_pthread_ok=no
7964 ac_ext=c
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972 ac_ext=c
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979 # Check whether --enable-dev-mode was given.
7980 if test "${enable_dev_mode+set}" = set; then
7981 enableval=$enable_dev_mode; case "${enableval}" in
7982 y|ye|yes) AST_DEVMODE=yes ;;
7983 n|no) AST_DEVMODE=no ;;
7984 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7985 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7986 { (exit 1); exit 1; }; } ;;
7987 esac
7992 # package option names should be in alphabetical order
7993 # by the --with option name, to make things easier for the users :-)
7996 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7997 ALSA_OPTION="asound"
7999 # Check whether --with-asound was given.
8000 if test "${with_asound+set}" = set; then
8001 withval=$with_asound;
8002 case ${withval} in
8003 n|no)
8004 USE_ALSA=no
8006 y|ye|yes)
8007 ALSA_MANDATORY="yes"
8010 ALSA_DIR="${withval}"
8011 ALSA_MANDATORY="yes"
8013 esac
8017 PBX_ALSA=0
8024 CURL_DESCRIP="cURL"
8025 CURL_OPTION="curl"
8027 # Check whether --with-curl was given.
8028 if test "${with_curl+set}" = set; then
8029 withval=$with_curl;
8030 case ${withval} in
8031 n|no)
8032 USE_CURL=no
8034 y|ye|yes)
8035 CURL_MANDATORY="yes"
8038 CURL_DIR="${withval}"
8039 CURL_MANDATORY="yes"
8041 esac
8045 PBX_CURL=0
8052 CURSES_DESCRIP="curses"
8053 CURSES_OPTION="curses"
8055 # Check whether --with-curses was given.
8056 if test "${with_curses+set}" = set; then
8057 withval=$with_curses;
8058 case ${withval} in
8059 n|no)
8060 USE_CURSES=no
8062 y|ye|yes)
8063 CURSES_MANDATORY="yes"
8066 CURSES_DIR="${withval}"
8067 CURSES_MANDATORY="yes"
8069 esac
8073 PBX_CURSES=0
8080 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
8081 GNUTLS_OPTION="gnutls"
8083 # Check whether --with-gnutls was given.
8084 if test "${with_gnutls+set}" = set; then
8085 withval=$with_gnutls;
8086 case ${withval} in
8087 n|no)
8088 USE_GNUTLS=no
8090 y|ye|yes)
8091 GNUTLS_MANDATORY="yes"
8094 GNUTLS_DIR="${withval}"
8095 GNUTLS_MANDATORY="yes"
8097 esac
8101 PBX_GNUTLS=0
8108 GSM_DESCRIP="GSM"
8109 GSM_OPTION="gsm"
8111 # Check whether --with-gsm was given.
8112 if test "${with_gsm+set}" = set; then
8113 withval=$with_gsm;
8114 case ${withval} in
8115 n|no)
8116 USE_GSM=no
8118 y|ye|yes)
8119 GSM_MANDATORY="yes"
8122 GSM_DIR="${withval}"
8123 GSM_MANDATORY="yes"
8125 esac
8129 PBX_GSM=0
8136 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8137 IKSEMEL_OPTION="iksemel"
8139 # Check whether --with-iksemel was given.
8140 if test "${with_iksemel+set}" = set; then
8141 withval=$with_iksemel;
8142 case ${withval} in
8143 n|no)
8144 USE_IKSEMEL=no
8146 y|ye|yes)
8147 IKSEMEL_MANDATORY="yes"
8150 IKSEMEL_DIR="${withval}"
8151 IKSEMEL_MANDATORY="yes"
8153 esac
8157 PBX_IKSEMEL=0
8164 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8165 IMAP_TK_OPTION="imap"
8167 # Check whether --with-imap was given.
8168 if test "${with_imap+set}" = set; then
8169 withval=$with_imap;
8170 case ${withval} in
8171 n|no)
8172 USE_IMAP_TK=no
8174 y|ye|yes)
8175 IMAP_TK_MANDATORY="yes"
8178 IMAP_TK_DIR="${withval}"
8179 IMAP_TK_MANDATORY="yes"
8181 esac
8185 PBX_IMAP_TK=0
8192 ISDNNET_DESCRIP="ISDN4Linux Library"
8193 ISDNNET_OPTION="isdnnet"
8195 # Check whether --with-isdnnet was given.
8196 if test "${with_isdnnet+set}" = set; then
8197 withval=$with_isdnnet;
8198 case ${withval} in
8199 n|no)
8200 USE_ISDNNET=no
8202 y|ye|yes)
8203 ISDNNET_MANDATORY="yes"
8206 ISDNNET_DIR="${withval}"
8207 ISDNNET_MANDATORY="yes"
8209 esac
8213 PBX_ISDNNET=0
8220 KDE_DESCRIP="KDE"
8221 KDE_OPTION="kde"
8223 # Check whether --with-kde was given.
8224 if test "${with_kde+set}" = set; then
8225 withval=$with_kde;
8226 case ${withval} in
8227 n|no)
8228 USE_KDE=no
8230 y|ye|yes)
8231 KDE_MANDATORY="yes"
8234 KDE_DIR="${withval}"
8235 KDE_MANDATORY="yes"
8237 esac
8241 PBX_KDE=0
8248 LTDL_DESCRIP="libtool"
8249 LTDL_OPTION="ltdl"
8251 # Check whether --with-ltdl was given.
8252 if test "${with_ltdl+set}" = set; then
8253 withval=$with_ltdl;
8254 case ${withval} in
8255 n|no)
8256 USE_LTDL=no
8258 y|ye|yes)
8259 LTDL_MANDATORY="yes"
8262 LTDL_DIR="${withval}"
8263 LTDL_MANDATORY="yes"
8265 esac
8269 PBX_LTDL=0
8276 MISDN_DESCRIP="mISDN User Library"
8277 MISDN_OPTION="misdn"
8279 # Check whether --with-misdn was given.
8280 if test "${with_misdn+set}" = set; then
8281 withval=$with_misdn;
8282 case ${withval} in
8283 n|no)
8284 USE_MISDN=no
8286 y|ye|yes)
8287 MISDN_MANDATORY="yes"
8290 MISDN_DIR="${withval}"
8291 MISDN_MANDATORY="yes"
8293 esac
8297 PBX_MISDN=0
8304 NBS_DESCRIP="Network Broadcast Sound"
8305 NBS_OPTION="nbs"
8307 # Check whether --with-nbs was given.
8308 if test "${with_nbs+set}" = set; then
8309 withval=$with_nbs;
8310 case ${withval} in
8311 n|no)
8312 USE_NBS=no
8314 y|ye|yes)
8315 NBS_MANDATORY="yes"
8318 NBS_DIR="${withval}"
8319 NBS_MANDATORY="yes"
8321 esac
8325 PBX_NBS=0
8332 NCURSES_DESCRIP="ncurses"
8333 NCURSES_OPTION="ncurses"
8335 # Check whether --with-ncurses was given.
8336 if test "${with_ncurses+set}" = set; then
8337 withval=$with_ncurses;
8338 case ${withval} in
8339 n|no)
8340 USE_NCURSES=no
8342 y|ye|yes)
8343 NCURSES_MANDATORY="yes"
8346 NCURSES_DIR="${withval}"
8347 NCURSES_MANDATORY="yes"
8349 esac
8353 PBX_NCURSES=0
8360 NETSNMP_DESCRIP="Net-SNMP"
8361 NETSNMP_OPTION="netsnmp"
8363 # Check whether --with-netsnmp was given.
8364 if test "${with_netsnmp+set}" = set; then
8365 withval=$with_netsnmp;
8366 case ${withval} in
8367 n|no)
8368 USE_NETSNMP=no
8370 y|ye|yes)
8371 NETSNMP_MANDATORY="yes"
8374 NETSNMP_DIR="${withval}"
8375 NETSNMP_MANDATORY="yes"
8377 esac
8381 PBX_NETSNMP=0
8388 NEWT_DESCRIP="newt"
8389 NEWT_OPTION="newt"
8391 # Check whether --with-newt was given.
8392 if test "${with_newt+set}" = set; then
8393 withval=$with_newt;
8394 case ${withval} in
8395 n|no)
8396 USE_NEWT=no
8398 y|ye|yes)
8399 NEWT_MANDATORY="yes"
8402 NEWT_DIR="${withval}"
8403 NEWT_MANDATORY="yes"
8405 esac
8409 PBX_NEWT=0
8416 UNIXODBC_DESCRIP="unixODBC"
8417 UNIXODBC_OPTION="odbc"
8419 # Check whether --with-odbc was given.
8420 if test "${with_odbc+set}" = set; then
8421 withval=$with_odbc;
8422 case ${withval} in
8423 n|no)
8424 USE_UNIXODBC=no
8426 y|ye|yes)
8427 UNIXODBC_MANDATORY="yes"
8430 UNIXODBC_DIR="${withval}"
8431 UNIXODBC_MANDATORY="yes"
8433 esac
8437 PBX_UNIXODBC=0
8444 OGG_DESCRIP="OGG"
8445 OGG_OPTION="ogg"
8447 # Check whether --with-ogg was given.
8448 if test "${with_ogg+set}" = set; then
8449 withval=$with_ogg;
8450 case ${withval} in
8451 n|no)
8452 USE_OGG=no
8454 y|ye|yes)
8455 OGG_MANDATORY="yes"
8458 OGG_DIR="${withval}"
8459 OGG_MANDATORY="yes"
8461 esac
8465 PBX_OGG=0
8472 OSPTK_DESCRIP="OSP Toolkit"
8473 OSPTK_OPTION="osptk"
8475 # Check whether --with-osptk was given.
8476 if test "${with_osptk+set}" = set; then
8477 withval=$with_osptk;
8478 case ${withval} in
8479 n|no)
8480 USE_OSPTK=no
8482 y|ye|yes)
8483 OSPTK_MANDATORY="yes"
8486 OSPTK_DIR="${withval}"
8487 OSPTK_MANDATORY="yes"
8489 esac
8493 PBX_OSPTK=0
8500 OSS_DESCRIP="Open Sound System"
8501 OSS_OPTION="oss"
8503 # Check whether --with-oss was given.
8504 if test "${with_oss+set}" = set; then
8505 withval=$with_oss;
8506 case ${withval} in
8507 n|no)
8508 USE_OSS=no
8510 y|ye|yes)
8511 OSS_MANDATORY="yes"
8514 OSS_DIR="${withval}"
8515 OSS_MANDATORY="yes"
8517 esac
8521 PBX_OSS=0
8528 POPT_DESCRIP="popt"
8529 POPT_OPTION="popt"
8531 # Check whether --with-popt was given.
8532 if test "${with_popt+set}" = set; then
8533 withval=$with_popt;
8534 case ${withval} in
8535 n|no)
8536 USE_POPT=no
8538 y|ye|yes)
8539 POPT_MANDATORY="yes"
8542 POPT_DIR="${withval}"
8543 POPT_MANDATORY="yes"
8545 esac
8549 PBX_POPT=0
8556 PGSQL_DESCRIP="PostgreSQL"
8557 PGSQL_OPTION="postgres"
8559 # Check whether --with-postgres was given.
8560 if test "${with_postgres+set}" = set; then
8561 withval=$with_postgres;
8562 case ${withval} in
8563 n|no)
8564 USE_PGSQL=no
8566 y|ye|yes)
8567 PGSQL_MANDATORY="yes"
8570 PGSQL_DIR="${withval}"
8571 PGSQL_MANDATORY="yes"
8573 esac
8577 PBX_PGSQL=0
8584 PRI_DESCRIP="ISDN PRI"
8585 PRI_OPTION="pri"
8587 # Check whether --with-pri was given.
8588 if test "${with_pri+set}" = set; then
8589 withval=$with_pri;
8590 case ${withval} in
8591 n|no)
8592 USE_PRI=no
8594 y|ye|yes)
8595 PRI_MANDATORY="yes"
8598 PRI_DIR="${withval}"
8599 PRI_MANDATORY="yes"
8601 esac
8605 PBX_PRI=0
8612 PWLIB_DESCRIP="PWlib"
8613 PWLIB_OPTION="pwlib"
8615 # Check whether --with-pwlib was given.
8616 if test "${with_pwlib+set}" = set; then
8617 withval=$with_pwlib;
8618 case ${withval} in
8619 n|no)
8620 USE_PWLIB=no
8622 y|ye|yes)
8623 PWLIB_MANDATORY="yes"
8626 PWLIB_DIR="${withval}"
8627 PWLIB_MANDATORY="yes"
8629 esac
8633 PBX_PWLIB=0
8640 OPENH323_DESCRIP="OpenH323"
8641 OPENH323_OPTION="h323"
8643 # Check whether --with-h323 was given.
8644 if test "${with_h323+set}" = set; then
8645 withval=$with_h323;
8646 case ${withval} in
8647 n|no)
8648 USE_OPENH323=no
8650 y|ye|yes)
8651 OPENH323_MANDATORY="yes"
8654 OPENH323_DIR="${withval}"
8655 OPENH323_MANDATORY="yes"
8657 esac
8661 PBX_OPENH323=0
8668 QT_DESCRIP="Qt"
8669 QT_OPTION="qt"
8671 # Check whether --with-qt was given.
8672 if test "${with_qt+set}" = set; then
8673 withval=$with_qt;
8674 case ${withval} in
8675 n|no)
8676 USE_QT=no
8678 y|ye|yes)
8679 QT_MANDATORY="yes"
8682 QT_DIR="${withval}"
8683 QT_MANDATORY="yes"
8685 esac
8689 PBX_QT=0
8696 RADIUS_DESCRIP="Radius Client"
8697 RADIUS_OPTION="radius"
8699 # Check whether --with-radius was given.
8700 if test "${with_radius+set}" = set; then
8701 withval=$with_radius;
8702 case ${withval} in
8703 n|no)
8704 USE_RADIUS=no
8706 y|ye|yes)
8707 RADIUS_MANDATORY="yes"
8710 RADIUS_DIR="${withval}"
8711 RADIUS_MANDATORY="yes"
8713 esac
8717 PBX_RADIUS=0
8724 SPEEX_DESCRIP="Speex"
8725 SPEEX_OPTION="speex"
8727 # Check whether --with-speex was given.
8728 if test "${with_speex+set}" = set; then
8729 withval=$with_speex;
8730 case ${withval} in
8731 n|no)
8732 USE_SPEEX=no
8734 y|ye|yes)
8735 SPEEX_MANDATORY="yes"
8738 SPEEX_DIR="${withval}"
8739 SPEEX_MANDATORY="yes"
8741 esac
8745 PBX_SPEEX=0
8752 SQLITE_DESCRIP="SQLite"
8753 SQLITE_OPTION="sqlite"
8755 # Check whether --with-sqlite was given.
8756 if test "${with_sqlite+set}" = set; then
8757 withval=$with_sqlite;
8758 case ${withval} in
8759 n|no)
8760 USE_SQLITE=no
8762 y|ye|yes)
8763 SQLITE_MANDATORY="yes"
8766 SQLITE_DIR="${withval}"
8767 SQLITE_MANDATORY="yes"
8769 esac
8773 PBX_SQLITE=0
8780 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8781 SUPPSERV_OPTION="suppserv"
8783 # Check whether --with-suppserv was given.
8784 if test "${with_suppserv+set}" = set; then
8785 withval=$with_suppserv;
8786 case ${withval} in
8787 n|no)
8788 USE_SUPPSERV=no
8790 y|ye|yes)
8791 SUPPSERV_MANDATORY="yes"
8794 SUPPSERV_DIR="${withval}"
8795 SUPPSERV_MANDATORY="yes"
8797 esac
8801 PBX_SUPPSERV=0
8808 OPENSSL_DESCRIP="OpenSSL"
8809 OPENSSL_OPTION="ssl"
8811 # Check whether --with-ssl was given.
8812 if test "${with_ssl+set}" = set; then
8813 withval=$with_ssl;
8814 case ${withval} in
8815 n|no)
8816 USE_OPENSSL=no
8818 y|ye|yes)
8819 OPENSSL_MANDATORY="yes"
8822 OPENSSL_DIR="${withval}"
8823 OPENSSL_MANDATORY="yes"
8825 esac
8829 PBX_OPENSSL=0
8836 FREETDS_DESCRIP="FreeTDS"
8837 FREETDS_OPTION="tds"
8839 # Check whether --with-tds was given.
8840 if test "${with_tds+set}" = set; then
8841 withval=$with_tds;
8842 case ${withval} in
8843 n|no)
8844 USE_FREETDS=no
8846 y|ye|yes)
8847 FREETDS_MANDATORY="yes"
8850 FREETDS_DIR="${withval}"
8851 FREETDS_MANDATORY="yes"
8853 esac
8857 PBX_FREETDS=0
8864 TERMCAP_DESCRIP="Termcap"
8865 TERMCAP_OPTION="termcap"
8867 # Check whether --with-termcap was given.
8868 if test "${with_termcap+set}" = set; then
8869 withval=$with_termcap;
8870 case ${withval} in
8871 n|no)
8872 USE_TERMCAP=no
8874 y|ye|yes)
8875 TERMCAP_MANDATORY="yes"
8878 TERMCAP_DIR="${withval}"
8879 TERMCAP_MANDATORY="yes"
8881 esac
8885 PBX_TERMCAP=0
8892 TINFO_DESCRIP="Term Info"
8893 TINFO_OPTION="tinfo"
8895 # Check whether --with-tinfo was given.
8896 if test "${with_tinfo+set}" = set; then
8897 withval=$with_tinfo;
8898 case ${withval} in
8899 n|no)
8900 USE_TINFO=no
8902 y|ye|yes)
8903 TINFO_MANDATORY="yes"
8906 TINFO_DIR="${withval}"
8907 TINFO_MANDATORY="yes"
8909 esac
8913 PBX_TINFO=0
8920 TONEZONE_DESCRIP="tonezone"
8921 TONEZONE_OPTION="tonezone"
8923 # Check whether --with-tonezone was given.
8924 if test "${with_tonezone+set}" = set; then
8925 withval=$with_tonezone;
8926 case ${withval} in
8927 n|no)
8928 USE_TONEZONE=no
8930 y|ye|yes)
8931 TONEZONE_MANDATORY="yes"
8934 TONEZONE_DIR="${withval}"
8935 TONEZONE_MANDATORY="yes"
8937 esac
8941 PBX_TONEZONE=0
8948 USB_DESCRIP="usb"
8949 USB_OPTION="usb"
8951 # Check whether --with-usb was given.
8952 if test "${with_usb+set}" = set; then
8953 withval=$with_usb;
8954 case ${withval} in
8955 n|no)
8956 USE_USB=no
8958 y|ye|yes)
8959 USB_MANDATORY="yes"
8962 USB_DIR="${withval}"
8963 USB_MANDATORY="yes"
8965 esac
8969 PBX_USB=0
8976 VORBIS_DESCRIP="Vorbis"
8977 VORBIS_OPTION="vorbis"
8979 # Check whether --with-vorbis was given.
8980 if test "${with_vorbis+set}" = set; then
8981 withval=$with_vorbis;
8982 case ${withval} in
8983 n|no)
8984 USE_VORBIS=no
8986 y|ye|yes)
8987 VORBIS_MANDATORY="yes"
8990 VORBIS_DIR="${withval}"
8991 VORBIS_MANDATORY="yes"
8993 esac
8997 PBX_VORBIS=0
9004 VPB_DESCRIP="Voicetronix API"
9005 VPB_OPTION="vpb"
9007 # Check whether --with-vpb was given.
9008 if test "${with_vpb+set}" = set; then
9009 withval=$with_vpb;
9010 case ${withval} in
9011 n|no)
9012 USE_VPB=no
9014 y|ye|yes)
9015 VPB_MANDATORY="yes"
9018 VPB_DIR="${withval}"
9019 VPB_MANDATORY="yes"
9021 esac
9025 PBX_VPB=0
9032 ZLIB_DESCRIP="zlib"
9033 ZLIB_OPTION="z"
9035 # Check whether --with-z was given.
9036 if test "${with_z+set}" = set; then
9037 withval=$with_z;
9038 case ${withval} in
9039 n|no)
9040 USE_ZLIB=no
9042 y|ye|yes)
9043 ZLIB_MANDATORY="yes"
9046 ZLIB_DIR="${withval}"
9047 ZLIB_MANDATORY="yes"
9049 esac
9053 PBX_ZLIB=0
9060 ZAPTEL_DESCRIP="Zaptel"
9061 ZAPTEL_OPTION="zaptel"
9063 # Check whether --with-zaptel was given.
9064 if test "${with_zaptel+set}" = set; then
9065 withval=$with_zaptel;
9066 case ${withval} in
9067 n|no)
9068 USE_ZAPTEL=no
9070 y|ye|yes)
9071 ZAPTEL_MANDATORY="yes"
9074 ZAPTEL_DIR="${withval}"
9075 ZAPTEL_MANDATORY="yes"
9077 esac
9081 PBX_ZAPTEL=0
9088 # check for basic system features and functionality before
9089 # checking for package libraries
9091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9092 # for constant arguments. Useless!
9093 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9095 if test "${ac_cv_working_alloca_h+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #include <alloca.h>
9106 main ()
9108 char *p = (char *) alloca (2 * sizeof (int));
9109 if (p) return 0;
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_link") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9129 { (case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_try") 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (case "(($ac_try" in
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9142 esac
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_try") 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_working_alloca_h=yes
9149 else
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_cv_working_alloca_h=no
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9159 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9160 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9161 if test $ac_cv_working_alloca_h = yes; then
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_ALLOCA_H 1
9165 _ACEOF
9169 { echo "$as_me:$LINENO: checking for alloca" >&5
9170 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9171 if test "${ac_cv_func_alloca_works+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #ifdef __GNUC__
9181 # define alloca __builtin_alloca
9182 #else
9183 # ifdef _MSC_VER
9184 # include <malloc.h>
9185 # define alloca _alloca
9186 # else
9187 # if HAVE_ALLOCA_H
9188 # include <alloca.h>
9189 # else
9190 # ifdef _AIX
9191 #pragma alloca
9192 # else
9193 # ifndef alloca /* predefined by HP cc +Olibcalls */
9194 char *alloca ();
9195 # endif
9196 # endif
9197 # endif
9198 # endif
9199 #endif
9202 main ()
9204 char *p = (char *) alloca (1);
9205 if (p) return 0;
9207 return 0;
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_link") 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225 { (case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_try") 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_try") 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_func_alloca_works=yes
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_cv_func_alloca_works=no
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9255 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9256 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9258 if test $ac_cv_func_alloca_works = yes; then
9260 cat >>confdefs.h <<\_ACEOF
9261 #define HAVE_ALLOCA 1
9262 _ACEOF
9264 else
9265 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9266 # that cause trouble. Some versions do not even contain alloca or
9267 # contain a buggy version. If you still want to use their alloca,
9268 # use ar to extract alloca.o from them instead of compiling alloca.c.
9270 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9272 cat >>confdefs.h <<\_ACEOF
9273 #define C_ALLOCA 1
9274 _ACEOF
9277 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9278 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9279 if test "${ac_cv_os_cray+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #if defined CRAY && ! defined CRAY2
9289 webecray
9290 #else
9291 wenotbecray
9292 #endif
9294 _ACEOF
9295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9296 $EGREP "webecray" >/dev/null 2>&1; then
9297 ac_cv_os_cray=yes
9298 else
9299 ac_cv_os_cray=no
9301 rm -f conftest*
9304 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9305 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9306 if test $ac_cv_os_cray = yes; then
9307 for ac_func in _getb67 GETB67 getb67; do
9308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h. */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9322 #define $ac_func innocuous_$ac_func
9324 /* System header to define __stub macros and hopefully few prototypes,
9325 which can conflict with char $ac_func (); below.
9326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9327 <limits.h> exists even on freestanding compilers. */
9329 #ifdef __STDC__
9330 # include <limits.h>
9331 #else
9332 # include <assert.h>
9333 #endif
9335 #undef $ac_func
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char $ac_func ();
9344 /* The GNU C library defines this for functions which it implements
9345 to always fail with ENOSYS. Some functions are actually named
9346 something starting with __ and the normal name is an alias. */
9347 #if defined __stub_$ac_func || defined __stub___$ac_func
9348 choke me
9349 #endif
9352 main ()
9354 return $ac_func ();
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_link") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9374 { (case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_try") 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_try") 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 eval "$as_ac_var=yes"
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 eval "$as_ac_var=no"
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9404 ac_res=`eval echo '${'$as_ac_var'}'`
9405 { echo "$as_me:$LINENO: result: $ac_res" >&5
9406 echo "${ECHO_T}$ac_res" >&6; }
9407 if test `eval echo '${'$as_ac_var'}'` = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410 #define CRAY_STACKSEG_END $ac_func
9411 _ACEOF
9413 break
9416 done
9419 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9420 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9421 if test "${ac_cv_c_stack_direction+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 if test "$cross_compiling" = yes; then
9425 ac_cv_c_stack_direction=0
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9435 find_stack_direction ()
9437 static char *addr = 0;
9438 auto char dummy;
9439 if (addr == 0)
9441 addr = &dummy;
9442 return find_stack_direction ();
9444 else
9445 return (&dummy > addr) ? 1 : -1;
9449 main ()
9451 return find_stack_direction () < 0;
9453 _ACEOF
9454 rm -f conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9456 case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_c_stack_direction=1
9475 else
9476 echo "$as_me: program exited with status $ac_status" >&5
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 ( exit $ac_status )
9481 ac_cv_c_stack_direction=-1
9483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9488 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9489 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9491 cat >>confdefs.h <<_ACEOF
9492 #define STACK_DIRECTION $ac_cv_c_stack_direction
9493 _ACEOF
9503 ac_header_dirent=no
9504 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9505 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9506 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9507 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 #include <sys/types.h>
9518 #include <$ac_hdr>
9521 main ()
9523 if ((DIR *) 0)
9524 return 0;
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_try") 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 eval "$as_ac_Header=yes"
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 eval "$as_ac_Header=no"
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 ac_res=`eval echo '${'$as_ac_Header'}'`
9574 { echo "$as_me:$LINENO: result: $ac_res" >&5
9575 echo "${ECHO_T}$ac_res" >&6; }
9576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9579 _ACEOF
9581 ac_header_dirent=$ac_hdr; break
9584 done
9585 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9586 if test $ac_header_dirent = dirent.h; then
9587 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9588 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9589 if test "${ac_cv_search_opendir+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 ac_func_search_save_LIBS=$LIBS
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char opendir ();
9608 main ()
9610 return opendir ();
9612 return 0;
9614 _ACEOF
9615 for ac_lib in '' dir; do
9616 if test -z "$ac_lib"; then
9617 ac_res="none required"
9618 else
9619 ac_res=-l$ac_lib
9620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (ac_try="$ac_link"
9624 case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_link") 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9637 { (case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_try") 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_try") 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_opendir=$ac_res
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext
9666 if test "${ac_cv_search_opendir+set}" = set; then
9667 break
9669 done
9670 if test "${ac_cv_search_opendir+set}" = set; then
9672 else
9673 ac_cv_search_opendir=no
9675 rm conftest.$ac_ext
9676 LIBS=$ac_func_search_save_LIBS
9678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9680 ac_res=$ac_cv_search_opendir
9681 if test "$ac_res" != no; then
9682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9686 else
9687 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9689 if test "${ac_cv_search_opendir+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 ac_func_search_save_LIBS=$LIBS
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char opendir ();
9708 main ()
9710 return opendir ();
9712 return 0;
9714 _ACEOF
9715 for ac_lib in '' x; do
9716 if test -z "$ac_lib"; then
9717 ac_res="none required"
9718 else
9719 ac_res=-l$ac_lib
9720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9737 { (case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_try") 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_search_opendir=$ac_res
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext
9766 if test "${ac_cv_search_opendir+set}" = set; then
9767 break
9769 done
9770 if test "${ac_cv_search_opendir+set}" = set; then
9772 else
9773 ac_cv_search_opendir=no
9775 rm conftest.$ac_ext
9776 LIBS=$ac_func_search_save_LIBS
9778 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9779 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9780 ac_res=$ac_cv_search_opendir
9781 if test "$ac_res" != no; then
9782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9788 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9790 if test "${ac_cv_header_stdc+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 #include <stdlib.h>
9800 #include <stdarg.h>
9801 #include <string.h>
9802 #include <float.h>
9805 main ()
9809 return 0;
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9814 case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_compile") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_header_stdc=yes
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_header_stdc=no
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 if test $ac_cv_header_stdc = yes; then
9857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 #include <string.h>
9866 _ACEOF
9867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9868 $EGREP "memchr" >/dev/null 2>&1; then
9870 else
9871 ac_cv_header_stdc=no
9873 rm -f conftest*
9877 if test $ac_cv_header_stdc = yes; then
9878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 #include <stdlib.h>
9887 _ACEOF
9888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9889 $EGREP "free" >/dev/null 2>&1; then
9891 else
9892 ac_cv_header_stdc=no
9894 rm -f conftest*
9898 if test $ac_cv_header_stdc = yes; then
9899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9900 if test "$cross_compiling" = yes; then
9902 else
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 #include <ctype.h>
9910 #include <stdlib.h>
9911 #if ((' ' & 0x0FF) == 0x020)
9912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9914 #else
9915 # define ISLOWER(c) \
9916 (('a' <= (c) && (c) <= 'i') \
9917 || ('j' <= (c) && (c) <= 'r') \
9918 || ('s' <= (c) && (c) <= 'z'))
9919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9920 #endif
9922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9924 main ()
9926 int i;
9927 for (i = 0; i < 256; i++)
9928 if (XOR (islower (i), ISLOWER (i))
9929 || toupper (i) != TOUPPER (i))
9930 return 2;
9931 return 0;
9933 _ACEOF
9934 rm -f conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9945 { (case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_try") 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9955 else
9956 echo "$as_me: program exited with status $ac_status" >&5
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ( exit $ac_status )
9961 ac_cv_header_stdc=no
9963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9969 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9970 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9971 if test $ac_cv_header_stdc = yes; then
9973 cat >>confdefs.h <<\_ACEOF
9974 #define STDC_HEADERS 1
9975 _ACEOF
9979 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9980 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9981 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 #include <sys/types.h>
9991 #include <sys/wait.h>
9992 #ifndef WEXITSTATUS
9993 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9994 #endif
9995 #ifndef WIFEXITED
9996 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9997 #endif
10000 main ()
10002 int s;
10003 wait (&s);
10004 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10006 return 0;
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (ac_try="$ac_compile"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_compile") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest.$ac_objext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_header_sys_wait_h=yes
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_header_sys_wait_h=no
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10054 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10055 if test $ac_cv_header_sys_wait_h = yes; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_SYS_WAIT_H 1
10059 _ACEOF
10086 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
10088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_res=`eval echo '${'$as_ac_Header'}'`
10096 { echo "$as_me:$LINENO: result: $ac_res" >&5
10097 echo "${ECHO_T}$ac_res" >&6; }
10098 else
10099 # Is the header compilable?
10100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 $ac_includes_default
10109 #include <$ac_header>
10110 _ACEOF
10111 rm -f conftest.$ac_objext
10112 if { (ac_try="$ac_compile"
10113 case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_compile") 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_try") 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 ac_header_compiler=yes
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ac_header_compiler=no
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10155 echo "${ECHO_T}$ac_header_compiler" >&6; }
10157 # Is the header present?
10158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #include <$ac_header>
10167 _ACEOF
10168 if { (ac_try="$ac_cpp conftest.$ac_ext"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } >/dev/null; then
10181 if test -s conftest.err; then
10182 ac_cpp_err=$ac_c_preproc_warn_flag
10183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10184 else
10185 ac_cpp_err=
10187 else
10188 ac_cpp_err=yes
10190 if test -z "$ac_cpp_err"; then
10191 ac_header_preproc=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_header_preproc=no
10199 rm -f conftest.err conftest.$ac_ext
10200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201 echo "${ECHO_T}$ac_header_preproc" >&6; }
10203 # So? What about this header?
10204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 yes:no: )
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210 ac_header_preproc=yes
10212 no:yes:* )
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10227 esac
10228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 eval "$as_ac_Header=\$ac_header_preproc"
10235 ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10243 _ACEOF
10247 done
10250 # Check whether --enable-largefile was given.
10251 if test "${enable_largefile+set}" = set; then
10252 enableval=$enable_largefile;
10255 if test "$enable_largefile" != no; then
10257 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10258 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10259 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262 ac_cv_sys_largefile_CC=no
10263 if test "$GCC" != yes; then
10264 ac_save_CC=$CC
10265 while :; do
10266 # IRIX 6.2 and later do not support large files by default,
10267 # so use the C compiler's -n32 option if that helps.
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <sys/types.h>
10275 /* Check that off_t can represent 2**63 - 1 correctly.
10276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10277 since some C++ compilers masquerading as C compilers
10278 incorrectly reject 9223372036854775807. */
10279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10281 && LARGE_OFF_T % 2147483647 == 1)
10282 ? 1 : -1];
10284 main ()
10288 return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_compile") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 break
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10333 rm -f core conftest.err conftest.$ac_objext
10334 CC="$CC -n32"
10335 rm -f conftest.$ac_objext
10336 if { (ac_try="$ac_compile"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_compile") 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_sys_largefile_CC=' -n32'; break
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10377 rm -f core conftest.err conftest.$ac_objext
10378 break
10379 done
10380 CC=$ac_save_CC
10381 rm -f conftest.$ac_ext
10384 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10385 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10386 if test "$ac_cv_sys_largefile_CC" != no; then
10387 CC=$CC$ac_cv_sys_largefile_CC
10390 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10391 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10392 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 while :; do
10396 ac_cv_sys_file_offset_bits=no
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h. */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 #include <sys/types.h>
10404 /* Check that off_t can represent 2**63 - 1 correctly.
10405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10406 since some C++ compilers masquerading as C compilers
10407 incorrectly reject 9223372036854775807. */
10408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10410 && LARGE_OFF_T % 2147483647 == 1)
10411 ? 1 : -1];
10413 main ()
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (ac_try="$ac_compile"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_compile") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 break
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 #define _FILE_OFFSET_BITS 64
10470 #include <sys/types.h>
10471 /* Check that off_t can represent 2**63 - 1 correctly.
10472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10473 since some C++ compilers masquerading as C compilers
10474 incorrectly reject 9223372036854775807. */
10475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10477 && LARGE_OFF_T % 2147483647 == 1)
10478 ? 1 : -1];
10480 main ()
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_sys_file_offset_bits=64; break
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 break
10531 done
10533 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10534 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10535 if test "$ac_cv_sys_file_offset_bits" != no; then
10537 cat >>confdefs.h <<_ACEOF
10538 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10539 _ACEOF
10542 rm -f conftest*
10543 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10544 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10545 if test "${ac_cv_sys_large_files+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 while :; do
10549 ac_cv_sys_large_files=no
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <sys/types.h>
10557 /* Check that off_t can represent 2**63 - 1 correctly.
10558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10559 since some C++ compilers masquerading as C compilers
10560 incorrectly reject 9223372036854775807. */
10561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10563 && LARGE_OFF_T % 2147483647 == 1)
10564 ? 1 : -1];
10566 main ()
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 { (case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_try") 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; } &&
10597 { ac_try='test -s conftest.$ac_objext'
10598 { (case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_try") 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 break
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #define _LARGE_FILES 1
10623 #include <sys/types.h>
10624 /* Check that off_t can represent 2**63 - 1 correctly.
10625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10626 since some C++ compilers masquerading as C compilers
10627 incorrectly reject 9223372036854775807. */
10628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10630 && LARGE_OFF_T % 2147483647 == 1)
10631 ? 1 : -1];
10633 main ()
10637 return 0;
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_compile") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_try") 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_sys_large_files=1; break
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 break
10684 done
10686 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10687 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10688 if test "$ac_cv_sys_large_files" != no; then
10690 cat >>confdefs.h <<_ACEOF
10691 #define _LARGE_FILES $ac_cv_sys_large_files
10692 _ACEOF
10695 rm -f conftest*
10699 # Checks for typedefs, structures, and compiler characteristics.
10700 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10701 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10702 if test "${ac_cv_header_stdbool_h+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10712 #include <stdbool.h>
10713 #ifndef bool
10714 "error: bool is not defined"
10715 #endif
10716 #ifndef false
10717 "error: false is not defined"
10718 #endif
10719 #if false
10720 "error: false is not 0"
10721 #endif
10722 #ifndef true
10723 "error: true is not defined"
10724 #endif
10725 #if true != 1
10726 "error: true is not 1"
10727 #endif
10728 #ifndef __bool_true_false_are_defined
10729 "error: __bool_true_false_are_defined is not defined"
10730 #endif
10732 struct s { _Bool s: 1; _Bool t; } s;
10734 char a[true == 1 ? 1 : -1];
10735 char b[false == 0 ? 1 : -1];
10736 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10737 char d[(bool) 0.5 == true ? 1 : -1];
10738 bool e = &s;
10739 char f[(_Bool) 0.0 == false ? 1 : -1];
10740 char g[true];
10741 char h[sizeof (_Bool)];
10742 char i[sizeof s.t];
10743 enum { j = false, k = true, l = false * true, m = true * 256 };
10744 _Bool n[m];
10745 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10746 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10747 # if defined __xlc__ || defined __GNUC__
10748 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10749 reported by James Lemley on 2005-10-05; see
10750 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10751 This test is not quite right, since xlc is allowed to
10752 reject this program, as the initializer for xlcbug is
10753 not one of the forms that C requires support for.
10754 However, doing the test right would require a runtime
10755 test, and that would make cross-compilation harder.
10756 Let us hope that IBM fixes the xlc bug, and also adds
10757 support for this kind of constant expression. In the
10758 meantime, this test will reject xlc, which is OK, since
10759 our stdbool.h substitute should suffice. We also test
10760 this with GCC, where it should work, to detect more
10761 quickly whether someone messes up the test in the
10762 future. */
10763 char digs[] = "0123456789";
10764 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10765 # endif
10766 /* Catch a bug in an HP-UX C compiler. See
10767 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10768 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10770 _Bool q = true;
10771 _Bool *pq = &q;
10774 main ()
10777 *pq |= q;
10778 *pq |= ! q;
10779 /* Refer to every declared value, to avoid compiler optimizations. */
10780 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10781 + !m + !n + !o + !p + !q + !pq);
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_cv_header_stdbool_h=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_cv_header_stdbool_h=no
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10832 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10833 { echo "$as_me:$LINENO: checking for _Bool" >&5
10834 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10835 if test "${ac_cv_type__Bool+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 typedef _Bool ac__type_new_;
10847 main ()
10849 if ((ac__type_new_ *) 0)
10850 return 0;
10851 if (sizeof (ac__type_new_))
10852 return 0;
10854 return 0;
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_compile") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_try") 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_type__Bool=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_cv_type__Bool=no
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10902 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10903 if test $ac_cv_type__Bool = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE__BOOL 1
10907 _ACEOF
10912 if test $ac_cv_header_stdbool_h = yes; then
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_STDBOOL_H 1
10916 _ACEOF
10920 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10921 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10922 if test "${ac_cv_c_const+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10933 main ()
10935 /* FIXME: Include the comments suggested by Paul. */
10936 #ifndef __cplusplus
10937 /* Ultrix mips cc rejects this. */
10938 typedef int charset[2];
10939 const charset x;
10940 /* SunOS 4.1.1 cc rejects this. */
10941 char const *const *ccp;
10942 char **p;
10943 /* NEC SVR4.0.2 mips cc rejects this. */
10944 struct point {int x, y;};
10945 static struct point const zero = {0,0};
10946 /* AIX XL C 1.02.0.0 rejects this.
10947 It does not let you subtract one const X* pointer from another in
10948 an arm of an if-expression whose if-part is not a constant
10949 expression */
10950 const char *g = "string";
10951 ccp = &g + (g ? g-g : 0);
10952 /* HPUX 7.0 cc rejects these. */
10953 ++ccp;
10954 p = (char**) ccp;
10955 ccp = (char const *const *) p;
10956 { /* SCO 3.2v4 cc rejects this. */
10957 char *t;
10958 char const *s = 0 ? (char *) 0 : (char const *) 0;
10960 *t++ = 0;
10961 if (s) return 0;
10963 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10964 int x[] = {25, 17};
10965 const int *foo = &x[0];
10966 ++foo;
10968 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10969 typedef const int *iptr;
10970 iptr p = 0;
10971 ++p;
10973 { /* AIX XL C 1.02.0.0 rejects this saying
10974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10975 struct s { int j; const int *ap[3]; };
10976 struct s *b; b->j = 5;
10978 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10979 const int foo = 10;
10980 if (!foo) return 0;
10982 return !x[0] && !zero.x;
10983 #endif
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext
10990 if { (ac_try="$ac_compile"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_c_const=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_cv_c_const=no
11031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11034 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11035 if test $ac_cv_c_const = no; then
11037 cat >>confdefs.h <<\_ACEOF
11038 #define const
11039 _ACEOF
11043 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11044 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11045 if test "${ac_cv_type_uid_t+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <sys/types.h>
11056 _ACEOF
11057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11058 $EGREP "uid_t" >/dev/null 2>&1; then
11059 ac_cv_type_uid_t=yes
11060 else
11061 ac_cv_type_uid_t=no
11063 rm -f conftest*
11066 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11067 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11068 if test $ac_cv_type_uid_t = no; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define uid_t int
11072 _ACEOF
11075 cat >>confdefs.h <<\_ACEOF
11076 #define gid_t int
11077 _ACEOF
11081 { echo "$as_me:$LINENO: checking for inline" >&5
11082 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11083 if test "${ac_cv_c_inline+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 ac_cv_c_inline=no
11087 for ac_kw in inline __inline__ __inline; do
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #ifndef __cplusplus
11095 typedef int foo_t;
11096 static $ac_kw foo_t static_foo () {return 0; }
11097 $ac_kw foo_t foo () {return 0; }
11098 #endif
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_c_inline=$ac_kw
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 test "$ac_cv_c_inline" != no && break
11145 done
11148 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11149 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11152 case $ac_cv_c_inline in
11153 inline | yes) ;;
11155 case $ac_cv_c_inline in
11156 no) ac_val=;;
11157 *) ac_val=$ac_cv_c_inline;;
11158 esac
11159 cat >>confdefs.h <<_ACEOF
11160 #ifndef __cplusplus
11161 #define inline $ac_val
11162 #endif
11163 _ACEOF
11165 esac
11167 { echo "$as_me:$LINENO: checking for mode_t" >&5
11168 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11169 if test "${ac_cv_type_mode_t+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 typedef mode_t ac__type_new_;
11181 main ()
11183 if ((ac__type_new_ *) 0)
11184 return 0;
11185 if (sizeof (ac__type_new_))
11186 return 0;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_type_mode_t=yes
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_type_mode_t=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11236 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11237 if test $ac_cv_type_mode_t = yes; then
11239 else
11241 cat >>confdefs.h <<_ACEOF
11242 #define mode_t int
11243 _ACEOF
11247 { echo "$as_me:$LINENO: checking for off_t" >&5
11248 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11249 if test "${ac_cv_type_off_t+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h. */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 $ac_includes_default
11259 typedef off_t ac__type_new_;
11261 main ()
11263 if ((ac__type_new_ *) 0)
11264 return 0;
11265 if (sizeof (ac__type_new_))
11266 return 0;
11268 return 0;
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_type_off_t=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_cv_type_off_t=no
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11316 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11317 if test $ac_cv_type_off_t = yes; then
11319 else
11321 cat >>confdefs.h <<_ACEOF
11322 #define off_t long int
11323 _ACEOF
11327 { echo "$as_me:$LINENO: checking for pid_t" >&5
11328 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11329 if test "${ac_cv_type_pid_t+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h. */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 $ac_includes_default
11339 typedef pid_t ac__type_new_;
11341 main ()
11343 if ((ac__type_new_ *) 0)
11344 return 0;
11345 if (sizeof (ac__type_new_))
11346 return 0;
11348 return 0;
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_type_pid_t=yes
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_cv_type_pid_t=no
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11396 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11397 if test $ac_cv_type_pid_t = yes; then
11399 else
11401 cat >>confdefs.h <<_ACEOF
11402 #define pid_t int
11403 _ACEOF
11407 { echo "$as_me:$LINENO: checking for size_t" >&5
11408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11409 if test "${ac_cv_type_size_t+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 $ac_includes_default
11419 typedef size_t ac__type_new_;
11421 main ()
11423 if ((ac__type_new_ *) 0)
11424 return 0;
11425 if (sizeof (ac__type_new_))
11426 return 0;
11428 return 0;
11430 _ACEOF
11431 rm -f conftest.$ac_objext
11432 if { (ac_try="$ac_compile"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_compile") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest.$ac_objext'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_type_size_t=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_type_size_t=no
11473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11476 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11477 if test $ac_cv_type_size_t = yes; then
11479 else
11481 cat >>confdefs.h <<_ACEOF
11482 #define size_t unsigned int
11483 _ACEOF
11487 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11488 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11489 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11500 main ()
11502 static struct stat ac_aggr;
11503 if (ac_aggr.st_blksize)
11504 return 0;
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (ac_try="$ac_compile"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_compile") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_member_struct_stat_st_blksize=yes
11544 else
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h. */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 $ac_includes_default
11556 main ()
11558 static struct stat ac_aggr;
11559 if (sizeof ac_aggr.st_blksize)
11560 return 0;
11562 return 0;
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (ac_try="$ac_compile"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_try") 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_member_struct_stat_st_blksize=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_cv_member_struct_stat_st_blksize=no
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11613 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11614 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11618 _ACEOF
11623 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11625 if test "${ac_cv_header_time+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 #include <sys/types.h>
11635 #include <sys/time.h>
11636 #include <time.h>
11639 main ()
11641 if ((struct tm *) 0)
11642 return 0;
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (ac_try="$ac_compile"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest.$ac_objext'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_header_time=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_header_time=no
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11692 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11693 if test $ac_cv_header_time = yes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define TIME_WITH_SYS_TIME 1
11697 _ACEOF
11701 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11702 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11703 if test "${ac_cv_struct_tm+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h. */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 #include <sys/types.h>
11713 #include <time.h>
11716 main ()
11718 struct tm *tp; tp->tm_sec;
11720 return 0;
11722 _ACEOF
11723 rm -f conftest.$ac_objext
11724 if { (ac_try="$ac_compile"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_compile") 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738 { (case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_try") 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751 esac
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_try") 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_struct_tm=time.h
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_cv_struct_tm=sys/time.h
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11768 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11769 if test $ac_cv_struct_tm = sys/time.h; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define TM_IN_SYS_TIME 1
11773 _ACEOF
11777 { echo "$as_me:$LINENO: checking for working volatile" >&5
11778 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11779 if test "${ac_cv_c_volatile+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h. */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11790 main ()
11793 volatile int x;
11794 int * volatile y = (int *) 0;
11795 return !x && !y;
11797 return 0;
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (ac_try="$ac_compile"
11802 case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805 esac
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_compile") 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest.$ac_objext'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_c_volatile=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_c_volatile=no
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11845 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11846 if test $ac_cv_c_volatile = no; then
11848 cat >>confdefs.h <<\_ACEOF
11849 #define volatile
11850 _ACEOF
11854 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11855 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11856 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 typedef ptrdiff_t ac__type_new_;
11868 main ()
11870 if ((ac__type_new_ *) 0)
11871 return 0;
11872 if (sizeof (ac__type_new_))
11873 return 0;
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext
11879 if { (ac_try="$ac_compile"
11880 case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_compile") 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11893 { (case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_try") 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try='test -s conftest.$ac_objext'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_type_ptrdiff_t=yes
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_cv_type_ptrdiff_t=no
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11923 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11924 if test $ac_cv_type_ptrdiff_t = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_PTRDIFF_T 1
11928 _ACEOF
11934 # Checks for library functions.
11936 for ac_header in unistd.h
11938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_res=`eval echo '${'$as_ac_Header'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11948 else
11949 # Is the header compilable?
11950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 $ac_includes_default
11959 #include <$ac_header>
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (ac_try="$ac_compile"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_header_compiler=no
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12005 echo "${ECHO_T}$ac_header_compiler" >&6; }
12007 # Is the header present?
12008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <$ac_header>
12017 _ACEOF
12018 if { (ac_try="$ac_cpp conftest.$ac_ext"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 else
12035 ac_cpp_err=
12037 else
12038 ac_cpp_err=yes
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12042 else
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_header_preproc=no
12049 rm -f conftest.err conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12051 echo "${ECHO_T}$ac_header_preproc" >&6; }
12053 # So? What about this header?
12054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12055 yes:no: )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12060 ac_header_preproc=yes
12062 no:yes:* )
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12077 esac
12078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 eval "$as_ac_Header=\$ac_header_preproc"
12085 ac_res=`eval echo '${'$as_ac_Header'}'`
12086 { echo "$as_me:$LINENO: result: $ac_res" >&5
12087 echo "${ECHO_T}$ac_res" >&6; }
12090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093 _ACEOF
12097 done
12099 { echo "$as_me:$LINENO: checking for working chown" >&5
12100 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12101 if test "${ac_cv_func_chown_works+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 if test "$cross_compiling" = yes; then
12105 ac_cv_func_chown_works=no
12106 else
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 $ac_includes_default
12114 #include <fcntl.h>
12117 main ()
12119 char *f = "conftest.chown";
12120 struct stat before, after;
12122 if (creat (f, 0600) < 0)
12123 return 1;
12124 if (stat (f, &before) < 0)
12125 return 1;
12126 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12127 return 1;
12128 if (stat (f, &after) < 0)
12129 return 1;
12130 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12133 return 0;
12135 _ACEOF
12136 rm -f conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_func_chown_works=yes
12157 else
12158 echo "$as_me: program exited with status $ac_status" >&5
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ( exit $ac_status )
12163 ac_cv_func_chown_works=no
12165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12169 rm -f conftest.chown
12172 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12173 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12174 if test $ac_cv_func_chown_works = yes; then
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_CHOWN 1
12178 _ACEOF
12182 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12183 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12184 if test "${ac_cv_func_closedir_void+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187 if test "$cross_compiling" = yes; then
12188 ac_cv_func_closedir_void=yes
12189 else
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 $ac_includes_default
12197 #include <$ac_header_dirent>
12198 #ifndef __cplusplus
12199 int closedir ();
12200 #endif
12203 main ()
12205 return closedir (opendir (".")) != 0;
12207 return 0;
12209 _ACEOF
12210 rm -f conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_func_closedir_void=no
12231 else
12232 echo "$as_me: program exited with status $ac_status" >&5
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ( exit $ac_status )
12237 ac_cv_func_closedir_void=yes
12239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12244 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12245 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12246 if test $ac_cv_func_closedir_void = yes; then
12248 cat >>confdefs.h <<\_ACEOF
12249 #define CLOSEDIR_VOID 1
12250 _ACEOF
12254 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12255 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_error_at_line+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12267 main ()
12269 error_at_line (0, 0, "", 0, "");
12271 return 0;
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_error_at_line=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_error_at_line=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12320 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12321 if test $ac_cv_lib_error_at_line = no; then
12322 case " $LIBOBJS " in
12323 *" error.$ac_objext "* ) ;;
12324 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12326 esac
12331 for ac_header in vfork.h
12333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343 else
12344 # Is the header compilable?
12345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 #include <$ac_header>
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_try") 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
12381 { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_try") 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_compiler=no
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12400 echo "${ECHO_T}$ac_header_compiler" >&6; }
12402 # Is the header present?
12403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 #include <$ac_header>
12412 _ACEOF
12413 if { (ac_try="$ac_cpp conftest.$ac_ext"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } >/dev/null; then
12426 if test -s conftest.err; then
12427 ac_cpp_err=$ac_c_preproc_warn_flag
12428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12429 else
12430 ac_cpp_err=
12432 else
12433 ac_cpp_err=yes
12435 if test -z "$ac_cpp_err"; then
12436 ac_header_preproc=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_header_preproc=no
12444 rm -f conftest.err conftest.$ac_ext
12445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446 echo "${ECHO_T}$ac_header_preproc" >&6; }
12448 # So? What about this header?
12449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 yes:no: )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc=yes
12457 no:yes:* )
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12472 esac
12473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 eval "$as_ac_Header=\$ac_header_preproc"
12480 ac_res=`eval echo '${'$as_ac_Header'}'`
12481 { echo "$as_me:$LINENO: result: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 _ACEOF
12492 done
12496 for ac_func in fork vfork
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512 #define $ac_func innocuous_$ac_func
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12519 #ifdef __STDC__
12520 # include <limits.h>
12521 #else
12522 # include <assert.h>
12523 #endif
12525 #undef $ac_func
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char $ac_func ();
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12538 choke me
12539 #endif
12542 main ()
12544 return $ac_func ();
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12594 ac_res=`eval echo '${'$as_ac_var'}'`
12595 { echo "$as_me:$LINENO: result: $ac_res" >&5
12596 echo "${ECHO_T}$ac_res" >&6; }
12597 if test `eval echo '${'$as_ac_var'}'` = yes; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12600 _ACEOF
12603 done
12605 if test "x$ac_cv_func_fork" = xyes; then
12606 { echo "$as_me:$LINENO: checking for working fork" >&5
12607 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12608 if test "${ac_cv_func_fork_works+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 if test "$cross_compiling" = yes; then
12612 ac_cv_func_fork_works=cross
12613 else
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12622 main ()
12625 /* By Ruediger Kuhlmann. */
12626 return fork () < 0;
12629 return 0;
12631 _ACEOF
12632 rm -f conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_func_fork_works=yes
12653 else
12654 echo "$as_me: program exited with status $ac_status" >&5
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ( exit $ac_status )
12659 ac_cv_func_fork_works=no
12661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12667 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12669 else
12670 ac_cv_func_fork_works=$ac_cv_func_fork
12672 if test "x$ac_cv_func_fork_works" = xcross; then
12673 case $host in
12674 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12675 # Override, as these systems have only a dummy fork() stub
12676 ac_cv_func_fork_works=no
12679 ac_cv_func_fork_works=yes
12681 esac
12682 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12683 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12685 ac_cv_func_vfork_works=$ac_cv_func_vfork
12686 if test "x$ac_cv_func_vfork" = xyes; then
12687 { echo "$as_me:$LINENO: checking for working vfork" >&5
12688 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12689 if test "${ac_cv_func_vfork_works+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 if test "$cross_compiling" = yes; then
12693 ac_cv_func_vfork_works=cross
12694 else
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 /* Thanks to Paul Eggert for this test. */
12702 $ac_includes_default
12703 #include <sys/wait.h>
12704 #if HAVE_VFORK_H
12705 # include <vfork.h>
12706 #endif
12707 /* On some sparc systems, changes by the child to local and incoming
12708 argument registers are propagated back to the parent. The compiler
12709 is told about this with #include <vfork.h>, but some compilers
12710 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12711 static variable whose address is put into a register that is
12712 clobbered by the vfork. */
12713 static void
12714 #ifdef __cplusplus
12715 sparc_address_test (int arg)
12716 # else
12717 sparc_address_test (arg) int arg;
12718 #endif
12720 static pid_t child;
12721 if (!child) {
12722 child = vfork ();
12723 if (child < 0) {
12724 perror ("vfork");
12725 _exit(2);
12727 if (!child) {
12728 arg = getpid();
12729 write(-1, "", 0);
12730 _exit (arg);
12736 main ()
12738 pid_t parent = getpid ();
12739 pid_t child;
12741 sparc_address_test (0);
12743 child = vfork ();
12745 if (child == 0) {
12746 /* Here is another test for sparc vfork register problems. This
12747 test uses lots of local variables, at least as many local
12748 variables as main has allocated so far including compiler
12749 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12750 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12751 reuse the register of parent for one of the local variables,
12752 since it will think that parent can't possibly be used any more
12753 in this routine. Assigning to the local variable will thus
12754 munge parent in the parent process. */
12755 pid_t
12756 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12757 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12758 /* Convince the compiler that p..p7 are live; otherwise, it might
12759 use the same hardware register for all 8 local variables. */
12760 if (p != p1 || p != p2 || p != p3 || p != p4
12761 || p != p5 || p != p6 || p != p7)
12762 _exit(1);
12764 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12765 from child file descriptors. If the child closes a descriptor
12766 before it execs or exits, this munges the parent's descriptor
12767 as well. Test for this by closing stdout in the child. */
12768 _exit(close(fileno(stdout)) != 0);
12769 } else {
12770 int status;
12771 struct stat st;
12773 while (wait(&status) != child)
12775 return (
12776 /* Was there some problem with vforking? */
12777 child < 0
12779 /* Did the child fail? (This shouldn't happen.) */
12780 || status
12782 /* Did the vfork/compiler bug occur? */
12783 || parent != getpid()
12785 /* Did the file descriptor bug occur? */
12786 || fstat(fileno(stdout), &st) != 0
12790 _ACEOF
12791 rm -f conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_link") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_func_vfork_works=yes
12812 else
12813 echo "$as_me: program exited with status $ac_status" >&5
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ( exit $ac_status )
12818 ac_cv_func_vfork_works=no
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12826 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12829 if test "x$ac_cv_func_fork_works" = xcross; then
12830 ac_cv_func_vfork_works=$ac_cv_func_vfork
12831 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12832 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12835 if test "x$ac_cv_func_vfork_works" = xyes; then
12837 cat >>confdefs.h <<\_ACEOF
12838 #define HAVE_WORKING_VFORK 1
12839 _ACEOF
12841 else
12843 cat >>confdefs.h <<\_ACEOF
12844 #define vfork fork
12845 _ACEOF
12848 if test "x$ac_cv_func_fork_works" = xyes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_WORKING_FORK 1
12852 _ACEOF
12856 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12857 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12858 if test "${ac_cv_sys_largefile_source+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 while :; do
12862 ac_cv_sys_largefile_source=no
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <stdio.h>
12871 main ()
12873 return !fseeko;
12875 return 0;
12877 _ACEOF
12878 rm -f conftest.$ac_objext
12879 if { (ac_try="$ac_compile"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_compile") 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893 { (case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_try") 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 break
12913 else
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 #define _LARGEFILE_SOURCE 1
12928 #include <stdio.h>
12930 main ()
12932 return !fseeko;
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (ac_try="$ac_compile"
12939 case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12942 esac
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_compile") 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12955 esac
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_try") 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_cv_sys_largefile_source=1; break
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 break
12981 done
12983 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12984 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12985 if test "$ac_cv_sys_largefile_source" != no; then
12987 cat >>confdefs.h <<_ACEOF
12988 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12989 _ACEOF
12992 rm -f conftest*
12994 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12995 # in glibc 2.1.3, but that breaks too many other things.
12996 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12997 { echo "$as_me:$LINENO: checking for fseeko" >&5
12998 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
12999 if test "${ac_cv_func_fseeko+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 #include <stdio.h>
13010 main ()
13012 return fseeko && fseeko (stdin, 0, 0);
13014 return 0;
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_cv_func_fseeko=yes
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 ac_cv_func_fseeko=no
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13062 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13063 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
13064 if test $ac_cv_func_fseeko = yes; then
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_FSEEKO 1
13068 _ACEOF
13072 if test $ac_cv_c_compiler_gnu = yes; then
13073 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13074 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
13075 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078 ac_pattern="Autoconf.*'x'"
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 #include <sgtty.h>
13086 Autoconf TIOCGETP
13087 _ACEOF
13088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13089 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13090 ac_cv_prog_gcc_traditional=yes
13091 else
13092 ac_cv_prog_gcc_traditional=no
13094 rm -f conftest*
13097 if test $ac_cv_prog_gcc_traditional = no; then
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h. */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <termio.h>
13105 Autoconf TCGETA
13106 _ACEOF
13107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13108 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13109 ac_cv_prog_gcc_traditional=yes
13111 rm -f conftest*
13115 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13117 if test $ac_cv_prog_gcc_traditional = yes; then
13118 CC="$CC -traditional"
13122 # XXX: these are commented out until we determine whether it matters if our malloc()
13123 # acts exactly like glibc's or not
13124 # AC_FUNC_MALLOC
13125 # AC_FUNC_REALLOC
13126 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13127 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13128 if test "${ac_cv_func_memcmp_working+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131 if test "$cross_compiling" = yes; then
13132 ac_cv_func_memcmp_working=no
13133 else
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13142 main ()
13145 /* Some versions of memcmp are not 8-bit clean. */
13146 char c0 = '\100', c1 = '\200', c2 = '\201';
13147 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13148 return 1;
13150 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13151 or more and with at least one buffer not starting on a 4-byte boundary.
13152 William Lewis provided this test program. */
13154 char foo[21];
13155 char bar[21];
13156 int i;
13157 for (i = 0; i < 4; i++)
13159 char *a = foo + i;
13160 char *b = bar + i;
13161 strcpy (a, "--------01111111");
13162 strcpy (b, "--------10000000");
13163 if (memcmp (a, b, 16) >= 0)
13164 return 1;
13166 return 0;
13170 return 0;
13172 _ACEOF
13173 rm -f conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_func_memcmp_working=yes
13194 else
13195 echo "$as_me: program exited with status $ac_status" >&5
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ( exit $ac_status )
13200 ac_cv_func_memcmp_working=no
13202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13207 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13208 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13209 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13210 *" memcmp.$ac_objext "* ) ;;
13211 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13213 esac
13219 for ac_header in stdlib.h sys/time.h unistd.h
13221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_res=`eval echo '${'$as_ac_Header'}'`
13229 { echo "$as_me:$LINENO: result: $ac_res" >&5
13230 echo "${ECHO_T}$ac_res" >&6; }
13231 else
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <$ac_header>
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_header_compiler=yes
13279 else
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ac_header_compiler=no
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288 echo "${ECHO_T}$ac_header_compiler" >&6; }
13290 # Is the header present?
13291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 #include <$ac_header>
13300 _ACEOF
13301 if { (ac_try="$ac_cpp conftest.$ac_ext"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } >/dev/null; then
13314 if test -s conftest.err; then
13315 ac_cpp_err=$ac_c_preproc_warn_flag
13316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13317 else
13318 ac_cpp_err=
13320 else
13321 ac_cpp_err=yes
13323 if test -z "$ac_cpp_err"; then
13324 ac_header_preproc=yes
13325 else
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 ac_header_preproc=no
13332 rm -f conftest.err conftest.$ac_ext
13333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13334 echo "${ECHO_T}$ac_header_preproc" >&6; }
13336 # So? What about this header?
13337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13338 yes:no: )
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13343 ac_header_preproc=yes
13345 no:yes:* )
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13360 esac
13361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 eval "$as_ac_Header=\$ac_header_preproc"
13368 ac_res=`eval echo '${'$as_ac_Header'}'`
13369 { echo "$as_me:$LINENO: result: $ac_res" >&5
13370 echo "${ECHO_T}$ac_res" >&6; }
13373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 _ACEOF
13380 done
13383 for ac_func in alarm
13385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13399 #define $ac_func innocuous_$ac_func
13401 /* System header to define __stub macros and hopefully few prototypes,
13402 which can conflict with char $ac_func (); below.
13403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13404 <limits.h> exists even on freestanding compilers. */
13406 #ifdef __STDC__
13407 # include <limits.h>
13408 #else
13409 # include <assert.h>
13410 #endif
13412 #undef $ac_func
13414 /* Override any GCC internal prototype to avoid an error.
13415 Use char because int might match the return type of a GCC
13416 builtin and then its argument prototype would still apply. */
13417 #ifdef __cplusplus
13418 extern "C"
13419 #endif
13420 char $ac_func ();
13421 /* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424 #if defined __stub_$ac_func || defined __stub___$ac_func
13425 choke me
13426 #endif
13429 main ()
13431 return $ac_func ();
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (ac_try="$ac_link"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_link") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_try") 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 eval "$as_ac_var=yes"
13471 else
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 eval "$as_ac_var=no"
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13481 ac_res=`eval echo '${'$as_ac_var'}'`
13482 { echo "$as_me:$LINENO: result: $ac_res" >&5
13483 echo "${ECHO_T}$ac_res" >&6; }
13484 if test `eval echo '${'$as_ac_var'}'` = yes; then
13485 cat >>confdefs.h <<_ACEOF
13486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13487 _ACEOF
13490 done
13492 { echo "$as_me:$LINENO: checking for working mktime" >&5
13493 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
13494 if test "${ac_cv_func_working_mktime+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497 if test "$cross_compiling" = yes; then
13498 ac_cv_func_working_mktime=no
13499 else
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 /* Test program from Paul Eggert and Tony Leneis. */
13507 #if TIME_WITH_SYS_TIME
13508 # include <sys/time.h>
13509 # include <time.h>
13510 #else
13511 # if HAVE_SYS_TIME_H
13512 # include <sys/time.h>
13513 # else
13514 # include <time.h>
13515 # endif
13516 #endif
13518 #if HAVE_STDLIB_H
13519 # include <stdlib.h>
13520 #endif
13522 #if HAVE_UNISTD_H
13523 # include <unistd.h>
13524 #endif
13526 #if !HAVE_ALARM
13527 # define alarm(X) /* empty */
13528 #endif
13530 /* Work around redefinition to rpl_putenv by other config tests. */
13531 #undef putenv
13533 static time_t time_t_max;
13534 static time_t time_t_min;
13536 /* Values we'll use to set the TZ environment variable. */
13537 static char *tz_strings[] = {
13538 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13539 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13541 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13543 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13544 Based on a problem report from Andreas Jaeger. */
13545 static int
13546 spring_forward_gap ()
13548 /* glibc (up to about 1998-10-07) failed this test. */
13549 struct tm tm;
13551 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13552 instead of "TZ=America/Vancouver" in order to detect the bug even
13553 on systems that don't support the Olson extension, or don't have the
13554 full zoneinfo tables installed. */
13555 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13557 tm.tm_year = 98;
13558 tm.tm_mon = 3;
13559 tm.tm_mday = 5;
13560 tm.tm_hour = 2;
13561 tm.tm_min = 0;
13562 tm.tm_sec = 0;
13563 tm.tm_isdst = -1;
13564 return mktime (&tm) != (time_t) -1;
13567 static int
13568 mktime_test1 (now)
13569 time_t now;
13571 struct tm *lt;
13572 return ! (lt = localtime (&now)) || mktime (lt) == now;
13575 static int
13576 mktime_test (now)
13577 time_t now;
13579 return (mktime_test1 (now)
13580 && mktime_test1 ((time_t) (time_t_max - now))
13581 && mktime_test1 ((time_t) (time_t_min + now)));
13584 static int
13585 irix_6_4_bug ()
13587 /* Based on code from Ariel Faigon. */
13588 struct tm tm;
13589 tm.tm_year = 96;
13590 tm.tm_mon = 3;
13591 tm.tm_mday = 0;
13592 tm.tm_hour = 0;
13593 tm.tm_min = 0;
13594 tm.tm_sec = 0;
13595 tm.tm_isdst = -1;
13596 mktime (&tm);
13597 return tm.tm_mon == 2 && tm.tm_mday == 31;
13600 static int
13601 bigtime_test (j)
13602 int j;
13604 struct tm tm;
13605 time_t now;
13606 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13607 now = mktime (&tm);
13608 if (now != (time_t) -1)
13610 struct tm *lt = localtime (&now);
13611 if (! (lt
13612 && lt->tm_year == tm.tm_year
13613 && lt->tm_mon == tm.tm_mon
13614 && lt->tm_mday == tm.tm_mday
13615 && lt->tm_hour == tm.tm_hour
13616 && lt->tm_min == tm.tm_min
13617 && lt->tm_sec == tm.tm_sec
13618 && lt->tm_yday == tm.tm_yday
13619 && lt->tm_wday == tm.tm_wday
13620 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13621 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13622 return 0;
13624 return 1;
13628 main ()
13630 time_t t, delta;
13631 int i, j;
13633 /* This test makes some buggy mktime implementations loop.
13634 Give up after 60 seconds; a mktime slower than that
13635 isn't worth using anyway. */
13636 alarm (60);
13638 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13639 continue;
13640 time_t_max--;
13641 if ((time_t) -1 < 0)
13642 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13643 continue;
13644 delta = time_t_max / 997; /* a suitable prime number */
13645 for (i = 0; i < N_STRINGS; i++)
13647 if (tz_strings[i])
13648 putenv (tz_strings[i]);
13650 for (t = 0; t <= time_t_max - delta; t += delta)
13651 if (! mktime_test (t))
13652 return 1;
13653 if (! (mktime_test ((time_t) 1)
13654 && mktime_test ((time_t) (60 * 60))
13655 && mktime_test ((time_t) (60 * 60 * 24))))
13656 return 1;
13658 for (j = 1; 0 < j; j *= 2)
13659 if (! bigtime_test (j))
13660 return 1;
13661 if (! bigtime_test (j - 1))
13662 return 1;
13664 return ! (irix_6_4_bug () && spring_forward_gap ());
13666 _ACEOF
13667 rm -f conftest$ac_exeext
13668 if { (ac_try="$ac_link"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_link") 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13678 { (case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_try") 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_func_working_mktime=yes
13688 else
13689 echo "$as_me: program exited with status $ac_status" >&5
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ( exit $ac_status )
13694 ac_cv_func_working_mktime=no
13696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13702 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
13703 if test $ac_cv_func_working_mktime = no; then
13704 case " $LIBOBJS " in
13705 *" mktime.$ac_objext "* ) ;;
13706 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13708 esac
13714 for ac_header in stdlib.h unistd.h
13716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 ac_res=`eval echo '${'$as_ac_Header'}'`
13724 { echo "$as_me:$LINENO: result: $ac_res" >&5
13725 echo "${ECHO_T}$ac_res" >&6; }
13726 else
13727 # Is the header compilable?
13728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 $ac_includes_default
13737 #include <$ac_header>
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (ac_try="$ac_compile"
13741 case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744 esac
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_compile") 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_try") 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_header_compiler=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_header_compiler=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13783 echo "${ECHO_T}$ac_header_compiler" >&6; }
13785 # Is the header present?
13786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 #include <$ac_header>
13795 _ACEOF
13796 if { (ac_try="$ac_cpp conftest.$ac_ext"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } >/dev/null; then
13809 if test -s conftest.err; then
13810 ac_cpp_err=$ac_c_preproc_warn_flag
13811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13812 else
13813 ac_cpp_err=
13815 else
13816 ac_cpp_err=yes
13818 if test -z "$ac_cpp_err"; then
13819 ac_header_preproc=yes
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_header_preproc=no
13827 rm -f conftest.err conftest.$ac_ext
13828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13829 echo "${ECHO_T}$ac_header_preproc" >&6; }
13831 # So? What about this header?
13832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13833 yes:no: )
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13838 ac_header_preproc=yes
13840 no:yes:* )
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13855 esac
13856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 eval "$as_ac_Header=\$ac_header_preproc"
13863 ac_res=`eval echo '${'$as_ac_Header'}'`
13864 { echo "$as_me:$LINENO: result: $ac_res" >&5
13865 echo "${ECHO_T}$ac_res" >&6; }
13868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13871 _ACEOF
13875 done
13878 for ac_func in getpagesize
13880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13907 #undef $ac_func
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 char $ac_func ();
13916 /* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919 #if defined __stub_$ac_func || defined __stub___$ac_func
13920 choke me
13921 #endif
13924 main ()
13926 return $ac_func ();
13928 return 0;
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try='test -s conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 eval "$as_ac_var=yes"
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 eval "$as_ac_var=no"
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13976 ac_res=`eval echo '${'$as_ac_var'}'`
13977 { echo "$as_me:$LINENO: result: $ac_res" >&5
13978 echo "${ECHO_T}$ac_res" >&6; }
13979 if test `eval echo '${'$as_ac_var'}'` = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982 _ACEOF
13985 done
13987 { echo "$as_me:$LINENO: checking for working mmap" >&5
13988 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13989 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 if test "$cross_compiling" = yes; then
13993 ac_cv_func_mmap_fixed_mapped=no
13994 else
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 /* malloc might have been renamed as rpl_malloc. */
14003 #undef malloc
14005 /* Thanks to Mike Haertel and Jim Avera for this test.
14006 Here is a matrix of mmap possibilities:
14007 mmap private not fixed
14008 mmap private fixed at somewhere currently unmapped
14009 mmap private fixed at somewhere already mapped
14010 mmap shared not fixed
14011 mmap shared fixed at somewhere currently unmapped
14012 mmap shared fixed at somewhere already mapped
14013 For private mappings, we should verify that changes cannot be read()
14014 back from the file, nor mmap's back from the file at a different
14015 address. (There have been systems where private was not correctly
14016 implemented like the infamous i386 svr4.0, and systems where the
14017 VM page cache was not coherent with the file system buffer cache
14018 like early versions of FreeBSD and possibly contemporary NetBSD.)
14019 For shared mappings, we should conversely verify that changes get
14020 propagated back to all the places they're supposed to be.
14022 Grep wants private fixed already mapped.
14023 The main things grep needs to know about mmap are:
14024 * does it exist and is it safe to write into the mmap'd area
14025 * how to use it (BSD variants) */
14027 #include <fcntl.h>
14028 #include <sys/mman.h>
14030 #if !STDC_HEADERS && !HAVE_STDLIB_H
14031 char *malloc ();
14032 #endif
14034 /* This mess was copied from the GNU getpagesize.h. */
14035 #if !HAVE_GETPAGESIZE
14036 /* Assume that all systems that can run configure have sys/param.h. */
14037 # if !HAVE_SYS_PARAM_H
14038 # define HAVE_SYS_PARAM_H 1
14039 # endif
14041 # ifdef _SC_PAGESIZE
14042 # define getpagesize() sysconf(_SC_PAGESIZE)
14043 # else /* no _SC_PAGESIZE */
14044 # if HAVE_SYS_PARAM_H
14045 # include <sys/param.h>
14046 # ifdef EXEC_PAGESIZE
14047 # define getpagesize() EXEC_PAGESIZE
14048 # else /* no EXEC_PAGESIZE */
14049 # ifdef NBPG
14050 # define getpagesize() NBPG * CLSIZE
14051 # ifndef CLSIZE
14052 # define CLSIZE 1
14053 # endif /* no CLSIZE */
14054 # else /* no NBPG */
14055 # ifdef NBPC
14056 # define getpagesize() NBPC
14057 # else /* no NBPC */
14058 # ifdef PAGESIZE
14059 # define getpagesize() PAGESIZE
14060 # endif /* PAGESIZE */
14061 # endif /* no NBPC */
14062 # endif /* no NBPG */
14063 # endif /* no EXEC_PAGESIZE */
14064 # else /* no HAVE_SYS_PARAM_H */
14065 # define getpagesize() 8192 /* punt totally */
14066 # endif /* no HAVE_SYS_PARAM_H */
14067 # endif /* no _SC_PAGESIZE */
14069 #endif /* no HAVE_GETPAGESIZE */
14072 main ()
14074 char *data, *data2, *data3;
14075 int i, pagesize;
14076 int fd;
14078 pagesize = getpagesize ();
14080 /* First, make a file with some known garbage in it. */
14081 data = (char *) malloc (pagesize);
14082 if (!data)
14083 return 1;
14084 for (i = 0; i < pagesize; ++i)
14085 *(data + i) = rand ();
14086 umask (0);
14087 fd = creat ("conftest.mmap", 0600);
14088 if (fd < 0)
14089 return 1;
14090 if (write (fd, data, pagesize) != pagesize)
14091 return 1;
14092 close (fd);
14094 /* Next, try to mmap the file at a fixed address which already has
14095 something else allocated at it. If we can, also make sure that
14096 we see the same garbage. */
14097 fd = open ("conftest.mmap", O_RDWR);
14098 if (fd < 0)
14099 return 1;
14100 data2 = (char *) malloc (2 * pagesize);
14101 if (!data2)
14102 return 1;
14103 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14104 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14105 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14106 return 1;
14107 for (i = 0; i < pagesize; ++i)
14108 if (*(data + i) != *(data2 + i))
14109 return 1;
14111 /* Finally, make sure that changes to the mapped area do not
14112 percolate back to the file as seen by read(). (This is a bug on
14113 some variants of i386 svr4.0.) */
14114 for (i = 0; i < pagesize; ++i)
14115 *(data2 + i) = *(data2 + i) + 1;
14116 data3 = (char *) malloc (pagesize);
14117 if (!data3)
14118 return 1;
14119 if (read (fd, data3, pagesize) != pagesize)
14120 return 1;
14121 for (i = 0; i < pagesize; ++i)
14122 if (*(data + i) != *(data3 + i))
14123 return 1;
14124 close (fd);
14125 return 0;
14127 _ACEOF
14128 rm -f conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 ac_cv_func_mmap_fixed_mapped=yes
14149 else
14150 echo "$as_me: program exited with status $ac_status" >&5
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ( exit $ac_status )
14155 ac_cv_func_mmap_fixed_mapped=no
14157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14162 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14163 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14164 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14166 cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_MMAP 1
14168 _ACEOF
14171 rm -f conftest.mmap
14175 for ac_header in sys/select.h sys/socket.h
14177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 ac_res=`eval echo '${'$as_ac_Header'}'`
14185 { echo "$as_me:$LINENO: result: $ac_res" >&5
14186 echo "${ECHO_T}$ac_res" >&6; }
14187 else
14188 # Is the header compilable?
14189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 #include <$ac_header>
14199 _ACEOF
14200 rm -f conftest.$ac_objext
14201 if { (ac_try="$ac_compile"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_compile") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_header_compiler=yes
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ac_header_compiler=no
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14244 echo "${ECHO_T}$ac_header_compiler" >&6; }
14246 # Is the header present?
14247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 #include <$ac_header>
14256 _ACEOF
14257 if { (ac_try="$ac_cpp conftest.$ac_ext"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } >/dev/null; then
14270 if test -s conftest.err; then
14271 ac_cpp_err=$ac_c_preproc_warn_flag
14272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14273 else
14274 ac_cpp_err=
14276 else
14277 ac_cpp_err=yes
14279 if test -z "$ac_cpp_err"; then
14280 ac_header_preproc=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_header_preproc=no
14288 rm -f conftest.err conftest.$ac_ext
14289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14290 echo "${ECHO_T}$ac_header_preproc" >&6; }
14292 # So? What about this header?
14293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14294 yes:no: )
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14299 ac_header_preproc=yes
14301 no:yes:* )
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14316 esac
14317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322 eval "$as_ac_Header=\$ac_header_preproc"
14324 ac_res=`eval echo '${'$as_ac_Header'}'`
14325 { echo "$as_me:$LINENO: result: $ac_res" >&5
14326 echo "${ECHO_T}$ac_res" >&6; }
14329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14330 cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 _ACEOF
14336 done
14338 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
14339 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
14340 if test "${ac_cv_func_select_args+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14344 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14345 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #if HAVE_SYS_SELECT_H
14354 # include <sys/select.h>
14355 #endif
14356 #if HAVE_SYS_SOCKET_H
14357 # include <sys/socket.h>
14358 #endif
14361 main ()
14363 extern int select ($ac_arg1,
14364 $ac_arg234, $ac_arg234, $ac_arg234,
14365 $ac_arg5);
14367 return 0;
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_compile") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 done
14414 done
14415 done
14416 # Provide a safe default value.
14417 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14420 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14421 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
14422 ac_save_IFS=$IFS; IFS=','
14423 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14424 IFS=$ac_save_IFS
14425 shift
14427 cat >>confdefs.h <<_ACEOF
14428 #define SELECT_TYPE_ARG1 $1
14429 _ACEOF
14432 cat >>confdefs.h <<_ACEOF
14433 #define SELECT_TYPE_ARG234 ($2)
14434 _ACEOF
14437 cat >>confdefs.h <<_ACEOF
14438 #define SELECT_TYPE_ARG5 ($3)
14439 _ACEOF
14441 rm -f conftest*
14443 { echo "$as_me:$LINENO: checking for function prototypes" >&5
14444 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
14445 if test "$ac_cv_prog_cc_c89" != no; then
14446 { echo "$as_me:$LINENO: result: yes" >&5
14447 echo "${ECHO_T}yes" >&6; }
14449 cat >>confdefs.h <<\_ACEOF
14450 #define PROTOTYPES 1
14451 _ACEOF
14454 cat >>confdefs.h <<\_ACEOF
14455 #define __PROTOTYPES 1
14456 _ACEOF
14458 else
14459 { echo "$as_me:$LINENO: result: no" >&5
14460 echo "${ECHO_T}no" >&6; }
14463 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
14464 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
14465 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468 ac_cv_func_setvbuf_reversed=no
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h. */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #include <stdio.h>
14476 # if PROTOTYPES
14477 int (setvbuf) (FILE *, int, char *, size_t);
14478 # endif
14480 main ()
14482 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
14484 return 0;
14486 _ACEOF
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (ac_try="$ac_link"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_link") 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14502 { (case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_try") 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; } &&
14511 { ac_try='test -s conftest$ac_exeext'
14512 { (case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_try") 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 #include <stdio.h>
14528 # if PROTOTYPES
14529 int (setvbuf) (FILE *, int, char *, size_t);
14530 # endif
14532 main ()
14534 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
14536 return 0;
14538 _ACEOF
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_link") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 # It compiles and links either way, so it must not be declared
14574 # with a prototype and most likely this is a K&R C compiler.
14575 # Try running it.
14576 if test "$cross_compiling" = yes; then
14577 : # Assume setvbuf is not reversed when cross-compiling.
14578 else
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14587 main ()
14589 /* This call has the arguments reversed.
14590 A reversed system may check and see that the address of buf
14591 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14592 char buf;
14593 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
14594 return 1;
14595 putchar ('\r');
14596 return 0; /* Non-reversed systems SEGV here. */
14598 return 0;
14600 _ACEOF
14601 rm -f conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_link") 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14612 { (case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_try") 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_func_setvbuf_reversed=yes
14622 else
14623 echo "$as_me: program exited with status $ac_status" >&5
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14632 ac_cv_func_setvbuf_reversed=yes
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14640 rm -f core conftest.err conftest.$ac_objext \
14641 conftest$ac_exeext conftest.$ac_ext
14642 else
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14649 rm -f core conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
14653 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
14654 if test $ac_cv_func_setvbuf_reversed = yes; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define SETVBUF_REVERSED 1
14658 _ACEOF
14662 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14663 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14664 if test "${ac_cv_type_signal+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 #include <sys/types.h>
14674 #include <signal.h>
14677 main ()
14679 return *(signal (0, 0)) (0) == 1;
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (ac_try="$ac_compile"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_compile") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14699 { (case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_try") 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_try") 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_type_signal=int
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_type_signal=void
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14729 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14731 cat >>confdefs.h <<_ACEOF
14732 #define RETSIGTYPE $ac_cv_type_signal
14733 _ACEOF
14736 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14737 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14738 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741 rm -f conftest.sym conftest.file
14742 echo >conftest.file
14743 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14744 if test "$cross_compiling" = yes; then
14745 ac_cv_func_lstat_dereferences_slashed_symlink=no
14746 else
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h. */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 $ac_includes_default
14755 main ()
14757 struct stat sbuf;
14758 /* Linux will dereference the symlink and fail.
14759 That is better in the sense that it means we will not
14760 have to compile and use the lstat wrapper. */
14761 return lstat ("conftest.sym/", &sbuf) == 0;
14763 return 0;
14765 _ACEOF
14766 rm -f conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14777 { (case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_try") 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14787 else
14788 echo "$as_me: program exited with status $ac_status" >&5
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ( exit $ac_status )
14793 ac_cv_func_lstat_dereferences_slashed_symlink=no
14795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14799 else
14800 # If the `ln -s' command failed, then we probably don't even
14801 # have an lstat function.
14802 ac_cv_func_lstat_dereferences_slashed_symlink=no
14804 rm -f conftest.sym conftest.file
14807 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14808 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14810 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14812 cat >>confdefs.h <<_ACEOF
14813 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14814 _ACEOF
14817 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14818 case " $LIBOBJS " in
14819 *" lstat.$ac_objext "* ) ;;
14820 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14822 esac
14826 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14827 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14828 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 if test "$cross_compiling" = yes; then
14832 ac_cv_func_stat_empty_string_bug=yes
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 $ac_includes_default
14842 main ()
14844 struct stat sbuf;
14845 return stat ("", &sbuf) == 0;
14847 return 0;
14849 _ACEOF
14850 rm -f conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_func_stat_empty_string_bug=no
14871 else
14872 echo "$as_me: program exited with status $ac_status" >&5
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 ( exit $ac_status )
14877 ac_cv_func_stat_empty_string_bug=yes
14879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14884 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14885 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14886 if test $ac_cv_func_stat_empty_string_bug = yes; then
14887 case " $LIBOBJS " in
14888 *" stat.$ac_objext "* ) ;;
14889 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14891 esac
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_STAT_EMPTY_STRING_BUG 1
14896 _ACEOF
14900 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14901 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14902 if test "${ac_cv_func_strcoll_works+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905 if test "$cross_compiling" = yes; then
14906 ac_cv_func_strcoll_works=no
14907 else
14908 cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h. */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 $ac_includes_default
14916 main ()
14918 return (strcoll ("abc", "def") >= 0 ||
14919 strcoll ("ABC", "DEF") >= 0 ||
14920 strcoll ("123", "456") >= 0)
14922 return 0;
14924 _ACEOF
14925 rm -f conftest$ac_exeext
14926 if { (ac_try="$ac_link"
14927 case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_link") 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14936 { (case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_try") 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_func_strcoll_works=yes
14946 else
14947 echo "$as_me: program exited with status $ac_status" >&5
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14951 ( exit $ac_status )
14952 ac_cv_func_strcoll_works=no
14954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14960 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14961 if test $ac_cv_func_strcoll_works = yes; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_STRCOLL 1
14965 _ACEOF
14970 for ac_func in strftime
14972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14986 #define $ac_func innocuous_$ac_func
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func (); below.
14990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14991 <limits.h> exists even on freestanding compilers. */
14993 #ifdef __STDC__
14994 # include <limits.h>
14995 #else
14996 # include <assert.h>
14997 #endif
14999 #undef $ac_func
15001 /* Override any GCC internal prototype to avoid an error.
15002 Use char because int might match the return type of a GCC
15003 builtin and then its argument prototype would still apply. */
15004 #ifdef __cplusplus
15005 extern "C"
15006 #endif
15007 char $ac_func ();
15008 /* The GNU C library defines this for functions which it implements
15009 to always fail with ENOSYS. Some functions are actually named
15010 something starting with __ and the normal name is an alias. */
15011 #if defined __stub_$ac_func || defined __stub___$ac_func
15012 choke me
15013 #endif
15016 main ()
15018 return $ac_func ();
15020 return 0;
15022 _ACEOF
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_link") 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 eval "$as_ac_var=yes"
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 eval "$as_ac_var=no"
15065 rm -f core conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15068 ac_res=`eval echo '${'$as_ac_var'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_var'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15074 _ACEOF
15076 else
15077 # strftime is in -lintl on SCO UNIX.
15078 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15079 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
15080 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 ac_check_lib_save_LIBS=$LIBS
15084 LIBS="-lintl $LIBS"
15085 cat >conftest.$ac_ext <<_ACEOF
15086 /* confdefs.h. */
15087 _ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h. */
15092 /* Override any GCC internal prototype to avoid an error.
15093 Use char because int might match the return type of a GCC
15094 builtin and then its argument prototype would still apply. */
15095 #ifdef __cplusplus
15096 extern "C"
15097 #endif
15098 char strftime ();
15100 main ()
15102 return strftime ();
15104 return 0;
15106 _ACEOF
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (ac_try="$ac_link"
15109 case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112 esac
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_link") 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15122 { (case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15125 esac
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127 (eval "$ac_try") 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest$ac_exeext'
15132 { (case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_try") 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_cv_lib_intl_strftime=yes
15142 else
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_lib_intl_strftime=no
15149 rm -f core conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15153 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15154 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
15155 if test $ac_cv_lib_intl_strftime = yes; then
15156 cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_STRFTIME 1
15158 _ACEOF
15160 LIBS="-lintl $LIBS"
15164 done
15166 { echo "$as_me:$LINENO: checking for working strnlen" >&5
15167 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
15168 if test "${ac_cv_func_strnlen_working+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 if test "$cross_compiling" = yes; then
15172 ac_cv_func_strnlen_working=no
15173 else
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h. */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 $ac_includes_default
15182 main ()
15185 #define S "foobar"
15186 #define S_LEN (sizeof S - 1)
15188 /* At least one implementation is buggy: that of AIX 4.3 would
15189 give strnlen (S, 1) == 3. */
15191 int i;
15192 for (i = 0; i < S_LEN + 1; ++i)
15194 int expected = i <= S_LEN ? i : S_LEN;
15195 if (strnlen (S, i) != expected)
15196 return 1;
15198 return 0;
15201 return 0;
15203 _ACEOF
15204 rm -f conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209 esac
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_link") 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_cv_func_strnlen_working=yes
15225 else
15226 echo "$as_me: program exited with status $ac_status" >&5
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ( exit $ac_status )
15231 ac_cv_func_strnlen_working=no
15233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
15239 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
15240 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
15241 *" strnlen.$ac_objext "* ) ;;
15242 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
15244 esac
15247 { echo "$as_me:$LINENO: checking for working strtod" >&5
15248 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
15249 if test "${ac_cv_func_strtod+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 if test "$cross_compiling" = yes; then
15253 ac_cv_func_strtod=no
15254 else
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15262 $ac_includes_default
15263 #ifndef strtod
15264 double strtod ();
15265 #endif
15267 main()
15270 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
15271 char *string = " +69";
15272 char *term;
15273 double value;
15274 value = strtod (string, &term);
15275 if (value != 69 || term != (string + 4))
15276 return 1;
15280 /* Under Solaris 2.4, strtod returns the wrong value for the
15281 terminating character under some conditions. */
15282 char *string = "NaN";
15283 char *term;
15284 strtod (string, &term);
15285 if (term != string && *(term - 1) == 0)
15286 return 1;
15288 return 0;
15291 _ACEOF
15292 rm -f conftest$ac_exeext
15293 if { (ac_try="$ac_link"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_link") 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_func_strtod=yes
15313 else
15314 echo "$as_me: program exited with status $ac_status" >&5
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ( exit $ac_status )
15319 ac_cv_func_strtod=no
15321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15326 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
15327 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
15328 if test $ac_cv_func_strtod = no; then
15329 case " $LIBOBJS " in
15330 *" strtod.$ac_objext "* ) ;;
15331 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15333 esac
15335 { echo "$as_me:$LINENO: checking for pow" >&5
15336 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
15337 if test "${ac_cv_func_pow+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
15347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15348 #define pow innocuous_pow
15350 /* System header to define __stub macros and hopefully few prototypes,
15351 which can conflict with char pow (); below.
15352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15353 <limits.h> exists even on freestanding compilers. */
15355 #ifdef __STDC__
15356 # include <limits.h>
15357 #else
15358 # include <assert.h>
15359 #endif
15361 #undef pow
15363 /* Override any GCC internal prototype to avoid an error.
15364 Use char because int might match the return type of a GCC
15365 builtin and then its argument prototype would still apply. */
15366 #ifdef __cplusplus
15367 extern "C"
15368 #endif
15369 char pow ();
15370 /* The GNU C library defines this for functions which it implements
15371 to always fail with ENOSYS. Some functions are actually named
15372 something starting with __ and the normal name is an alias. */
15373 #if defined __stub_pow || defined __stub___pow
15374 choke me
15375 #endif
15378 main ()
15380 return pow ();
15382 return 0;
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_link") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_func_pow=yes
15420 else
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_func_pow=no
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
15431 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
15433 if test $ac_cv_func_pow = no; then
15434 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
15435 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
15436 if test "${ac_cv_lib_m_pow+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439 ac_check_lib_save_LIBS=$LIBS
15440 LIBS="-lm $LIBS"
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 char pow ();
15456 main ()
15458 return pow ();
15460 return 0;
15462 _ACEOF
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (ac_try="$ac_link"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_link") 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15478 { (case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_try") 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_cv_lib_m_pow=yes
15498 else
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ac_cv_lib_m_pow=no
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15509 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
15510 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
15511 if test $ac_cv_lib_m_pow = yes; then
15512 POW_LIB=-lm
15513 else
15514 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
15515 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
15522 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15523 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
15524 if test "${ac_cv_func_utime_null+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527 rm -f conftest.data; >conftest.data
15528 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
15529 if test "$cross_compiling" = yes; then
15530 ac_cv_func_utime_null=no
15531 else
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h. */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538 $ac_includes_default
15540 main ()
15542 struct stat s, t;
15543 return ! (stat ("conftest.data", &s) == 0
15544 && utime ("conftest.data", 0) == 0
15545 && stat ("conftest.data", &t) == 0
15546 && t.st_mtime >= s.st_mtime
15547 && t.st_mtime - s.st_mtime < 120);
15549 return 0;
15551 _ACEOF
15552 rm -f conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15563 { (case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_try") 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_cv_func_utime_null=yes
15573 else
15574 echo "$as_me: program exited with status $ac_status" >&5
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ( exit $ac_status )
15579 ac_cv_func_utime_null=no
15581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15587 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15588 if test $ac_cv_func_utime_null = yes; then
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_UTIME_NULL 1
15592 _ACEOF
15595 rm -f conftest.data
15598 for ac_func in vprintf
15600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15614 #define $ac_func innocuous_$ac_func
15616 /* System header to define __stub macros and hopefully few prototypes,
15617 which can conflict with char $ac_func (); below.
15618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15619 <limits.h> exists even on freestanding compilers. */
15621 #ifdef __STDC__
15622 # include <limits.h>
15623 #else
15624 # include <assert.h>
15625 #endif
15627 #undef $ac_func
15629 /* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
15632 #ifdef __cplusplus
15633 extern "C"
15634 #endif
15635 char $ac_func ();
15636 /* The GNU C library defines this for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639 #if defined __stub_$ac_func || defined __stub___$ac_func
15640 choke me
15641 #endif
15644 main ()
15646 return $ac_func ();
15648 return 0;
15650 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_link") 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest$ac_exeext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 eval "$as_ac_var=yes"
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 eval "$as_ac_var=no"
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15696 ac_res=`eval echo '${'$as_ac_var'}'`
15697 { echo "$as_me:$LINENO: result: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15699 if test `eval echo '${'$as_ac_var'}'` = yes; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15702 _ACEOF
15704 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15705 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15706 if test "${ac_cv_func__doprnt+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h. */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15717 #define _doprnt innocuous__doprnt
15719 /* System header to define __stub macros and hopefully few prototypes,
15720 which can conflict with char _doprnt (); below.
15721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15722 <limits.h> exists even on freestanding compilers. */
15724 #ifdef __STDC__
15725 # include <limits.h>
15726 #else
15727 # include <assert.h>
15728 #endif
15730 #undef _doprnt
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 char _doprnt ();
15739 /* The GNU C library defines this for functions which it implements
15740 to always fail with ENOSYS. Some functions are actually named
15741 something starting with __ and the normal name is an alias. */
15742 #if defined __stub__doprnt || defined __stub____doprnt
15743 choke me
15744 #endif
15747 main ()
15749 return _doprnt ();
15751 return 0;
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_cv_func__doprnt=yes
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_cv_func__doprnt=no
15796 rm -f core conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15800 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15801 if test $ac_cv_func__doprnt = yes; then
15803 cat >>confdefs.h <<\_ACEOF
15804 #define HAVE_DOPRNT 1
15805 _ACEOF
15810 done
15862 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
15864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15878 #define $ac_func innocuous_$ac_func
15880 /* System header to define __stub macros and hopefully few prototypes,
15881 which can conflict with char $ac_func (); below.
15882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15883 <limits.h> exists even on freestanding compilers. */
15885 #ifdef __STDC__
15886 # include <limits.h>
15887 #else
15888 # include <assert.h>
15889 #endif
15891 #undef $ac_func
15893 /* Override any GCC internal prototype to avoid an error.
15894 Use char because int might match the return type of a GCC
15895 builtin and then its argument prototype would still apply. */
15896 #ifdef __cplusplus
15897 extern "C"
15898 #endif
15899 char $ac_func ();
15900 /* The GNU C library defines this for functions which it implements
15901 to always fail with ENOSYS. Some functions are actually named
15902 something starting with __ and the normal name is an alias. */
15903 #if defined __stub_$ac_func || defined __stub___$ac_func
15904 choke me
15905 #endif
15908 main ()
15910 return $ac_func ();
15912 return 0;
15914 _ACEOF
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (ac_try="$ac_link"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_link") 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15930 { (case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_try") 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest$ac_exeext'
15940 { (case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_try") 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 eval "$as_ac_var=yes"
15950 else
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 eval "$as_ac_var=no"
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15960 ac_res=`eval echo '${'$as_ac_var'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15963 if test `eval echo '${'$as_ac_var'}'` = yes; then
15964 cat >>confdefs.h <<_ACEOF
15965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15966 _ACEOF
15969 done
15972 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15973 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15974 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15975 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978 ac_func_search_save_LIBS=$LIBS
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15986 /* Override any GCC internal prototype to avoid an error.
15987 Use char because int might match the return type of a GCC
15988 builtin and then its argument prototype would still apply. */
15989 #ifdef __cplusplus
15990 extern "C"
15991 #endif
15992 char gethostbyname_r ();
15994 main ()
15996 return gethostbyname_r ();
15998 return 0;
16000 _ACEOF
16001 for ac_lib in '' socket nsl; do
16002 if test -z "$ac_lib"; then
16003 ac_res="none required"
16004 else
16005 ac_res=-l$ac_lib
16006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (ac_try="$ac_link"
16010 case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_link") 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest$ac_exeext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_cv_search_gethostbyname_r=$ac_res
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16050 rm -f core conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext
16052 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16053 break
16055 done
16056 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16058 else
16059 ac_cv_search_gethostbyname_r=no
16061 rm conftest.$ac_ext
16062 LIBS=$ac_func_search_save_LIBS
16064 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
16065 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
16066 ac_res=$ac_cv_search_gethostbyname_r
16067 if test "$ac_res" != no; then
16068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16073 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
16074 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
16075 cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h. */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <stdlib.h>
16082 #include <netdb.h>
16084 main ()
16086 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
16088 return 0;
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_try") 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 { echo "$as_me:$LINENO: result: yes" >&5
16126 echo "${ECHO_T}yes" >&6; }
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_GETHOSTBYNAME_R_6 1
16130 _ACEOF
16132 else
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 { echo "$as_me:$LINENO: result: no" >&5
16137 echo "${ECHO_T}no" >&6; }
16141 rm -f core conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
16145 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h. */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152 #include <stdlib.h>
16153 #include <netdb.h>
16155 main ()
16157 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16159 return 0;
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16177 { (case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_try") 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest$ac_exeext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 { echo "$as_me:$LINENO: result: yes" >&5
16197 echo "${ECHO_T}yes" >&6; }
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_GETHOSTBYNAME_R_5 1
16201 _ACEOF
16203 else
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 { echo "$as_me:$LINENO: result: no" >&5
16208 echo "${ECHO_T}no" >&6; }
16212 rm -f core conftest.err conftest.$ac_objext \
16213 conftest$ac_exeext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
16216 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 #include <pthread.h>
16225 main ()
16227 int foo = PTHREAD_RWLOCK_INITIALIZER;
16229 return 0;
16231 _ACEOF
16232 rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (ac_try="$ac_link"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_link") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16247 { (case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_try") 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest$ac_exeext'
16257 { (case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_try") 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 { echo "$as_me:$LINENO: result: yes" >&5
16267 echo "${ECHO_T}yes" >&6; }
16269 cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16271 _ACEOF
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 rm -f core conftest.err conftest.$ac_objext \
16283 conftest$ac_exeext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
16286 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <pthread.h>
16295 main ()
16297 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16299 return 0;
16301 _ACEOF
16302 rm -f conftest.$ac_objext conftest$ac_exeext
16303 if { (ac_try="$ac_link"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_link") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest$ac_exeext'
16327 { (case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_try") 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 { echo "$as_me:$LINENO: result: yes" >&5
16337 echo "${ECHO_T}yes" >&6; }
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16341 _ACEOF
16343 else
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 { echo "$as_me:$LINENO: result: no" >&5
16348 echo "${ECHO_T}no" >&6; }
16352 rm -f core conftest.err conftest.$ac_objext \
16353 conftest$ac_exeext conftest.$ac_ext
16355 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16356 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16365 main ()
16367 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16369 return 0;
16371 _ACEOF
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (ac_try="$ac_link"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_link") 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_try") 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 { echo "$as_me:$LINENO: result: yes" >&5
16407 echo "${ECHO_T}yes" >&6; }
16409 cat >>confdefs.h <<\_ACEOF
16410 #define HAVE_GCC_ATOMICS 1
16411 _ACEOF
16413 else
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 { echo "$as_me:$LINENO: result: no" >&5
16418 echo "${ECHO_T}no" >&6; }
16422 rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16426 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16427 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 static int __attribute__((pure)) test(void) {}
16436 main ()
16440 return 0;
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (ac_try="$ac_compile"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_compile") 2>conftest.er1
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16458 { (case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_try") 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest.$ac_objext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 { echo "$as_me:$LINENO: result: yes" >&5
16478 echo "${ECHO_T}yes" >&6; }
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_ATTRIBUTE_pure 1
16482 _ACEOF
16484 else
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 { echo "$as_me:$LINENO: result: no" >&5
16489 echo "${ECHO_T}no" >&6; }
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16496 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h. */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 static int __attribute__((malloc)) test(void) {}
16505 main ()
16509 return 0;
16511 _ACEOF
16512 rm -f conftest.$ac_objext
16513 if { (ac_try="$ac_compile"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_compile") 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 { echo "$as_me:$LINENO: result: yes" >&5
16547 echo "${ECHO_T}yes" >&6; }
16549 cat >>confdefs.h <<_ACEOF
16550 #define HAVE_ATTRIBUTE_malloc 1
16551 _ACEOF
16553 else
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16565 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16566 cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h. */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 static int __attribute__((const)) test(void) {}
16574 main ()
16578 return 0;
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 { echo "$as_me:$LINENO: result: yes" >&5
16616 echo "${ECHO_T}yes" >&6; }
16618 cat >>confdefs.h <<_ACEOF
16619 #define HAVE_ATTRIBUTE_const 1
16620 _ACEOF
16622 else
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 { echo "$as_me:$LINENO: result: no" >&5
16627 echo "${ECHO_T}no" >&6; }
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16634 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h. */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16641 static int __attribute__((unused)) test(void) {}
16643 main ()
16647 return 0;
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 { echo "$as_me:$LINENO: result: yes" >&5
16685 echo "${ECHO_T}yes" >&6; }
16687 cat >>confdefs.h <<_ACEOF
16688 #define HAVE_ATTRIBUTE_unused 1
16689 _ACEOF
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 { echo "$as_me:$LINENO: result: no" >&5
16696 echo "${ECHO_T}no" >&6; }
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16703 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 static int __attribute__((always_inline)) test(void) {}
16712 main ()
16716 return 0;
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 { echo "$as_me:$LINENO: result: yes" >&5
16754 echo "${ECHO_T}yes" >&6; }
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_ATTRIBUTE_always_inline 1
16758 _ACEOF
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 { echo "$as_me:$LINENO: result: no" >&5
16765 echo "${ECHO_T}no" >&6; }
16768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16772 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16773 cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h. */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 static int __attribute__((deprecated)) test(void) {}
16781 main ()
16785 return 0;
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (ac_try="$ac_compile"
16790 case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_compile") 2>conftest.er1
16796 ac_status=$?
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 { echo "$as_me:$LINENO: result: yes" >&5
16823 echo "${ECHO_T}yes" >&6; }
16825 cat >>confdefs.h <<_ACEOF
16826 #define HAVE_ATTRIBUTE_deprecated 1
16827 _ACEOF
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 { echo "$as_me:$LINENO: result: no" >&5
16834 echo "${ECHO_T}no" >&6; }
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
16841 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
16842 saved_CFLAGS="${CFLAGS}"
16843 CFLAGS="${CFLAGS} -ffunction-sections"
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16852 main ()
16854 int x = 1;
16856 return 0;
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_compile") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895 saved_LDFLAGS="${LDFLAGS}"
16896 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
16897 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
16898 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
16899 cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h. */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16907 main ()
16909 int x = 1;
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942 esac
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16950 GC_CFLAGS="-ffunction-sections"
16951 GC_LDFLAGS="-Wl,--gc-sections"
16952 else
16953 echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 { echo "$as_me:$LINENO: result: no" >&5
16957 echo "${ECHO_T}no" >&6; }
16961 rm -f core conftest.err conftest.$ac_objext \
16962 conftest$ac_exeext conftest.$ac_ext
16963 LDFLAGS="${saved_LDFLAGS}"
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 { echo "$as_me:$LINENO: result: no" >&5
16969 echo "${ECHO_T}no" >&6; }
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 CFLAGS="${saved_CFLAGS}"
16978 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
16979 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
16980 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
16981 { echo "$as_me:$LINENO: result: yes" >&5
16982 echo "${ECHO_T}yes" >&6; }
16983 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
16984 else
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16987 AST_DECLARATION_AFTER_STATEMENT=
16991 { echo "$as_me:$LINENO: checking for res_ninit" >&5
16992 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <resolv.h>
17001 main ()
17003 int foo = res_ninit(NULL);
17005 return 0;
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 { echo "$as_me:$LINENO: result: yes" >&5
17043 echo "${ECHO_T}yes" >&6; }
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_RES_NINIT 1
17047 _ACEOF
17049 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17050 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17051 cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h. */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 #include <resolv.h>
17059 main ()
17061 int foo = res_ndestroy(NULL);
17063 return 0;
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest$ac_exeext'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 { echo "$as_me:$LINENO: result: yes" >&5
17101 echo "${ECHO_T}yes" >&6; }
17103 cat >>confdefs.h <<\_ACEOF
17104 #define HAVE_RES_NDESTROY 1
17105 _ACEOF
17107 else
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 { echo "$as_me:$LINENO: result: no" >&5
17112 echo "${ECHO_T}no" >&6; }
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 { echo "$as_me:$LINENO: result: no" >&5
17123 echo "${ECHO_T}no" >&6; }
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17130 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
17131 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 #include <dlfcn.h>
17140 main ()
17142 int foo = RTLD_NOLOAD;
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162 { (case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_try") 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest$ac_exeext'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 { echo "$as_me:$LINENO: result: yes" >&5
17182 echo "${ECHO_T}yes" >&6; }
17184 cat >>confdefs.h <<\_ACEOF
17185 #define HAVE_RTLD_NOLOAD 1
17186 _ACEOF
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 { echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6; }
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17200 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
17201 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <netinet/in.h>
17210 main ()
17212 int foo = IP_MTU_DISCOVER;
17214 return 0;
17216 _ACEOF
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (ac_try="$ac_link"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_link") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest$ac_exeext'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 { echo "$as_me:$LINENO: result: yes" >&5
17252 echo "${ECHO_T}yes" >&6; }
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_IP_MTU_DISCOVER 1
17256 _ACEOF
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 { echo "$as_me:$LINENO: result: no" >&5
17263 echo "${ECHO_T}no" >&6; }
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17270 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17271 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17272 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17273 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17277 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17278 else
17279 # Is the header compilable?
17280 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17281 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 $ac_includes_default
17289 #include <libkern/OSAtomic.h>
17290 _ACEOF
17291 rm -f conftest.$ac_objext
17292 if { (ac_try="$ac_compile"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_compile") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_header_compiler=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_compiler=no
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6; }
17337 # Is the header present?
17338 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17339 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <libkern/OSAtomic.h>
17347 _ACEOF
17348 if { (ac_try="$ac_cpp conftest.$ac_ext"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } >/dev/null; then
17361 if test -s conftest.err; then
17362 ac_cpp_err=$ac_c_preproc_warn_flag
17363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17364 else
17365 ac_cpp_err=
17367 else
17368 ac_cpp_err=yes
17370 if test -z "$ac_cpp_err"; then
17371 ac_header_preproc=yes
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_header_preproc=no
17379 rm -f conftest.err conftest.$ac_ext
17380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17381 echo "${ECHO_T}$ac_header_preproc" >&6; }
17383 # So? What about this header?
17384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17385 yes:no: )
17386 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17387 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17389 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17390 ac_header_preproc=yes
17392 no:yes:* )
17393 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17394 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17396 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17397 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17398 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17399 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17400 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17402 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17404 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17407 esac
17408 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17409 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17410 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17415 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17416 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17419 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_OSX_ATOMICS 1
17423 _ACEOF
17429 { echo "$as_me:$LINENO: checking for int" >&5
17430 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17431 if test "${ac_cv_type_int+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 $ac_includes_default
17441 typedef int ac__type_new_;
17443 main ()
17445 if ((ac__type_new_ *) 0)
17446 return 0;
17447 if (sizeof (ac__type_new_))
17448 return 0;
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (ac_try="$ac_compile"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_compile") 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_type_int=yes
17488 else
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_type_int=no
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17498 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17500 { echo "$as_me:$LINENO: checking size of int" >&5
17501 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17502 if test "${ac_cv_sizeof_int+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505 if test "$ac_cv_type_int" = yes; then
17506 # The cast to long int works around a bug in the HP C Compiler
17507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17509 # This bug is HP SR number 8606223364.
17510 if test "$cross_compiling" = yes; then
17511 # Depending upon the size, compute the lo and hi bounds.
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17518 $ac_includes_default
17519 typedef int ac__type_sizeof_;
17521 main ()
17523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17524 test_array [0] = 0
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (ac_try="$ac_compile"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_compile") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest.$ac_objext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_lo=0 ac_mid=0
17565 while :; do
17566 cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h. */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 $ac_includes_default
17573 typedef int ac__type_sizeof_;
17575 main ()
17577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17578 test_array [0] = 0
17581 return 0;
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602 esac
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_hi=$ac_mid; break
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_lo=`expr $ac_mid + 1`
17624 if test $ac_lo -le $ac_mid; then
17625 ac_lo= ac_hi=
17626 break
17628 ac_mid=`expr 2 '*' $ac_mid + 1`
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 done
17633 else
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 $ac_includes_default
17644 typedef int ac__type_sizeof_;
17646 main ()
17648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17649 test_array [0] = 0
17652 return 0;
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try='test -s conftest.$ac_objext'
17680 { (case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_try") 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_hi=-1 ac_mid=-1
17690 while :; do
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 $ac_includes_default
17698 typedef int ac__type_sizeof_;
17700 main ()
17702 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17703 test_array [0] = 0
17706 return 0;
17708 _ACEOF
17709 rm -f conftest.$ac_objext
17710 if { (ac_try="$ac_compile"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_compile") 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_try") 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 ac_lo=$ac_mid; break
17744 else
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 ac_hi=`expr '(' $ac_mid ')' - 1`
17749 if test $ac_mid -le $ac_hi; then
17750 ac_lo= ac_hi=
17751 break
17753 ac_mid=`expr 2 '*' $ac_mid`
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757 done
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_lo= ac_hi=
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 # Binary search between lo and hi bounds.
17770 while test "x$ac_lo" != "x$ac_hi"; do
17771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
17779 typedef int ac__type_sizeof_;
17781 main ()
17783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17784 test_array [0] = 0
17787 return 0;
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_hi=$ac_mid
17825 else
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_lo=`expr '(' $ac_mid ')' + 1`
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 done
17834 case $ac_lo in
17835 ?*) ac_cv_sizeof_int=$ac_lo;;
17836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17837 See \`config.log' for more details." >&5
17838 echo "$as_me: error: cannot compute sizeof (int)
17839 See \`config.log' for more details." >&2;}
17840 { (exit 77); exit 77; }; } ;;
17841 esac
17842 else
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 typedef int ac__type_sizeof_;
17851 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
17852 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
17853 #include <stdio.h>
17854 #include <stdlib.h>
17856 main ()
17859 FILE *f = fopen ("conftest.val", "w");
17860 if (! f)
17861 return 1;
17862 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
17864 long int i = longval ();
17865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17866 return 1;
17867 fprintf (f, "%ld\n", i);
17869 else
17871 unsigned long int i = ulongval ();
17872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17873 return 1;
17874 fprintf (f, "%lu\n", i);
17876 return ferror (f) || fclose (f) != 0;
17879 return 0;
17881 _ACEOF
17882 rm -f conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_sizeof_int=`cat conftest.val`
17903 else
17904 echo "$as_me: program exited with status $ac_status" >&5
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ( exit $ac_status )
17909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17910 See \`config.log' for more details." >&5
17911 echo "$as_me: error: cannot compute sizeof (int)
17912 See \`config.log' for more details." >&2;}
17913 { (exit 77); exit 77; }; }
17915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17917 rm -f conftest.val
17918 else
17919 ac_cv_sizeof_int=0
17922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17923 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
17924 cat >>confdefs.h <<_ACEOF
17925 #define SIZEOF_INT $ac_cv_sizeof_int
17926 _ACEOF
17930 # do the package library checks now
17933 if test "${USE_ALSA}" != "no"; then
17934 pbxlibdir=""
17935 if test "x${ALSA_DIR}" != "x"; then
17936 if test -d ${ALSA_DIR}/lib; then
17937 pbxlibdir="-L${ALSA_DIR}/lib"
17938 else
17939 pbxlibdir="-L${ALSA_DIR}"
17942 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
17943 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
17944 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947 ac_check_lib_save_LIBS=$LIBS
17948 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h. */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char snd_spcm_init ();
17964 main ()
17966 return snd_spcm_init ();
17968 return 0;
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (ac_try="$ac_link"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_link") 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_asound_snd_spcm_init=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 ac_cv_lib_asound_snd_spcm_init=no
18013 rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18017 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
18018 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
18019 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
18020 AST_ALSA_FOUND=yes
18021 else
18022 AST_ALSA_FOUND=no
18026 if test "${AST_ALSA_FOUND}" = "yes"; then
18027 ALSA_LIB="-lasound -lm -ldl"
18028 ALSA_HEADER_FOUND="1"
18029 if test "x${ALSA_DIR}" != "x"; then
18030 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
18031 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18032 saved_cppflags="${CPPFLAGS}"
18033 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
18034 if test "xalsa/asoundlib.h" != "x" ; then
18035 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
18036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18037 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18038 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18042 ac_res=`eval echo '${'$as_ac_Header'}'`
18043 { echo "$as_me:$LINENO: result: $ac_res" >&5
18044 echo "${ECHO_T}$ac_res" >&6; }
18045 else
18046 # Is the header compilable?
18047 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
18048 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 $ac_includes_default
18056 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (ac_try="$ac_compile"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_compile") 2>conftest.er1
18066 ac_status=$?
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18073 { (case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18076 esac
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_try") 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try='test -s conftest.$ac_objext'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 ac_header_compiler=yes
18093 else
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 ac_header_compiler=no
18100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18102 echo "${ECHO_T}$ac_header_compiler" >&6; }
18104 # Is the header present?
18105 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
18106 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18114 _ACEOF
18115 if { (ac_try="$ac_cpp conftest.$ac_ext"
18116 case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } >/dev/null; then
18128 if test -s conftest.err; then
18129 ac_cpp_err=$ac_c_preproc_warn_flag
18130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18131 else
18132 ac_cpp_err=
18134 else
18135 ac_cpp_err=yes
18137 if test -z "$ac_cpp_err"; then
18138 ac_header_preproc=yes
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_header_preproc=no
18146 rm -f conftest.err conftest.$ac_ext
18147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18148 echo "${ECHO_T}$ac_header_preproc" >&6; }
18150 # So? What about this header?
18151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18152 yes:no: )
18153 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18154 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18155 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
18156 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18157 ac_header_preproc=yes
18159 no:yes:* )
18160 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
18161 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18163 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
18165 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18167 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18168 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18169 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18171 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18174 esac
18175 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18176 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180 eval "$as_ac_Header=\$ac_header_preproc"
18182 ac_res=`eval echo '${'$as_ac_Header'}'`
18183 { echo "$as_me:$LINENO: result: $ac_res" >&5
18184 echo "${ECHO_T}$ac_res" >&6; }
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188 ALSA_HEADER_FOUND=1
18189 else
18190 ALSA_HEADER_FOUND=0
18195 CPPFLAGS="${saved_cppflags}"
18196 else
18197 if test "xalsa/asoundlib.h" != "x" ; then
18198 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18199 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18200 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18201 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18205 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18206 else
18207 # Is the header compilable?
18208 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18209 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18216 $ac_includes_default
18217 #include <alsa/asoundlib.h>
18218 _ACEOF
18219 rm -f conftest.$ac_objext
18220 if { (ac_try="$ac_compile"
18221 case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_compile") 2>conftest.er1
18227 ac_status=$?
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18234 { (case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_try") 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 ac_header_compiler=yes
18254 else
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 ac_header_compiler=no
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18263 echo "${ECHO_T}$ac_header_compiler" >&6; }
18265 # Is the header present?
18266 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18267 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 #include <alsa/asoundlib.h>
18275 _ACEOF
18276 if { (ac_try="$ac_cpp conftest.$ac_ext"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } >/dev/null; then
18289 if test -s conftest.err; then
18290 ac_cpp_err=$ac_c_preproc_warn_flag
18291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18292 else
18293 ac_cpp_err=
18295 else
18296 ac_cpp_err=yes
18298 if test -z "$ac_cpp_err"; then
18299 ac_header_preproc=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_preproc=no
18307 rm -f conftest.err conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18309 echo "${ECHO_T}$ac_header_preproc" >&6; }
18311 # So? What about this header?
18312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18313 yes:no: )
18314 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18315 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18317 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18318 ac_header_preproc=yes
18320 no:yes:* )
18321 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18322 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18323 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18324 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18325 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18326 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18328 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18330 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18332 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18335 esac
18336 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18337 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18338 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18343 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18344 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18347 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18348 ALSA_HEADER_FOUND=1
18349 else
18350 ALSA_HEADER_FOUND=0
18356 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18357 if test -n "${ALSA_MANDATORY}" ;
18358 then
18359 { echo "$as_me:$LINENO: ***" >&5
18360 echo "$as_me: ***" >&6;}
18361 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
18362 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
18363 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
18364 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
18365 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18366 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18367 exit 1
18369 ALSA_LIB=""
18370 ALSA_INCLUDE=""
18371 PBX_ALSA=0
18372 else
18373 PBX_ALSA=1
18375 cat >>confdefs.h <<_ACEOF
18376 #define HAVE_ALSA 1
18377 _ACEOF
18380 elif test -n "${ALSA_MANDATORY}";
18381 then
18382 { echo "$as_me:$LINENO: ***" >&5
18383 echo "$as_me: ***" >&6;}
18384 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
18385 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
18386 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18387 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18388 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18389 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18390 exit 1
18396 if test "${USE_CURSES}" != "no"; then
18397 pbxlibdir=""
18398 if test "x${CURSES_DIR}" != "x"; then
18399 if test -d ${CURSES_DIR}/lib; then
18400 pbxlibdir="-L${CURSES_DIR}/lib"
18401 else
18402 pbxlibdir="-L${CURSES_DIR}"
18405 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
18406 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
18407 if test "${ac_cv_lib_curses_initscr+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410 ac_check_lib_save_LIBS=$LIBS
18411 LIBS="-lcurses ${pbxlibdir} $LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18419 /* Override any GCC internal prototype to avoid an error.
18420 Use char because int might match the return type of a GCC
18421 builtin and then its argument prototype would still apply. */
18422 #ifdef __cplusplus
18423 extern "C"
18424 #endif
18425 char initscr ();
18427 main ()
18429 return initscr ();
18431 return 0;
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } &&
18448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18449 { (case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_try") 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_try") 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_lib_curses_initscr=yes
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_lib_curses_initscr=no
18476 rm -f core conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18478 LIBS=$ac_check_lib_save_LIBS
18480 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
18481 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
18482 if test $ac_cv_lib_curses_initscr = yes; then
18483 AST_CURSES_FOUND=yes
18484 else
18485 AST_CURSES_FOUND=no
18489 if test "${AST_CURSES_FOUND}" = "yes"; then
18490 CURSES_LIB="-lcurses "
18491 CURSES_HEADER_FOUND="1"
18492 if test "x${CURSES_DIR}" != "x"; then
18493 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
18494 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18495 saved_cppflags="${CPPFLAGS}"
18496 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
18497 if test "xcurses.h" != "x" ; then
18498 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
18499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18500 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18501 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 ac_res=`eval echo '${'$as_ac_Header'}'`
18506 { echo "$as_me:$LINENO: result: $ac_res" >&5
18507 echo "${ECHO_T}$ac_res" >&6; }
18508 else
18509 # Is the header compilable?
18510 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
18511 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 $ac_includes_default
18519 #include <${CURSES_DIR}/include/curses.h>
18520 _ACEOF
18521 rm -f conftest.$ac_objext
18522 if { (ac_try="$ac_compile"
18523 case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_compile") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_header_compiler=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_header_compiler=no
18563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18565 echo "${ECHO_T}$ac_header_compiler" >&6; }
18567 # Is the header present?
18568 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
18569 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <${CURSES_DIR}/include/curses.h>
18577 _ACEOF
18578 if { (ac_try="$ac_cpp conftest.$ac_ext"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18582 esac
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } >/dev/null; then
18591 if test -s conftest.err; then
18592 ac_cpp_err=$ac_c_preproc_warn_flag
18593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18594 else
18595 ac_cpp_err=
18597 else
18598 ac_cpp_err=yes
18600 if test -z "$ac_cpp_err"; then
18601 ac_header_preproc=yes
18602 else
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_header_preproc=no
18609 rm -f conftest.err conftest.$ac_ext
18610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18611 echo "${ECHO_T}$ac_header_preproc" >&6; }
18613 # So? What about this header?
18614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18615 yes:no: )
18616 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18617 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
18619 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
18620 ac_header_preproc=yes
18622 no:yes:* )
18623 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
18624 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
18626 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
18628 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
18630 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
18632 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
18634 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
18637 esac
18638 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18639 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643 eval "$as_ac_Header=\$ac_header_preproc"
18645 ac_res=`eval echo '${'$as_ac_Header'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18651 CURSES_HEADER_FOUND=1
18652 else
18653 CURSES_HEADER_FOUND=0
18658 CPPFLAGS="${saved_cppflags}"
18659 else
18660 if test "xcurses.h" != "x" ; then
18661 if test "${ac_cv_header_curses_h+set}" = set; then
18662 { echo "$as_me:$LINENO: checking for curses.h" >&5
18663 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18664 if test "${ac_cv_header_curses_h+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18668 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18669 else
18670 # Is the header compilable?
18671 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18672 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $ac_includes_default
18680 #include <curses.h>
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest.$ac_objext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_header_compiler=yes
18717 else
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_header_compiler=no
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18726 echo "${ECHO_T}$ac_header_compiler" >&6; }
18728 # Is the header present?
18729 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18730 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 #include <curses.h>
18738 _ACEOF
18739 if { (ac_try="$ac_cpp conftest.$ac_ext"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } >/dev/null; then
18752 if test -s conftest.err; then
18753 ac_cpp_err=$ac_c_preproc_warn_flag
18754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18755 else
18756 ac_cpp_err=
18758 else
18759 ac_cpp_err=yes
18761 if test -z "$ac_cpp_err"; then
18762 ac_header_preproc=yes
18763 else
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 ac_header_preproc=no
18770 rm -f conftest.err conftest.$ac_ext
18771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18772 echo "${ECHO_T}$ac_header_preproc" >&6; }
18774 # So? What about this header?
18775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18776 yes:no: )
18777 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18778 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18779 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18780 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18781 ac_header_preproc=yes
18783 no:yes:* )
18784 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18785 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18786 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18787 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18788 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18789 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18790 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18791 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18793 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18795 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18798 esac
18799 { echo "$as_me:$LINENO: checking for curses.h" >&5
18800 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18801 if test "${ac_cv_header_curses_h+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804 ac_cv_header_curses_h=$ac_header_preproc
18806 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18807 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18810 if test $ac_cv_header_curses_h = yes; then
18811 CURSES_HEADER_FOUND=1
18812 else
18813 CURSES_HEADER_FOUND=0
18819 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18820 if test -n "${CURSES_MANDATORY}" ;
18821 then
18822 { echo "$as_me:$LINENO: ***" >&5
18823 echo "$as_me: ***" >&6;}
18824 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
18825 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
18826 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
18827 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
18828 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
18829 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
18830 exit 1
18832 CURSES_LIB=""
18833 CURSES_INCLUDE=""
18834 PBX_CURSES=0
18835 else
18836 PBX_CURSES=1
18838 cat >>confdefs.h <<_ACEOF
18839 #define HAVE_CURSES 1
18840 _ACEOF
18843 elif test -n "${CURSES_MANDATORY}";
18844 then
18845 { echo "$as_me:$LINENO: ***" >&5
18846 echo "$as_me: ***" >&6;}
18847 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
18848 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
18849 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18850 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18851 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
18852 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
18853 exit 1
18858 GSM_INTERNAL="yes"
18860 GSM_SYSTEM="yes"
18861 if test "${USE_GSM}" != "no"; then
18862 if test "${GSM_DIR}" = "internal"; then
18863 GSM_SYSTEM="no"
18864 elif test "${GSM_DIR}" != ""; then
18865 GSM_INTERNAL="no"
18867 if test "${GSM_SYSTEM}" = "yes"; then
18868 gsmlibdir=""
18869 if test "x${GSM_DIR}" != "x"; then
18870 if test -d ${GSM_DIR}/lib; then
18871 gsmlibdir="-L${GSM_DIR}/lib"
18872 else
18873 gsmlibdir="-L${GSM_DIR}"
18876 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
18877 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
18878 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 ac_check_lib_save_LIBS=$LIBS
18882 LIBS="-lgsm ${gsmlibdir} $LIBS"
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h. */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18890 /* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char gsm_create ();
18898 main ()
18900 return gsm_create ();
18902 return 0;
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_gsm_gsm_create=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_gsm_gsm_create=no
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 LIBS=$ac_check_lib_save_LIBS
18951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
18952 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
18953 if test $ac_cv_lib_gsm_gsm_create = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define HAVE_GSM 1
18957 _ACEOF
18961 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
18962 if test "x${GSM_DIR}" != "x" ; then
18963 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
18964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18965 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
18966 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
18967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 ac_res=`eval echo '${'$as_ac_Header'}'`
18971 { echo "$as_me:$LINENO: result: $ac_res" >&5
18972 echo "${ECHO_T}$ac_res" >&6; }
18973 else
18974 # Is the header compilable?
18975 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
18976 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 $ac_includes_default
18984 #include <${GSM_DIR}/include/gsm.h>
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_header_compiler=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_header_compiler=no
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19030 echo "${ECHO_T}$ac_header_compiler" >&6; }
19032 # Is the header present?
19033 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
19034 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 #include <${GSM_DIR}/include/gsm.h>
19042 _ACEOF
19043 if { (ac_try="$ac_cpp conftest.$ac_ext"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } >/dev/null; then
19056 if test -s conftest.err; then
19057 ac_cpp_err=$ac_c_preproc_warn_flag
19058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19059 else
19060 ac_cpp_err=
19062 else
19063 ac_cpp_err=yes
19065 if test -z "$ac_cpp_err"; then
19066 ac_header_preproc=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_preproc=no
19074 rm -f conftest.err conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19076 echo "${ECHO_T}$ac_header_preproc" >&6; }
19078 # So? What about this header?
19079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19080 yes:no: )
19081 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19082 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19083 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
19084 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
19085 ac_header_preproc=yes
19087 no:yes:* )
19088 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
19089 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
19091 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
19093 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
19094 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19095 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19096 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
19097 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
19098 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
19099 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
19102 esac
19103 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
19104 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 eval "$as_ac_Header=\$ac_header_preproc"
19110 ac_res=`eval echo '${'$as_ac_Header'}'`
19111 { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19116 GSM_HEADER_FOUND=1
19117 else
19118 GSM_HEADER_FOUND=0
19122 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
19123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19124 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
19125 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_res=`eval echo '${'$as_ac_Header'}'`
19130 { echo "$as_me:$LINENO: result: $ac_res" >&5
19131 echo "${ECHO_T}$ac_res" >&6; }
19132 else
19133 # Is the header compilable?
19134 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
19135 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 $ac_includes_default
19143 #include <${GSM_DIR}/include/gsm/gsm.h>
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_try") 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_header_compiler=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_header_compiler=no
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189 echo "${ECHO_T}$ac_header_compiler" >&6; }
19191 # Is the header present?
19192 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
19193 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 #include <${GSM_DIR}/include/gsm/gsm.h>
19201 _ACEOF
19202 if { (ac_try="$ac_cpp conftest.$ac_ext"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } >/dev/null; then
19215 if test -s conftest.err; then
19216 ac_cpp_err=$ac_c_preproc_warn_flag
19217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19218 else
19219 ac_cpp_err=
19221 else
19222 ac_cpp_err=yes
19224 if test -z "$ac_cpp_err"; then
19225 ac_header_preproc=yes
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_header_preproc=no
19233 rm -f conftest.err conftest.$ac_ext
19234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6; }
19237 # So? What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239 yes:no: )
19240 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
19244 ac_header_preproc=yes
19246 no:yes:* )
19247 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
19261 esac
19262 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
19263 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
19264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 eval "$as_ac_Header=\$ac_header_preproc"
19269 ac_res=`eval echo '${'$as_ac_Header'}'`
19270 { echo "$as_me:$LINENO: result: $ac_res" >&5
19271 echo "${ECHO_T}$ac_res" >&6; }
19274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19275 GSM_GSM_HEADER_FOUND=1
19276 else
19277 GSM_GSM_HEADER_FOUND=0
19281 else
19282 if test "${ac_cv_header_gsm_h+set}" = set; then
19283 { echo "$as_me:$LINENO: checking for gsm.h" >&5
19284 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
19285 if test "${ac_cv_header_gsm_h+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
19289 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
19290 else
19291 # Is the header compilable?
19292 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
19293 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 $ac_includes_default
19301 #include <gsm.h>
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_compile") 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_header_compiler=yes
19338 else
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_header_compiler=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347 echo "${ECHO_T}$ac_header_compiler" >&6; }
19349 # Is the header present?
19350 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
19351 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <gsm.h>
19359 _ACEOF
19360 if { (ac_try="$ac_cpp conftest.$ac_ext"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } >/dev/null; then
19373 if test -s conftest.err; then
19374 ac_cpp_err=$ac_c_preproc_warn_flag
19375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19376 else
19377 ac_cpp_err=
19379 else
19380 ac_cpp_err=yes
19382 if test -z "$ac_cpp_err"; then
19383 ac_header_preproc=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_preproc=no
19391 rm -f conftest.err conftest.$ac_ext
19392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19393 echo "${ECHO_T}$ac_header_preproc" >&6; }
19395 # So? What about this header?
19396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19397 yes:no: )
19398 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19399 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
19401 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
19402 ac_header_preproc=yes
19404 no:yes:* )
19405 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
19406 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
19408 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
19410 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19412 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
19416 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
19419 esac
19420 { echo "$as_me:$LINENO: checking for gsm.h" >&5
19421 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
19422 if test "${ac_cv_header_gsm_h+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425 ac_cv_header_gsm_h=$ac_header_preproc
19427 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
19428 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
19431 if test $ac_cv_header_gsm_h = yes; then
19432 GSM_HEADER_FOUND=1
19433 else
19434 GSM_HEADER_FOUND=0
19438 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
19439 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
19440 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
19441 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
19445 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
19446 else
19447 # Is the header compilable?
19448 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
19449 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 $ac_includes_default
19457 #include <gsm/gsm.h>
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (ac_try="$ac_compile"
19461 case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest.$ac_objext'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_header_compiler=yes
19494 else
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_header_compiler=no
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6; }
19505 # Is the header present?
19506 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
19507 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <gsm/gsm.h>
19515 _ACEOF
19516 if { (ac_try="$ac_cpp conftest.$ac_ext"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } >/dev/null; then
19529 if test -s conftest.err; then
19530 ac_cpp_err=$ac_c_preproc_warn_flag
19531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19532 else
19533 ac_cpp_err=
19535 else
19536 ac_cpp_err=yes
19538 if test -z "$ac_cpp_err"; then
19539 ac_header_preproc=yes
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_header_preproc=no
19547 rm -f conftest.err conftest.$ac_ext
19548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19549 echo "${ECHO_T}$ac_header_preproc" >&6; }
19551 # So? What about this header?
19552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19553 yes:no: )
19554 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19555 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
19557 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
19558 ac_header_preproc=yes
19560 no:yes:* )
19561 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
19562 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
19564 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
19566 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19568 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19569 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
19570 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
19572 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
19575 esac
19576 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
19577 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
19578 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581 ac_cv_header_gsm_gsm_h=$ac_header_preproc
19583 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
19584 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
19587 if test $ac_cv_header_gsm_gsm_h = yes; then
19588 GSM_GSM_HEADER_FOUND=1
19589 else
19590 GSM_GSM_HEADER_FOUND=0
19595 if test "${GSM_HEADER_FOUND}" = "0" ; then
19596 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
19597 if test "x${GSM_MANDATORY}" = "xyes" ; then
19598 { echo "$as_me:$LINENO: ***" >&5
19599 echo "$as_me: ***" >&6;}
19600 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
19601 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
19602 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
19603 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
19604 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
19605 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
19606 exit 1
19610 GSM_OK=0
19611 if test "${GSM_HEADER_FOUND}" = "1" ; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define HAVE_GSM_HEADER 1
19615 _ACEOF
19617 GSM_OK=1
19618 else
19619 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
19621 cat >>confdefs.h <<_ACEOF
19622 #define HAVE_GSM_GSM_HEADER 1
19623 _ACEOF
19625 GSM_OK=1
19628 if test "${GSM_OK}" = "1" ; then
19629 GSM_LIB="-lgsm"
19630 if test "x${GSM_DIR}" != "x"; then
19631 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
19632 GSM_INCLUDE="-I${GSM_DIR}/include"
19634 PBX_GSM=1
19635 GSM_INTERNAL="no"
19639 if test "${GSM_INTERNAL}" = "yes"; then
19640 PBX_GSM=1
19642 cat >>confdefs.h <<_ACEOF
19643 #define HAVE_GSM_HEADER 1
19644 _ACEOF
19650 if test "${USE_IKSEMEL}" != "no"; then
19651 pbxlibdir=""
19652 if test "x${IKSEMEL_DIR}" != "x"; then
19653 if test -d ${IKSEMEL_DIR}/lib; then
19654 pbxlibdir="-L${IKSEMEL_DIR}/lib"
19655 else
19656 pbxlibdir="-L${IKSEMEL_DIR}"
19659 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
19660 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-liksemel ${pbxlibdir} $LIBS"
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. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char iks_start_sasl ();
19681 main ()
19683 return iks_start_sasl ();
19685 return 0;
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest$ac_exeext'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_lib_iksemel_iks_start_sasl=yes
19723 else
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 ac_cv_lib_iksemel_iks_start_sasl=no
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19734 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
19735 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
19736 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
19737 AST_IKSEMEL_FOUND=yes
19738 else
19739 AST_IKSEMEL_FOUND=no
19743 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
19744 IKSEMEL_LIB="-liksemel "
19745 IKSEMEL_HEADER_FOUND="1"
19746 if test "x${IKSEMEL_DIR}" != "x"; then
19747 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
19748 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
19749 saved_cppflags="${CPPFLAGS}"
19750 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
19751 if test "xiksemel.h" != "x" ; then
19752 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
19753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19754 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
19755 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
19756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 ac_res=`eval echo '${'$as_ac_Header'}'`
19760 { echo "$as_me:$LINENO: result: $ac_res" >&5
19761 echo "${ECHO_T}$ac_res" >&6; }
19762 else
19763 # Is the header compilable?
19764 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
19765 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 $ac_includes_default
19773 #include <${IKSEMEL_DIR}/include/iksemel.h>
19774 _ACEOF
19775 rm -f conftest.$ac_objext
19776 if { (ac_try="$ac_compile"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_compile") 2>conftest.er1
19783 ac_status=$?
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19790 { (case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_try") 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_header_compiler=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_header_compiler=no
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819 echo "${ECHO_T}$ac_header_compiler" >&6; }
19821 # Is the header present?
19822 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
19823 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <${IKSEMEL_DIR}/include/iksemel.h>
19831 _ACEOF
19832 if { (ac_try="$ac_cpp conftest.$ac_ext"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } >/dev/null; then
19845 if test -s conftest.err; then
19846 ac_cpp_err=$ac_c_preproc_warn_flag
19847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19848 else
19849 ac_cpp_err=
19851 else
19852 ac_cpp_err=yes
19854 if test -z "$ac_cpp_err"; then
19855 ac_header_preproc=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_header_preproc=no
19863 rm -f conftest.err conftest.$ac_ext
19864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19865 echo "${ECHO_T}$ac_header_preproc" >&6; }
19867 # So? What about this header?
19868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19869 yes:no: )
19870 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
19871 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
19873 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
19874 ac_header_preproc=yes
19876 no:yes:* )
19877 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
19878 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
19880 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
19882 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
19884 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
19886 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
19888 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
19891 esac
19892 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
19893 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
19894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897 eval "$as_ac_Header=\$ac_header_preproc"
19899 ac_res=`eval echo '${'$as_ac_Header'}'`
19900 { echo "$as_me:$LINENO: result: $ac_res" >&5
19901 echo "${ECHO_T}$ac_res" >&6; }
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 IKSEMEL_HEADER_FOUND=1
19906 else
19907 IKSEMEL_HEADER_FOUND=0
19912 CPPFLAGS="${saved_cppflags}"
19913 else
19914 if test "xiksemel.h" != "x" ; then
19915 if test "${ac_cv_header_iksemel_h+set}" = set; then
19916 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
19917 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
19918 if test "${ac_cv_header_iksemel_h+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
19922 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
19923 else
19924 # Is the header compilable?
19925 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
19926 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 $ac_includes_default
19934 #include <iksemel.h>
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_header_compiler=yes
19971 else
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_header_compiler=no
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980 echo "${ECHO_T}$ac_header_compiler" >&6; }
19982 # Is the header present?
19983 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
19984 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <iksemel.h>
19992 _ACEOF
19993 if { (ac_try="$ac_cpp conftest.$ac_ext"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } >/dev/null; then
20006 if test -s conftest.err; then
20007 ac_cpp_err=$ac_c_preproc_warn_flag
20008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20009 else
20010 ac_cpp_err=
20012 else
20013 ac_cpp_err=yes
20015 if test -z "$ac_cpp_err"; then
20016 ac_header_preproc=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030 yes:no: )
20031 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20037 no:yes:* )
20038 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
20052 esac
20053 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
20054 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
20055 if test "${ac_cv_header_iksemel_h+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 ac_cv_header_iksemel_h=$ac_header_preproc
20060 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
20061 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
20064 if test $ac_cv_header_iksemel_h = yes; then
20065 IKSEMEL_HEADER_FOUND=1
20066 else
20067 IKSEMEL_HEADER_FOUND=0
20073 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
20074 if test -n "${IKSEMEL_MANDATORY}" ;
20075 then
20076 { echo "$as_me:$LINENO: ***" >&5
20077 echo "$as_me: ***" >&6;}
20078 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
20079 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
20080 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
20081 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
20082 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20083 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20084 exit 1
20086 IKSEMEL_LIB=""
20087 IKSEMEL_INCLUDE=""
20088 PBX_IKSEMEL=0
20089 else
20090 PBX_IKSEMEL=1
20092 cat >>confdefs.h <<_ACEOF
20093 #define HAVE_IKSEMEL 1
20094 _ACEOF
20097 elif test -n "${IKSEMEL_MANDATORY}";
20098 then
20099 { echo "$as_me:$LINENO: ***" >&5
20100 echo "$as_me: ***" >&6;}
20101 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
20102 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
20103 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20104 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20105 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20106 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20107 exit 1
20112 if test "${PBX_IKSEMEL}" = 1; then
20114 if test "${USE_GNUTLS}" != "no"; then
20115 pbxlibdir=""
20116 if test "x${GNUTLS_DIR}" != "x"; then
20117 if test -d ${GNUTLS_DIR}/lib; then
20118 pbxlibdir="-L${GNUTLS_DIR}/lib"
20119 else
20120 pbxlibdir="-L${GNUTLS_DIR}"
20123 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
20124 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
20125 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128 ac_check_lib_save_LIBS=$LIBS
20129 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h. */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20140 #ifdef __cplusplus
20141 extern "C"
20142 #endif
20143 char gnutls_bye ();
20145 main ()
20147 return gnutls_bye ();
20149 return 0;
20151 _ACEOF
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (ac_try="$ac_link"
20154 case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_link") 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20167 { (case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_try") 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest$ac_exeext'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_cv_lib_gnutls_gnutls_bye=yes
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20191 ac_cv_lib_gnutls_gnutls_bye=no
20194 rm -f core conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
20199 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
20200 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
20201 AST_GNUTLS_FOUND=yes
20202 else
20203 AST_GNUTLS_FOUND=no
20207 if test "${AST_GNUTLS_FOUND}" = "yes"; then
20208 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
20209 GNUTLS_HEADER_FOUND="1"
20210 if test "x${GNUTLS_DIR}" != "x"; then
20211 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
20212 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
20213 saved_cppflags="${CPPFLAGS}"
20214 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
20215 if test "xgnutls/gnutls.h" != "x" ; then
20216 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
20217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20218 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
20219 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
20220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 ac_res=`eval echo '${'$as_ac_Header'}'`
20224 { echo "$as_me:$LINENO: result: $ac_res" >&5
20225 echo "${ECHO_T}$ac_res" >&6; }
20226 else
20227 # Is the header compilable?
20228 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
20229 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 $ac_includes_default
20237 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
20238 _ACEOF
20239 rm -f conftest.$ac_objext
20240 if { (ac_try="$ac_compile"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20254 { (case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257 esac
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_try") 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_header_compiler=yes
20274 else
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_compiler=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20283 echo "${ECHO_T}$ac_header_compiler" >&6; }
20285 # Is the header present?
20286 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
20287 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
20295 _ACEOF
20296 if { (ac_try="$ac_cpp conftest.$ac_ext"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev/null; then
20309 if test -s conftest.err; then
20310 ac_cpp_err=$ac_c_preproc_warn_flag
20311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20312 else
20313 ac_cpp_err=
20315 else
20316 ac_cpp_err=yes
20318 if test -z "$ac_cpp_err"; then
20319 ac_header_preproc=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_header_preproc=no
20327 rm -f conftest.err conftest.$ac_ext
20328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20329 echo "${ECHO_T}$ac_header_preproc" >&6; }
20331 # So? What about this header?
20332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20333 yes:no: )
20334 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
20335 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
20337 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
20338 ac_header_preproc=yes
20340 no:yes:* )
20341 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
20342 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
20344 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
20346 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
20348 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
20350 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
20352 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
20355 esac
20356 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
20357 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
20358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361 eval "$as_ac_Header=\$ac_header_preproc"
20363 ac_res=`eval echo '${'$as_ac_Header'}'`
20364 { echo "$as_me:$LINENO: result: $ac_res" >&5
20365 echo "${ECHO_T}$ac_res" >&6; }
20368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20369 GNUTLS_HEADER_FOUND=1
20370 else
20371 GNUTLS_HEADER_FOUND=0
20376 CPPFLAGS="${saved_cppflags}"
20377 else
20378 if test "xgnutls/gnutls.h" != "x" ; then
20379 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
20380 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
20381 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
20382 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
20386 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
20387 else
20388 # Is the header compilable?
20389 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
20390 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h. */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 $ac_includes_default
20398 #include <gnutls/gnutls.h>
20399 _ACEOF
20400 rm -f conftest.$ac_objext
20401 if { (ac_try="$ac_compile"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_compile") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_try") 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_header_compiler=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_compiler=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20444 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446 # Is the header present?
20447 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
20448 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <gnutls/gnutls.h>
20456 _ACEOF
20457 if { (ac_try="$ac_cpp conftest.$ac_ext"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } >/dev/null; then
20470 if test -s conftest.err; then
20471 ac_cpp_err=$ac_c_preproc_warn_flag
20472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20473 else
20474 ac_cpp_err=
20476 else
20477 ac_cpp_err=yes
20479 if test -z "$ac_cpp_err"; then
20480 ac_header_preproc=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6; }
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494 yes:no: )
20495 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
20499 ac_header_preproc=yes
20501 no:yes:* )
20502 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
20516 esac
20517 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
20518 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
20519 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
20524 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
20525 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
20528 if test $ac_cv_header_gnutls_gnutls_h = yes; then
20529 GNUTLS_HEADER_FOUND=1
20530 else
20531 GNUTLS_HEADER_FOUND=0
20537 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
20538 if test -n "${GNUTLS_MANDATORY}" ;
20539 then
20540 { echo "$as_me:$LINENO: ***" >&5
20541 echo "$as_me: ***" >&6;}
20542 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
20543 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
20544 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
20545 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
20546 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
20547 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
20548 exit 1
20550 GNUTLS_LIB=""
20551 GNUTLS_INCLUDE=""
20552 PBX_GNUTLS=0
20553 else
20554 PBX_GNUTLS=1
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_GNUTLS 1
20558 _ACEOF
20561 elif test -n "${GNUTLS_MANDATORY}";
20562 then
20563 { echo "$as_me:$LINENO: ***" >&5
20564 echo "$as_me: ***" >&6;}
20565 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
20566 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
20567 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20568 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20569 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
20570 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
20571 exit 1
20577 if test "${USE_IMAP_TK}" != "no"; then
20578 if test "${IMAP_TK_DIR}" = ""; then
20579 IMAP_TK_DIR=`pwd`"/../imap-2004g"
20580 if test -n "${IMAP_TK_MANDATORY}"; then
20581 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
20582 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
20583 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
20584 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
20585 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
20586 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
20587 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
20588 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
20591 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
20592 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
20593 saved_cppflags="${CPPFLAGS}"
20594 saved_libs="${LIBS}"
20595 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
20596 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
20598 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
20599 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #include "c-client.h"
20607 void mm_searched (MAILSTREAM *stream,unsigned long number)
20610 void mm_exists (MAILSTREAM *stream,unsigned long number)
20613 void mm_expunged (MAILSTREAM *stream,unsigned long number)
20616 void mm_flags (MAILSTREAM *stream,unsigned long number)
20619 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
20622 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
20625 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
20628 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
20631 void mm_log (char *string,long errflg)
20634 void mm_dlog (char *string)
20637 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
20640 void mm_critical (MAILSTREAM *stream)
20643 void mm_nocritical (MAILSTREAM *stream)
20646 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
20649 void mm_fatal (char *string)
20653 main ()
20656 MAILSTREAM *foo = mail_open(NULL, "", 0);
20660 return 0;
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest$ac_exeext'
20688 { (case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_try") 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 ac_cv_imap_tk="yes"
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_cv_imap_tk="no"
20706 rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 if test "${ac_cv_imap_tk}" = "yes"; then
20709 cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h. */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20715 #include "c-client.h"
20716 void mm_searched (MAILSTREAM *stream,unsigned long number)
20719 void mm_exists (MAILSTREAM *stream,unsigned long number)
20722 void mm_expunged (MAILSTREAM *stream,unsigned long number)
20725 void mm_flags (MAILSTREAM *stream,unsigned long number)
20728 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
20731 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
20734 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
20737 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
20740 void mm_log (char *string,long errflg)
20743 void mm_dlog (char *string)
20746 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
20749 void mm_critical (MAILSTREAM *stream)
20752 void mm_nocritical (MAILSTREAM *stream)
20755 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
20758 void mm_fatal (char *string)
20762 main ()
20765 long check = mail_expunge_full(NULL, "", 0);
20769 return 0;
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 ac_cv_imap_tk2006="yes"
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_cv_imap_tk2006="no"
20815 rm -f core conftest.err conftest.$ac_objext \
20816 conftest$ac_exeext conftest.$ac_ext
20818 CPPFLAGS="${saved_cppflags}"
20819 LIBS="${saved_libs}"
20820 if test "${ac_cv_imap_tk}" = "yes"; then
20821 { echo "$as_me:$LINENO: result: yes" >&5
20822 echo "${ECHO_T}yes" >&6; }
20823 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
20824 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
20825 PBX_IMAP_TK=1
20827 cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_IMAP_TK 1
20829 _ACEOF
20831 if test "${ac_cv_imap_tk2006}" = "yes"; then
20833 cat >>confdefs.h <<\_ACEOF
20834 #define HAVE_IMAP_TK2006 1
20835 _ACEOF
20838 elif test -n "${IMAP_TK_MANDATORY}"; then
20839 { echo "$as_me:$LINENO: result: no" >&5
20840 echo "${ECHO_T}no" >&6; }
20841 { echo "$as_me:$LINENO: ***" >&5
20842 echo "$as_me: ***" >&6;}
20843 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
20844 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
20845 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20846 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20847 { echo "$as_me:$LINENO: *** including --without-imap." >&5
20848 echo "$as_me: *** including --without-imap." >&6;}
20849 exit 1
20850 else
20851 { echo "$as_me:$LINENO: result: no" >&5
20852 echo "${ECHO_T}no" >&6; }
20856 # Needed by unixodbc
20858 if test "${USE_LTDL}" != "no"; then
20859 pbxlibdir=""
20860 if test "x${LTDL_DIR}" != "x"; then
20861 if test -d ${LTDL_DIR}/lib; then
20862 pbxlibdir="-L${LTDL_DIR}/lib"
20863 else
20864 pbxlibdir="-L${LTDL_DIR}"
20867 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
20868 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
20869 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872 ac_check_lib_save_LIBS=$LIBS
20873 LIBS="-lltdl ${pbxlibdir} $LIBS"
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20881 /* Override any GCC internal prototype to avoid an error.
20882 Use char because int might match the return type of a GCC
20883 builtin and then its argument prototype would still apply. */
20884 #ifdef __cplusplus
20885 extern "C"
20886 #endif
20887 char lt_dlinit ();
20889 main ()
20891 return lt_dlinit ();
20893 return 0;
20895 _ACEOF
20896 rm -f conftest.$ac_objext conftest$ac_exeext
20897 if { (ac_try="$ac_link"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_link") 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; } &&
20920 { ac_try='test -s conftest$ac_exeext'
20921 { (case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_try") 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }; then
20930 ac_cv_lib_ltdl_lt_dlinit=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_lib_ltdl_lt_dlinit=no
20938 rm -f core conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20942 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
20943 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
20944 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
20945 AST_LTDL_FOUND=yes
20946 else
20947 AST_LTDL_FOUND=no
20951 if test "${AST_LTDL_FOUND}" = "yes"; then
20952 LTDL_LIB="-lltdl "
20953 LTDL_HEADER_FOUND="1"
20954 if test "x${LTDL_DIR}" != "x"; then
20955 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
20956 LTDL_INCLUDE="-I${LTDL_DIR}/include"
20957 saved_cppflags="${CPPFLAGS}"
20958 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
20959 if test "xltdl.h" != "x" ; then
20960 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
20961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20962 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
20963 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
20964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 ac_res=`eval echo '${'$as_ac_Header'}'`
20968 { echo "$as_me:$LINENO: result: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20970 else
20971 # Is the header compilable?
20972 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
20973 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 #include <${LTDL_DIR}/include/ltdl.h>
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest.$ac_objext'
21008 { (case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_try") 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ac_header_compiler=yes
21018 else
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_header_compiler=no
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21027 echo "${ECHO_T}$ac_header_compiler" >&6; }
21029 # Is the header present?
21030 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
21031 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 #include <${LTDL_DIR}/include/ltdl.h>
21039 _ACEOF
21040 if { (ac_try="$ac_cpp conftest.$ac_ext"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } >/dev/null; then
21053 if test -s conftest.err; then
21054 ac_cpp_err=$ac_c_preproc_warn_flag
21055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21056 else
21057 ac_cpp_err=
21059 else
21060 ac_cpp_err=yes
21062 if test -z "$ac_cpp_err"; then
21063 ac_header_preproc=yes
21064 else
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_header_preproc=no
21071 rm -f conftest.err conftest.$ac_ext
21072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21073 echo "${ECHO_T}$ac_header_preproc" >&6; }
21075 # So? What about this header?
21076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21077 yes:no: )
21078 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21079 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21080 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
21081 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
21082 ac_header_preproc=yes
21084 no:yes:* )
21085 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
21086 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
21088 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
21089 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
21090 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
21091 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
21092 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
21094 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
21096 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
21099 esac
21100 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
21101 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 else
21105 eval "$as_ac_Header=\$ac_header_preproc"
21107 ac_res=`eval echo '${'$as_ac_Header'}'`
21108 { echo "$as_me:$LINENO: result: $ac_res" >&5
21109 echo "${ECHO_T}$ac_res" >&6; }
21112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21113 LTDL_HEADER_FOUND=1
21114 else
21115 LTDL_HEADER_FOUND=0
21120 CPPFLAGS="${saved_cppflags}"
21121 else
21122 if test "xltdl.h" != "x" ; then
21123 if test "${ac_cv_header_ltdl_h+set}" = set; then
21124 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
21125 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
21126 if test "${ac_cv_header_ltdl_h+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
21130 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
21131 else
21132 # Is the header compilable?
21133 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
21134 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h. */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 $ac_includes_default
21142 #include <ltdl.h>
21143 _ACEOF
21144 rm -f conftest.$ac_objext
21145 if { (ac_try="$ac_compile"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_compile") 2>conftest.er1
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21159 { (case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_try") 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; } &&
21168 { ac_try='test -s conftest.$ac_objext'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_header_compiler=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_compiler=no
21186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21188 echo "${ECHO_T}$ac_header_compiler" >&6; }
21190 # Is the header present?
21191 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
21192 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h. */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <ltdl.h>
21200 _ACEOF
21201 if { (ac_try="$ac_cpp conftest.$ac_ext"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } >/dev/null; then
21214 if test -s conftest.err; then
21215 ac_cpp_err=$ac_c_preproc_warn_flag
21216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21217 else
21218 ac_cpp_err=
21220 else
21221 ac_cpp_err=yes
21223 if test -z "$ac_cpp_err"; then
21224 ac_header_preproc=yes
21225 else
21226 echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21229 ac_header_preproc=no
21232 rm -f conftest.err conftest.$ac_ext
21233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21234 echo "${ECHO_T}$ac_header_preproc" >&6; }
21236 # So? What about this header?
21237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21238 yes:no: )
21239 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21240 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
21242 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
21243 ac_header_preproc=yes
21245 no:yes:* )
21246 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
21247 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
21248 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
21249 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
21251 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
21253 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
21255 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
21257 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
21260 esac
21261 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
21262 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
21263 if test "${ac_cv_header_ltdl_h+set}" = set; then
21264 echo $ECHO_N "(cached) $ECHO_C" >&6
21265 else
21266 ac_cv_header_ltdl_h=$ac_header_preproc
21268 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
21269 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
21272 if test $ac_cv_header_ltdl_h = yes; then
21273 LTDL_HEADER_FOUND=1
21274 else
21275 LTDL_HEADER_FOUND=0
21281 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
21282 if test -n "${LTDL_MANDATORY}" ;
21283 then
21284 { echo "$as_me:$LINENO: ***" >&5
21285 echo "$as_me: ***" >&6;}
21286 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
21287 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
21288 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
21289 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
21290 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
21291 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
21292 exit 1
21294 LTDL_LIB=""
21295 LTDL_INCLUDE=""
21296 PBX_LTDL=0
21297 else
21298 PBX_LTDL=1
21300 cat >>confdefs.h <<_ACEOF
21301 #define HAVE_LTDL 1
21302 _ACEOF
21305 elif test -n "${LTDL_MANDATORY}";
21306 then
21307 { echo "$as_me:$LINENO: ***" >&5
21308 echo "$as_me: ***" >&6;}
21309 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
21310 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
21311 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21312 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21313 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
21314 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
21315 exit 1
21320 ac_ext=cpp
21321 ac_cpp='$CXXCPP $CPPFLAGS'
21322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21327 if test "${USE_KDE}" != "no"; then
21328 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
21329 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
21330 saved_libs="${LIBS}"
21331 saved_cppflags="${CPPFLAGS}"
21332 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
21333 if test -d ${KDE_DIR}/lib; then
21334 kdelibdir="${KDE_DIR}/lib"
21335 else
21336 kdelibdir="${KDE_DIR}"
21338 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include "kcrash.h"
21349 main ()
21351 KCrash::defaultCrashHandler(1);
21353 return 0;
21356 _ACEOF
21357 rm -f conftest.$ac_objext conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_link") 2>conftest.er1
21365 ac_status=$?
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21372 { (case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_try") 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest$ac_exeext'
21382 { (case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_try") 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_lib_kde_crash="yes"
21392 else
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_cv_lib_kde_crash="no"
21399 rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21402 LIBS="${saved_libs}"
21403 CPPFLAGS="${saved_cppflags}"
21405 if test "${ac_cv_lib_kde_crash}" = "yes"; then
21406 { echo "$as_me:$LINENO: result: yes" >&5
21407 echo "${ECHO_T}yes" >&6; }
21408 KDE_LIB="-lkdecore -lkdeui"
21409 if test "${KDE_DIR}" != ""; then
21410 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
21411 KDE_INCLUDE="-I${KDE_DIR}/include"
21413 PBX_KDE=1
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_LIBKDE 1
21417 _ACEOF
21419 elif test -n "${KDE_MANDATORY}"; then
21420 { echo "$as_me:$LINENO: result: no" >&5
21421 echo "${ECHO_T}no" >&6; }
21422 { echo "$as_me:$LINENO: ***" >&5
21423 echo "$as_me: ***" >&6;}
21424 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
21425 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
21426 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21427 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21428 { echo "$as_me:$LINENO: *** including --without-kde." >&5
21429 echo "$as_me: *** including --without-kde." >&6;}
21430 exit 1
21431 else
21432 { echo "$as_me:$LINENO: result: no" >&5
21433 echo "${ECHO_T}no" >&6; }
21436 if test "${PBX_KDE}" = 1; then
21437 if test -n "$ac_tool_prefix"; then
21438 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
21439 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
21440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21442 if test "${ac_cv_path_KDEINIT+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445 case $KDEINIT in
21446 [\\/]* | ?:[\\/]*)
21447 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
21450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21451 for as_dir in $PATH
21453 IFS=$as_save_IFS
21454 test -z "$as_dir" && as_dir=.
21455 for ac_exec_ext in '' $ac_executable_extensions; do
21456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21457 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
21458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21459 break 2
21461 done
21462 done
21463 IFS=$as_save_IFS
21466 esac
21468 KDEINIT=$ac_cv_path_KDEINIT
21469 if test -n "$KDEINIT"; then
21470 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
21471 echo "${ECHO_T}$KDEINIT" >&6; }
21472 else
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21479 if test -z "$ac_cv_path_KDEINIT"; then
21480 ac_pt_KDEINIT=$KDEINIT
21481 # Extract the first word of "kdeinit", so it can be a program name with args.
21482 set dummy kdeinit; ac_word=$2
21483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21485 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488 case $ac_pt_KDEINIT in
21489 [\\/]* | ?:[\\/]*)
21490 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
21501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21504 done
21505 done
21506 IFS=$as_save_IFS
21509 esac
21511 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
21512 if test -n "$ac_pt_KDEINIT"; then
21513 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
21514 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
21515 else
21516 { echo "$as_me:$LINENO: result: no" >&5
21517 echo "${ECHO_T}no" >&6; }
21520 if test "x$ac_pt_KDEINIT" = x; then
21521 KDEINIT="No"
21522 else
21523 case $cross_compiling:$ac_tool_warned in
21524 yes:)
21525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21526 whose name does not start with the host triplet. If you think this
21527 configuration is useful to you, please write to autoconf@gnu.org." >&5
21528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21529 whose name does not start with the host triplet. If you think this
21530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21531 ac_tool_warned=yes ;;
21532 esac
21533 KDEINIT=$ac_pt_KDEINIT
21535 else
21536 KDEINIT="$ac_cv_path_KDEINIT"
21539 if test ! x"${KDEINIT}" = xNo; then
21540 KDEDIR=$(${DIRNAME} ${KDEINIT})
21541 KDEDIR=$(${DIRNAME} ${KDEDIR})
21546 ac_ext=c
21547 ac_cpp='$CPP $CPPFLAGS'
21548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21554 if test "${USE_MISDN}" != "no"; then
21555 pbxlibdir=""
21556 if test "x${MISDN_DIR}" != "x"; then
21557 if test -d ${MISDN_DIR}/lib; then
21558 pbxlibdir="-L${MISDN_DIR}/lib"
21559 else
21560 pbxlibdir="-L${MISDN_DIR}"
21563 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
21564 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
21565 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568 ac_check_lib_save_LIBS=$LIBS
21569 LIBS="-lmISDN ${pbxlibdir} $LIBS"
21570 cat >conftest.$ac_ext <<_ACEOF
21571 /* confdefs.h. */
21572 _ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h. */
21577 /* Override any GCC internal prototype to avoid an error.
21578 Use char because int might match the return type of a GCC
21579 builtin and then its argument prototype would still apply. */
21580 #ifdef __cplusplus
21581 extern "C"
21582 #endif
21583 char mISDN_open ();
21585 main ()
21587 return mISDN_open ();
21589 return 0;
21591 _ACEOF
21592 rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_link") 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
21606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest$ac_exeext'
21617 { (case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620 esac
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_try") 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
21626 ac_cv_lib_mISDN_mISDN_open=yes
21627 else
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_cv_lib_mISDN_mISDN_open=no
21634 rm -f core conftest.err conftest.$ac_objext \
21635 conftest$ac_exeext conftest.$ac_ext
21636 LIBS=$ac_check_lib_save_LIBS
21638 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
21639 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
21640 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
21641 AST_MISDN_FOUND=yes
21642 else
21643 AST_MISDN_FOUND=no
21647 if test "${AST_MISDN_FOUND}" = "yes"; then
21648 MISDN_LIB="-lmISDN "
21649 MISDN_HEADER_FOUND="1"
21650 if test "x${MISDN_DIR}" != "x"; then
21651 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
21652 MISDN_INCLUDE="-I${MISDN_DIR}/include"
21653 saved_cppflags="${CPPFLAGS}"
21654 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
21655 if test "xmISDNuser/mISDNlib.h" != "x" ; then
21656 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
21657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
21659 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_res=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21666 else
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
21669 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
21693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21694 { (case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_try") 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest.$ac_objext'
21704 { (case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_try") 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_header_compiler=yes
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_header_compiler=no
21721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21723 echo "${ECHO_T}$ac_header_compiler" >&6; }
21725 # Is the header present?
21726 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
21727 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
21735 _ACEOF
21736 if { (ac_try="$ac_cpp conftest.$ac_ext"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } >/dev/null; then
21749 if test -s conftest.err; then
21750 ac_cpp_err=$ac_c_preproc_warn_flag
21751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21752 else
21753 ac_cpp_err=
21755 else
21756 ac_cpp_err=yes
21758 if test -z "$ac_cpp_err"; then
21759 ac_header_preproc=yes
21760 else
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_header_preproc=no
21767 rm -f conftest.err conftest.$ac_ext
21768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21769 echo "${ECHO_T}$ac_header_preproc" >&6; }
21771 # So? What about this header?
21772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21773 yes:no: )
21774 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21775 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
21777 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
21778 ac_header_preproc=yes
21780 no:yes:* )
21781 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
21782 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
21784 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
21786 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
21788 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
21790 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
21792 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
21795 esac
21796 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
21797 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
21798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801 eval "$as_ac_Header=\$ac_header_preproc"
21803 ac_res=`eval echo '${'$as_ac_Header'}'`
21804 { echo "$as_me:$LINENO: result: $ac_res" >&5
21805 echo "${ECHO_T}$ac_res" >&6; }
21808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21809 MISDN_HEADER_FOUND=1
21810 else
21811 MISDN_HEADER_FOUND=0
21816 CPPFLAGS="${saved_cppflags}"
21817 else
21818 if test "xmISDNuser/mISDNlib.h" != "x" ; then
21819 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
21820 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
21821 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
21822 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
21826 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
21827 else
21828 # Is the header compilable?
21829 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
21830 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 $ac_includes_default
21838 #include <mISDNuser/mISDNlib.h>
21839 _ACEOF
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_compile") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
21854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21855 { (case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21858 esac
21859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_try") 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; } &&
21864 { ac_try='test -s conftest.$ac_objext'
21865 { (case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_try") 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; }; then
21874 ac_header_compiler=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
21888 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <mISDNuser/mISDNlib.h>
21896 _ACEOF
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null; then
21910 if test -s conftest.err; then
21911 ac_cpp_err=$ac_c_preproc_warn_flag
21912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21913 else
21914 ac_cpp_err=
21916 else
21917 ac_cpp_err=yes
21919 if test -z "$ac_cpp_err"; then
21920 ac_header_preproc=yes
21921 else
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_header_preproc=no
21928 rm -f conftest.err conftest.$ac_ext
21929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21930 echo "${ECHO_T}$ac_header_preproc" >&6; }
21932 # So? What about this header?
21933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21934 yes:no: )
21935 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21936 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
21938 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
21939 ac_header_preproc=yes
21941 no:yes:* )
21942 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
21943 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
21945 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
21947 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
21949 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
21951 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
21953 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
21956 esac
21957 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
21958 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
21959 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 else
21962 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
21964 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
21965 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
21968 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
21969 MISDN_HEADER_FOUND=1
21970 else
21971 MISDN_HEADER_FOUND=0
21977 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
21978 if test -n "${MISDN_MANDATORY}" ;
21979 then
21980 { echo "$as_me:$LINENO: ***" >&5
21981 echo "$as_me: ***" >&6;}
21982 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
21983 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
21984 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
21985 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
21986 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
21987 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
21988 exit 1
21990 MISDN_LIB=""
21991 MISDN_INCLUDE=""
21992 PBX_MISDN=0
21993 else
21994 PBX_MISDN=1
21996 cat >>confdefs.h <<_ACEOF
21997 #define HAVE_MISDN 1
21998 _ACEOF
22001 elif test -n "${MISDN_MANDATORY}";
22002 then
22003 { echo "$as_me:$LINENO: ***" >&5
22004 echo "$as_me: ***" >&6;}
22005 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
22006 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
22007 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22008 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22009 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
22010 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
22011 exit 1
22016 if test "${PBX_MISDN}" = 1; then
22018 if test "${USE_ISDNNET}" != "no"; then
22019 pbxlibdir=""
22020 if test "x${ISDNNET_DIR}" != "x"; then
22021 if test -d ${ISDNNET_DIR}/lib; then
22022 pbxlibdir="-L${ISDNNET_DIR}/lib"
22023 else
22024 pbxlibdir="-L${ISDNNET_DIR}"
22027 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
22028 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
22029 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 /* Override any GCC internal prototype to avoid an error.
22042 Use char because int might match the return type of a GCC
22043 builtin and then its argument prototype would still apply. */
22044 #ifdef __cplusplus
22045 extern "C"
22046 #endif
22047 char init_manager ();
22049 main ()
22051 return init_manager ();
22053 return 0;
22055 _ACEOF
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (ac_try="$ac_link"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_link") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22071 { (case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_try") 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; } &&
22080 { ac_try='test -s conftest$ac_exeext'
22081 { (case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_try") 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 ac_cv_lib_isdnnet_init_manager=yes
22091 else
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ac_cv_lib_isdnnet_init_manager=no
22098 rm -f core conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
22100 LIBS=$ac_check_lib_save_LIBS
22102 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
22103 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
22104 if test $ac_cv_lib_isdnnet_init_manager = yes; then
22105 AST_ISDNNET_FOUND=yes
22106 else
22107 AST_ISDNNET_FOUND=no
22111 if test "${AST_ISDNNET_FOUND}" = "yes"; then
22112 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
22113 ISDNNET_HEADER_FOUND="1"
22114 if test "x${ISDNNET_DIR}" != "x"; then
22115 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
22116 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
22117 saved_cppflags="${CPPFLAGS}"
22118 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
22119 if test "xmISDNuser/isdn_net.h" != "x" ; then
22120 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
22121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22122 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
22123 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
22124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 ac_res=`eval echo '${'$as_ac_Header'}'`
22128 { echo "$as_me:$LINENO: result: $ac_res" >&5
22129 echo "${ECHO_T}$ac_res" >&6; }
22130 else
22131 # Is the header compilable?
22132 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
22133 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22141 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_compile") 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } &&
22157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22158 { (case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_try") 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest.$ac_objext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_try") 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_header_compiler=yes
22178 else
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_header_compiler=no
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6; }
22189 # Is the header present?
22190 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
22191 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
22199 _ACEOF
22200 if { (ac_try="$ac_cpp conftest.$ac_ext"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22207 ac_status=$?
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } >/dev/null; then
22213 if test -s conftest.err; then
22214 ac_cpp_err=$ac_c_preproc_warn_flag
22215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22216 else
22217 ac_cpp_err=
22219 else
22220 ac_cpp_err=yes
22222 if test -z "$ac_cpp_err"; then
22223 ac_header_preproc=yes
22224 else
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_header_preproc=no
22231 rm -f conftest.err conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22233 echo "${ECHO_T}$ac_header_preproc" >&6; }
22235 # So? What about this header?
22236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22237 yes:no: )
22238 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
22239 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
22241 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
22242 ac_header_preproc=yes
22244 no:yes:* )
22245 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
22246 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
22248 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
22250 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
22252 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
22254 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
22255 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
22256 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
22259 esac
22260 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
22261 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
22262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265 eval "$as_ac_Header=\$ac_header_preproc"
22267 ac_res=`eval echo '${'$as_ac_Header'}'`
22268 { echo "$as_me:$LINENO: result: $ac_res" >&5
22269 echo "${ECHO_T}$ac_res" >&6; }
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273 ISDNNET_HEADER_FOUND=1
22274 else
22275 ISDNNET_HEADER_FOUND=0
22280 CPPFLAGS="${saved_cppflags}"
22281 else
22282 if test "xmISDNuser/isdn_net.h" != "x" ; then
22283 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
22284 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
22285 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
22286 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
22290 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
22291 else
22292 # Is the header compilable?
22293 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
22294 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h. */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22302 #include <mISDNuser/isdn_net.h>
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_compile") 2>conftest.er1
22312 ac_status=$?
22313 grep -v '^ *+' conftest.er1 >conftest.err
22314 rm -f conftest.er1
22315 cat conftest.err >&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } &&
22318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; } &&
22328 { ac_try='test -s conftest.$ac_objext'
22329 { (case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22332 esac
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_try") 2>&5
22335 ac_status=$?
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_header_compiler=yes
22339 else
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_header_compiler=no
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22348 echo "${ECHO_T}$ac_header_compiler" >&6; }
22350 # Is the header present?
22351 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
22352 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 #include <mISDNuser/isdn_net.h>
22360 _ACEOF
22361 if { (ac_try="$ac_cpp conftest.$ac_ext"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22368 ac_status=$?
22369 grep -v '^ *+' conftest.er1 >conftest.err
22370 rm -f conftest.er1
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } >/dev/null; then
22374 if test -s conftest.err; then
22375 ac_cpp_err=$ac_c_preproc_warn_flag
22376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22377 else
22378 ac_cpp_err=
22380 else
22381 ac_cpp_err=yes
22383 if test -z "$ac_cpp_err"; then
22384 ac_header_preproc=yes
22385 else
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_header_preproc=no
22392 rm -f conftest.err conftest.$ac_ext
22393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22394 echo "${ECHO_T}$ac_header_preproc" >&6; }
22396 # So? What about this header?
22397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22398 yes:no: )
22399 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
22400 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22401 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
22402 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
22403 ac_header_preproc=yes
22405 no:yes:* )
22406 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
22407 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
22408 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
22409 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
22410 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
22411 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
22412 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
22413 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
22414 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
22415 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
22416 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
22417 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
22420 esac
22421 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
22422 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
22423 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
22428 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
22429 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
22432 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
22433 ISDNNET_HEADER_FOUND=1
22434 else
22435 ISDNNET_HEADER_FOUND=0
22441 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
22442 if test -n "${ISDNNET_MANDATORY}" ;
22443 then
22444 { echo "$as_me:$LINENO: ***" >&5
22445 echo "$as_me: ***" >&6;}
22446 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
22447 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
22448 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
22449 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
22450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
22451 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
22452 exit 1
22454 ISDNNET_LIB=""
22455 ISDNNET_INCLUDE=""
22456 PBX_ISDNNET=0
22457 else
22458 PBX_ISDNNET=1
22460 cat >>confdefs.h <<_ACEOF
22461 #define HAVE_ISDNNET 1
22462 _ACEOF
22465 elif test -n "${ISDNNET_MANDATORY}";
22466 then
22467 { echo "$as_me:$LINENO: ***" >&5
22468 echo "$as_me: ***" >&6;}
22469 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
22470 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
22471 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22472 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22473 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
22474 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
22475 exit 1
22480 if test "${USE_SUPPSERV}" != "no"; then
22481 pbxlibdir=""
22482 if test "x${SUPPSERV_DIR}" != "x"; then
22483 if test -d ${SUPPSERV_DIR}/lib; then
22484 pbxlibdir="-L${SUPPSERV_DIR}/lib"
22485 else
22486 pbxlibdir="-L${SUPPSERV_DIR}"
22489 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
22490 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
22491 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494 ac_check_lib_save_LIBS=$LIBS
22495 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22503 /* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22506 #ifdef __cplusplus
22507 extern "C"
22508 #endif
22509 char encodeFac ();
22511 main ()
22513 return encodeFac ();
22515 return 0;
22517 _ACEOF
22518 rm -f conftest.$ac_objext conftest$ac_exeext
22519 if { (ac_try="$ac_link"
22520 case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22523 esac
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_link") 2>conftest.er1
22526 ac_status=$?
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22533 { (case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_try") 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } &&
22542 { ac_try='test -s conftest$ac_exeext'
22543 { (case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_try") 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_lib_suppserv_encodeFac=yes
22553 else
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_lib_suppserv_encodeFac=no
22560 rm -f core conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22562 LIBS=$ac_check_lib_save_LIBS
22564 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
22565 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
22566 if test $ac_cv_lib_suppserv_encodeFac = yes; then
22567 AST_SUPPSERV_FOUND=yes
22568 else
22569 AST_SUPPSERV_FOUND=no
22573 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
22574 SUPPSERV_LIB="-lsuppserv "
22575 SUPPSERV_HEADER_FOUND="1"
22576 if test "x${SUPPSERV_DIR}" != "x"; then
22577 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
22578 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
22579 saved_cppflags="${CPPFLAGS}"
22580 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
22581 if test "xmISDNuser/suppserv.h" != "x" ; then
22582 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
22583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22584 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
22585 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
22586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 ac_res=`eval echo '${'$as_ac_Header'}'`
22590 { echo "$as_me:$LINENO: result: $ac_res" >&5
22591 echo "${ECHO_T}$ac_res" >&6; }
22592 else
22593 # Is the header compilable?
22594 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
22595 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
22596 cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h. */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 $ac_includes_default
22603 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
22604 _ACEOF
22605 rm -f conftest.$ac_objext
22606 if { (ac_try="$ac_compile"
22607 case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_compile") 2>conftest.er1
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } &&
22619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22620 { (case "(($ac_try" in
22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22623 esac
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval "$ac_try") 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest.$ac_objext'
22630 { (case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_try") 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 ac_header_compiler=yes
22640 else
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 ac_header_compiler=no
22647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22649 echo "${ECHO_T}$ac_header_compiler" >&6; }
22651 # Is the header present?
22652 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
22653 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
22654 cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h. */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
22661 _ACEOF
22662 if { (ac_try="$ac_cpp conftest.$ac_ext"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } >/dev/null; then
22675 if test -s conftest.err; then
22676 ac_cpp_err=$ac_c_preproc_warn_flag
22677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22678 else
22679 ac_cpp_err=
22681 else
22682 ac_cpp_err=yes
22684 if test -z "$ac_cpp_err"; then
22685 ac_header_preproc=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_header_preproc=no
22693 rm -f conftest.err conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695 echo "${ECHO_T}$ac_header_preproc" >&6; }
22697 # So? What about this header?
22698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22699 yes:no: )
22700 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22701 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
22703 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc=yes
22706 no:yes:* )
22707 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
22708 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
22710 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
22712 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
22714 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
22716 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
22718 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
22721 esac
22722 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
22723 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
22724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727 eval "$as_ac_Header=\$ac_header_preproc"
22729 ac_res=`eval echo '${'$as_ac_Header'}'`
22730 { echo "$as_me:$LINENO: result: $ac_res" >&5
22731 echo "${ECHO_T}$ac_res" >&6; }
22734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22735 SUPPSERV_HEADER_FOUND=1
22736 else
22737 SUPPSERV_HEADER_FOUND=0
22742 CPPFLAGS="${saved_cppflags}"
22743 else
22744 if test "xmISDNuser/suppserv.h" != "x" ; then
22745 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
22746 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
22747 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
22748 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22751 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
22752 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
22753 else
22754 # Is the header compilable?
22755 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
22756 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 $ac_includes_default
22764 #include <mISDNuser/suppserv.h>
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22774 ac_status=$?
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
22780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22781 { (case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_try") 2>&5
22787 ac_status=$?
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; } &&
22790 { ac_try='test -s conftest.$ac_objext'
22791 { (case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_try") 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 ac_header_compiler=yes
22801 else
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_header_compiler=no
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22810 echo "${ECHO_T}$ac_header_compiler" >&6; }
22812 # Is the header present?
22813 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
22814 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 #include <mISDNuser/suppserv.h>
22822 _ACEOF
22823 if { (ac_try="$ac_cpp conftest.$ac_ext"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22827 esac
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22830 ac_status=$?
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } >/dev/null; then
22836 if test -s conftest.err; then
22837 ac_cpp_err=$ac_c_preproc_warn_flag
22838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22839 else
22840 ac_cpp_err=
22842 else
22843 ac_cpp_err=yes
22845 if test -z "$ac_cpp_err"; then
22846 ac_header_preproc=yes
22847 else
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 ac_header_preproc=no
22854 rm -f conftest.err conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22856 echo "${ECHO_T}$ac_header_preproc" >&6; }
22858 # So? What about this header?
22859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22860 yes:no: )
22861 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22862 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
22864 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
22865 ac_header_preproc=yes
22867 no:yes:* )
22868 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
22869 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
22870 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
22871 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
22872 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
22873 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
22875 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
22877 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
22879 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
22882 esac
22883 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
22884 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
22885 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
22890 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
22891 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
22894 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
22895 SUPPSERV_HEADER_FOUND=1
22896 else
22897 SUPPSERV_HEADER_FOUND=0
22903 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
22904 if test -n "${SUPPSERV_MANDATORY}" ;
22905 then
22906 { echo "$as_me:$LINENO: ***" >&5
22907 echo "$as_me: ***" >&6;}
22908 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
22909 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
22910 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
22911 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
22912 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
22913 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
22914 exit 1
22916 SUPPSERV_LIB=""
22917 SUPPSERV_INCLUDE=""
22918 PBX_SUPPSERV=0
22919 else
22920 PBX_SUPPSERV=1
22922 cat >>confdefs.h <<_ACEOF
22923 #define HAVE_SUPPSERV 1
22924 _ACEOF
22927 elif test -n "${SUPPSERV_MANDATORY}";
22928 then
22929 { echo "$as_me:$LINENO: ***" >&5
22930 echo "$as_me: ***" >&6;}
22931 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
22932 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
22933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22935 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
22936 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
22937 exit 1
22941 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
22942 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
22943 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
22944 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
22948 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
22949 else
22950 # Is the header compilable?
22951 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
22952 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h. */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 $ac_includes_default
22960 #include <linux/mISDNdsp.h>
22961 _ACEOF
22962 rm -f conftest.$ac_objext
22963 if { (ac_try="$ac_compile"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
22976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22977 { (case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982 (eval "$ac_try") 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest.$ac_objext'
22987 { (case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_try") 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_header_compiler=yes
22997 else
22998 echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23001 ac_header_compiler=no
23004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23006 echo "${ECHO_T}$ac_header_compiler" >&6; }
23008 # Is the header present?
23009 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
23010 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h. */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23017 #include <linux/mISDNdsp.h>
23018 _ACEOF
23019 if { (ac_try="$ac_cpp conftest.$ac_ext"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23026 ac_status=$?
23027 grep -v '^ *+' conftest.er1 >conftest.err
23028 rm -f conftest.er1
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } >/dev/null; then
23032 if test -s conftest.err; then
23033 ac_cpp_err=$ac_c_preproc_warn_flag
23034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23035 else
23036 ac_cpp_err=
23038 else
23039 ac_cpp_err=yes
23041 if test -z "$ac_cpp_err"; then
23042 ac_header_preproc=yes
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_header_preproc=no
23050 rm -f conftest.err conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052 echo "${ECHO_T}$ac_header_preproc" >&6; }
23054 # So? What about this header?
23055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23056 yes:no: )
23057 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
23058 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
23060 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
23061 ac_header_preproc=yes
23063 no:yes:* )
23064 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
23065 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
23067 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
23069 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
23071 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
23073 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
23075 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
23078 esac
23079 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
23080 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
23081 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
23086 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
23087 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
23090 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define MISDN_1_2 1
23094 _ACEOF
23102 if test "${USE_NBS}" != "no"; then
23103 pbxlibdir=""
23104 if test "x${NBS_DIR}" != "x"; then
23105 if test -d ${NBS_DIR}/lib; then
23106 pbxlibdir="-L${NBS_DIR}/lib"
23107 else
23108 pbxlibdir="-L${NBS_DIR}"
23111 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
23112 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
23113 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 ac_check_lib_save_LIBS=$LIBS
23117 LIBS="-lnbs ${pbxlibdir} $LIBS"
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23125 /* Override any GCC internal prototype to avoid an error.
23126 Use char because int might match the return type of a GCC
23127 builtin and then its argument prototype would still apply. */
23128 #ifdef __cplusplus
23129 extern "C"
23130 #endif
23131 char nbs_connect ();
23133 main ()
23135 return nbs_connect ();
23137 return 0;
23139 _ACEOF
23140 rm -f conftest.$ac_objext conftest$ac_exeext
23141 if { (ac_try="$ac_link"
23142 case "(($ac_try" in
23143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144 *) ac_try_echo=$ac_try;;
23145 esac
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147 (eval "$ac_link") 2>conftest.er1
23148 ac_status=$?
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_try") 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_try") 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_lib_nbs_nbs_connect=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_cv_lib_nbs_nbs_connect=no
23182 rm -f core conftest.err conftest.$ac_objext \
23183 conftest$ac_exeext conftest.$ac_ext
23184 LIBS=$ac_check_lib_save_LIBS
23186 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
23187 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
23188 if test $ac_cv_lib_nbs_nbs_connect = yes; then
23189 AST_NBS_FOUND=yes
23190 else
23191 AST_NBS_FOUND=no
23195 if test "${AST_NBS_FOUND}" = "yes"; then
23196 NBS_LIB="-lnbs "
23197 NBS_HEADER_FOUND="1"
23198 if test "x${NBS_DIR}" != "x"; then
23199 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
23200 NBS_INCLUDE="-I${NBS_DIR}/include"
23201 saved_cppflags="${CPPFLAGS}"
23202 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
23203 if test "xnbs.h" != "x" ; then
23204 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
23205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23206 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
23207 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
23208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 ac_res=`eval echo '${'$as_ac_Header'}'`
23212 { echo "$as_me:$LINENO: result: $ac_res" >&5
23213 echo "${ECHO_T}$ac_res" >&6; }
23214 else
23215 # Is the header compilable?
23216 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
23217 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
23218 cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h. */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23224 $ac_includes_default
23225 #include <${NBS_DIR}/include/nbs.h>
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_compile") 2>conftest.er1
23235 ac_status=$?
23236 grep -v '^ *+' conftest.er1 >conftest.err
23237 rm -f conftest.er1
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
23241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247 (eval "$ac_try") 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest.$ac_objext'
23252 { (case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_try") 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_header_compiler=yes
23262 else
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23266 ac_header_compiler=no
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23271 echo "${ECHO_T}$ac_header_compiler" >&6; }
23273 # Is the header present?
23274 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
23275 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
23276 cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h. */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 #include <${NBS_DIR}/include/nbs.h>
23283 _ACEOF
23284 if { (ac_try="$ac_cpp conftest.$ac_ext"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } >/dev/null; then
23297 if test -s conftest.err; then
23298 ac_cpp_err=$ac_c_preproc_warn_flag
23299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23300 else
23301 ac_cpp_err=
23303 else
23304 ac_cpp_err=yes
23306 if test -z "$ac_cpp_err"; then
23307 ac_header_preproc=yes
23308 else
23309 echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23312 ac_header_preproc=no
23315 rm -f conftest.err conftest.$ac_ext
23316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23317 echo "${ECHO_T}$ac_header_preproc" >&6; }
23319 # So? What about this header?
23320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23321 yes:no: )
23322 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
23323 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23324 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
23325 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
23326 ac_header_preproc=yes
23328 no:yes:* )
23329 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
23330 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
23331 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
23332 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
23333 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
23334 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
23335 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
23336 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
23337 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
23338 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
23340 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
23343 esac
23344 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
23345 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
23346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 else
23349 eval "$as_ac_Header=\$ac_header_preproc"
23351 ac_res=`eval echo '${'$as_ac_Header'}'`
23352 { echo "$as_me:$LINENO: result: $ac_res" >&5
23353 echo "${ECHO_T}$ac_res" >&6; }
23356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23357 NBS_HEADER_FOUND=1
23358 else
23359 NBS_HEADER_FOUND=0
23364 CPPFLAGS="${saved_cppflags}"
23365 else
23366 if test "xnbs.h" != "x" ; then
23367 if test "${ac_cv_header_nbs_h+set}" = set; then
23368 { echo "$as_me:$LINENO: checking for nbs.h" >&5
23369 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
23370 if test "${ac_cv_header_nbs_h+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23373 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
23374 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
23375 else
23376 # Is the header compilable?
23377 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
23378 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 $ac_includes_default
23386 #include <nbs.h>
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
23402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23403 { (case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_try") 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; } &&
23412 { ac_try='test -s conftest.$ac_objext'
23413 { (case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_try") 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_header_compiler=yes
23423 else
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_header_compiler=no
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23432 echo "${ECHO_T}$ac_header_compiler" >&6; }
23434 # Is the header present?
23435 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
23436 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <nbs.h>
23444 _ACEOF
23445 if { (ac_try="$ac_cpp conftest.$ac_ext"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } >/dev/null; then
23458 if test -s conftest.err; then
23459 ac_cpp_err=$ac_c_preproc_warn_flag
23460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23461 else
23462 ac_cpp_err=
23464 else
23465 ac_cpp_err=yes
23467 if test -z "$ac_cpp_err"; then
23468 ac_header_preproc=yes
23469 else
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 ac_header_preproc=no
23476 rm -f conftest.err conftest.$ac_ext
23477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23478 echo "${ECHO_T}$ac_header_preproc" >&6; }
23480 # So? What about this header?
23481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23482 yes:no: )
23483 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
23484 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23485 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
23486 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
23487 ac_header_preproc=yes
23489 no:yes:* )
23490 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
23491 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
23493 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
23494 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
23495 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
23496 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
23497 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
23498 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
23499 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
23500 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
23501 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
23504 esac
23505 { echo "$as_me:$LINENO: checking for nbs.h" >&5
23506 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
23507 if test "${ac_cv_header_nbs_h+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 else
23510 ac_cv_header_nbs_h=$ac_header_preproc
23512 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
23513 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
23516 if test $ac_cv_header_nbs_h = yes; then
23517 NBS_HEADER_FOUND=1
23518 else
23519 NBS_HEADER_FOUND=0
23525 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
23526 if test -n "${NBS_MANDATORY}" ;
23527 then
23528 { echo "$as_me:$LINENO: ***" >&5
23529 echo "$as_me: ***" >&6;}
23530 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
23531 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
23532 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
23533 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
23534 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
23535 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
23536 exit 1
23538 NBS_LIB=""
23539 NBS_INCLUDE=""
23540 PBX_NBS=0
23541 else
23542 PBX_NBS=1
23544 cat >>confdefs.h <<_ACEOF
23545 #define HAVE_NBS 1
23546 _ACEOF
23549 elif test -n "${NBS_MANDATORY}";
23550 then
23551 { echo "$as_me:$LINENO: ***" >&5
23552 echo "$as_me: ***" >&6;}
23553 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
23554 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
23555 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23556 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23557 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
23558 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
23559 exit 1
23565 if test "${USE_NCURSES}" != "no"; then
23566 pbxlibdir=""
23567 if test "x${NCURSES_DIR}" != "x"; then
23568 if test -d ${NCURSES_DIR}/lib; then
23569 pbxlibdir="-L${NCURSES_DIR}/lib"
23570 else
23571 pbxlibdir="-L${NCURSES_DIR}"
23574 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
23575 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
23576 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 else
23579 ac_check_lib_save_LIBS=$LIBS
23580 LIBS="-lncurses ${pbxlibdir} $LIBS"
23581 cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h. */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23588 /* Override any GCC internal prototype to avoid an error.
23589 Use char because int might match the return type of a GCC
23590 builtin and then its argument prototype would still apply. */
23591 #ifdef __cplusplus
23592 extern "C"
23593 #endif
23594 char initscr ();
23596 main ()
23598 return initscr ();
23600 return 0;
23602 _ACEOF
23603 rm -f conftest.$ac_objext conftest$ac_exeext
23604 if { (ac_try="$ac_link"
23605 case "(($ac_try" in
23606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607 *) ac_try_echo=$ac_try;;
23608 esac
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610 (eval "$ac_link") 2>conftest.er1
23611 ac_status=$?
23612 grep -v '^ *+' conftest.er1 >conftest.err
23613 rm -f conftest.er1
23614 cat conftest.err >&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); } &&
23617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23618 { (case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_try") 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; } &&
23627 { ac_try='test -s conftest$ac_exeext'
23628 { (case "(($ac_try" in
23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630 *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633 (eval "$ac_try") 2>&5
23634 ac_status=$?
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23637 ac_cv_lib_ncurses_initscr=yes
23638 else
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ac_cv_lib_ncurses_initscr=no
23645 rm -f core conftest.err conftest.$ac_objext \
23646 conftest$ac_exeext conftest.$ac_ext
23647 LIBS=$ac_check_lib_save_LIBS
23649 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
23650 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
23651 if test $ac_cv_lib_ncurses_initscr = yes; then
23652 AST_NCURSES_FOUND=yes
23653 else
23654 AST_NCURSES_FOUND=no
23658 if test "${AST_NCURSES_FOUND}" = "yes"; then
23659 NCURSES_LIB="-lncurses "
23660 NCURSES_HEADER_FOUND="1"
23661 if test "x${NCURSES_DIR}" != "x"; then
23662 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
23663 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
23664 saved_cppflags="${CPPFLAGS}"
23665 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
23666 if test "xcurses.h" != "x" ; then
23667 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
23668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23669 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
23670 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
23671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23674 ac_res=`eval echo '${'$as_ac_Header'}'`
23675 { echo "$as_me:$LINENO: result: $ac_res" >&5
23676 echo "${ECHO_T}$ac_res" >&6; }
23677 else
23678 # Is the header compilable?
23679 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
23680 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 $ac_includes_default
23688 #include <${NCURSES_DIR}/include/curses.h>
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_compile") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } &&
23704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23705 { (case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_try") 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest.$ac_objext'
23715 { (case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_try") 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 ac_header_compiler=yes
23725 else
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 ac_header_compiler=no
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23734 echo "${ECHO_T}$ac_header_compiler" >&6; }
23736 # Is the header present?
23737 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
23738 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h. */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 #include <${NCURSES_DIR}/include/curses.h>
23746 _ACEOF
23747 if { (ac_try="$ac_cpp conftest.$ac_ext"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } >/dev/null; then
23760 if test -s conftest.err; then
23761 ac_cpp_err=$ac_c_preproc_warn_flag
23762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23763 else
23764 ac_cpp_err=
23766 else
23767 ac_cpp_err=yes
23769 if test -z "$ac_cpp_err"; then
23770 ac_header_preproc=yes
23771 else
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ac_header_preproc=no
23778 rm -f conftest.err conftest.$ac_ext
23779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23780 echo "${ECHO_T}$ac_header_preproc" >&6; }
23782 # So? What about this header?
23783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23784 yes:no: )
23785 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
23786 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23787 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
23788 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
23789 ac_header_preproc=yes
23791 no:yes:* )
23792 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
23793 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
23794 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
23795 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
23796 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
23797 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
23798 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
23799 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
23800 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
23801 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
23802 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
23803 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
23806 esac
23807 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
23808 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
23809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 else
23812 eval "$as_ac_Header=\$ac_header_preproc"
23814 ac_res=`eval echo '${'$as_ac_Header'}'`
23815 { echo "$as_me:$LINENO: result: $ac_res" >&5
23816 echo "${ECHO_T}$ac_res" >&6; }
23819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23820 NCURSES_HEADER_FOUND=1
23821 else
23822 NCURSES_HEADER_FOUND=0
23827 CPPFLAGS="${saved_cppflags}"
23828 else
23829 if test "xcurses.h" != "x" ; then
23830 if test "${ac_cv_header_curses_h+set}" = set; then
23831 { echo "$as_me:$LINENO: checking for curses.h" >&5
23832 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
23833 if test "${ac_cv_header_curses_h+set}" = set; then
23834 echo $ECHO_N "(cached) $ECHO_C" >&6
23836 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
23837 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
23838 else
23839 # Is the header compilable?
23840 { echo "$as_me:$LINENO: checking curses.h usability" >&5
23841 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h. */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 $ac_includes_default
23849 #include <curses.h>
23850 _ACEOF
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_compile") 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
23865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23866 { (case "(($ac_try" in
23867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23869 esac
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_try") 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; } &&
23875 { ac_try='test -s conftest.$ac_objext'
23876 { (case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23879 esac
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_try") 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 ac_header_compiler=yes
23886 else
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_header_compiler=no
23893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23895 echo "${ECHO_T}$ac_header_compiler" >&6; }
23897 # Is the header present?
23898 { echo "$as_me:$LINENO: checking curses.h presence" >&5
23899 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h. */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906 #include <curses.h>
23907 _ACEOF
23908 if { (ac_try="$ac_cpp conftest.$ac_ext"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23915 ac_status=$?
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } >/dev/null; then
23921 if test -s conftest.err; then
23922 ac_cpp_err=$ac_c_preproc_warn_flag
23923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23924 else
23925 ac_cpp_err=
23927 else
23928 ac_cpp_err=yes
23930 if test -z "$ac_cpp_err"; then
23931 ac_header_preproc=yes
23932 else
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 ac_header_preproc=no
23939 rm -f conftest.err conftest.$ac_ext
23940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23941 echo "${ECHO_T}$ac_header_preproc" >&6; }
23943 # So? What about this header?
23944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23945 yes:no: )
23946 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
23947 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23948 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
23949 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
23950 ac_header_preproc=yes
23952 no:yes:* )
23953 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
23954 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
23955 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
23956 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
23957 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
23958 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
23959 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
23960 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
23961 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
23962 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
23963 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
23964 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
23967 esac
23968 { echo "$as_me:$LINENO: checking for curses.h" >&5
23969 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
23970 if test "${ac_cv_header_curses_h+set}" = set; then
23971 echo $ECHO_N "(cached) $ECHO_C" >&6
23972 else
23973 ac_cv_header_curses_h=$ac_header_preproc
23975 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
23976 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
23979 if test $ac_cv_header_curses_h = yes; then
23980 NCURSES_HEADER_FOUND=1
23981 else
23982 NCURSES_HEADER_FOUND=0
23988 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
23989 if test -n "${NCURSES_MANDATORY}" ;
23990 then
23991 { echo "$as_me:$LINENO: ***" >&5
23992 echo "$as_me: ***" >&6;}
23993 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
23994 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
23995 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
23996 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
23997 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
23998 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
23999 exit 1
24001 NCURSES_LIB=""
24002 NCURSES_INCLUDE=""
24003 PBX_NCURSES=0
24004 else
24005 PBX_NCURSES=1
24007 cat >>confdefs.h <<_ACEOF
24008 #define HAVE_NCURSES 1
24009 _ACEOF
24012 elif test -n "${NCURSES_MANDATORY}";
24013 then
24014 { echo "$as_me:$LINENO: ***" >&5
24015 echo "$as_me: ***" >&6;}
24016 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
24017 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
24018 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24019 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24020 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
24021 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
24022 exit 1
24027 NETSNMP_CONFIG=No
24028 if test "${USE_NETSNMP}" != "no"; then
24029 if test "x${NETSNMP_DIR}" != "x"; then
24030 if test -n "$ac_tool_prefix"; then
24031 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
24032 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
24033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24035 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038 case $NETSNMP_CONFIG in
24039 [\\/]* | ?:[\\/]*)
24040 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
24043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24044 for as_dir in ${NETSNMP_DIR}/bin
24046 IFS=$as_save_IFS
24047 test -z "$as_dir" && as_dir=.
24048 for ac_exec_ext in '' $ac_executable_extensions; do
24049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24050 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24052 break 2
24054 done
24055 done
24056 IFS=$as_save_IFS
24059 esac
24061 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
24062 if test -n "$NETSNMP_CONFIG"; then
24063 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
24064 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
24065 else
24066 { echo "$as_me:$LINENO: result: no" >&5
24067 echo "${ECHO_T}no" >&6; }
24072 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
24073 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
24074 # Extract the first word of "net-snmp-config", so it can be a program name with args.
24075 set dummy net-snmp-config; ac_word=$2
24076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24078 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081 case $ac_pt_NETSNMP_CONFIG in
24082 [\\/]* | ?:[\\/]*)
24083 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
24086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24087 for as_dir in ${NETSNMP_DIR}/bin
24089 IFS=$as_save_IFS
24090 test -z "$as_dir" && as_dir=.
24091 for ac_exec_ext in '' $ac_executable_extensions; do
24092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24093 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24095 break 2
24097 done
24098 done
24099 IFS=$as_save_IFS
24102 esac
24104 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
24105 if test -n "$ac_pt_NETSNMP_CONFIG"; then
24106 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
24107 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
24108 else
24109 { echo "$as_me:$LINENO: result: no" >&5
24110 echo "${ECHO_T}no" >&6; }
24113 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
24114 NETSNMP_CONFIG="No"
24115 else
24116 case $cross_compiling:$ac_tool_warned in
24117 yes:)
24118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24119 whose name does not start with the host triplet. If you think this
24120 configuration is useful to you, please write to autoconf@gnu.org." >&5
24121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24122 whose name does not start with the host triplet. If you think this
24123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24124 ac_tool_warned=yes ;;
24125 esac
24126 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
24128 else
24129 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
24132 if test x"${NETSNMP_CONFIG}" = xNo; then
24133 { echo "$as_me:$LINENO: ***" >&5
24134 echo "$as_me: ***" >&6;}
24135 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
24136 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
24137 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
24138 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
24139 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24140 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24141 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
24142 echo "$as_me: *** including --without-netsnmp" >&6;}
24143 exit 1
24145 else
24146 if test -n "$ac_tool_prefix"; then
24147 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
24148 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
24149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24151 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 else
24154 case $NETSNMP_CONFIG in
24155 [\\/]* | ?:[\\/]*)
24156 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
24159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24160 for as_dir in $PATH
24162 IFS=$as_save_IFS
24163 test -z "$as_dir" && as_dir=.
24164 for ac_exec_ext in '' $ac_executable_extensions; do
24165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24166 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24168 break 2
24170 done
24171 done
24172 IFS=$as_save_IFS
24175 esac
24177 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
24178 if test -n "$NETSNMP_CONFIG"; then
24179 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
24180 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
24181 else
24182 { echo "$as_me:$LINENO: result: no" >&5
24183 echo "${ECHO_T}no" >&6; }
24188 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
24189 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
24190 # Extract the first word of "net-snmp-config", so it can be a program name with args.
24191 set dummy net-snmp-config; ac_word=$2
24192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24194 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24196 else
24197 case $ac_pt_NETSNMP_CONFIG in
24198 [\\/]* | ?:[\\/]*)
24199 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
24202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24203 for as_dir in $PATH
24205 IFS=$as_save_IFS
24206 test -z "$as_dir" && as_dir=.
24207 for ac_exec_ext in '' $ac_executable_extensions; do
24208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24209 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24211 break 2
24213 done
24214 done
24215 IFS=$as_save_IFS
24218 esac
24220 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
24221 if test -n "$ac_pt_NETSNMP_CONFIG"; then
24222 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
24223 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
24224 else
24225 { echo "$as_me:$LINENO: result: no" >&5
24226 echo "${ECHO_T}no" >&6; }
24229 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
24230 NETSNMP_CONFIG="No"
24231 else
24232 case $cross_compiling:$ac_tool_warned in
24233 yes:)
24234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24235 whose name does not start with the host triplet. If you think this
24236 configuration is useful to you, please write to autoconf@gnu.org." >&5
24237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24238 whose name does not start with the host triplet. If you think this
24239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24240 ac_tool_warned=yes ;;
24241 esac
24242 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
24244 else
24245 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
24250 if test x"${NETSNMP_CONFIG}" != xNo; then
24251 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
24253 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
24254 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
24255 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258 ac_check_lib_save_LIBS=$LIBS
24259 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24267 /* Override any GCC internal prototype to avoid an error.
24268 Use char because int might match the return type of a GCC
24269 builtin and then its argument prototype would still apply. */
24270 #ifdef __cplusplus
24271 extern "C"
24272 #endif
24273 char snmp_register_callback ();
24275 main ()
24277 return snmp_register_callback ();
24279 return 0;
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_link") 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
24296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24297 { (case "(($ac_try" in
24298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24299 *) ac_try_echo=$ac_try;;
24300 esac
24301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24302 (eval "$ac_try") 2>&5
24303 ac_status=$?
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; } &&
24306 { ac_try='test -s conftest$ac_exeext'
24307 { (case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_try") 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; }; then
24316 ac_cv_lib_netsnmp_snmp_register_callback=yes
24317 else
24318 echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24321 ac_cv_lib_netsnmp_snmp_register_callback=no
24324 rm -f core conftest.err conftest.$ac_objext \
24325 conftest$ac_exeext conftest.$ac_ext
24326 LIBS=$ac_check_lib_save_LIBS
24328 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
24329 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
24330 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
24332 cat >>confdefs.h <<_ACEOF
24333 #define HAVE_NETSNMP 1
24334 _ACEOF
24339 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
24340 NETSNMP_LIB="${NETSNMP_libs}"
24341 PBX_NETSNMP=1
24342 elif test -n "${NETSNMP_MANDATORY}";
24343 then
24344 { echo "$as_me:$LINENO: ***" >&5
24345 echo "$as_me: ***" >&6;}
24346 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
24347 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
24348 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24349 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24350 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
24351 echo "$as_me: *** including --without-netsnmp" >&6;}
24352 exit 1
24354 elif test -n "${NETSNMP_MANDATORY}";
24355 then
24356 { echo "$as_me:$LINENO: ***" >&5
24357 echo "$as_me: ***" >&6;}
24358 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
24359 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
24360 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24361 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24362 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
24363 echo "$as_me: *** including --without-netsnmp" >&6;}
24364 exit 1
24368 if test "${USE_NEWT}" != "no"; then
24369 pbxlibdir=""
24370 if test "x${NEWT_DIR}" != "x"; then
24371 if test -d ${NEWT_DIR}/lib; then
24372 pbxlibdir="-L${NEWT_DIR}/lib"
24373 else
24374 pbxlibdir="-L${NEWT_DIR}"
24377 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
24378 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
24379 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
24380 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 else
24382 ac_check_lib_save_LIBS=$LIBS
24383 LIBS="-lnewt ${pbxlibdir} $LIBS"
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24391 /* Override any GCC internal prototype to avoid an error.
24392 Use char because int might match the return type of a GCC
24393 builtin and then its argument prototype would still apply. */
24394 #ifdef __cplusplus
24395 extern "C"
24396 #endif
24397 char newtBell ();
24399 main ()
24401 return newtBell ();
24403 return 0;
24405 _ACEOF
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (ac_try="$ac_link"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_link") 2>conftest.er1
24414 ac_status=$?
24415 grep -v '^ *+' conftest.er1 >conftest.err
24416 rm -f conftest.er1
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } &&
24420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24421 { (case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_try") 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
24430 { ac_try='test -s conftest$ac_exeext'
24431 { (case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24434 esac
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436 (eval "$ac_try") 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 ac_cv_lib_newt_newtBell=yes
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_cv_lib_newt_newtBell=no
24448 rm -f core conftest.err conftest.$ac_objext \
24449 conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24452 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
24453 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
24454 if test $ac_cv_lib_newt_newtBell = yes; then
24455 AST_NEWT_FOUND=yes
24456 else
24457 AST_NEWT_FOUND=no
24461 if test "${AST_NEWT_FOUND}" = "yes"; then
24462 NEWT_LIB="-lnewt "
24463 NEWT_HEADER_FOUND="1"
24464 if test "x${NEWT_DIR}" != "x"; then
24465 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
24466 NEWT_INCLUDE="-I${NEWT_DIR}/include"
24467 saved_cppflags="${CPPFLAGS}"
24468 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
24469 if test "xnewt.h" != "x" ; then
24470 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
24471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24472 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
24473 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
24474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 ac_res=`eval echo '${'$as_ac_Header'}'`
24478 { echo "$as_me:$LINENO: result: $ac_res" >&5
24479 echo "${ECHO_T}$ac_res" >&6; }
24480 else
24481 # Is the header compilable?
24482 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
24483 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
24484 cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24491 #include <${NEWT_DIR}/include/newt.h>
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
24507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24508 { (case "(($ac_try" in
24509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510 *) ac_try_echo=$ac_try;;
24511 esac
24512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513 (eval "$ac_try") 2>&5
24514 ac_status=$?
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; } &&
24517 { ac_try='test -s conftest.$ac_objext'
24518 { (case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_try") 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; }; then
24527 ac_header_compiler=yes
24528 else
24529 echo "$as_me: failed program was:" >&5
24530 sed 's/^/| /' conftest.$ac_ext >&5
24532 ac_header_compiler=no
24535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24537 echo "${ECHO_T}$ac_header_compiler" >&6; }
24539 # Is the header present?
24540 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
24541 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
24542 cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h. */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h. */
24548 #include <${NEWT_DIR}/include/newt.h>
24549 _ACEOF
24550 if { (ac_try="$ac_cpp conftest.$ac_ext"
24551 case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24554 esac
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24557 ac_status=$?
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } >/dev/null; then
24563 if test -s conftest.err; then
24564 ac_cpp_err=$ac_c_preproc_warn_flag
24565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24566 else
24567 ac_cpp_err=
24569 else
24570 ac_cpp_err=yes
24572 if test -z "$ac_cpp_err"; then
24573 ac_header_preproc=yes
24574 else
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_header_preproc=no
24581 rm -f conftest.err conftest.$ac_ext
24582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24583 echo "${ECHO_T}$ac_header_preproc" >&6; }
24585 # So? What about this header?
24586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24587 yes:no: )
24588 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24589 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24590 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
24591 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
24592 ac_header_preproc=yes
24594 no:yes:* )
24595 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
24596 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
24598 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
24600 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
24601 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
24602 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24603 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
24604 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
24605 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
24606 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
24609 esac
24610 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
24611 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
24612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615 eval "$as_ac_Header=\$ac_header_preproc"
24617 ac_res=`eval echo '${'$as_ac_Header'}'`
24618 { echo "$as_me:$LINENO: result: $ac_res" >&5
24619 echo "${ECHO_T}$ac_res" >&6; }
24622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24623 NEWT_HEADER_FOUND=1
24624 else
24625 NEWT_HEADER_FOUND=0
24630 CPPFLAGS="${saved_cppflags}"
24631 else
24632 if test "xnewt.h" != "x" ; then
24633 if test "${ac_cv_header_newt_h+set}" = set; then
24634 { echo "$as_me:$LINENO: checking for newt.h" >&5
24635 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
24636 if test "${ac_cv_header_newt_h+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
24640 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
24641 else
24642 # Is the header compilable?
24643 { echo "$as_me:$LINENO: checking newt.h usability" >&5
24644 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
24645 cat >conftest.$ac_ext <<_ACEOF
24646 /* confdefs.h. */
24647 _ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h. */
24651 $ac_includes_default
24652 #include <newt.h>
24653 _ACEOF
24654 rm -f conftest.$ac_objext
24655 if { (ac_try="$ac_compile"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_compile") 2>conftest.er1
24662 ac_status=$?
24663 grep -v '^ *+' conftest.er1 >conftest.err
24664 rm -f conftest.er1
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } &&
24678 { ac_try='test -s conftest.$ac_objext'
24679 { (case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24682 esac
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_try") 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24688 ac_header_compiler=yes
24689 else
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24693 ac_header_compiler=no
24696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24698 echo "${ECHO_T}$ac_header_compiler" >&6; }
24700 # Is the header present?
24701 { echo "$as_me:$LINENO: checking newt.h presence" >&5
24702 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
24703 cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h. */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24709 #include <newt.h>
24710 _ACEOF
24711 if { (ac_try="$ac_cpp conftest.$ac_ext"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } >/dev/null; then
24724 if test -s conftest.err; then
24725 ac_cpp_err=$ac_c_preproc_warn_flag
24726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24727 else
24728 ac_cpp_err=
24730 else
24731 ac_cpp_err=yes
24733 if test -z "$ac_cpp_err"; then
24734 ac_header_preproc=yes
24735 else
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_header_preproc=no
24742 rm -f conftest.err conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24744 echo "${ECHO_T}$ac_header_preproc" >&6; }
24746 # So? What about this header?
24747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24748 yes:no: )
24749 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24750 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
24752 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
24753 ac_header_preproc=yes
24755 no:yes:* )
24756 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
24757 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
24759 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
24760 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
24761 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
24762 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
24763 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
24765 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
24766 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
24767 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
24770 esac
24771 { echo "$as_me:$LINENO: checking for newt.h" >&5
24772 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
24773 if test "${ac_cv_header_newt_h+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776 ac_cv_header_newt_h=$ac_header_preproc
24778 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
24779 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
24782 if test $ac_cv_header_newt_h = yes; then
24783 NEWT_HEADER_FOUND=1
24784 else
24785 NEWT_HEADER_FOUND=0
24791 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
24792 if test -n "${NEWT_MANDATORY}" ;
24793 then
24794 { echo "$as_me:$LINENO: ***" >&5
24795 echo "$as_me: ***" >&6;}
24796 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
24797 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
24798 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
24799 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
24800 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
24801 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
24802 exit 1
24804 NEWT_LIB=""
24805 NEWT_INCLUDE=""
24806 PBX_NEWT=0
24807 else
24808 PBX_NEWT=1
24810 cat >>confdefs.h <<_ACEOF
24811 #define HAVE_NEWT 1
24812 _ACEOF
24815 elif test -n "${NEWT_MANDATORY}";
24816 then
24817 { echo "$as_me:$LINENO: ***" >&5
24818 echo "$as_me: ***" >&6;}
24819 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
24820 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
24821 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24822 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24823 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
24824 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
24825 exit 1
24831 if test "${USE_UNIXODBC}" != "no"; then
24832 pbxlibdir=""
24833 if test "x${UNIXODBC_DIR}" != "x"; then
24834 if test -d ${UNIXODBC_DIR}/lib; then
24835 pbxlibdir="-L${UNIXODBC_DIR}/lib"
24836 else
24837 pbxlibdir="-L${UNIXODBC_DIR}"
24840 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
24841 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
24842 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 else
24845 ac_check_lib_save_LIBS=$LIBS
24846 LIBS="-lodbc ${pbxlibdir} $LIBS"
24847 cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h. */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24854 /* Override any GCC internal prototype to avoid an error.
24855 Use char because int might match the return type of a GCC
24856 builtin and then its argument prototype would still apply. */
24857 #ifdef __cplusplus
24858 extern "C"
24859 #endif
24860 char SQLConnect ();
24862 main ()
24864 return SQLConnect ();
24866 return 0;
24868 _ACEOF
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (ac_try="$ac_link"
24871 case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_link") 2>conftest.er1
24877 ac_status=$?
24878 grep -v '^ *+' conftest.er1 >conftest.err
24879 rm -f conftest.er1
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24884 { (case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_try") 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
24894 { (case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_try") 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; }; then
24903 ac_cv_lib_odbc_SQLConnect=yes
24904 else
24905 echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 ac_cv_lib_odbc_SQLConnect=no
24911 rm -f core conftest.err conftest.$ac_objext \
24912 conftest$ac_exeext conftest.$ac_ext
24913 LIBS=$ac_check_lib_save_LIBS
24915 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
24916 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
24917 if test $ac_cv_lib_odbc_SQLConnect = yes; then
24918 AST_UNIXODBC_FOUND=yes
24919 else
24920 AST_UNIXODBC_FOUND=no
24924 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
24925 UNIXODBC_LIB="-lodbc "
24926 UNIXODBC_HEADER_FOUND="1"
24927 if test "x${UNIXODBC_DIR}" != "x"; then
24928 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
24929 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
24930 saved_cppflags="${CPPFLAGS}"
24931 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
24932 if test "xsql.h" != "x" ; then
24933 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
24934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24935 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
24936 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
24937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 ac_res=`eval echo '${'$as_ac_Header'}'`
24941 { echo "$as_me:$LINENO: result: $ac_res" >&5
24942 echo "${ECHO_T}$ac_res" >&6; }
24943 else
24944 # Is the header compilable?
24945 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
24946 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
24947 cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h. */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953 $ac_includes_default
24954 #include <${UNIXODBC_DIR}/include/sql.h>
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_compile") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } &&
24970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24971 { (case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_try") 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; } &&
24980 { ac_try='test -s conftest.$ac_objext'
24981 { (case "(($ac_try" in
24982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983 *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986 (eval "$ac_try") 2>&5
24987 ac_status=$?
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
24990 ac_header_compiler=yes
24991 else
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ac_header_compiler=no
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25000 echo "${ECHO_T}$ac_header_compiler" >&6; }
25002 # Is the header present?
25003 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
25004 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
25005 cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h. */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25011 #include <${UNIXODBC_DIR}/include/sql.h>
25012 _ACEOF
25013 if { (ac_try="$ac_cpp conftest.$ac_ext"
25014 case "(($ac_try" in
25015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25016 *) ac_try_echo=$ac_try;;
25017 esac
25018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25020 ac_status=$?
25021 grep -v '^ *+' conftest.er1 >conftest.err
25022 rm -f conftest.er1
25023 cat conftest.err >&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); } >/dev/null; then
25026 if test -s conftest.err; then
25027 ac_cpp_err=$ac_c_preproc_warn_flag
25028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25029 else
25030 ac_cpp_err=
25032 else
25033 ac_cpp_err=yes
25035 if test -z "$ac_cpp_err"; then
25036 ac_header_preproc=yes
25037 else
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25041 ac_header_preproc=no
25044 rm -f conftest.err conftest.$ac_ext
25045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25046 echo "${ECHO_T}$ac_header_preproc" >&6; }
25048 # So? What about this header?
25049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25050 yes:no: )
25051 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25052 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
25054 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
25055 ac_header_preproc=yes
25057 no:yes:* )
25058 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
25059 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
25061 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
25063 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
25065 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
25067 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
25068 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
25069 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
25072 esac
25073 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
25074 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
25075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078 eval "$as_ac_Header=\$ac_header_preproc"
25080 ac_res=`eval echo '${'$as_ac_Header'}'`
25081 { echo "$as_me:$LINENO: result: $ac_res" >&5
25082 echo "${ECHO_T}$ac_res" >&6; }
25085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25086 UNIXODBC_HEADER_FOUND=1
25087 else
25088 UNIXODBC_HEADER_FOUND=0
25093 CPPFLAGS="${saved_cppflags}"
25094 else
25095 if test "xsql.h" != "x" ; then
25096 if test "${ac_cv_header_sql_h+set}" = set; then
25097 { echo "$as_me:$LINENO: checking for sql.h" >&5
25098 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
25099 if test "${ac_cv_header_sql_h+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25103 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
25104 else
25105 # Is the header compilable?
25106 { echo "$as_me:$LINENO: checking sql.h usability" >&5
25107 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
25108 cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h. */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114 $ac_includes_default
25115 #include <sql.h>
25116 _ACEOF
25117 rm -f conftest.$ac_objext
25118 if { (ac_try="$ac_compile"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122 esac
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_compile") 2>conftest.er1
25125 ac_status=$?
25126 grep -v '^ *+' conftest.er1 >conftest.err
25127 rm -f conftest.er1
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } &&
25131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25132 { (case "(($ac_try" in
25133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134 *) ac_try_echo=$ac_try;;
25135 esac
25136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25137 (eval "$ac_try") 2>&5
25138 ac_status=$?
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); }; } &&
25141 { ac_try='test -s conftest.$ac_objext'
25142 { (case "(($ac_try" in
25143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144 *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147 (eval "$ac_try") 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 ac_header_compiler=yes
25152 else
25153 echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25156 ac_header_compiler=no
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25161 echo "${ECHO_T}$ac_header_compiler" >&6; }
25163 # Is the header present?
25164 { echo "$as_me:$LINENO: checking sql.h presence" >&5
25165 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h. */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 #include <sql.h>
25173 _ACEOF
25174 if { (ac_try="$ac_cpp conftest.$ac_ext"
25175 case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25178 esac
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25181 ac_status=$?
25182 grep -v '^ *+' conftest.er1 >conftest.err
25183 rm -f conftest.er1
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } >/dev/null; then
25187 if test -s conftest.err; then
25188 ac_cpp_err=$ac_c_preproc_warn_flag
25189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25190 else
25191 ac_cpp_err=
25193 else
25194 ac_cpp_err=yes
25196 if test -z "$ac_cpp_err"; then
25197 ac_header_preproc=yes
25198 else
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_header_preproc=no
25205 rm -f conftest.err conftest.$ac_ext
25206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25207 echo "${ECHO_T}$ac_header_preproc" >&6; }
25209 # So? What about this header?
25210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25211 yes:no: )
25212 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25213 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25214 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
25215 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
25216 ac_header_preproc=yes
25218 no:yes:* )
25219 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25220 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
25221 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25222 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
25223 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
25224 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
25225 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
25226 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
25227 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25228 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25229 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
25230 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
25233 esac
25234 { echo "$as_me:$LINENO: checking for sql.h" >&5
25235 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
25236 if test "${ac_cv_header_sql_h+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239 ac_cv_header_sql_h=$ac_header_preproc
25241 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25242 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
25245 if test $ac_cv_header_sql_h = yes; then
25246 UNIXODBC_HEADER_FOUND=1
25247 else
25248 UNIXODBC_HEADER_FOUND=0
25254 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
25255 if test -n "${UNIXODBC_MANDATORY}" ;
25256 then
25257 { echo "$as_me:$LINENO: ***" >&5
25258 echo "$as_me: ***" >&6;}
25259 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
25260 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
25261 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
25262 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
25263 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
25264 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
25265 exit 1
25267 UNIXODBC_LIB=""
25268 UNIXODBC_INCLUDE=""
25269 PBX_UNIXODBC=0
25270 else
25271 PBX_UNIXODBC=1
25273 cat >>confdefs.h <<_ACEOF
25274 #define HAVE_UNIXODBC 1
25275 _ACEOF
25278 elif test -n "${UNIXODBC_MANDATORY}";
25279 then
25280 { echo "$as_me:$LINENO: ***" >&5
25281 echo "$as_me: ***" >&6;}
25282 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
25283 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
25284 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25285 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25286 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
25287 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
25288 exit 1
25294 if test "${USE_OGG}" != "no"; then
25295 pbxlibdir=""
25296 if test "x${OGG_DIR}" != "x"; then
25297 if test -d ${OGG_DIR}/lib; then
25298 pbxlibdir="-L${OGG_DIR}/lib"
25299 else
25300 pbxlibdir="-L${OGG_DIR}"
25303 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
25304 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
25305 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 else
25308 ac_check_lib_save_LIBS=$LIBS
25309 LIBS="-logg ${pbxlibdir} $LIBS"
25310 cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h. */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25317 /* Override any GCC internal prototype to avoid an error.
25318 Use char because int might match the return type of a GCC
25319 builtin and then its argument prototype would still apply. */
25320 #ifdef __cplusplus
25321 extern "C"
25322 #endif
25323 char ogg_sync_init ();
25325 main ()
25327 return ogg_sync_init ();
25329 return 0;
25331 _ACEOF
25332 rm -f conftest.$ac_objext conftest$ac_exeext
25333 if { (ac_try="$ac_link"
25334 case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_link") 2>conftest.er1
25340 ac_status=$?
25341 grep -v '^ *+' conftest.er1 >conftest.err
25342 rm -f conftest.er1
25343 cat conftest.err >&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); } &&
25346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25347 { (case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_try") 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
25357 { (case "(($ac_try" in
25358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25360 esac
25361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25362 (eval "$ac_try") 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_lib_ogg_ogg_sync_init=yes
25367 else
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_cv_lib_ogg_ogg_sync_init=no
25374 rm -f core conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25378 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
25379 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
25380 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
25381 AST_OGG_FOUND=yes
25382 else
25383 AST_OGG_FOUND=no
25387 if test "${AST_OGG_FOUND}" = "yes"; then
25388 OGG_LIB="-logg "
25389 OGG_HEADER_FOUND="1"
25390 if test "x${OGG_DIR}" != "x"; then
25391 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
25392 OGG_INCLUDE="-I${OGG_DIR}/include"
25393 saved_cppflags="${CPPFLAGS}"
25394 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
25395 if test "x" != "x" ; then
25396 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
25397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25398 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
25399 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
25400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 ac_res=`eval echo '${'$as_ac_Header'}'`
25404 { echo "$as_me:$LINENO: result: $ac_res" >&5
25405 echo "${ECHO_T}$ac_res" >&6; }
25406 else
25407 # Is the header compilable?
25408 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
25409 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h. */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 $ac_includes_default
25417 #include <${OGG_DIR}/include/>
25418 _ACEOF
25419 rm -f conftest.$ac_objext
25420 if { (ac_try="$ac_compile"
25421 case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426 (eval "$ac_compile") 2>conftest.er1
25427 ac_status=$?
25428 grep -v '^ *+' conftest.er1 >conftest.err
25429 rm -f conftest.er1
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25434 { (case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_try") 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest.$ac_objext'
25444 { (case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_try") 2>&5
25450 ac_status=$?
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; }; then
25453 ac_header_compiler=yes
25454 else
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ac_header_compiler=no
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25463 echo "${ECHO_T}$ac_header_compiler" >&6; }
25465 # Is the header present?
25466 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
25467 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h. */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 #include <${OGG_DIR}/include/>
25475 _ACEOF
25476 if { (ac_try="$ac_cpp conftest.$ac_ext"
25477 case "(($ac_try" in
25478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25483 ac_status=$?
25484 grep -v '^ *+' conftest.er1 >conftest.err
25485 rm -f conftest.er1
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } >/dev/null; then
25489 if test -s conftest.err; then
25490 ac_cpp_err=$ac_c_preproc_warn_flag
25491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25492 else
25493 ac_cpp_err=
25495 else
25496 ac_cpp_err=yes
25498 if test -z "$ac_cpp_err"; then
25499 ac_header_preproc=yes
25500 else
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 yes:no: )
25514 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
25518 ac_header_preproc=yes
25520 no:yes:* )
25521 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25535 esac
25536 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
25537 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541 eval "$as_ac_Header=\$ac_header_preproc"
25543 ac_res=`eval echo '${'$as_ac_Header'}'`
25544 { echo "$as_me:$LINENO: result: $ac_res" >&5
25545 echo "${ECHO_T}$ac_res" >&6; }
25548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25549 OGG_HEADER_FOUND=1
25550 else
25551 OGG_HEADER_FOUND=0
25556 CPPFLAGS="${saved_cppflags}"
25557 else
25558 if test "x" != "x" ; then
25559 if test "${ac_cv_header_+set}" = set; then
25560 { echo "$as_me:$LINENO: checking for " >&5
25561 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25562 if test "${ac_cv_header_+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25566 echo "${ECHO_T}$ac_cv_header_" >&6; }
25567 else
25568 # Is the header compilable?
25569 { echo "$as_me:$LINENO: checking usability" >&5
25570 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25571 cat >conftest.$ac_ext <<_ACEOF
25572 /* confdefs.h. */
25573 _ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25577 $ac_includes_default
25578 #include <>
25579 _ACEOF
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_compile") 2>conftest.er1
25588 ac_status=$?
25589 grep -v '^ *+' conftest.er1 >conftest.err
25590 rm -f conftest.er1
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } &&
25594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25595 { (case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25598 esac
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600 (eval "$ac_try") 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest.$ac_objext'
25605 { (case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_try") 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_header_compiler=yes
25615 else
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25619 ac_header_compiler=no
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25624 echo "${ECHO_T}$ac_header_compiler" >&6; }
25626 # Is the header present?
25627 { echo "$as_me:$LINENO: checking presence" >&5
25628 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h. */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <>
25636 _ACEOF
25637 if { (ac_try="$ac_cpp conftest.$ac_ext"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25644 ac_status=$?
25645 grep -v '^ *+' conftest.er1 >conftest.err
25646 rm -f conftest.er1
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } >/dev/null; then
25650 if test -s conftest.err; then
25651 ac_cpp_err=$ac_c_preproc_warn_flag
25652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25653 else
25654 ac_cpp_err=
25656 else
25657 ac_cpp_err=yes
25659 if test -z "$ac_cpp_err"; then
25660 ac_header_preproc=yes
25661 else
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25665 ac_header_preproc=no
25668 rm -f conftest.err conftest.$ac_ext
25669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25670 echo "${ECHO_T}$ac_header_preproc" >&6; }
25672 # So? What about this header?
25673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25674 yes:no: )
25675 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25676 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25678 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25679 ac_header_preproc=yes
25681 no:yes:* )
25682 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25683 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25685 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25686 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25687 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25688 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25689 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25690 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25691 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25693 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25696 esac
25697 { echo "$as_me:$LINENO: checking for " >&5
25698 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25699 if test "${ac_cv_header_+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702 ac_cv_header_=$ac_header_preproc
25704 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25705 echo "${ECHO_T}$ac_cv_header_" >&6; }
25708 if test $ac_cv_header_ = yes; then
25709 OGG_HEADER_FOUND=1
25710 else
25711 OGG_HEADER_FOUND=0
25717 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
25718 if test -n "${OGG_MANDATORY}" ;
25719 then
25720 { echo "$as_me:$LINENO: ***" >&5
25721 echo "$as_me: ***" >&6;}
25722 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
25723 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
25724 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
25725 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
25726 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
25727 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
25728 exit 1
25730 OGG_LIB=""
25731 OGG_INCLUDE=""
25732 PBX_OGG=0
25733 else
25734 PBX_OGG=1
25736 cat >>confdefs.h <<_ACEOF
25737 #define HAVE_OGG 1
25738 _ACEOF
25741 elif test -n "${OGG_MANDATORY}";
25742 then
25743 { echo "$as_me:$LINENO: ***" >&5
25744 echo "$as_me: ***" >&6;}
25745 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
25746 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
25747 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25748 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25749 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
25750 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
25751 exit 1
25756 if test "${USE_OSS}" != "no"; then
25757 PBX_OSS=0
25758 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
25759 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
25760 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
25761 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
25765 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
25766 else
25767 # Is the header compilable?
25768 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
25769 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
25770 cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h. */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25777 #include <linux/soundcard.h>
25778 _ACEOF
25779 rm -f conftest.$ac_objext
25780 if { (ac_try="$ac_compile"
25781 case "(($ac_try" in
25782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25783 *) ac_try_echo=$ac_try;;
25784 esac
25785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25786 (eval "$ac_compile") 2>conftest.er1
25787 ac_status=$?
25788 grep -v '^ *+' conftest.er1 >conftest.err
25789 rm -f conftest.er1
25790 cat conftest.err >&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } &&
25793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25794 { (case "(($ac_try" in
25795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25796 *) ac_try_echo=$ac_try;;
25797 esac
25798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25799 (eval "$ac_try") 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; } &&
25803 { ac_try='test -s conftest.$ac_objext'
25804 { (case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25807 esac
25808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25809 (eval "$ac_try") 2>&5
25810 ac_status=$?
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
25813 ac_header_compiler=yes
25814 else
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_header_compiler=no
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25823 echo "${ECHO_T}$ac_header_compiler" >&6; }
25825 # Is the header present?
25826 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
25827 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h. */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 #include <linux/soundcard.h>
25835 _ACEOF
25836 if { (ac_try="$ac_cpp conftest.$ac_ext"
25837 case "(($ac_try" in
25838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25840 esac
25841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25843 ac_status=$?
25844 grep -v '^ *+' conftest.er1 >conftest.err
25845 rm -f conftest.er1
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } >/dev/null; then
25849 if test -s conftest.err; then
25850 ac_cpp_err=$ac_c_preproc_warn_flag
25851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25852 else
25853 ac_cpp_err=
25855 else
25856 ac_cpp_err=yes
25858 if test -z "$ac_cpp_err"; then
25859 ac_header_preproc=yes
25860 else
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ac_header_preproc=no
25867 rm -f conftest.err conftest.$ac_ext
25868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25869 echo "${ECHO_T}$ac_header_preproc" >&6; }
25871 # So? What about this header?
25872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25873 yes:no: )
25874 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
25875 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25876 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
25877 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
25878 ac_header_preproc=yes
25880 no:yes:* )
25881 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
25882 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
25883 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
25884 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
25886 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
25887 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
25888 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
25890 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
25892 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
25895 esac
25896 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
25897 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
25898 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901 ac_cv_header_linux_soundcard_h=$ac_header_preproc
25903 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
25904 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
25907 if test $ac_cv_header_linux_soundcard_h = yes; then
25909 PBX_OSS=1
25911 cat >>confdefs.h <<_ACEOF
25912 #define HAVE_OSS 1
25913 _ACEOF
25919 if test "$PBX_OSS" = "0"; then
25920 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
25921 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
25922 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
25923 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25926 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
25927 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
25928 else
25929 # Is the header compilable?
25930 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
25931 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
25932 cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h. */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 $ac_includes_default
25939 #include <sys/soundcard.h>
25940 _ACEOF
25941 rm -f conftest.$ac_objext
25942 if { (ac_try="$ac_compile"
25943 case "(($ac_try" in
25944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945 *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948 (eval "$ac_compile") 2>conftest.er1
25949 ac_status=$?
25950 grep -v '^ *+' conftest.er1 >conftest.err
25951 rm -f conftest.er1
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
25955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25956 { (case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_try") 2>&5
25962 ac_status=$?
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; } &&
25965 { ac_try='test -s conftest.$ac_objext'
25966 { (case "(($ac_try" in
25967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968 *) ac_try_echo=$ac_try;;
25969 esac
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971 (eval "$ac_try") 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_header_compiler=yes
25976 else
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_header_compiler=no
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25985 echo "${ECHO_T}$ac_header_compiler" >&6; }
25987 # Is the header present?
25988 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
25989 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
25990 cat >conftest.$ac_ext <<_ACEOF
25991 /* confdefs.h. */
25992 _ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h. */
25996 #include <sys/soundcard.h>
25997 _ACEOF
25998 if { (ac_try="$ac_cpp conftest.$ac_ext"
25999 case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26002 esac
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26005 ac_status=$?
26006 grep -v '^ *+' conftest.er1 >conftest.err
26007 rm -f conftest.er1
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } >/dev/null; then
26011 if test -s conftest.err; then
26012 ac_cpp_err=$ac_c_preproc_warn_flag
26013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26014 else
26015 ac_cpp_err=
26017 else
26018 ac_cpp_err=yes
26020 if test -z "$ac_cpp_err"; then
26021 ac_header_preproc=yes
26022 else
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_header_preproc=no
26029 rm -f conftest.err conftest.$ac_ext
26030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26031 echo "${ECHO_T}$ac_header_preproc" >&6; }
26033 # So? What about this header?
26034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26035 yes:no: )
26036 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
26037 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26038 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
26039 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
26040 ac_header_preproc=yes
26042 no:yes:* )
26043 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
26044 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
26046 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
26048 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
26050 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
26052 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
26054 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
26057 esac
26058 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
26059 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
26060 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063 ac_cv_header_sys_soundcard_h=$ac_header_preproc
26065 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
26066 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
26069 if test $ac_cv_header_sys_soundcard_h = yes; then
26071 PBX_OSS=1
26073 cat >>confdefs.h <<_ACEOF
26074 #define HAVE_OSS 1
26075 _ACEOF
26082 if test "$PBX_OSS" = "0"; then
26084 if test "${USE_OSS}" != "no"; then
26085 pbxlibdir=""
26086 if test "x${OSS_DIR}" != "x"; then
26087 if test -d ${OSS_DIR}/lib; then
26088 pbxlibdir="-L${OSS_DIR}/lib"
26089 else
26090 pbxlibdir="-L${OSS_DIR}"
26093 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
26094 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
26095 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
26096 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 else
26098 ac_check_lib_save_LIBS=$LIBS
26099 LIBS="-lossaudio ${pbxlibdir} $LIBS"
26100 cat >conftest.$ac_ext <<_ACEOF
26101 /* confdefs.h. */
26102 _ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h. */
26107 /* Override any GCC internal prototype to avoid an error.
26108 Use char because int might match the return type of a GCC
26109 builtin and then its argument prototype would still apply. */
26110 #ifdef __cplusplus
26111 extern "C"
26112 #endif
26113 char oss_ioctl_mixer ();
26115 main ()
26117 return oss_ioctl_mixer ();
26119 return 0;
26121 _ACEOF
26122 rm -f conftest.$ac_objext conftest$ac_exeext
26123 if { (ac_try="$ac_link"
26124 case "(($ac_try" in
26125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126 *) ac_try_echo=$ac_try;;
26127 esac
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129 (eval "$ac_link") 2>conftest.er1
26130 ac_status=$?
26131 grep -v '^ *+' conftest.er1 >conftest.err
26132 rm -f conftest.er1
26133 cat conftest.err >&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
26136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26137 { (case "(($ac_try" in
26138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139 *) ac_try_echo=$ac_try;;
26140 esac
26141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26142 (eval "$ac_try") 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
26147 { (case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150 esac
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_try") 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; }; then
26156 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
26157 else
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26161 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
26164 rm -f core conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
26166 LIBS=$ac_check_lib_save_LIBS
26168 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
26169 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
26170 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
26171 AST_OSS_FOUND=yes
26172 else
26173 AST_OSS_FOUND=no
26177 if test "${AST_OSS_FOUND}" = "yes"; then
26178 OSS_LIB="-lossaudio "
26179 OSS_HEADER_FOUND="1"
26180 if test "x${OSS_DIR}" != "x"; then
26181 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
26182 OSS_INCLUDE="-I${OSS_DIR}/include"
26183 saved_cppflags="${CPPFLAGS}"
26184 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
26185 if test "xsoundcard.h" != "x" ; then
26186 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
26187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26188 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
26189 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
26190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26193 ac_res=`eval echo '${'$as_ac_Header'}'`
26194 { echo "$as_me:$LINENO: result: $ac_res" >&5
26195 echo "${ECHO_T}$ac_res" >&6; }
26196 else
26197 # Is the header compilable?
26198 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
26199 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
26200 cat >conftest.$ac_ext <<_ACEOF
26201 /* confdefs.h. */
26202 _ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h. */
26206 $ac_includes_default
26207 #include <${OSS_DIR}/include/soundcard.h>
26208 _ACEOF
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26214 esac
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216 (eval "$ac_compile") 2>conftest.er1
26217 ac_status=$?
26218 grep -v '^ *+' conftest.er1 >conftest.err
26219 rm -f conftest.er1
26220 cat conftest.err >&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } &&
26223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26224 { (case "(($ac_try" in
26225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26226 *) ac_try_echo=$ac_try;;
26227 esac
26228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26229 (eval "$ac_try") 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; } &&
26233 { ac_try='test -s conftest.$ac_objext'
26234 { (case "(($ac_try" in
26235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236 *) ac_try_echo=$ac_try;;
26237 esac
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239 (eval "$ac_try") 2>&5
26240 ac_status=$?
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 ac_header_compiler=yes
26244 else
26245 echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26248 ac_header_compiler=no
26251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26253 echo "${ECHO_T}$ac_header_compiler" >&6; }
26255 # Is the header present?
26256 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
26257 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
26258 cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h. */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include <${OSS_DIR}/include/soundcard.h>
26265 _ACEOF
26266 if { (ac_try="$ac_cpp conftest.$ac_ext"
26267 case "(($ac_try" in
26268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269 *) ac_try_echo=$ac_try;;
26270 esac
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26273 ac_status=$?
26274 grep -v '^ *+' conftest.er1 >conftest.err
26275 rm -f conftest.er1
26276 cat conftest.err >&5
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } >/dev/null; then
26279 if test -s conftest.err; then
26280 ac_cpp_err=$ac_c_preproc_warn_flag
26281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26282 else
26283 ac_cpp_err=
26285 else
26286 ac_cpp_err=yes
26288 if test -z "$ac_cpp_err"; then
26289 ac_header_preproc=yes
26290 else
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ac_header_preproc=no
26297 rm -f conftest.err conftest.$ac_ext
26298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26299 echo "${ECHO_T}$ac_header_preproc" >&6; }
26301 # So? What about this header?
26302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26303 yes:no: )
26304 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
26305 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26306 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
26307 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
26308 ac_header_preproc=yes
26310 no:yes:* )
26311 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
26312 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
26313 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
26314 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
26315 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
26316 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
26317 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
26318 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
26320 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
26321 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
26322 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
26325 esac
26326 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
26327 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
26328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26329 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 else
26331 eval "$as_ac_Header=\$ac_header_preproc"
26333 ac_res=`eval echo '${'$as_ac_Header'}'`
26334 { echo "$as_me:$LINENO: result: $ac_res" >&5
26335 echo "${ECHO_T}$ac_res" >&6; }
26338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26339 OSS_HEADER_FOUND=1
26340 else
26341 OSS_HEADER_FOUND=0
26346 CPPFLAGS="${saved_cppflags}"
26347 else
26348 if test "xsoundcard.h" != "x" ; then
26349 if test "${ac_cv_header_soundcard_h+set}" = set; then
26350 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
26351 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
26352 if test "${ac_cv_header_soundcard_h+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26355 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
26356 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
26357 else
26358 # Is the header compilable?
26359 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
26360 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h. */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 $ac_includes_default
26368 #include <soundcard.h>
26369 _ACEOF
26370 rm -f conftest.$ac_objext
26371 if { (ac_try="$ac_compile"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_compile") 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26385 { (case "(($ac_try" in
26386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387 *) ac_try_echo=$ac_try;;
26388 esac
26389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390 (eval "$ac_try") 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest.$ac_objext'
26395 { (case "(($ac_try" in
26396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397 *) ac_try_echo=$ac_try;;
26398 esac
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400 (eval "$ac_try") 2>&5
26401 ac_status=$?
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; }; then
26404 ac_header_compiler=yes
26405 else
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_header_compiler=no
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26414 echo "${ECHO_T}$ac_header_compiler" >&6; }
26416 # Is the header present?
26417 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
26418 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
26419 cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h. */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 #include <soundcard.h>
26426 _ACEOF
26427 if { (ac_try="$ac_cpp conftest.$ac_ext"
26428 case "(($ac_try" in
26429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26430 *) ac_try_echo=$ac_try;;
26431 esac
26432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26434 ac_status=$?
26435 grep -v '^ *+' conftest.er1 >conftest.err
26436 rm -f conftest.er1
26437 cat conftest.err >&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } >/dev/null; then
26440 if test -s conftest.err; then
26441 ac_cpp_err=$ac_c_preproc_warn_flag
26442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26443 else
26444 ac_cpp_err=
26446 else
26447 ac_cpp_err=yes
26449 if test -z "$ac_cpp_err"; then
26450 ac_header_preproc=yes
26451 else
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26455 ac_header_preproc=no
26458 rm -f conftest.err conftest.$ac_ext
26459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26460 echo "${ECHO_T}$ac_header_preproc" >&6; }
26462 # So? What about this header?
26463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26464 yes:no: )
26465 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
26466 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26467 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
26468 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
26469 ac_header_preproc=yes
26471 no:yes:* )
26472 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
26473 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
26475 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
26477 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
26478 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
26479 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
26481 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
26483 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
26486 esac
26487 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
26488 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
26489 if test "${ac_cv_header_soundcard_h+set}" = set; then
26490 echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492 ac_cv_header_soundcard_h=$ac_header_preproc
26494 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
26495 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
26498 if test $ac_cv_header_soundcard_h = yes; then
26499 OSS_HEADER_FOUND=1
26500 else
26501 OSS_HEADER_FOUND=0
26507 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
26508 if test -n "${OSS_MANDATORY}" ;
26509 then
26510 { echo "$as_me:$LINENO: ***" >&5
26511 echo "$as_me: ***" >&6;}
26512 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
26513 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
26514 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
26515 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
26516 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
26517 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
26518 exit 1
26520 OSS_LIB=""
26521 OSS_INCLUDE=""
26522 PBX_OSS=0
26523 else
26524 PBX_OSS=1
26526 cat >>confdefs.h <<_ACEOF
26527 #define HAVE_OSS 1
26528 _ACEOF
26531 elif test -n "${OSS_MANDATORY}";
26532 then
26533 { echo "$as_me:$LINENO: ***" >&5
26534 echo "$as_me: ***" >&6;}
26535 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
26536 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
26537 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26538 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26539 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
26540 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
26541 exit 1
26548 PG_CONFIG=No
26549 if test "${USE_PGSQL}" != "no"; then
26550 if test "x${PGSQL_DIR}" != "x"; then
26551 if test -n "$ac_tool_prefix"; then
26552 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
26553 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
26554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26556 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 else
26559 case $PG_CONFIG in
26560 [\\/]* | ?:[\\/]*)
26561 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
26564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26565 for as_dir in ${PGSQL_DIR}/bin
26567 IFS=$as_save_IFS
26568 test -z "$as_dir" && as_dir=.
26569 for ac_exec_ext in '' $ac_executable_extensions; do
26570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26571 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26573 break 2
26575 done
26576 done
26577 IFS=$as_save_IFS
26580 esac
26582 PG_CONFIG=$ac_cv_path_PG_CONFIG
26583 if test -n "$PG_CONFIG"; then
26584 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
26585 echo "${ECHO_T}$PG_CONFIG" >&6; }
26586 else
26587 { echo "$as_me:$LINENO: result: no" >&5
26588 echo "${ECHO_T}no" >&6; }
26593 if test -z "$ac_cv_path_PG_CONFIG"; then
26594 ac_pt_PG_CONFIG=$PG_CONFIG
26595 # Extract the first word of "pg_config", so it can be a program name with args.
26596 set dummy pg_config; ac_word=$2
26597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26599 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602 case $ac_pt_PG_CONFIG in
26603 [\\/]* | ?:[\\/]*)
26604 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
26607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26608 for as_dir in ${PGSQL_DIR}/bin
26610 IFS=$as_save_IFS
26611 test -z "$as_dir" && as_dir=.
26612 for ac_exec_ext in '' $ac_executable_extensions; do
26613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26614 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26616 break 2
26618 done
26619 done
26620 IFS=$as_save_IFS
26623 esac
26625 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
26626 if test -n "$ac_pt_PG_CONFIG"; then
26627 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
26628 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
26629 else
26630 { echo "$as_me:$LINENO: result: no" >&5
26631 echo "${ECHO_T}no" >&6; }
26634 if test "x$ac_pt_PG_CONFIG" = x; then
26635 PG_CONFIG="No"
26636 else
26637 case $cross_compiling:$ac_tool_warned in
26638 yes:)
26639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
26640 whose name does not start with the host triplet. If you think this
26641 configuration is useful to you, please write to autoconf@gnu.org." >&5
26642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
26643 whose name does not start with the host triplet. If you think this
26644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
26645 ac_tool_warned=yes ;;
26646 esac
26647 PG_CONFIG=$ac_pt_PG_CONFIG
26649 else
26650 PG_CONFIG="$ac_cv_path_PG_CONFIG"
26653 if test x"${PG_CONFIG}" = xNo; then
26654 { echo "$as_me:$LINENO: ***" >&5
26655 echo "$as_me: ***" >&6;}
26656 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
26657 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
26658 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
26659 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
26660 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26661 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26662 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
26663 echo "$as_me: *** including --without-postgres" >&6;}
26664 exit 1
26666 else
26667 if test -n "$ac_tool_prefix"; then
26668 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
26669 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
26670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26672 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675 case $PG_CONFIG in
26676 [\\/]* | ?:[\\/]*)
26677 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
26680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681 for as_dir in $PATH
26683 IFS=$as_save_IFS
26684 test -z "$as_dir" && as_dir=.
26685 for ac_exec_ext in '' $ac_executable_extensions; do
26686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26687 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26689 break 2
26691 done
26692 done
26693 IFS=$as_save_IFS
26696 esac
26698 PG_CONFIG=$ac_cv_path_PG_CONFIG
26699 if test -n "$PG_CONFIG"; then
26700 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
26701 echo "${ECHO_T}$PG_CONFIG" >&6; }
26702 else
26703 { echo "$as_me:$LINENO: result: no" >&5
26704 echo "${ECHO_T}no" >&6; }
26709 if test -z "$ac_cv_path_PG_CONFIG"; then
26710 ac_pt_PG_CONFIG=$PG_CONFIG
26711 # Extract the first word of "pg_config", so it can be a program name with args.
26712 set dummy pg_config; ac_word=$2
26713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26715 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717 else
26718 case $ac_pt_PG_CONFIG in
26719 [\\/]* | ?:[\\/]*)
26720 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
26723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26724 for as_dir in $PATH
26726 IFS=$as_save_IFS
26727 test -z "$as_dir" && as_dir=.
26728 for ac_exec_ext in '' $ac_executable_extensions; do
26729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26730 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26732 break 2
26734 done
26735 done
26736 IFS=$as_save_IFS
26739 esac
26741 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
26742 if test -n "$ac_pt_PG_CONFIG"; then
26743 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
26744 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
26745 else
26746 { echo "$as_me:$LINENO: result: no" >&5
26747 echo "${ECHO_T}no" >&6; }
26750 if test "x$ac_pt_PG_CONFIG" = x; then
26751 PG_CONFIG="No"
26752 else
26753 case $cross_compiling:$ac_tool_warned in
26754 yes:)
26755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
26756 whose name does not start with the host triplet. If you think this
26757 configuration is useful to you, please write to autoconf@gnu.org." >&5
26758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
26759 whose name does not start with the host triplet. If you think this
26760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
26761 ac_tool_warned=yes ;;
26762 esac
26763 PG_CONFIG=$ac_pt_PG_CONFIG
26765 else
26766 PG_CONFIG="$ac_cv_path_PG_CONFIG"
26771 if test "${PG_CONFIG}" != No; then
26772 PGSQL_libdir=`${PG_CONFIG} --libdir`
26773 PGSQL_includedir=`${PG_CONFIG} --includedir`
26775 if test "x$?" != "x0" ; then
26776 if test -n "${PGSQL_MANDATORY}" ; then
26777 { echo "$as_me:$LINENO: ***" >&5
26778 echo "$as_me: ***" >&6;}
26779 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
26780 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
26781 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26782 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26783 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
26784 echo "$as_me: *** including --without-postgres" >&6;}
26785 exit 1
26787 else
26788 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
26789 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
26790 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26792 else
26793 ac_check_lib_save_LIBS=$LIBS
26794 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h. */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26802 /* Override any GCC internal prototype to avoid an error.
26803 Use char because int might match the return type of a GCC
26804 builtin and then its argument prototype would still apply. */
26805 #ifdef __cplusplus
26806 extern "C"
26807 #endif
26808 char PQescapeStringConn ();
26810 main ()
26812 return PQescapeStringConn ();
26814 return 0;
26816 _ACEOF
26817 rm -f conftest.$ac_objext conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_link") 2>conftest.er1
26825 ac_status=$?
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26832 { (case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26835 esac
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837 (eval "$ac_try") 2>&5
26838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; } &&
26841 { ac_try='test -s conftest$ac_exeext'
26842 { (case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_try") 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 ac_cv_lib_pq_PQescapeStringConn=yes
26852 else
26853 echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 ac_cv_lib_pq_PQescapeStringConn=no
26859 rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26863 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
26864 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
26865 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
26867 cat >>confdefs.h <<_ACEOF
26868 #define HAVE_PGSQL 1
26869 _ACEOF
26874 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
26875 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
26876 PGSQL_INCLUDE="-I${PGSQL_includedir}"
26877 PBX_PGSQL=1
26878 elif test -n "${PGSQL_MANDATORY}";
26879 then
26880 { echo "$as_me:$LINENO: ***" >&5
26881 echo "$as_me: ***" >&6;}
26882 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
26883 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
26884 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26885 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26886 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
26887 echo "$as_me: *** including --without-postgres" >&6;}
26888 exit 1
26891 elif test -n "${PGSQL_MANDATORY}";
26892 then
26893 { echo "$as_me:$LINENO: ***" >&5
26894 echo "$as_me: ***" >&6;}
26895 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
26896 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
26897 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26898 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26899 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
26900 echo "$as_me: *** including --without-postgres" >&6;}
26901 exit 1
26905 if test "${USE_POPT}" != "no"; then
26906 pbxlibdir=""
26907 if test "x${POPT_DIR}" != "x"; then
26908 if test -d ${POPT_DIR}/lib; then
26909 pbxlibdir="-L${POPT_DIR}/lib"
26910 else
26911 pbxlibdir="-L${POPT_DIR}"
26914 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
26915 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
26916 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
26917 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 else
26919 ac_check_lib_save_LIBS=$LIBS
26920 LIBS="-lpopt ${pbxlibdir} $LIBS"
26921 cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h. */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26928 /* Override any GCC internal prototype to avoid an error.
26929 Use char because int might match the return type of a GCC
26930 builtin and then its argument prototype would still apply. */
26931 #ifdef __cplusplus
26932 extern "C"
26933 #endif
26934 char poptStrerror ();
26936 main ()
26938 return poptStrerror ();
26940 return 0;
26942 _ACEOF
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (ac_try="$ac_link"
26945 case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_link") 2>conftest.er1
26951 ac_status=$?
26952 grep -v '^ *+' conftest.er1 >conftest.err
26953 rm -f conftest.er1
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26958 { (case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_try") 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest$ac_exeext'
26968 { (case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_try") 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_lib_popt_poptStrerror=yes
26978 else
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26982 ac_cv_lib_popt_poptStrerror=no
26985 rm -f core conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
26987 LIBS=$ac_check_lib_save_LIBS
26989 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
26990 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
26991 if test $ac_cv_lib_popt_poptStrerror = yes; then
26992 AST_POPT_FOUND=yes
26993 else
26994 AST_POPT_FOUND=no
26998 if test "${AST_POPT_FOUND}" = "yes"; then
26999 POPT_LIB="-lpopt "
27000 POPT_HEADER_FOUND="1"
27001 if test "x${POPT_DIR}" != "x"; then
27002 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
27003 POPT_INCLUDE="-I${POPT_DIR}/include"
27004 saved_cppflags="${CPPFLAGS}"
27005 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
27006 if test "xpopt.h" != "x" ; then
27007 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
27008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27009 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
27010 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
27011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27012 echo $ECHO_N "(cached) $ECHO_C" >&6
27014 ac_res=`eval echo '${'$as_ac_Header'}'`
27015 { echo "$as_me:$LINENO: result: $ac_res" >&5
27016 echo "${ECHO_T}$ac_res" >&6; }
27017 else
27018 # Is the header compilable?
27019 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
27020 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
27021 cat >conftest.$ac_ext <<_ACEOF
27022 /* confdefs.h. */
27023 _ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27027 $ac_includes_default
27028 #include <${POPT_DIR}/include/popt.h>
27029 _ACEOF
27030 rm -f conftest.$ac_objext
27031 if { (ac_try="$ac_compile"
27032 case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_compile") 2>conftest.er1
27038 ac_status=$?
27039 grep -v '^ *+' conftest.er1 >conftest.err
27040 rm -f conftest.er1
27041 cat conftest.err >&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); } &&
27044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; } &&
27054 { ac_try='test -s conftest.$ac_objext'
27055 { (case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27058 esac
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_try") 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
27064 ac_header_compiler=yes
27065 else
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_header_compiler=no
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27074 echo "${ECHO_T}$ac_header_compiler" >&6; }
27076 # Is the header present?
27077 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
27078 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
27079 cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h. */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27085 #include <${POPT_DIR}/include/popt.h>
27086 _ACEOF
27087 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
27100 if test -s conftest.err; then
27101 ac_cpp_err=$ac_c_preproc_warn_flag
27102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27103 else
27104 ac_cpp_err=
27106 else
27107 ac_cpp_err=yes
27109 if test -z "$ac_cpp_err"; then
27110 ac_header_preproc=yes
27111 else
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27115 ac_header_preproc=no
27118 rm -f conftest.err conftest.$ac_ext
27119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27120 echo "${ECHO_T}$ac_header_preproc" >&6; }
27122 # So? What about this header?
27123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27124 yes:no: )
27125 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27126 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27127 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
27128 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
27129 ac_header_preproc=yes
27131 no:yes:* )
27132 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
27133 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
27135 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
27136 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
27137 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
27139 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
27141 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
27143 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
27146 esac
27147 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
27148 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
27149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152 eval "$as_ac_Header=\$ac_header_preproc"
27154 ac_res=`eval echo '${'$as_ac_Header'}'`
27155 { echo "$as_me:$LINENO: result: $ac_res" >&5
27156 echo "${ECHO_T}$ac_res" >&6; }
27159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27160 POPT_HEADER_FOUND=1
27161 else
27162 POPT_HEADER_FOUND=0
27167 CPPFLAGS="${saved_cppflags}"
27168 else
27169 if test "xpopt.h" != "x" ; then
27170 if test "${ac_cv_header_popt_h+set}" = set; then
27171 { echo "$as_me:$LINENO: checking for popt.h" >&5
27172 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
27173 if test "${ac_cv_header_popt_h+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27176 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
27177 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
27178 else
27179 # Is the header compilable?
27180 { echo "$as_me:$LINENO: checking popt.h usability" >&5
27181 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h. */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27188 $ac_includes_default
27189 #include <popt.h>
27190 _ACEOF
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27196 esac
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198 (eval "$ac_compile") 2>conftest.er1
27199 ac_status=$?
27200 grep -v '^ *+' conftest.er1 >conftest.err
27201 rm -f conftest.er1
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
27205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; } &&
27215 { ac_try='test -s conftest.$ac_objext'
27216 { (case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27219 esac
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_try") 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; }; then
27225 ac_header_compiler=yes
27226 else
27227 echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27230 ac_header_compiler=no
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27235 echo "${ECHO_T}$ac_header_compiler" >&6; }
27237 # Is the header present?
27238 { echo "$as_me:$LINENO: checking popt.h presence" >&5
27239 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
27240 cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h. */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 #include <popt.h>
27247 _ACEOF
27248 if { (ac_try="$ac_cpp conftest.$ac_ext"
27249 case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27255 ac_status=$?
27256 grep -v '^ *+' conftest.er1 >conftest.err
27257 rm -f conftest.er1
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } >/dev/null; then
27261 if test -s conftest.err; then
27262 ac_cpp_err=$ac_c_preproc_warn_flag
27263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27264 else
27265 ac_cpp_err=
27267 else
27268 ac_cpp_err=yes
27270 if test -z "$ac_cpp_err"; then
27271 ac_header_preproc=yes
27272 else
27273 echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27276 ac_header_preproc=no
27279 rm -f conftest.err conftest.$ac_ext
27280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27281 echo "${ECHO_T}$ac_header_preproc" >&6; }
27283 # So? What about this header?
27284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27285 yes:no: )
27286 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27287 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27288 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
27289 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
27290 ac_header_preproc=yes
27292 no:yes:* )
27293 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
27294 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
27296 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
27298 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
27300 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27301 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
27302 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
27303 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
27304 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
27307 esac
27308 { echo "$as_me:$LINENO: checking for popt.h" >&5
27309 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
27310 if test "${ac_cv_header_popt_h+set}" = set; then
27311 echo $ECHO_N "(cached) $ECHO_C" >&6
27312 else
27313 ac_cv_header_popt_h=$ac_header_preproc
27315 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
27316 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
27319 if test $ac_cv_header_popt_h = yes; then
27320 POPT_HEADER_FOUND=1
27321 else
27322 POPT_HEADER_FOUND=0
27328 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
27329 if test -n "${POPT_MANDATORY}" ;
27330 then
27331 { echo "$as_me:$LINENO: ***" >&5
27332 echo "$as_me: ***" >&6;}
27333 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
27334 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
27335 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
27336 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
27337 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
27338 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
27339 exit 1
27341 POPT_LIB=""
27342 POPT_INCLUDE=""
27343 PBX_POPT=0
27344 else
27345 PBX_POPT=1
27347 cat >>confdefs.h <<_ACEOF
27348 #define HAVE_POPT 1
27349 _ACEOF
27352 elif test -n "${POPT_MANDATORY}";
27353 then
27354 { echo "$as_me:$LINENO: ***" >&5
27355 echo "$as_me: ***" >&6;}
27356 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
27357 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
27358 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27359 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27360 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
27361 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
27362 exit 1
27368 if test "${USE_PRI}" != "no"; then
27369 pbxlibdir=""
27370 if test "x${PRI_DIR}" != "x"; then
27371 if test -d ${PRI_DIR}/lib; then
27372 pbxlibdir="-L${PRI_DIR}/lib"
27373 else
27374 pbxlibdir="-L${PRI_DIR}"
27377 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
27378 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
27379 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27381 else
27382 ac_check_lib_save_LIBS=$LIBS
27383 LIBS="-lpri ${pbxlibdir} $LIBS"
27384 cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h. */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27391 /* Override any GCC internal prototype to avoid an error.
27392 Use char because int might match the return type of a GCC
27393 builtin and then its argument prototype would still apply. */
27394 #ifdef __cplusplus
27395 extern "C"
27396 #endif
27397 char pri_keypad_facility ();
27399 main ()
27401 return pri_keypad_facility ();
27403 return 0;
27405 _ACEOF
27406 rm -f conftest.$ac_objext conftest$ac_exeext
27407 if { (ac_try="$ac_link"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_link") 2>conftest.er1
27414 ac_status=$?
27415 grep -v '^ *+' conftest.er1 >conftest.err
27416 rm -f conftest.er1
27417 cat conftest.err >&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } &&
27420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27421 { (case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27424 esac
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_try") 2>&5
27427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; } &&
27430 { ac_try='test -s conftest$ac_exeext'
27431 { (case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27434 esac
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_try") 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
27440 ac_cv_lib_pri_pri_keypad_facility=yes
27441 else
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ac_cv_lib_pri_pri_keypad_facility=no
27448 rm -f core conftest.err conftest.$ac_objext \
27449 conftest$ac_exeext conftest.$ac_ext
27450 LIBS=$ac_check_lib_save_LIBS
27452 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
27453 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
27454 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
27455 AST_PRI_FOUND=yes
27456 else
27457 AST_PRI_FOUND=no
27461 if test "${AST_PRI_FOUND}" = "yes"; then
27462 PRI_LIB="-lpri "
27463 PRI_HEADER_FOUND="1"
27464 if test "x${PRI_DIR}" != "x"; then
27465 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
27466 PRI_INCLUDE="-I${PRI_DIR}/include"
27467 saved_cppflags="${CPPFLAGS}"
27468 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
27469 if test "xlibpri.h" != "x" ; then
27470 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
27471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27472 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
27473 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
27474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27475 echo $ECHO_N "(cached) $ECHO_C" >&6
27477 ac_res=`eval echo '${'$as_ac_Header'}'`
27478 { echo "$as_me:$LINENO: result: $ac_res" >&5
27479 echo "${ECHO_T}$ac_res" >&6; }
27480 else
27481 # Is the header compilable?
27482 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
27483 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
27484 cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h. */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 $ac_includes_default
27491 #include <${PRI_DIR}/include/libpri.h>
27492 _ACEOF
27493 rm -f conftest.$ac_objext
27494 if { (ac_try="$ac_compile"
27495 case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498 esac
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_compile") 2>conftest.er1
27501 ac_status=$?
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
27507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27508 { (case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27511 esac
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_try") 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest.$ac_objext'
27518 { (case "(($ac_try" in
27519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27520 *) ac_try_echo=$ac_try;;
27521 esac
27522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27523 (eval "$ac_try") 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
27527 ac_header_compiler=yes
27528 else
27529 echo "$as_me: failed program was:" >&5
27530 sed 's/^/| /' conftest.$ac_ext >&5
27532 ac_header_compiler=no
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27537 echo "${ECHO_T}$ac_header_compiler" >&6; }
27539 # Is the header present?
27540 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
27541 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
27542 cat >conftest.$ac_ext <<_ACEOF
27543 /* confdefs.h. */
27544 _ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h. */
27548 #include <${PRI_DIR}/include/libpri.h>
27549 _ACEOF
27550 if { (ac_try="$ac_cpp conftest.$ac_ext"
27551 case "(($ac_try" in
27552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553 *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27557 ac_status=$?
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } >/dev/null; then
27563 if test -s conftest.err; then
27564 ac_cpp_err=$ac_c_preproc_warn_flag
27565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27566 else
27567 ac_cpp_err=
27569 else
27570 ac_cpp_err=yes
27572 if test -z "$ac_cpp_err"; then
27573 ac_header_preproc=yes
27574 else
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_header_preproc=no
27581 rm -f conftest.err conftest.$ac_ext
27582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27583 echo "${ECHO_T}$ac_header_preproc" >&6; }
27585 # So? What about this header?
27586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27587 yes:no: )
27588 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
27589 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27590 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
27591 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
27592 ac_header_preproc=yes
27594 no:yes:* )
27595 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
27596 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
27598 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
27600 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
27602 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
27604 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
27605 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
27606 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
27609 esac
27610 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
27611 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
27612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27613 echo $ECHO_N "(cached) $ECHO_C" >&6
27614 else
27615 eval "$as_ac_Header=\$ac_header_preproc"
27617 ac_res=`eval echo '${'$as_ac_Header'}'`
27618 { echo "$as_me:$LINENO: result: $ac_res" >&5
27619 echo "${ECHO_T}$ac_res" >&6; }
27622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27623 PRI_HEADER_FOUND=1
27624 else
27625 PRI_HEADER_FOUND=0
27630 CPPFLAGS="${saved_cppflags}"
27631 else
27632 if test "xlibpri.h" != "x" ; then
27633 if test "${ac_cv_header_libpri_h+set}" = set; then
27634 { echo "$as_me:$LINENO: checking for libpri.h" >&5
27635 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
27636 if test "${ac_cv_header_libpri_h+set}" = set; then
27637 echo $ECHO_N "(cached) $ECHO_C" >&6
27639 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
27640 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
27641 else
27642 # Is the header compilable?
27643 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
27644 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
27645 cat >conftest.$ac_ext <<_ACEOF
27646 /* confdefs.h. */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27651 $ac_includes_default
27652 #include <libpri.h>
27653 _ACEOF
27654 rm -f conftest.$ac_objext
27655 if { (ac_try="$ac_compile"
27656 case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27659 esac
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_compile") 2>conftest.er1
27662 ac_status=$?
27663 grep -v '^ *+' conftest.er1 >conftest.err
27664 rm -f conftest.er1
27665 cat conftest.err >&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); } &&
27668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27669 { (case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_try") 2>&5
27675 ac_status=$?
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest.$ac_objext'
27679 { (case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_try") 2>&5
27685 ac_status=$?
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
27688 ac_header_compiler=yes
27689 else
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 ac_header_compiler=no
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27698 echo "${ECHO_T}$ac_header_compiler" >&6; }
27700 # Is the header present?
27701 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
27702 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
27703 cat >conftest.$ac_ext <<_ACEOF
27704 /* confdefs.h. */
27705 _ACEOF
27706 cat confdefs.h >>conftest.$ac_ext
27707 cat >>conftest.$ac_ext <<_ACEOF
27708 /* end confdefs.h. */
27709 #include <libpri.h>
27710 _ACEOF
27711 if { (ac_try="$ac_cpp conftest.$ac_ext"
27712 case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27718 ac_status=$?
27719 grep -v '^ *+' conftest.er1 >conftest.err
27720 rm -f conftest.er1
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } >/dev/null; then
27724 if test -s conftest.err; then
27725 ac_cpp_err=$ac_c_preproc_warn_flag
27726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27727 else
27728 ac_cpp_err=
27730 else
27731 ac_cpp_err=yes
27733 if test -z "$ac_cpp_err"; then
27734 ac_header_preproc=yes
27735 else
27736 echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27739 ac_header_preproc=no
27742 rm -f conftest.err conftest.$ac_ext
27743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27744 echo "${ECHO_T}$ac_header_preproc" >&6; }
27746 # So? What about this header?
27747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27748 yes:no: )
27749 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
27750 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27751 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
27752 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
27753 ac_header_preproc=yes
27755 no:yes:* )
27756 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
27757 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
27758 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
27759 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
27760 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
27761 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
27762 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
27763 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
27764 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
27765 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
27766 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
27767 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
27770 esac
27771 { echo "$as_me:$LINENO: checking for libpri.h" >&5
27772 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
27773 if test "${ac_cv_header_libpri_h+set}" = set; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 else
27776 ac_cv_header_libpri_h=$ac_header_preproc
27778 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
27779 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
27782 if test $ac_cv_header_libpri_h = yes; then
27783 PRI_HEADER_FOUND=1
27784 else
27785 PRI_HEADER_FOUND=0
27791 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
27792 if test -n "${PRI_MANDATORY}" ;
27793 then
27794 { echo "$as_me:$LINENO: ***" >&5
27795 echo "$as_me: ***" >&6;}
27796 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
27797 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
27798 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
27799 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
27800 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
27801 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
27802 exit 1
27804 PRI_LIB=""
27805 PRI_INCLUDE=""
27806 PBX_PRI=0
27807 else
27808 PBX_PRI=1
27810 cat >>confdefs.h <<_ACEOF
27811 #define HAVE_PRI 1
27812 _ACEOF
27815 elif test -n "${PRI_MANDATORY}";
27816 then
27817 { echo "$as_me:$LINENO: ***" >&5
27818 echo "$as_me: ***" >&6;}
27819 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
27820 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
27821 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27822 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27823 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
27824 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
27825 exit 1
27830 if test "${USE_PWLIB}" != "no"; then
27831 if test -n "${PWLIB_DIR}"; then
27832 PWLIBDIR="${PWLIB_DIR}"
27836 PWLIB_INCDIR=
27837 PWLIB_LIBDIR=
27838 ac_ext=cpp
27839 ac_cpp='$CXXCPP $CPPFLAGS'
27840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27844 if test "${PWLIBDIR:-unset}" != "unset" ; then
27845 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
27846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27847 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
27848 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
27849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 ac_res=`eval echo '${'$as_ac_Header'}'`
27853 { echo "$as_me:$LINENO: result: $ac_res" >&5
27854 echo "${ECHO_T}$ac_res" >&6; }
27855 else
27856 # Is the header compilable?
27857 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
27858 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
27859 cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h. */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27865 $ac_includes_default
27866 #include <${PWLIBDIR}/version.h>
27867 _ACEOF
27868 rm -f conftest.$ac_objext
27869 if { (ac_try="$ac_compile"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_compile") 2>conftest.er1
27876 ac_status=$?
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest.$ac_objext'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 ac_header_compiler=yes
27903 else
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 ac_header_compiler=no
27910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27912 echo "${ECHO_T}$ac_header_compiler" >&6; }
27914 # Is the header present?
27915 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
27916 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
27917 cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h. */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 #include <${PWLIBDIR}/version.h>
27924 _ACEOF
27925 if { (ac_try="$ac_cpp conftest.$ac_ext"
27926 case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27932 ac_status=$?
27933 grep -v '^ *+' conftest.er1 >conftest.err
27934 rm -f conftest.er1
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } >/dev/null; then
27938 if test -s conftest.err; then
27939 ac_cpp_err=$ac_cxx_preproc_warn_flag
27940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27941 else
27942 ac_cpp_err=
27944 else
27945 ac_cpp_err=yes
27947 if test -z "$ac_cpp_err"; then
27948 ac_header_preproc=yes
27949 else
27950 echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27953 ac_header_preproc=no
27956 rm -f conftest.err conftest.$ac_ext
27957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27958 echo "${ECHO_T}$ac_header_preproc" >&6; }
27960 # So? What about this header?
27961 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27962 yes:no: )
27963 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27964 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27965 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
27966 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
27967 ac_header_preproc=yes
27969 no:yes:* )
27970 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
27971 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
27972 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
27973 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
27974 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
27975 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
27976 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27977 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27978 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
27979 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
27980 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
27981 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
27984 esac
27985 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
27986 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
27987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27989 else
27990 eval "$as_ac_Header=\$ac_header_preproc"
27992 ac_res=`eval echo '${'$as_ac_Header'}'`
27993 { echo "$as_me:$LINENO: result: $ac_res" >&5
27994 echo "${ECHO_T}$ac_res" >&6; }
27997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27998 HAS_PWLIB=1
28003 if test "${HAS_PWLIB:-unset}" = "unset" ; then
28004 if test "${OPENH323DIR:-unset}" != "unset"; then
28005 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
28006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28007 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
28008 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
28009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28010 echo $ECHO_N "(cached) $ECHO_C" >&6
28012 ac_res=`eval echo '${'$as_ac_Header'}'`
28013 { echo "$as_me:$LINENO: result: $ac_res" >&5
28014 echo "${ECHO_T}$ac_res" >&6; }
28015 else
28016 # Is the header compilable?
28017 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
28018 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
28019 cat >conftest.$ac_ext <<_ACEOF
28020 /* confdefs.h. */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025 $ac_includes_default
28026 #include <${OPENH323DIR}/../pwlib/version.h>
28027 _ACEOF
28028 rm -f conftest.$ac_objext
28029 if { (ac_try="$ac_compile"
28030 case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033 esac
28034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_compile") 2>conftest.er1
28036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
28042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28043 { (case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_try") 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest.$ac_objext'
28053 { (case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28056 esac
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_try") 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_header_compiler=yes
28063 else
28064 echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28067 ac_header_compiler=no
28070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28072 echo "${ECHO_T}$ac_header_compiler" >&6; }
28074 # Is the header present?
28075 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
28076 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
28077 cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h. */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h. */
28083 #include <${OPENH323DIR}/../pwlib/version.h>
28084 _ACEOF
28085 if { (ac_try="$ac_cpp conftest.$ac_ext"
28086 case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28092 ac_status=$?
28093 grep -v '^ *+' conftest.er1 >conftest.err
28094 rm -f conftest.er1
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } >/dev/null; then
28098 if test -s conftest.err; then
28099 ac_cpp_err=$ac_cxx_preproc_warn_flag
28100 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28101 else
28102 ac_cpp_err=
28104 else
28105 ac_cpp_err=yes
28107 if test -z "$ac_cpp_err"; then
28108 ac_header_preproc=yes
28109 else
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28113 ac_header_preproc=no
28116 rm -f conftest.err conftest.$ac_ext
28117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28118 echo "${ECHO_T}$ac_header_preproc" >&6; }
28120 # So? What about this header?
28121 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28122 yes:no: )
28123 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
28124 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28125 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
28126 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
28127 ac_header_preproc=yes
28129 no:yes:* )
28130 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
28131 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
28132 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
28133 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
28134 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
28135 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
28136 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
28137 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
28138 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
28139 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
28140 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
28141 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
28144 esac
28145 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
28146 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
28147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149 else
28150 eval "$as_ac_Header=\$ac_header_preproc"
28152 ac_res=`eval echo '${'$as_ac_Header'}'`
28153 { echo "$as_me:$LINENO: result: $ac_res" >&5
28154 echo "${ECHO_T}$ac_res" >&6; }
28157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28158 HAS_PWLIB=1
28163 if test "${HAS_PWLIB:-unset}" != "unset" ; then
28164 PWLIBDIR="${OPENH323DIR}/../pwlib"
28165 else
28166 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
28167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28168 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
28169 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
28170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 ac_res=`eval echo '${'$as_ac_Header'}'`
28174 { echo "$as_me:$LINENO: result: $ac_res" >&5
28175 echo "${ECHO_T}$ac_res" >&6; }
28176 else
28177 # Is the header compilable?
28178 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
28179 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
28180 cat >conftest.$ac_ext <<_ACEOF
28181 /* confdefs.h. */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h. */
28186 $ac_includes_default
28187 #include <${HOME}/pwlib/include/ptlib.h>
28188 _ACEOF
28189 rm -f conftest.$ac_objext
28190 if { (ac_try="$ac_compile"
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_compile") 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); } &&
28203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28204 { (case "(($ac_try" in
28205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206 *) ac_try_echo=$ac_try;;
28207 esac
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209 (eval "$ac_try") 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest.$ac_objext'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; }; then
28223 ac_header_compiler=yes
28224 else
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28228 ac_header_compiler=no
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28233 echo "${ECHO_T}$ac_header_compiler" >&6; }
28235 # Is the header present?
28236 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
28237 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
28238 cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h. */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 #include <${HOME}/pwlib/include/ptlib.h>
28245 _ACEOF
28246 if { (ac_try="$ac_cpp conftest.$ac_ext"
28247 case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250 esac
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } >/dev/null; then
28259 if test -s conftest.err; then
28260 ac_cpp_err=$ac_cxx_preproc_warn_flag
28261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28262 else
28263 ac_cpp_err=
28265 else
28266 ac_cpp_err=yes
28268 if test -z "$ac_cpp_err"; then
28269 ac_header_preproc=yes
28270 else
28271 echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.$ac_ext >&5
28274 ac_header_preproc=no
28277 rm -f conftest.err conftest.$ac_ext
28278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28279 echo "${ECHO_T}$ac_header_preproc" >&6; }
28281 # So? What about this header?
28282 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28283 yes:no: )
28284 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28285 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
28287 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
28288 ac_header_preproc=yes
28290 no:yes:* )
28291 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
28292 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
28294 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
28295 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
28296 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
28297 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
28298 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28299 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
28300 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
28302 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
28305 esac
28306 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
28307 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
28308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311 eval "$as_ac_Header=\$ac_header_preproc"
28313 ac_res=`eval echo '${'$as_ac_Header'}'`
28314 { echo "$as_me:$LINENO: result: $ac_res" >&5
28315 echo "${ECHO_T}$ac_res" >&6; }
28318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28319 HAS_PWLIB=1
28323 if test "${HAS_PWLIB:-unset}" != "unset" ; then
28324 PWLIBDIR="${HOME}/pwlib"
28325 else
28326 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
28327 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
28328 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
28329 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
28333 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
28334 else
28335 # Is the header compilable?
28336 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
28337 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
28338 cat >conftest.$ac_ext <<_ACEOF
28339 /* confdefs.h. */
28340 _ACEOF
28341 cat confdefs.h >>conftest.$ac_ext
28342 cat >>conftest.$ac_ext <<_ACEOF
28343 /* end confdefs.h. */
28344 $ac_includes_default
28345 #include </usr/local/include/ptlib.h>
28346 _ACEOF
28347 rm -f conftest.$ac_objext
28348 if { (ac_try="$ac_compile"
28349 case "(($ac_try" in
28350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 *) ac_try_echo=$ac_try;;
28352 esac
28353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 (eval "$ac_compile") 2>conftest.er1
28355 ac_status=$?
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28362 { (case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365 esac
28366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28367 (eval "$ac_try") 2>&5
28368 ac_status=$?
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; } &&
28371 { ac_try='test -s conftest.$ac_objext'
28372 { (case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28375 esac
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_try") 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; }; then
28381 ac_header_compiler=yes
28382 else
28383 echo "$as_me: failed program was:" >&5
28384 sed 's/^/| /' conftest.$ac_ext >&5
28386 ac_header_compiler=no
28389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28391 echo "${ECHO_T}$ac_header_compiler" >&6; }
28393 # Is the header present?
28394 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
28395 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
28396 cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h. */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28402 #include </usr/local/include/ptlib.h>
28403 _ACEOF
28404 if { (ac_try="$ac_cpp conftest.$ac_ext"
28405 case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28408 esac
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28411 ac_status=$?
28412 grep -v '^ *+' conftest.er1 >conftest.err
28413 rm -f conftest.er1
28414 cat conftest.err >&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); } >/dev/null; then
28417 if test -s conftest.err; then
28418 ac_cpp_err=$ac_cxx_preproc_warn_flag
28419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28420 else
28421 ac_cpp_err=
28423 else
28424 ac_cpp_err=yes
28426 if test -z "$ac_cpp_err"; then
28427 ac_header_preproc=yes
28428 else
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 ac_header_preproc=no
28435 rm -f conftest.err conftest.$ac_ext
28436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28437 echo "${ECHO_T}$ac_header_preproc" >&6; }
28439 # So? What about this header?
28440 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28441 yes:no: )
28442 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28443 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28444 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
28445 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
28446 ac_header_preproc=yes
28448 no:yes:* )
28449 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
28450 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
28451 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
28452 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
28453 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
28454 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
28455 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
28456 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28457 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
28458 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
28459 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
28460 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
28463 esac
28464 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
28465 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
28466 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
28467 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
28471 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
28472 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
28475 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
28476 HAS_PWLIB=1
28480 if test "${HAS_PWLIB:-unset}" != "unset" ; then
28481 # Extract the first word of "ptlib-config", so it can be a program name with args.
28482 set dummy ptlib-config; ac_word=$2
28483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28485 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488 case $PTLIB_CONFIG in
28489 [\\/]* | ?:[\\/]*)
28490 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
28493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28494 for as_dir in /usr/local/bin
28496 IFS=$as_save_IFS
28497 test -z "$as_dir" && as_dir=.
28498 for ac_exec_ext in '' $ac_executable_extensions; do
28499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28500 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28502 break 2
28504 done
28505 done
28506 IFS=$as_save_IFS
28509 esac
28511 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
28512 if test -n "$PTLIB_CONFIG"; then
28513 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
28514 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
28515 else
28516 { echo "$as_me:$LINENO: result: no" >&5
28517 echo "${ECHO_T}no" >&6; }
28521 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
28522 # Extract the first word of "ptlib-config", so it can be a program name with args.
28523 set dummy ptlib-config; ac_word=$2
28524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28526 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529 case $PTLIB_CONFIG in
28530 [\\/]* | ?:[\\/]*)
28531 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
28534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28535 for as_dir in /usr/local/share/pwlib/make
28537 IFS=$as_save_IFS
28538 test -z "$as_dir" && as_dir=.
28539 for ac_exec_ext in '' $ac_executable_extensions; do
28540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28541 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28543 break 2
28545 done
28546 done
28547 IFS=$as_save_IFS
28550 esac
28552 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
28553 if test -n "$PTLIB_CONFIG"; then
28554 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
28555 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
28556 else
28557 { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28563 PWLIB_INCDIR="/usr/local/include"
28564 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
28565 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
28566 if test "x$LIB64" != "x"; then
28567 PWLIB_LIBDIR="/usr/local/lib64"
28568 else
28569 PWLIB_LIBDIR="/usr/local/lib"
28572 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
28573 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
28574 else
28575 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
28576 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
28577 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
28578 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
28582 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
28583 else
28584 # Is the header compilable?
28585 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
28586 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
28587 cat >conftest.$ac_ext <<_ACEOF
28588 /* confdefs.h. */
28589 _ACEOF
28590 cat confdefs.h >>conftest.$ac_ext
28591 cat >>conftest.$ac_ext <<_ACEOF
28592 /* end confdefs.h. */
28593 $ac_includes_default
28594 #include </usr/include/ptlib.h>
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28601 esac
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
28604 ac_status=$?
28605 grep -v '^ *+' conftest.er1 >conftest.err
28606 rm -f conftest.er1
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } &&
28610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28614 esac
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest.$ac_objext'
28621 { (case "(($ac_try" in
28622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28624 esac
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_try") 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 ac_header_compiler=yes
28631 else
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28635 ac_header_compiler=no
28638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28640 echo "${ECHO_T}$ac_header_compiler" >&6; }
28642 # Is the header present?
28643 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
28644 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
28645 cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h. */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28651 #include </usr/include/ptlib.h>
28652 _ACEOF
28653 if { (ac_try="$ac_cpp conftest.$ac_ext"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } >/dev/null; then
28666 if test -s conftest.err; then
28667 ac_cpp_err=$ac_cxx_preproc_warn_flag
28668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28669 else
28670 ac_cpp_err=
28672 else
28673 ac_cpp_err=yes
28675 if test -z "$ac_cpp_err"; then
28676 ac_header_preproc=yes
28677 else
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 ac_header_preproc=no
28684 rm -f conftest.err conftest.$ac_ext
28685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28686 echo "${ECHO_T}$ac_header_preproc" >&6; }
28688 # So? What about this header?
28689 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28690 yes:no: )
28691 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28692 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28693 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
28694 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
28695 ac_header_preproc=yes
28697 no:yes:* )
28698 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
28699 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
28700 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
28701 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
28702 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
28703 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
28704 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
28705 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28706 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
28707 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
28708 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
28709 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
28712 esac
28713 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
28714 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
28715 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717 else
28718 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
28720 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
28721 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
28724 if test $ac_cv_header__usr_include_ptlib_h = yes; then
28725 HAS_PWLIB=1
28729 if test "${HAS_PWLIB:-unset}" != "unset" ; then
28730 # Extract the first word of "ptlib-config", so it can be a program name with args.
28731 set dummy ptlib-config; ac_word=$2
28732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28734 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736 else
28737 case $PTLIB_CONFIG in
28738 [\\/]* | ?:[\\/]*)
28739 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
28742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28743 for as_dir in /usr/share/pwlib/make
28745 IFS=$as_save_IFS
28746 test -z "$as_dir" && as_dir=.
28747 for ac_exec_ext in '' $ac_executable_extensions; do
28748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28749 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28751 break 2
28753 done
28754 done
28755 IFS=$as_save_IFS
28758 esac
28760 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
28761 if test -n "$PTLIB_CONFIG"; then
28762 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
28763 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
28764 else
28765 { echo "$as_me:$LINENO: result: no" >&5
28766 echo "${ECHO_T}no" >&6; }
28770 PWLIB_INCDIR="/usr/include"
28771 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
28772 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
28773 if test "x$LIB64" != "x"; then
28774 PWLIB_LIBDIR="/usr/lib64"
28775 else
28776 PWLIB_LIBDIR="/usr/lib"
28779 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
28780 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
28787 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
28788 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
28789 # exit
28792 if test "${HAS_PWLIB:-unset}" != "unset" ; then
28793 if test "${PWLIBDIR:-unset}" = "unset" ; then
28794 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
28795 PWLIBDIR=`$PTLIB_CONFIG --prefix`
28796 else
28797 echo "Cannot find ptlib-config - please install and try again"
28798 exit
28802 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
28803 PWLIBDIR="/usr/share/pwlib"
28804 PWLIB_INCDIR="/usr/include"
28805 if test "x$LIB64" != "x"; then
28806 PWLIB_LIBDIR="/usr/lib64"
28807 else
28808 PWLIB_LIBDIR="/usr/lib"
28811 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
28812 PWLIBDIR="/usr/local/share/pwlib"
28813 PWLIB_INCDIR="/usr/local/include"
28814 if test "x$LIB64" != "x"; then
28815 PWLIB_LIBDIR="/usr/local/lib64"
28816 else
28817 PWLIB_LIBDIR="/usr/local/lib"
28821 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
28822 PWLIB_INCDIR="${PWLIBDIR}/include"
28824 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
28825 PWLIB_LIBDIR="${PWLIBDIR}/lib"
28832 ac_ext=c
28833 ac_cpp='$CPP $CPPFLAGS'
28834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28840 if test "${HAS_PWLIB:-unset}" != "unset"; then
28841 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
28842 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
28843 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
28844 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
28845 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
28846 let PWLIB_REQ=1*10000+9*100+2
28848 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
28849 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28850 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
28851 { echo "$as_me:$LINENO: result: no" >&5
28852 echo "${ECHO_T}no" >&6; }
28853 unset HAS_PWLIB
28854 else
28855 { echo "$as_me:$LINENO: result: yes" >&5
28856 echo "${ECHO_T}yes" >&6; }
28861 if test "${HAS_PWLIB:-unset}" != "unset"; then
28863 PWLIB_OSTYPE=
28864 case "$host_os" in
28865 linux*) PWLIB_OSTYPE=linux ;
28867 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
28869 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
28870 ENDLDLIBS="-lossaudio" ;
28872 netbsd* ) PWLIB_OSTYPE=NetBSD ;
28873 ENDLDLIBS="-lossaudio" ;
28875 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
28877 darwin* ) PWLIB_OSTYPE=Darwin ;
28879 beos*) PWLIB_OSTYPE=beos ;
28880 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
28882 cygwin*) PWLIB_OSTYPE=cygwin ;
28884 mingw*) PWLIB_OSTYPE=mingw ;
28885 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
28886 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
28888 * ) PWLIB_OSTYPE="$host_os" ;
28889 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
28890 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
28892 esac
28894 PWLIB_MACHTYPE=
28895 case "$host_cpu" in
28896 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
28899 x86_64) PWLIB_MACHTYPE=x86_64 ;
28900 P_64BIT=1 ;
28901 LIB64=1 ;
28904 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
28905 P_64BIT=1 ;
28908 sparc ) PWLIB_MACHTYPE=sparc ;
28911 powerpc ) PWLIB_MACHTYPE=ppc ;
28914 ppc ) PWLIB_MACHTYPE=ppc ;
28917 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
28918 P_64BIT=1 ;
28919 LIB64=1 ;
28922 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
28923 P_64BIT=1 ;
28924 LIB64=1 ;
28927 ia64) PWLIB_MACHTYPE=ia64 ;
28928 P_64BIT=1 ;
28931 s390x) PWLIB_MACHTYPE=s390x ;
28932 P_64BIT=1 ;
28933 LIB64=1 ;
28936 s390) PWLIB_MACHTYPE=s390 ;
28939 * ) PWLIB_MACHTYPE="$host_cpu";
28940 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
28941 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
28942 esac
28944 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
28949 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
28952 if test "${HAS_PWLIB:-unset}" != "unset"; then
28953 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
28954 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
28956 saved_cppflags="${CPPFLAGS}"
28957 saved_libs="${LIBS}"
28958 if test "${PWLIB_LIB:-unset}" != "unset"; then
28959 LIBS="${LIBS} ${PWLIB_LIB} "
28960 else
28961 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
28963 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
28965 ac_ext=cpp
28966 ac_cpp='$CXXCPP $CPPFLAGS'
28967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28972 cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h. */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 #include "ptlib.h"
28980 main ()
28982 BOOL q = PTime::IsDaylightSavings();
28984 return 0;
28986 _ACEOF
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (ac_try="$ac_link"
28989 case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_link") 2>conftest.er1
28995 ac_status=$?
28996 grep -v '^ *+' conftest.er1 >conftest.err
28997 rm -f conftest.er1
28998 cat conftest.err >&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); } &&
29001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29002 { (case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29005 esac
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_try") 2>&5
29008 ac_status=$?
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; } &&
29011 { ac_try='test -s conftest$ac_exeext'
29012 { (case "(($ac_try" in
29013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014 *) ac_try_echo=$ac_try;;
29015 esac
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017 (eval "$ac_try") 2>&5
29018 ac_status=$?
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; }; then
29021 { echo "$as_me:$LINENO: result: yes" >&5
29022 echo "${ECHO_T}yes" >&6; }
29023 ac_cv_lib_PWLIB="yes"
29025 else
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 { echo "$as_me:$LINENO: result: no" >&5
29030 echo "${ECHO_T}no" >&6; }
29031 ac_cv_lib_PWLIB="no"
29036 rm -f core conftest.err conftest.$ac_objext \
29037 conftest$ac_exeext conftest.$ac_ext
29039 ac_ext=c
29040 ac_cpp='$CPP $CPPFLAGS'
29041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29046 LIBS="${saved_libs}"
29047 CPPFLAGS="${saved_cppflags}"
29049 if test "${ac_cv_lib_PWLIB}" = "yes"; then
29050 if test "${PWLIB_LIB:-undef}" = "undef"; then
29051 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
29052 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
29053 else
29054 PWLIB_LIB="-l${PLATFORM_PWLIB}"
29057 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
29058 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
29060 PBX_PWLIB=1
29062 cat >>confdefs.h <<\_ACEOF
29063 #define HAVE_PWLIB 1
29064 _ACEOF
29072 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
29073 { echo "$as_me:$LINENO: ***" >&5
29074 echo "$as_me: ***" >&6;}
29075 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
29076 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
29077 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29078 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29079 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
29080 echo "$as_me: *** including --without-pwlib" >&6;}
29081 exit 1
29084 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
29085 if test -n "${OPENH323_DIR}"; then
29086 OPENH323DIR="${OPENH323_DIR}"
29089 OPENH323_INCDIR=
29090 OPENH323_LIBDIR=
29091 ac_ext=cpp
29092 ac_cpp='$CXXCPP $CPPFLAGS'
29093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29097 if test "${OPENH323DIR:-unset}" != "unset" ; then
29098 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
29101 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29108 else
29109 # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
29111 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h. */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <${OPENH323DIR}/version.h>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
29129 ac_status=$?
29130 grep -v '^ *+' conftest.er1 >conftest.err
29131 rm -f conftest.er1
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler=yes
29156 else
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
29169 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h. */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <${OPENH323DIR}/version.h>
29177 _ACEOF
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185 ac_status=$?
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_cxx_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29194 else
29195 ac_cpp_err=
29197 else
29198 ac_cpp_err=yes
29200 if test -z "$ac_cpp_err"; then
29201 ac_header_preproc=yes
29202 else
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_header_preproc=no
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29213 # So? What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29215 yes:no: )
29216 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29222 no:yes:* )
29223 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
29237 esac
29238 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
29239 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
29240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 else
29243 eval "$as_ac_Header=\$ac_header_preproc"
29245 ac_res=`eval echo '${'$as_ac_Header'}'`
29246 { echo "$as_me:$LINENO: result: $ac_res" >&5
29247 echo "${ECHO_T}$ac_res" >&6; }
29250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29251 HAS_OPENH323=1
29256 if test "${HAS_OPENH323:-unset}" = "unset" ; then
29257 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
29258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29259 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
29260 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
29261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29262 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 ac_res=`eval echo '${'$as_ac_Header'}'`
29265 { echo "$as_me:$LINENO: result: $ac_res" >&5
29266 echo "${ECHO_T}$ac_res" >&6; }
29267 else
29268 # Is the header compilable?
29269 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
29270 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
29271 cat >conftest.$ac_ext <<_ACEOF
29272 /* confdefs.h. */
29273 _ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h. */
29277 $ac_includes_default
29278 #include <${PWLIBDIR}/../openh323/version.h>
29279 _ACEOF
29280 rm -f conftest.$ac_objext
29281 if { (ac_try="$ac_compile"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_compile") 2>conftest.er1
29288 ac_status=$?
29289 grep -v '^ *+' conftest.er1 >conftest.err
29290 rm -f conftest.er1
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } &&
29294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29295 { (case "(($ac_try" in
29296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29297 *) ac_try_echo=$ac_try;;
29298 esac
29299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29300 (eval "$ac_try") 2>&5
29301 ac_status=$?
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; } &&
29304 { ac_try='test -s conftest.$ac_objext'
29305 { (case "(($ac_try" in
29306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307 *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310 (eval "$ac_try") 2>&5
29311 ac_status=$?
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); }; }; then
29314 ac_header_compiler=yes
29315 else
29316 echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29319 ac_header_compiler=no
29322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29324 echo "${ECHO_T}$ac_header_compiler" >&6; }
29326 # Is the header present?
29327 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
29328 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
29329 cat >conftest.$ac_ext <<_ACEOF
29330 /* confdefs.h. */
29331 _ACEOF
29332 cat confdefs.h >>conftest.$ac_ext
29333 cat >>conftest.$ac_ext <<_ACEOF
29334 /* end confdefs.h. */
29335 #include <${PWLIBDIR}/../openh323/version.h>
29336 _ACEOF
29337 if { (ac_try="$ac_cpp conftest.$ac_ext"
29338 case "(($ac_try" in
29339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340 *) ac_try_echo=$ac_try;;
29341 esac
29342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29344 ac_status=$?
29345 grep -v '^ *+' conftest.er1 >conftest.err
29346 rm -f conftest.er1
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } >/dev/null; then
29350 if test -s conftest.err; then
29351 ac_cpp_err=$ac_cxx_preproc_warn_flag
29352 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29353 else
29354 ac_cpp_err=
29356 else
29357 ac_cpp_err=yes
29359 if test -z "$ac_cpp_err"; then
29360 ac_header_preproc=yes
29361 else
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_header_preproc=no
29368 rm -f conftest.err conftest.$ac_ext
29369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29370 echo "${ECHO_T}$ac_header_preproc" >&6; }
29372 # So? What about this header?
29373 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29374 yes:no: )
29375 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29376 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29377 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
29378 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
29379 ac_header_preproc=yes
29381 no:yes:* )
29382 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
29383 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
29385 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
29387 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
29389 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
29390 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
29391 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
29393 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
29396 esac
29397 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
29398 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
29399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29400 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 else
29402 eval "$as_ac_Header=\$ac_header_preproc"
29404 ac_res=`eval echo '${'$as_ac_Header'}'`
29405 { echo "$as_me:$LINENO: result: $ac_res" >&5
29406 echo "${ECHO_T}$ac_res" >&6; }
29409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29410 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
29414 if test "${HAS_OPENH323:-unset}" != "unset" ; then
29415 OPENH323DIR="${PWLIBDIR}/../openh323"
29416 saved_cppflags="${CPPFLAGS}"
29417 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
29418 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
29419 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
29420 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
29421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29422 echo $ECHO_N "(cached) $ECHO_C" >&6
29423 else
29424 cat >conftest.$ac_ext <<_ACEOF
29425 /* confdefs.h. */
29426 _ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29430 #include <ptlib.h>
29432 #include <${OPENH323DIR}/include/h323.h>
29433 _ACEOF
29434 rm -f conftest.$ac_objext
29435 if { (ac_try="$ac_compile"
29436 case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29439 esac
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_compile") 2>conftest.er1
29442 ac_status=$?
29443 grep -v '^ *+' conftest.er1 >conftest.err
29444 rm -f conftest.er1
29445 cat conftest.err >&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); } &&
29448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29449 { (case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29452 esac
29453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454 (eval "$ac_try") 2>&5
29455 ac_status=$?
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; } &&
29458 { ac_try='test -s conftest.$ac_objext'
29459 { (case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29462 esac
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_try") 2>&5
29465 ac_status=$?
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; }; then
29468 eval "$as_ac_Header=yes"
29469 else
29470 echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29473 eval "$as_ac_Header=no"
29476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478 ac_res=`eval echo '${'$as_ac_Header'}'`
29479 { echo "$as_me:$LINENO: result: $ac_res" >&5
29480 echo "${ECHO_T}$ac_res" >&6; }
29481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29483 else
29484 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
29488 CPPFLAGS="${saved_cppflags}"
29489 else
29490 saved_cppflags="${CPPFLAGS}"
29491 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
29492 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
29493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29494 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
29495 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
29496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_res=`eval echo '${'$as_ac_Header'}'`
29500 { echo "$as_me:$LINENO: result: $ac_res" >&5
29501 echo "${ECHO_T}$ac_res" >&6; }
29502 else
29503 # Is the header compilable?
29504 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
29505 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h. */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 $ac_includes_default
29513 #include <${HOME}/openh323/include/h323.h>
29514 _ACEOF
29515 rm -f conftest.$ac_objext
29516 if { (ac_try="$ac_compile"
29517 case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_compile") 2>conftest.er1
29523 ac_status=$?
29524 grep -v '^ *+' conftest.er1 >conftest.err
29525 rm -f conftest.er1
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
29529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29530 { (case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_try") 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; } &&
29539 { ac_try='test -s conftest.$ac_objext'
29540 { (case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_try") 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ac_header_compiler=yes
29550 else
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 ac_header_compiler=no
29557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29559 echo "${ECHO_T}$ac_header_compiler" >&6; }
29561 # Is the header present?
29562 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
29563 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
29564 cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h. */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 #include <${HOME}/openh323/include/h323.h>
29571 _ACEOF
29572 if { (ac_try="$ac_cpp conftest.$ac_ext"
29573 case "(($ac_try" in
29574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575 *) ac_try_echo=$ac_try;;
29576 esac
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29579 ac_status=$?
29580 grep -v '^ *+' conftest.er1 >conftest.err
29581 rm -f conftest.er1
29582 cat conftest.err >&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } >/dev/null; then
29585 if test -s conftest.err; then
29586 ac_cpp_err=$ac_cxx_preproc_warn_flag
29587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29588 else
29589 ac_cpp_err=
29591 else
29592 ac_cpp_err=yes
29594 if test -z "$ac_cpp_err"; then
29595 ac_header_preproc=yes
29596 else
29597 echo "$as_me: failed program was:" >&5
29598 sed 's/^/| /' conftest.$ac_ext >&5
29600 ac_header_preproc=no
29603 rm -f conftest.err conftest.$ac_ext
29604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29605 echo "${ECHO_T}$ac_header_preproc" >&6; }
29607 # So? What about this header?
29608 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29609 yes:no: )
29610 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
29611 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
29613 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
29614 ac_header_preproc=yes
29616 no:yes:* )
29617 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
29618 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
29620 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
29622 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
29623 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
29624 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
29626 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
29628 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
29631 esac
29632 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
29633 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
29634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29635 echo $ECHO_N "(cached) $ECHO_C" >&6
29636 else
29637 eval "$as_ac_Header=\$ac_header_preproc"
29639 ac_res=`eval echo '${'$as_ac_Header'}'`
29640 { echo "$as_me:$LINENO: result: $ac_res" >&5
29641 echo "${ECHO_T}$ac_res" >&6; }
29644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29645 HAS_OPENH323=1
29649 CPPFLAGS="${saved_cppflags}"
29650 if test "${HAS_OPENH323:-unset}" != "unset" ; then
29651 OPENH323DIR="${HOME}/openh323"
29652 else
29653 saved_cppflags="${CPPFLAGS}"
29654 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
29655 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
29656 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
29657 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
29658 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
29659 echo $ECHO_N "(cached) $ECHO_C" >&6
29661 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
29662 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
29663 else
29664 # Is the header compilable?
29665 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
29666 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
29667 cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h. */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 $ac_includes_default
29674 #include </usr/local/include/openh323/h323.h>
29675 _ACEOF
29676 rm -f conftest.$ac_objext
29677 if { (ac_try="$ac_compile"
29678 case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29681 esac
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_compile") 2>conftest.er1
29684 ac_status=$?
29685 grep -v '^ *+' conftest.er1 >conftest.err
29686 rm -f conftest.er1
29687 cat conftest.err >&5
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } &&
29690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29691 { (case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29694 esac
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_try") 2>&5
29697 ac_status=$?
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; } &&
29700 { ac_try='test -s conftest.$ac_objext'
29701 { (case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29704 esac
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_try") 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 ac_header_compiler=yes
29711 else
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29715 ac_header_compiler=no
29718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29720 echo "${ECHO_T}$ac_header_compiler" >&6; }
29722 # Is the header present?
29723 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
29724 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
29725 cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h. */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 #include </usr/local/include/openh323/h323.h>
29732 _ACEOF
29733 if { (ac_try="$ac_cpp conftest.$ac_ext"
29734 case "(($ac_try" in
29735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29736 *) ac_try_echo=$ac_try;;
29737 esac
29738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29740 ac_status=$?
29741 grep -v '^ *+' conftest.er1 >conftest.err
29742 rm -f conftest.er1
29743 cat conftest.err >&5
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); } >/dev/null; then
29746 if test -s conftest.err; then
29747 ac_cpp_err=$ac_cxx_preproc_warn_flag
29748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29749 else
29750 ac_cpp_err=
29752 else
29753 ac_cpp_err=yes
29755 if test -z "$ac_cpp_err"; then
29756 ac_header_preproc=yes
29757 else
29758 echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29761 ac_header_preproc=no
29764 rm -f conftest.err conftest.$ac_ext
29765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29766 echo "${ECHO_T}$ac_header_preproc" >&6; }
29768 # So? What about this header?
29769 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29770 yes:no: )
29771 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
29772 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29773 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
29774 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
29775 ac_header_preproc=yes
29777 no:yes:* )
29778 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
29779 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
29781 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
29782 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
29783 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
29784 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
29785 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
29786 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
29787 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
29788 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
29789 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
29792 esac
29793 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
29794 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
29795 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 else
29798 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
29800 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
29801 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
29804 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
29805 HAS_OPENH323=1
29809 CPPFLAGS="${saved_cppflags}"
29810 if test "${HAS_OPENH323:-unset}" != "unset" ; then
29811 OPENH323DIR="/usr/local/share/openh323"
29812 OPENH323_INCDIR="/usr/local/include/openh323"
29813 if test "x$LIB64" != "x"; then
29814 OPENH323_LIBDIR="/usr/local/lib64"
29815 else
29816 OPENH323_LIBDIR="/usr/local/lib"
29818 else
29819 saved_cppflags="${CPPFLAGS}"
29820 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
29821 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
29822 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
29823 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826 cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h. */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29832 #include <ptlib.h>
29834 #include </usr/include/openh323/h323.h>
29835 _ACEOF
29836 rm -f conftest.$ac_objext
29837 if { (ac_try="$ac_compile"
29838 case "(($ac_try" in
29839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29840 *) ac_try_echo=$ac_try;;
29841 esac
29842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29843 (eval "$ac_compile") 2>conftest.er1
29844 ac_status=$?
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
29850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest.$ac_objext'
29861 { (case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_try") 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); }; }; then
29870 ac_cv_header__usr_include_openh323_h323_h=yes
29871 else
29872 echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29875 ac_cv_header__usr_include_openh323_h323_h=no
29878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29880 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
29881 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
29882 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
29883 HAS_OPENH323=1
29887 CPPFLAGS="${saved_cppflags}"
29888 if test "${HAS_OPENH323:-unset}" != "unset" ; then
29889 OPENH323DIR="/usr/share/openh323"
29890 OPENH323_INCDIR="/usr/include/openh323"
29891 if test "x$LIB64" != "x"; then
29892 OPENH323_LIBDIR="/usr/lib64"
29893 else
29894 OPENH323_LIBDIR="/usr/lib"
29902 if test "${HAS_OPENH323:-unset}" != "unset" ; then
29903 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
29904 OPENH323_INCDIR="${OPENH323DIR}/include"
29906 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
29907 OPENH323_LIBDIR="${OPENH323DIR}/lib"
29910 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
29911 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
29912 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
29918 ac_ext=c
29919 ac_cpp='$CPP $CPPFLAGS'
29920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29926 if test "${HAS_OPENH323:-unset}" != "unset"; then
29927 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
29928 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
29929 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
29930 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
29931 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
29932 let OPENH323_REQ=1*10000+17*100+3
29934 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
29935 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
29936 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
29937 { echo "$as_me:$LINENO: result: no" >&5
29938 echo "${ECHO_T}no" >&6; }
29939 unset HAS_OPENH323
29940 else
29941 { echo "$as_me:$LINENO: result: yes" >&5
29942 echo "${ECHO_T}yes" >&6; }
29947 if test "${HAS_OPENH323:-unset}" != "unset"; then
29948 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
29949 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
29950 OPENH323_SUFFIX=
29951 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
29952 for pfx in $prefixes; do
29953 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
29954 libfile=
29955 if test -n "$files"; then
29956 for f in $files; do
29957 if test -f $f -a ! -L $f; then
29958 libfile=`basename $f`
29959 break;
29961 done
29963 if test -n "$libfile"; then
29964 OPENH323_PREFIX=$pfx
29965 break;
29967 done
29968 if test "${libfile:-unset}" != "unset"; then
29969 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
29971 case "${OPENH323_SUFFIX}" in
29973 OPENH323_BUILD="notrace";;
29975 OPENH323_BUILD="opt";;
29977 OPENH323_BUILD="debug";;
29979 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
29980 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
29981 if test "x$notrace" = "x"; then
29982 notrace="0"
29984 if test "$notrace" -ne 0; then
29985 OPENH323_BUILD="notrace"
29986 else
29987 OPENH323_BUILD="opt"
29989 OPENH323_LIB="-l${OPENH323_PREFIX}"
29990 else
29991 OPENH323_BUILD="notrace"
29994 esac
29995 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
29996 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
30002 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
30004 if test "${HAS_OPENH323:-unset}" != "unset"; then
30005 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
30006 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
30008 saved_cppflags="${CPPFLAGS}"
30009 saved_libs="${LIBS}"
30010 if test "${OPENH323_LIB:-unset}" != "unset"; then
30011 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
30012 else
30013 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
30015 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
30017 ac_ext=cpp
30018 ac_cpp='$CXXCPP $CPPFLAGS'
30019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30024 cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h. */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30030 #include "ptlib.h"
30031 #include "h323.h"
30032 #include "h323ep.h"
30034 main ()
30036 H323EndPoint ep = H323EndPoint();
30038 return 0;
30040 _ACEOF
30041 rm -f conftest.$ac_objext conftest$ac_exeext
30042 if { (ac_try="$ac_link"
30043 case "(($ac_try" in
30044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045 *) ac_try_echo=$ac_try;;
30046 esac
30047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048 (eval "$ac_link") 2>conftest.er1
30049 ac_status=$?
30050 grep -v '^ *+' conftest.er1 >conftest.err
30051 rm -f conftest.er1
30052 cat conftest.err >&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); } &&
30055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30056 { (case "(($ac_try" in
30057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058 *) ac_try_echo=$ac_try;;
30059 esac
30060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061 (eval "$ac_try") 2>&5
30062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; } &&
30065 { ac_try='test -s conftest$ac_exeext'
30066 { (case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30069 esac
30070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_try") 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 { echo "$as_me:$LINENO: result: yes" >&5
30076 echo "${ECHO_T}yes" >&6; }
30077 ac_cv_lib_OPENH323="yes"
30079 else
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 { echo "$as_me:$LINENO: result: no" >&5
30084 echo "${ECHO_T}no" >&6; }
30085 ac_cv_lib_OPENH323="no"
30090 rm -f core conftest.err conftest.$ac_objext \
30091 conftest$ac_exeext conftest.$ac_ext
30093 ac_ext=c
30094 ac_cpp='$CPP $CPPFLAGS'
30095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30100 LIBS="${saved_libs}"
30101 CPPFLAGS="${saved_cppflags}"
30103 if test "${ac_cv_lib_OPENH323}" = "yes"; then
30104 if test "${OPENH323_LIB:-undef}" = "undef"; then
30105 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
30106 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
30107 else
30108 OPENH323_LIB="-l${PLATFORM_OPENH323}"
30111 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
30112 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
30114 PBX_OPENH323=1
30116 cat >>confdefs.h <<\_ACEOF
30117 #define HAVE_OPENH323 1
30118 _ACEOF
30124 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
30125 { echo "$as_me:$LINENO: ***" >&5
30126 echo "$as_me: ***" >&6;}
30127 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
30128 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
30129 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30130 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30131 { echo "$as_me:$LINENO: *** including --without-h323" >&5
30132 echo "$as_me: *** including --without-h323" >&6;}
30133 exit 1
30137 ac_ext=cpp
30138 ac_cpp='$CXXCPP $CPPFLAGS'
30139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30144 if test "${USE_QT}" != "no"; then
30145 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
30146 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
30147 saved_libs="${LIBS}"
30148 saved_cppflags="${CPPFLAGS}"
30149 if test "x${QT_DIR}" != "x"; then
30150 LIBS="${LIBS} -L${QT_DIR}/lib"
30151 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
30153 LIBS="${LIBS} -lqt"
30154 qtlib="qt"
30155 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h. */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <qt3/qdatetime.h>
30164 main ()
30166 QDate date();
30168 return 0;
30171 _ACEOF
30172 rm -f conftest.$ac_objext conftest$ac_exeext
30173 if { (ac_try="$ac_link"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_link") 2>conftest.er1
30180 ac_status=$?
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest$ac_exeext'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206 ac_cv_lib_qt_qt_date="yes"
30207 else
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_cv_lib_qt_qt_date="no"
30214 rm -f core conftest.err conftest.$ac_objext \
30215 conftest$ac_exeext conftest.$ac_ext
30216 LIBS="${saved_libs}"
30217 CPPFLAGS="${saved_cppflags}"
30219 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
30220 saved_libs="${LIBS}"
30221 saved_cppflags="${CPPFLAGS}"
30222 if test "x${QT_DIR}" != "x"; then
30223 LIBS="${LIBS} -L${QT_DIR}/lib"
30224 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
30226 LIBS="${LIBS} -lqt-mt"
30227 qtlib="qt-mt"
30228 cat >conftest.$ac_ext <<_ACEOF
30230 /* confdefs.h. */
30231 _ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h. */
30235 #include <qt3/qdatetime.h>
30237 main ()
30239 QDate date();
30241 return 0;
30244 _ACEOF
30245 rm -f conftest.$ac_objext conftest$ac_exeext
30246 if { (ac_try="$ac_link"
30247 case "(($ac_try" in
30248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30249 *) ac_try_echo=$ac_try;;
30250 esac
30251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30252 (eval "$ac_link") 2>conftest.er1
30253 ac_status=$?
30254 grep -v '^ *+' conftest.er1 >conftest.err
30255 rm -f conftest.er1
30256 cat conftest.err >&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } &&
30259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30260 { (case "(($ac_try" in
30261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262 *) ac_try_echo=$ac_try;;
30263 esac
30264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30265 (eval "$ac_try") 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; } &&
30269 { ac_try='test -s conftest$ac_exeext'
30270 { (case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30273 esac
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_try") 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30279 ac_cv_lib_qt_qt_date="yes"
30280 else
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30284 ac_cv_lib_qt_qt_date="no"
30287 rm -f core conftest.err conftest.$ac_objext \
30288 conftest$ac_exeext conftest.$ac_ext
30289 LIBS="${saved_libs}"
30290 CPPFLAGS="${saved_cppflags}"
30293 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
30294 { echo "$as_me:$LINENO: result: yes" >&5
30295 echo "${ECHO_T}yes" >&6; }
30296 else
30297 { echo "$as_me:$LINENO: result: no" >&5
30298 echo "${ECHO_T}no" >&6; }
30301 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
30302 QT_LIB="-l${qtlib}"
30303 if test "${QT_DIR}" != ""; then
30304 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
30305 QT_INCLUDE="-I${QT_DIR}/include"
30307 PBX_QT=1
30309 cat >>confdefs.h <<\_ACEOF
30310 #define HAVE_QT 1
30311 _ACEOF
30313 if test -n "$ac_tool_prefix"; then
30314 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
30315 set dummy ${ac_tool_prefix}moc; ac_word=$2
30316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30318 if test "${ac_cv_path_QTMOC+set}" = set; then
30319 echo $ECHO_N "(cached) $ECHO_C" >&6
30320 else
30321 case $QTMOC in
30322 [\\/]* | ?:[\\/]*)
30323 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
30326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30327 for as_dir in $PATH
30329 IFS=$as_save_IFS
30330 test -z "$as_dir" && as_dir=.
30331 for ac_exec_ext in '' $ac_executable_extensions; do
30332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30333 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
30334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30335 break 2
30337 done
30338 done
30339 IFS=$as_save_IFS
30342 esac
30344 QTMOC=$ac_cv_path_QTMOC
30345 if test -n "$QTMOC"; then
30346 { echo "$as_me:$LINENO: result: $QTMOC" >&5
30347 echo "${ECHO_T}$QTMOC" >&6; }
30348 else
30349 { echo "$as_me:$LINENO: result: no" >&5
30350 echo "${ECHO_T}no" >&6; }
30355 if test -z "$ac_cv_path_QTMOC"; then
30356 ac_pt_QTMOC=$QTMOC
30357 # Extract the first word of "moc", so it can be a program name with args.
30358 set dummy moc; ac_word=$2
30359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30361 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 else
30364 case $ac_pt_QTMOC in
30365 [\\/]* | ?:[\\/]*)
30366 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
30369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30370 for as_dir in $PATH
30372 IFS=$as_save_IFS
30373 test -z "$as_dir" && as_dir=.
30374 for ac_exec_ext in '' $ac_executable_extensions; do
30375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30376 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
30377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30378 break 2
30380 done
30381 done
30382 IFS=$as_save_IFS
30385 esac
30387 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
30388 if test -n "$ac_pt_QTMOC"; then
30389 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
30390 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
30391 else
30392 { echo "$as_me:$LINENO: result: no" >&5
30393 echo "${ECHO_T}no" >&6; }
30396 if test "x$ac_pt_QTMOC" = x; then
30397 QTMOC="No"
30398 else
30399 case $cross_compiling:$ac_tool_warned in
30400 yes:)
30401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30402 whose name does not start with the host triplet. If you think this
30403 configuration is useful to you, please write to autoconf@gnu.org." >&5
30404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30405 whose name does not start with the host triplet. If you think this
30406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30407 ac_tool_warned=yes ;;
30408 esac
30409 QTMOC=$ac_pt_QTMOC
30411 else
30412 QTMOC="$ac_cv_path_QTMOC"
30415 elif test -n "${QT_MANDATORY}";
30416 then
30417 { echo "$as_me:$LINENO: ***" >&5
30418 echo "$as_me: ***" >&6;}
30419 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
30420 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
30421 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30422 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30423 { echo "$as_me:$LINENO: *** including --without-qt." >&5
30424 echo "$as_me: *** including --without-qt." >&6;}
30425 exit 1
30429 ac_ext=c
30430 ac_cpp='$CPP $CPPFLAGS'
30431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30437 if test "${USE_RADIUS}" != "no"; then
30438 pbxlibdir=""
30439 if test "x${RADIUS_DIR}" != "x"; then
30440 if test -d ${RADIUS_DIR}/lib; then
30441 pbxlibdir="-L${RADIUS_DIR}/lib"
30442 else
30443 pbxlibdir="-L${RADIUS_DIR}"
30446 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
30447 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
30448 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30450 else
30451 ac_check_lib_save_LIBS=$LIBS
30452 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
30453 cat >conftest.$ac_ext <<_ACEOF
30454 /* confdefs.h. */
30455 _ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30460 /* Override any GCC internal prototype to avoid an error.
30461 Use char because int might match the return type of a GCC
30462 builtin and then its argument prototype would still apply. */
30463 #ifdef __cplusplus
30464 extern "C"
30465 #endif
30466 char rc_read_config ();
30468 main ()
30470 return rc_read_config ();
30472 return 0;
30474 _ACEOF
30475 rm -f conftest.$ac_objext conftest$ac_exeext
30476 if { (ac_try="$ac_link"
30477 case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30480 esac
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482 (eval "$ac_link") 2>conftest.er1
30483 ac_status=$?
30484 grep -v '^ *+' conftest.er1 >conftest.err
30485 rm -f conftest.er1
30486 cat conftest.err >&5
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); } &&
30489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30490 { (case "(($ac_try" in
30491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30492 *) ac_try_echo=$ac_try;;
30493 esac
30494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30495 (eval "$ac_try") 2>&5
30496 ac_status=$?
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; } &&
30499 { ac_try='test -s conftest$ac_exeext'
30500 { (case "(($ac_try" in
30501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502 *) ac_try_echo=$ac_try;;
30503 esac
30504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505 (eval "$ac_try") 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30509 ac_cv_lib_radiusclient_ng_rc_read_config=yes
30510 else
30511 echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.$ac_ext >&5
30514 ac_cv_lib_radiusclient_ng_rc_read_config=no
30517 rm -f core conftest.err conftest.$ac_objext \
30518 conftest$ac_exeext conftest.$ac_ext
30519 LIBS=$ac_check_lib_save_LIBS
30521 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
30522 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
30523 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
30524 AST_RADIUS_FOUND=yes
30525 else
30526 AST_RADIUS_FOUND=no
30530 if test "${AST_RADIUS_FOUND}" = "yes"; then
30531 RADIUS_LIB="-lradiusclient-ng "
30532 RADIUS_HEADER_FOUND="1"
30533 if test "x${RADIUS_DIR}" != "x"; then
30534 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
30535 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
30536 saved_cppflags="${CPPFLAGS}"
30537 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
30538 if test "xradiusclient-ng.h" != "x" ; then
30539 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
30540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30541 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
30542 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
30543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30546 ac_res=`eval echo '${'$as_ac_Header'}'`
30547 { echo "$as_me:$LINENO: result: $ac_res" >&5
30548 echo "${ECHO_T}$ac_res" >&6; }
30549 else
30550 # Is the header compilable?
30551 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
30552 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
30553 cat >conftest.$ac_ext <<_ACEOF
30554 /* confdefs.h. */
30555 _ACEOF
30556 cat confdefs.h >>conftest.$ac_ext
30557 cat >>conftest.$ac_ext <<_ACEOF
30558 /* end confdefs.h. */
30559 $ac_includes_default
30560 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
30561 _ACEOF
30562 rm -f conftest.$ac_objext
30563 if { (ac_try="$ac_compile"
30564 case "(($ac_try" in
30565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566 *) ac_try_echo=$ac_try;;
30567 esac
30568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569 (eval "$ac_compile") 2>conftest.er1
30570 ac_status=$?
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } &&
30576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30577 { (case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30580 esac
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_try") 2>&5
30583 ac_status=$?
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); }; } &&
30586 { ac_try='test -s conftest.$ac_objext'
30587 { (case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30590 esac
30591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_try") 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 ac_header_compiler=yes
30597 else
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 ac_header_compiler=no
30604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30606 echo "${ECHO_T}$ac_header_compiler" >&6; }
30608 # Is the header present?
30609 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
30610 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
30611 cat >conftest.$ac_ext <<_ACEOF
30612 /* confdefs.h. */
30613 _ACEOF
30614 cat confdefs.h >>conftest.$ac_ext
30615 cat >>conftest.$ac_ext <<_ACEOF
30616 /* end confdefs.h. */
30617 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
30618 _ACEOF
30619 if { (ac_try="$ac_cpp conftest.$ac_ext"
30620 case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30626 ac_status=$?
30627 grep -v '^ *+' conftest.er1 >conftest.err
30628 rm -f conftest.er1
30629 cat conftest.err >&5
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); } >/dev/null; then
30632 if test -s conftest.err; then
30633 ac_cpp_err=$ac_c_preproc_warn_flag
30634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30635 else
30636 ac_cpp_err=
30638 else
30639 ac_cpp_err=yes
30641 if test -z "$ac_cpp_err"; then
30642 ac_header_preproc=yes
30643 else
30644 echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30647 ac_header_preproc=no
30650 rm -f conftest.err conftest.$ac_ext
30651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30652 echo "${ECHO_T}$ac_header_preproc" >&6; }
30654 # So? What about this header?
30655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30656 yes:no: )
30657 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
30658 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30659 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
30660 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
30661 ac_header_preproc=yes
30663 no:yes:* )
30664 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
30665 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
30666 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
30667 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
30668 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
30669 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
30670 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
30671 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
30672 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
30673 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
30674 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
30675 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
30678 esac
30679 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
30680 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
30681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30682 echo $ECHO_N "(cached) $ECHO_C" >&6
30683 else
30684 eval "$as_ac_Header=\$ac_header_preproc"
30686 ac_res=`eval echo '${'$as_ac_Header'}'`
30687 { echo "$as_me:$LINENO: result: $ac_res" >&5
30688 echo "${ECHO_T}$ac_res" >&6; }
30691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30692 RADIUS_HEADER_FOUND=1
30693 else
30694 RADIUS_HEADER_FOUND=0
30699 CPPFLAGS="${saved_cppflags}"
30700 else
30701 if test "xradiusclient-ng.h" != "x" ; then
30702 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
30703 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
30704 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
30705 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30708 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
30709 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
30710 else
30711 # Is the header compilable?
30712 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
30713 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
30714 cat >conftest.$ac_ext <<_ACEOF
30715 /* confdefs.h. */
30716 _ACEOF
30717 cat confdefs.h >>conftest.$ac_ext
30718 cat >>conftest.$ac_ext <<_ACEOF
30719 /* end confdefs.h. */
30720 $ac_includes_default
30721 #include <radiusclient-ng.h>
30722 _ACEOF
30723 rm -f conftest.$ac_objext
30724 if { (ac_try="$ac_compile"
30725 case "(($ac_try" in
30726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30727 *) ac_try_echo=$ac_try;;
30728 esac
30729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30730 (eval "$ac_compile") 2>conftest.er1
30731 ac_status=$?
30732 grep -v '^ *+' conftest.er1 >conftest.err
30733 rm -f conftest.er1
30734 cat conftest.err >&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); } &&
30737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; } &&
30747 { ac_try='test -s conftest.$ac_objext'
30748 { (case "(($ac_try" in
30749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30750 *) ac_try_echo=$ac_try;;
30751 esac
30752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30753 (eval "$ac_try") 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 ac_header_compiler=yes
30758 else
30759 echo "$as_me: failed program was:" >&5
30760 sed 's/^/| /' conftest.$ac_ext >&5
30762 ac_header_compiler=no
30765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30767 echo "${ECHO_T}$ac_header_compiler" >&6; }
30769 # Is the header present?
30770 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
30771 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
30772 cat >conftest.$ac_ext <<_ACEOF
30773 /* confdefs.h. */
30774 _ACEOF
30775 cat confdefs.h >>conftest.$ac_ext
30776 cat >>conftest.$ac_ext <<_ACEOF
30777 /* end confdefs.h. */
30778 #include <radiusclient-ng.h>
30779 _ACEOF
30780 if { (ac_try="$ac_cpp conftest.$ac_ext"
30781 case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30784 esac
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30787 ac_status=$?
30788 grep -v '^ *+' conftest.er1 >conftest.err
30789 rm -f conftest.er1
30790 cat conftest.err >&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } >/dev/null; then
30793 if test -s conftest.err; then
30794 ac_cpp_err=$ac_c_preproc_warn_flag
30795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30796 else
30797 ac_cpp_err=
30799 else
30800 ac_cpp_err=yes
30802 if test -z "$ac_cpp_err"; then
30803 ac_header_preproc=yes
30804 else
30805 echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 ac_header_preproc=no
30811 rm -f conftest.err conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30813 echo "${ECHO_T}$ac_header_preproc" >&6; }
30815 # So? What about this header?
30816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30817 yes:no: )
30818 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
30819 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30820 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
30821 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
30822 ac_header_preproc=yes
30824 no:yes:* )
30825 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
30826 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
30828 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
30830 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
30832 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
30834 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
30836 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
30839 esac
30840 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
30841 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
30842 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
30847 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
30848 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
30851 if test $ac_cv_header_radiusclient_ng_h = yes; then
30852 RADIUS_HEADER_FOUND=1
30853 else
30854 RADIUS_HEADER_FOUND=0
30860 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
30861 if test -n "${RADIUS_MANDATORY}" ;
30862 then
30863 { echo "$as_me:$LINENO: ***" >&5
30864 echo "$as_me: ***" >&6;}
30865 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
30866 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
30867 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
30868 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
30869 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
30870 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
30871 exit 1
30873 RADIUS_LIB=""
30874 RADIUS_INCLUDE=""
30875 PBX_RADIUS=0
30876 else
30877 PBX_RADIUS=1
30879 cat >>confdefs.h <<_ACEOF
30880 #define HAVE_RADIUS 1
30881 _ACEOF
30884 elif test -n "${RADIUS_MANDATORY}";
30885 then
30886 { echo "$as_me:$LINENO: ***" >&5
30887 echo "$as_me: ***" >&6;}
30888 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
30889 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
30890 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30891 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30892 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
30893 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
30894 exit 1
30900 if test "${USE_SPEEX}" != "no"; then
30901 pbxlibdir=""
30902 if test "x${SPEEX_DIR}" != "x"; then
30903 if test -d ${SPEEX_DIR}/lib; then
30904 pbxlibdir="-L${SPEEX_DIR}/lib"
30905 else
30906 pbxlibdir="-L${SPEEX_DIR}"
30909 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
30910 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
30911 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
30912 echo $ECHO_N "(cached) $ECHO_C" >&6
30913 else
30914 ac_check_lib_save_LIBS=$LIBS
30915 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
30916 cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h. */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30923 /* Override any GCC internal prototype to avoid an error.
30924 Use char because int might match the return type of a GCC
30925 builtin and then its argument prototype would still apply. */
30926 #ifdef __cplusplus
30927 extern "C"
30928 #endif
30929 char speex_encode ();
30931 main ()
30933 return speex_encode ();
30935 return 0;
30937 _ACEOF
30938 rm -f conftest.$ac_objext conftest$ac_exeext
30939 if { (ac_try="$ac_link"
30940 case "(($ac_try" in
30941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30942 *) ac_try_echo=$ac_try;;
30943 esac
30944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30945 (eval "$ac_link") 2>conftest.er1
30946 ac_status=$?
30947 grep -v '^ *+' conftest.er1 >conftest.err
30948 rm -f conftest.er1
30949 cat conftest.err >&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
30952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30953 { (case "(($ac_try" in
30954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955 *) ac_try_echo=$ac_try;;
30956 esac
30957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958 (eval "$ac_try") 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; } &&
30962 { ac_try='test -s conftest$ac_exeext'
30963 { (case "(($ac_try" in
30964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965 *) ac_try_echo=$ac_try;;
30966 esac
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968 (eval "$ac_try") 2>&5
30969 ac_status=$?
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; }; then
30972 ac_cv_lib_speex_speex_encode=yes
30973 else
30974 echo "$as_me: failed program was:" >&5
30975 sed 's/^/| /' conftest.$ac_ext >&5
30977 ac_cv_lib_speex_speex_encode=no
30980 rm -f core conftest.err conftest.$ac_objext \
30981 conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30984 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
30985 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
30986 if test $ac_cv_lib_speex_speex_encode = yes; then
30987 AST_SPEEX_FOUND=yes
30988 else
30989 AST_SPEEX_FOUND=no
30993 if test "${AST_SPEEX_FOUND}" = "yes"; then
30994 SPEEX_LIB="-lspeex -lm"
30995 SPEEX_HEADER_FOUND="1"
30996 if test "x${SPEEX_DIR}" != "x"; then
30997 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
30998 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
30999 saved_cppflags="${CPPFLAGS}"
31000 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
31001 if test "xspeex/speex.h" != "x" ; then
31002 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
31003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31004 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31005 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31007 echo $ECHO_N "(cached) $ECHO_C" >&6
31009 ac_res=`eval echo '${'$as_ac_Header'}'`
31010 { echo "$as_me:$LINENO: result: $ac_res" >&5
31011 echo "${ECHO_T}$ac_res" >&6; }
31012 else
31013 # Is the header compilable?
31014 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
31015 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
31016 cat >conftest.$ac_ext <<_ACEOF
31017 /* confdefs.h. */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31022 $ac_includes_default
31023 #include <${SPEEX_DIR}/include/speex/speex.h>
31024 _ACEOF
31025 rm -f conftest.$ac_objext
31026 if { (ac_try="$ac_compile"
31027 case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31030 esac
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_compile") 2>conftest.er1
31033 ac_status=$?
31034 grep -v '^ *+' conftest.er1 >conftest.err
31035 rm -f conftest.er1
31036 cat conftest.err >&5
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); } &&
31039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31040 { (case "(($ac_try" in
31041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31043 esac
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045 (eval "$ac_try") 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; } &&
31049 { ac_try='test -s conftest.$ac_objext'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
31059 ac_header_compiler=yes
31060 else
31061 echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31064 ac_header_compiler=no
31067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31069 echo "${ECHO_T}$ac_header_compiler" >&6; }
31071 # Is the header present?
31072 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
31073 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
31074 cat >conftest.$ac_ext <<_ACEOF
31075 /* confdefs.h. */
31076 _ACEOF
31077 cat confdefs.h >>conftest.$ac_ext
31078 cat >>conftest.$ac_ext <<_ACEOF
31079 /* end confdefs.h. */
31080 #include <${SPEEX_DIR}/include/speex/speex.h>
31081 _ACEOF
31082 if { (ac_try="$ac_cpp conftest.$ac_ext"
31083 case "(($ac_try" in
31084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085 *) ac_try_echo=$ac_try;;
31086 esac
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31089 ac_status=$?
31090 grep -v '^ *+' conftest.er1 >conftest.err
31091 rm -f conftest.er1
31092 cat conftest.err >&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } >/dev/null; then
31095 if test -s conftest.err; then
31096 ac_cpp_err=$ac_c_preproc_warn_flag
31097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31098 else
31099 ac_cpp_err=
31101 else
31102 ac_cpp_err=yes
31104 if test -z "$ac_cpp_err"; then
31105 ac_header_preproc=yes
31106 else
31107 echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31110 ac_header_preproc=no
31113 rm -f conftest.err conftest.$ac_ext
31114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31115 echo "${ECHO_T}$ac_header_preproc" >&6; }
31117 # So? What about this header?
31118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31119 yes:no: )
31120 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31121 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31122 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
31123 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
31124 ac_header_preproc=yes
31126 no:yes:* )
31127 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
31128 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
31129 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
31130 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
31131 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
31132 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
31134 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
31135 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
31136 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
31137 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
31138 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
31141 esac
31142 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31143 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31145 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 else
31147 eval "$as_ac_Header=\$ac_header_preproc"
31149 ac_res=`eval echo '${'$as_ac_Header'}'`
31150 { echo "$as_me:$LINENO: result: $ac_res" >&5
31151 echo "${ECHO_T}$ac_res" >&6; }
31154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31155 SPEEX_HEADER_FOUND=1
31156 else
31157 SPEEX_HEADER_FOUND=0
31162 CPPFLAGS="${saved_cppflags}"
31163 else
31164 if test "xspeex/speex.h" != "x" ; then
31165 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31166 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31167 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31168 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31172 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31173 else
31174 # Is the header compilable?
31175 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
31176 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
31177 cat >conftest.$ac_ext <<_ACEOF
31178 /* confdefs.h. */
31179 _ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h. */
31183 $ac_includes_default
31184 #include <speex/speex.h>
31185 _ACEOF
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_compile") 2>conftest.er1
31194 ac_status=$?
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } &&
31200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; } &&
31210 { ac_try='test -s conftest.$ac_objext'
31211 { (case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214 esac
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_try") 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; }; then
31220 ac_header_compiler=yes
31221 else
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 ac_header_compiler=no
31228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31230 echo "${ECHO_T}$ac_header_compiler" >&6; }
31232 # Is the header present?
31233 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
31234 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
31235 cat >conftest.$ac_ext <<_ACEOF
31236 /* confdefs.h. */
31237 _ACEOF
31238 cat confdefs.h >>conftest.$ac_ext
31239 cat >>conftest.$ac_ext <<_ACEOF
31240 /* end confdefs.h. */
31241 #include <speex/speex.h>
31242 _ACEOF
31243 if { (ac_try="$ac_cpp conftest.$ac_ext"
31244 case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31250 ac_status=$?
31251 grep -v '^ *+' conftest.er1 >conftest.err
31252 rm -f conftest.er1
31253 cat conftest.err >&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); } >/dev/null; then
31256 if test -s conftest.err; then
31257 ac_cpp_err=$ac_c_preproc_warn_flag
31258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31259 else
31260 ac_cpp_err=
31262 else
31263 ac_cpp_err=yes
31265 if test -z "$ac_cpp_err"; then
31266 ac_header_preproc=yes
31267 else
31268 echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31271 ac_header_preproc=no
31274 rm -f conftest.err conftest.$ac_ext
31275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31276 echo "${ECHO_T}$ac_header_preproc" >&6; }
31278 # So? What about this header?
31279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31280 yes:no: )
31281 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31282 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31283 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
31284 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
31285 ac_header_preproc=yes
31287 no:yes:* )
31288 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
31289 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
31290 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
31291 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
31292 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
31293 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
31294 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
31295 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
31296 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
31297 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
31298 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
31299 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
31302 esac
31303 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31304 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31305 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308 ac_cv_header_speex_speex_h=$ac_header_preproc
31310 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31311 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31314 if test $ac_cv_header_speex_speex_h = yes; then
31315 SPEEX_HEADER_FOUND=1
31316 else
31317 SPEEX_HEADER_FOUND=0
31323 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
31324 if test -n "${SPEEX_MANDATORY}" ;
31325 then
31326 { echo "$as_me:$LINENO: ***" >&5
31327 echo "$as_me: ***" >&6;}
31328 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
31329 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
31330 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
31331 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
31332 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
31333 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
31334 exit 1
31336 SPEEX_LIB=""
31337 SPEEX_INCLUDE=""
31338 PBX_SPEEX=0
31339 else
31340 PBX_SPEEX=1
31342 cat >>confdefs.h <<_ACEOF
31343 #define HAVE_SPEEX 1
31344 _ACEOF
31347 elif test -n "${SPEEX_MANDATORY}";
31348 then
31349 { echo "$as_me:$LINENO: ***" >&5
31350 echo "$as_me: ***" >&6;}
31351 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
31352 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
31353 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31354 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31355 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
31356 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
31357 exit 1
31363 if test "${USE_SQLITE}" != "no"; then
31364 pbxlibdir=""
31365 if test "x${SQLITE_DIR}" != "x"; then
31366 if test -d ${SQLITE_DIR}/lib; then
31367 pbxlibdir="-L${SQLITE_DIR}/lib"
31368 else
31369 pbxlibdir="-L${SQLITE_DIR}"
31372 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
31373 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
31374 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31376 else
31377 ac_check_lib_save_LIBS=$LIBS
31378 LIBS="-lsqlite ${pbxlibdir} $LIBS"
31379 cat >conftest.$ac_ext <<_ACEOF
31380 /* confdefs.h. */
31381 _ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h. */
31386 /* Override any GCC internal prototype to avoid an error.
31387 Use char because int might match the return type of a GCC
31388 builtin and then its argument prototype would still apply. */
31389 #ifdef __cplusplus
31390 extern "C"
31391 #endif
31392 char sqlite_exec ();
31394 main ()
31396 return sqlite_exec ();
31398 return 0;
31400 _ACEOF
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (ac_try="$ac_link"
31403 case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_link") 2>conftest.er1
31409 ac_status=$?
31410 grep -v '^ *+' conftest.er1 >conftest.err
31411 rm -f conftest.er1
31412 cat conftest.err >&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); } &&
31415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31416 { (case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_try") 2>&5
31422 ac_status=$?
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); }; } &&
31425 { ac_try='test -s conftest$ac_exeext'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; }; then
31435 ac_cv_lib_sqlite_sqlite_exec=yes
31436 else
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31440 ac_cv_lib_sqlite_sqlite_exec=no
31443 rm -f core conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
31445 LIBS=$ac_check_lib_save_LIBS
31447 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
31448 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
31449 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
31450 AST_SQLITE_FOUND=yes
31451 else
31452 AST_SQLITE_FOUND=no
31456 if test "${AST_SQLITE_FOUND}" = "yes"; then
31457 SQLITE_LIB="-lsqlite "
31458 SQLITE_HEADER_FOUND="1"
31459 if test "x${SQLITE_DIR}" != "x"; then
31460 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
31461 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
31462 saved_cppflags="${CPPFLAGS}"
31463 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
31464 if test "xsqlite.h" != "x" ; then
31465 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
31466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31467 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
31468 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
31469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31470 echo $ECHO_N "(cached) $ECHO_C" >&6
31472 ac_res=`eval echo '${'$as_ac_Header'}'`
31473 { echo "$as_me:$LINENO: result: $ac_res" >&5
31474 echo "${ECHO_T}$ac_res" >&6; }
31475 else
31476 # Is the header compilable?
31477 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
31478 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
31479 cat >conftest.$ac_ext <<_ACEOF
31480 /* confdefs.h. */
31481 _ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h. */
31485 $ac_includes_default
31486 #include <${SQLITE_DIR}/include/sqlite.h>
31487 _ACEOF
31488 rm -f conftest.$ac_objext
31489 if { (ac_try="$ac_compile"
31490 case "(($ac_try" in
31491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492 *) ac_try_echo=$ac_try;;
31493 esac
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495 (eval "$ac_compile") 2>conftest.er1
31496 ac_status=$?
31497 grep -v '^ *+' conftest.er1 >conftest.err
31498 rm -f conftest.er1
31499 cat conftest.err >&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } &&
31502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31503 { (case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_try") 2>&5
31509 ac_status=$?
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); }; } &&
31512 { ac_try='test -s conftest.$ac_objext'
31513 { (case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_try") 2>&5
31519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; }; then
31522 ac_header_compiler=yes
31523 else
31524 echo "$as_me: failed program was:" >&5
31525 sed 's/^/| /' conftest.$ac_ext >&5
31527 ac_header_compiler=no
31530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31532 echo "${ECHO_T}$ac_header_compiler" >&6; }
31534 # Is the header present?
31535 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
31536 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
31537 cat >conftest.$ac_ext <<_ACEOF
31538 /* confdefs.h. */
31539 _ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31543 #include <${SQLITE_DIR}/include/sqlite.h>
31544 _ACEOF
31545 if { (ac_try="$ac_cpp conftest.$ac_ext"
31546 case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31549 esac
31550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31552 ac_status=$?
31553 grep -v '^ *+' conftest.er1 >conftest.err
31554 rm -f conftest.er1
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } >/dev/null; then
31558 if test -s conftest.err; then
31559 ac_cpp_err=$ac_c_preproc_warn_flag
31560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31561 else
31562 ac_cpp_err=
31564 else
31565 ac_cpp_err=yes
31567 if test -z "$ac_cpp_err"; then
31568 ac_header_preproc=yes
31569 else
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ac_header_preproc=no
31576 rm -f conftest.err conftest.$ac_ext
31577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31578 echo "${ECHO_T}$ac_header_preproc" >&6; }
31580 # So? What about this header?
31581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31582 yes:no: )
31583 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
31584 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31585 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
31586 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
31587 ac_header_preproc=yes
31589 no:yes:* )
31590 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
31591 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
31592 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
31593 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
31594 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
31595 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
31596 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
31597 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
31598 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
31599 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
31600 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
31601 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
31604 esac
31605 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
31606 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
31607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31608 echo $ECHO_N "(cached) $ECHO_C" >&6
31609 else
31610 eval "$as_ac_Header=\$ac_header_preproc"
31612 ac_res=`eval echo '${'$as_ac_Header'}'`
31613 { echo "$as_me:$LINENO: result: $ac_res" >&5
31614 echo "${ECHO_T}$ac_res" >&6; }
31617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31618 SQLITE_HEADER_FOUND=1
31619 else
31620 SQLITE_HEADER_FOUND=0
31625 CPPFLAGS="${saved_cppflags}"
31626 else
31627 if test "xsqlite.h" != "x" ; then
31628 if test "${ac_cv_header_sqlite_h+set}" = set; then
31629 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
31630 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
31631 if test "${ac_cv_header_sqlite_h+set}" = set; then
31632 echo $ECHO_N "(cached) $ECHO_C" >&6
31634 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
31635 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
31636 else
31637 # Is the header compilable?
31638 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
31639 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
31640 cat >conftest.$ac_ext <<_ACEOF
31641 /* confdefs.h. */
31642 _ACEOF
31643 cat confdefs.h >>conftest.$ac_ext
31644 cat >>conftest.$ac_ext <<_ACEOF
31645 /* end confdefs.h. */
31646 $ac_includes_default
31647 #include <sqlite.h>
31648 _ACEOF
31649 rm -f conftest.$ac_objext
31650 if { (ac_try="$ac_compile"
31651 case "(($ac_try" in
31652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653 *) ac_try_echo=$ac_try;;
31654 esac
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_compile") 2>conftest.er1
31657 ac_status=$?
31658 grep -v '^ *+' conftest.er1 >conftest.err
31659 rm -f conftest.er1
31660 cat conftest.err >&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); } &&
31663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31664 { (case "(($ac_try" in
31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666 *) ac_try_echo=$ac_try;;
31667 esac
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669 (eval "$ac_try") 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; } &&
31673 { ac_try='test -s conftest.$ac_objext'
31674 { (case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677 esac
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_try") 2>&5
31680 ac_status=$?
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; }; then
31683 ac_header_compiler=yes
31684 else
31685 echo "$as_me: failed program was:" >&5
31686 sed 's/^/| /' conftest.$ac_ext >&5
31688 ac_header_compiler=no
31691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31693 echo "${ECHO_T}$ac_header_compiler" >&6; }
31695 # Is the header present?
31696 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
31697 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
31698 cat >conftest.$ac_ext <<_ACEOF
31699 /* confdefs.h. */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h. */
31704 #include <sqlite.h>
31705 _ACEOF
31706 if { (ac_try="$ac_cpp conftest.$ac_ext"
31707 case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31710 esac
31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31713 ac_status=$?
31714 grep -v '^ *+' conftest.er1 >conftest.err
31715 rm -f conftest.er1
31716 cat conftest.err >&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); } >/dev/null; then
31719 if test -s conftest.err; then
31720 ac_cpp_err=$ac_c_preproc_warn_flag
31721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31722 else
31723 ac_cpp_err=
31725 else
31726 ac_cpp_err=yes
31728 if test -z "$ac_cpp_err"; then
31729 ac_header_preproc=yes
31730 else
31731 echo "$as_me: failed program was:" >&5
31732 sed 's/^/| /' conftest.$ac_ext >&5
31734 ac_header_preproc=no
31737 rm -f conftest.err conftest.$ac_ext
31738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31739 echo "${ECHO_T}$ac_header_preproc" >&6; }
31741 # So? What about this header?
31742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31743 yes:no: )
31744 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
31745 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31746 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
31747 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
31748 ac_header_preproc=yes
31750 no:yes:* )
31751 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
31752 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
31753 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
31754 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
31755 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
31756 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
31757 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
31758 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
31759 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
31760 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
31761 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
31762 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
31765 esac
31766 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
31767 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
31768 if test "${ac_cv_header_sqlite_h+set}" = set; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771 ac_cv_header_sqlite_h=$ac_header_preproc
31773 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
31774 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
31777 if test $ac_cv_header_sqlite_h = yes; then
31778 SQLITE_HEADER_FOUND=1
31779 else
31780 SQLITE_HEADER_FOUND=0
31786 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
31787 if test -n "${SQLITE_MANDATORY}" ;
31788 then
31789 { echo "$as_me:$LINENO: ***" >&5
31790 echo "$as_me: ***" >&6;}
31791 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
31792 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
31793 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
31794 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
31795 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
31796 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
31797 exit 1
31799 SQLITE_LIB=""
31800 SQLITE_INCLUDE=""
31801 PBX_SQLITE=0
31802 else
31803 PBX_SQLITE=1
31805 cat >>confdefs.h <<_ACEOF
31806 #define HAVE_SQLITE 1
31807 _ACEOF
31810 elif test -n "${SQLITE_MANDATORY}";
31811 then
31812 { echo "$as_me:$LINENO: ***" >&5
31813 echo "$as_me: ***" >&6;}
31814 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
31815 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
31816 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31817 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31818 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
31819 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
31820 exit 1
31826 if test "${USE_OPENSSL}" != "no"; then
31827 pbxlibdir=""
31828 if test "x${OPENSSL_DIR}" != "x"; then
31829 if test -d ${OPENSSL_DIR}/lib; then
31830 pbxlibdir="-L${OPENSSL_DIR}/lib"
31831 else
31832 pbxlibdir="-L${OPENSSL_DIR}"
31835 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
31836 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
31837 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
31838 echo $ECHO_N "(cached) $ECHO_C" >&6
31839 else
31840 ac_check_lib_save_LIBS=$LIBS
31841 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
31842 cat >conftest.$ac_ext <<_ACEOF
31843 /* confdefs.h. */
31844 _ACEOF
31845 cat confdefs.h >>conftest.$ac_ext
31846 cat >>conftest.$ac_ext <<_ACEOF
31847 /* end confdefs.h. */
31849 /* Override any GCC internal prototype to avoid an error.
31850 Use char because int might match the return type of a GCC
31851 builtin and then its argument prototype would still apply. */
31852 #ifdef __cplusplus
31853 extern "C"
31854 #endif
31855 char ssl2_connect ();
31857 main ()
31859 return ssl2_connect ();
31861 return 0;
31863 _ACEOF
31864 rm -f conftest.$ac_objext conftest$ac_exeext
31865 if { (ac_try="$ac_link"
31866 case "(($ac_try" in
31867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31868 *) ac_try_echo=$ac_try;;
31869 esac
31870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31871 (eval "$ac_link") 2>conftest.er1
31872 ac_status=$?
31873 grep -v '^ *+' conftest.er1 >conftest.err
31874 rm -f conftest.er1
31875 cat conftest.err >&5
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); } &&
31878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31879 { (case "(($ac_try" in
31880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31882 esac
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_try") 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
31889 { (case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892 esac
31893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_try") 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 ac_cv_lib_ssl_ssl2_connect=yes
31899 else
31900 echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31903 ac_cv_lib_ssl_ssl2_connect=no
31906 rm -f core conftest.err conftest.$ac_objext \
31907 conftest$ac_exeext conftest.$ac_ext
31908 LIBS=$ac_check_lib_save_LIBS
31910 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
31911 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
31912 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
31913 AST_OPENSSL_FOUND=yes
31914 else
31915 AST_OPENSSL_FOUND=no
31919 if test "${AST_OPENSSL_FOUND}" = "yes"; then
31920 OPENSSL_LIB="-lssl -lcrypto"
31921 OPENSSL_HEADER_FOUND="1"
31922 if test "x${OPENSSL_DIR}" != "x"; then
31923 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
31924 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
31925 saved_cppflags="${CPPFLAGS}"
31926 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
31927 if test "xopenssl/ssl.h" != "x" ; then
31928 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
31929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31930 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
31931 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
31932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31933 echo $ECHO_N "(cached) $ECHO_C" >&6
31935 ac_res=`eval echo '${'$as_ac_Header'}'`
31936 { echo "$as_me:$LINENO: result: $ac_res" >&5
31937 echo "${ECHO_T}$ac_res" >&6; }
31938 else
31939 # Is the header compilable?
31940 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
31941 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
31942 cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h. */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h. */
31948 $ac_includes_default
31949 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
31950 _ACEOF
31951 rm -f conftest.$ac_objext
31952 if { (ac_try="$ac_compile"
31953 case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31956 esac
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_compile") 2>conftest.er1
31959 ac_status=$?
31960 grep -v '^ *+' conftest.er1 >conftest.err
31961 rm -f conftest.er1
31962 cat conftest.err >&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); } &&
31965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31966 { (case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_try") 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; } &&
31975 { ac_try='test -s conftest.$ac_objext'
31976 { (case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31979 esac
31980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_try") 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 ac_header_compiler=yes
31986 else
31987 echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31990 ac_header_compiler=no
31993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31995 echo "${ECHO_T}$ac_header_compiler" >&6; }
31997 # Is the header present?
31998 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
31999 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
32000 cat >conftest.$ac_ext <<_ACEOF
32001 /* confdefs.h. */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32006 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
32007 _ACEOF
32008 if { (ac_try="$ac_cpp conftest.$ac_ext"
32009 case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32012 esac
32013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32015 ac_status=$?
32016 grep -v '^ *+' conftest.er1 >conftest.err
32017 rm -f conftest.er1
32018 cat conftest.err >&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } >/dev/null; then
32021 if test -s conftest.err; then
32022 ac_cpp_err=$ac_c_preproc_warn_flag
32023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32024 else
32025 ac_cpp_err=
32027 else
32028 ac_cpp_err=yes
32030 if test -z "$ac_cpp_err"; then
32031 ac_header_preproc=yes
32032 else
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 ac_header_preproc=no
32039 rm -f conftest.err conftest.$ac_ext
32040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32041 echo "${ECHO_T}$ac_header_preproc" >&6; }
32043 # So? What about this header?
32044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32045 yes:no: )
32046 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32047 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32048 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
32049 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
32050 ac_header_preproc=yes
32052 no:yes:* )
32053 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
32054 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
32055 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
32056 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
32057 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
32058 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
32059 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
32060 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32061 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
32062 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
32063 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
32064 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
32067 esac
32068 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
32069 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
32070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072 else
32073 eval "$as_ac_Header=\$ac_header_preproc"
32075 ac_res=`eval echo '${'$as_ac_Header'}'`
32076 { echo "$as_me:$LINENO: result: $ac_res" >&5
32077 echo "${ECHO_T}$ac_res" >&6; }
32080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32081 OPENSSL_HEADER_FOUND=1
32082 else
32083 OPENSSL_HEADER_FOUND=0
32088 CPPFLAGS="${saved_cppflags}"
32089 else
32090 if test "xopenssl/ssl.h" != "x" ; then
32091 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
32092 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
32093 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
32094 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
32097 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
32098 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
32099 else
32100 # Is the header compilable?
32101 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
32102 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
32103 cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h. */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h. */
32109 $ac_includes_default
32110 #include <openssl/ssl.h>
32111 _ACEOF
32112 rm -f conftest.$ac_objext
32113 if { (ac_try="$ac_compile"
32114 case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32117 esac
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_compile") 2>conftest.er1
32120 ac_status=$?
32121 grep -v '^ *+' conftest.er1 >conftest.err
32122 rm -f conftest.er1
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
32126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32127 { (case "(($ac_try" in
32128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129 *) ac_try_echo=$ac_try;;
32130 esac
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132 (eval "$ac_try") 2>&5
32133 ac_status=$?
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; } &&
32136 { ac_try='test -s conftest.$ac_objext'
32137 { (case "(($ac_try" in
32138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139 *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142 (eval "$ac_try") 2>&5
32143 ac_status=$?
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; }; then
32146 ac_header_compiler=yes
32147 else
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 ac_header_compiler=no
32154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32156 echo "${ECHO_T}$ac_header_compiler" >&6; }
32158 # Is the header present?
32159 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
32160 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
32161 cat >conftest.$ac_ext <<_ACEOF
32162 /* confdefs.h. */
32163 _ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h. */
32167 #include <openssl/ssl.h>
32168 _ACEOF
32169 if { (ac_try="$ac_cpp conftest.$ac_ext"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32176 ac_status=$?
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } >/dev/null; then
32182 if test -s conftest.err; then
32183 ac_cpp_err=$ac_c_preproc_warn_flag
32184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32185 else
32186 ac_cpp_err=
32188 else
32189 ac_cpp_err=yes
32191 if test -z "$ac_cpp_err"; then
32192 ac_header_preproc=yes
32193 else
32194 echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32197 ac_header_preproc=no
32200 rm -f conftest.err conftest.$ac_ext
32201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32202 echo "${ECHO_T}$ac_header_preproc" >&6; }
32204 # So? What about this header?
32205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32206 yes:no: )
32207 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32208 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32209 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
32210 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
32211 ac_header_preproc=yes
32213 no:yes:* )
32214 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
32215 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
32216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
32217 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
32218 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
32219 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
32220 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
32221 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32222 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
32223 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
32224 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
32225 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
32228 esac
32229 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
32230 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
32231 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 else
32234 ac_cv_header_openssl_ssl_h=$ac_header_preproc
32236 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
32237 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
32240 if test $ac_cv_header_openssl_ssl_h = yes; then
32241 OPENSSL_HEADER_FOUND=1
32242 else
32243 OPENSSL_HEADER_FOUND=0
32249 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
32250 if test -n "${OPENSSL_MANDATORY}" ;
32251 then
32252 { echo "$as_me:$LINENO: ***" >&5
32253 echo "$as_me: ***" >&6;}
32254 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
32255 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
32256 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
32257 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
32258 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
32259 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
32260 exit 1
32262 OPENSSL_LIB=""
32263 OPENSSL_INCLUDE=""
32264 PBX_OPENSSL=0
32265 else
32266 PBX_OPENSSL=1
32268 cat >>confdefs.h <<_ACEOF
32269 #define HAVE_OPENSSL 1
32270 _ACEOF
32273 elif test -n "${OPENSSL_MANDATORY}";
32274 then
32275 { echo "$as_me:$LINENO: ***" >&5
32276 echo "$as_me: ***" >&6;}
32277 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
32278 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
32279 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32280 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32281 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
32282 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
32283 exit 1
32287 if test "$PBX_OPENSSL" = "1";
32288 then
32290 if test "${USE_OSPTK}" != "no"; then
32291 pbxlibdir=""
32292 if test "x${OSPTK_DIR}" != "x"; then
32293 if test -d ${OSPTK_DIR}/lib; then
32294 pbxlibdir="-L${OSPTK_DIR}/lib"
32295 else
32296 pbxlibdir="-L${OSPTK_DIR}"
32299 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
32300 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
32301 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
32302 echo $ECHO_N "(cached) $ECHO_C" >&6
32303 else
32304 ac_check_lib_save_LIBS=$LIBS
32305 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
32306 cat >conftest.$ac_ext <<_ACEOF
32307 /* confdefs.h. */
32308 _ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32313 /* Override any GCC internal prototype to avoid an error.
32314 Use char because int might match the return type of a GCC
32315 builtin and then its argument prototype would still apply. */
32316 #ifdef __cplusplus
32317 extern "C"
32318 #endif
32319 char OSPPCryptoDecrypt ();
32321 main ()
32323 return OSPPCryptoDecrypt ();
32325 return 0;
32327 _ACEOF
32328 rm -f conftest.$ac_objext conftest$ac_exeext
32329 if { (ac_try="$ac_link"
32330 case "(($ac_try" in
32331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32332 *) ac_try_echo=$ac_try;;
32333 esac
32334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32335 (eval "$ac_link") 2>conftest.er1
32336 ac_status=$?
32337 grep -v '^ *+' conftest.er1 >conftest.err
32338 rm -f conftest.er1
32339 cat conftest.err >&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); } &&
32342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32343 { (case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32346 esac
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_try") 2>&5
32349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; } &&
32352 { ac_try='test -s conftest$ac_exeext'
32353 { (case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32356 esac
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_try") 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; }; then
32362 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
32363 else
32364 echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32367 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
32370 rm -f core conftest.err conftest.$ac_objext \
32371 conftest$ac_exeext conftest.$ac_ext
32372 LIBS=$ac_check_lib_save_LIBS
32374 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
32375 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
32376 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
32377 AST_OSPTK_FOUND=yes
32378 else
32379 AST_OSPTK_FOUND=no
32383 if test "${AST_OSPTK_FOUND}" = "yes"; then
32384 OSPTK_LIB="-losptk -lcrypto -lssl"
32385 OSPTK_HEADER_FOUND="1"
32386 if test "x${OSPTK_DIR}" != "x"; then
32387 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
32388 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
32389 saved_cppflags="${CPPFLAGS}"
32390 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
32391 if test "xosp/osp.h" != "x" ; then
32392 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
32393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32394 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
32395 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
32396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32397 echo $ECHO_N "(cached) $ECHO_C" >&6
32399 ac_res=`eval echo '${'$as_ac_Header'}'`
32400 { echo "$as_me:$LINENO: result: $ac_res" >&5
32401 echo "${ECHO_T}$ac_res" >&6; }
32402 else
32403 # Is the header compilable?
32404 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
32405 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
32406 cat >conftest.$ac_ext <<_ACEOF
32407 /* confdefs.h. */
32408 _ACEOF
32409 cat confdefs.h >>conftest.$ac_ext
32410 cat >>conftest.$ac_ext <<_ACEOF
32411 /* end confdefs.h. */
32412 $ac_includes_default
32413 #include <${OSPTK_DIR}/include/osp/osp.h>
32414 _ACEOF
32415 rm -f conftest.$ac_objext
32416 if { (ac_try="$ac_compile"
32417 case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_compile") 2>conftest.er1
32423 ac_status=$?
32424 grep -v '^ *+' conftest.er1 >conftest.err
32425 rm -f conftest.er1
32426 cat conftest.err >&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
32429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32433 esac
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest.$ac_objext'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32443 esac
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_header_compiler=yes
32450 else
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 ac_header_compiler=no
32457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32459 echo "${ECHO_T}$ac_header_compiler" >&6; }
32461 # Is the header present?
32462 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
32463 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
32464 cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h. */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h. */
32470 #include <${OSPTK_DIR}/include/osp/osp.h>
32471 _ACEOF
32472 if { (ac_try="$ac_cpp conftest.$ac_ext"
32473 case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32479 ac_status=$?
32480 grep -v '^ *+' conftest.er1 >conftest.err
32481 rm -f conftest.er1
32482 cat conftest.err >&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } >/dev/null; then
32485 if test -s conftest.err; then
32486 ac_cpp_err=$ac_c_preproc_warn_flag
32487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32488 else
32489 ac_cpp_err=
32491 else
32492 ac_cpp_err=yes
32494 if test -z "$ac_cpp_err"; then
32495 ac_header_preproc=yes
32496 else
32497 echo "$as_me: failed program was:" >&5
32498 sed 's/^/| /' conftest.$ac_ext >&5
32500 ac_header_preproc=no
32503 rm -f conftest.err conftest.$ac_ext
32504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32505 echo "${ECHO_T}$ac_header_preproc" >&6; }
32507 # So? What about this header?
32508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32509 yes:no: )
32510 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
32511 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32512 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
32513 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
32514 ac_header_preproc=yes
32516 no:yes:* )
32517 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
32518 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
32519 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
32520 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
32522 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
32524 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
32525 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
32526 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
32527 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
32528 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
32531 esac
32532 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
32533 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
32534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32536 else
32537 eval "$as_ac_Header=\$ac_header_preproc"
32539 ac_res=`eval echo '${'$as_ac_Header'}'`
32540 { echo "$as_me:$LINENO: result: $ac_res" >&5
32541 echo "${ECHO_T}$ac_res" >&6; }
32544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32545 OSPTK_HEADER_FOUND=1
32546 else
32547 OSPTK_HEADER_FOUND=0
32552 CPPFLAGS="${saved_cppflags}"
32553 else
32554 if test "xosp/osp.h" != "x" ; then
32555 if test "${ac_cv_header_osp_osp_h+set}" = set; then
32556 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
32557 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
32558 if test "${ac_cv_header_osp_osp_h+set}" = set; then
32559 echo $ECHO_N "(cached) $ECHO_C" >&6
32561 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
32562 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
32563 else
32564 # Is the header compilable?
32565 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
32566 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
32567 cat >conftest.$ac_ext <<_ACEOF
32568 /* confdefs.h. */
32569 _ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h. */
32573 $ac_includes_default
32574 #include <osp/osp.h>
32575 _ACEOF
32576 rm -f conftest.$ac_objext
32577 if { (ac_try="$ac_compile"
32578 case "(($ac_try" in
32579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32580 *) ac_try_echo=$ac_try;;
32581 esac
32582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32583 (eval "$ac_compile") 2>conftest.er1
32584 ac_status=$?
32585 grep -v '^ *+' conftest.er1 >conftest.err
32586 rm -f conftest.er1
32587 cat conftest.err >&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); } &&
32590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32591 { (case "(($ac_try" in
32592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593 *) ac_try_echo=$ac_try;;
32594 esac
32595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596 (eval "$ac_try") 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; } &&
32600 { ac_try='test -s conftest.$ac_objext'
32601 { (case "(($ac_try" in
32602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603 *) ac_try_echo=$ac_try;;
32604 esac
32605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606 (eval "$ac_try") 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 ac_header_compiler=yes
32611 else
32612 echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32615 ac_header_compiler=no
32618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32620 echo "${ECHO_T}$ac_header_compiler" >&6; }
32622 # Is the header present?
32623 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
32624 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
32625 cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h. */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h. */
32631 #include <osp/osp.h>
32632 _ACEOF
32633 if { (ac_try="$ac_cpp conftest.$ac_ext"
32634 case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32637 esac
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32640 ac_status=$?
32641 grep -v '^ *+' conftest.er1 >conftest.err
32642 rm -f conftest.er1
32643 cat conftest.err >&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } >/dev/null; then
32646 if test -s conftest.err; then
32647 ac_cpp_err=$ac_c_preproc_warn_flag
32648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32649 else
32650 ac_cpp_err=
32652 else
32653 ac_cpp_err=yes
32655 if test -z "$ac_cpp_err"; then
32656 ac_header_preproc=yes
32657 else
32658 echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32661 ac_header_preproc=no
32664 rm -f conftest.err conftest.$ac_ext
32665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32666 echo "${ECHO_T}$ac_header_preproc" >&6; }
32668 # So? What about this header?
32669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32670 yes:no: )
32671 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
32672 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32673 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
32674 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
32675 ac_header_preproc=yes
32677 no:yes:* )
32678 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
32679 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
32680 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
32681 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
32682 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
32683 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
32684 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
32685 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
32686 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
32687 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
32688 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
32689 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
32692 esac
32693 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
32694 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
32695 if test "${ac_cv_header_osp_osp_h+set}" = set; then
32696 echo $ECHO_N "(cached) $ECHO_C" >&6
32697 else
32698 ac_cv_header_osp_osp_h=$ac_header_preproc
32700 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
32701 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
32704 if test $ac_cv_header_osp_osp_h = yes; then
32705 OSPTK_HEADER_FOUND=1
32706 else
32707 OSPTK_HEADER_FOUND=0
32713 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
32714 if test -n "${OSPTK_MANDATORY}" ;
32715 then
32716 { echo "$as_me:$LINENO: ***" >&5
32717 echo "$as_me: ***" >&6;}
32718 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
32719 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
32720 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
32721 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
32722 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
32723 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
32724 exit 1
32726 OSPTK_LIB=""
32727 OSPTK_INCLUDE=""
32728 PBX_OSPTK=0
32729 else
32730 PBX_OSPTK=1
32732 cat >>confdefs.h <<_ACEOF
32733 #define HAVE_OSPTK 1
32734 _ACEOF
32737 elif test -n "${OSPTK_MANDATORY}";
32738 then
32739 { echo "$as_me:$LINENO: ***" >&5
32740 echo "$as_me: ***" >&6;}
32741 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
32742 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
32743 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32744 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32745 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
32746 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
32747 exit 1
32754 if test "${USE_FREETDS}" != "no"; then
32755 pbxlibdir=""
32756 if test "x${FREETDS_DIR}" != "x"; then
32757 if test -d ${FREETDS_DIR}/lib; then
32758 pbxlibdir="-L${FREETDS_DIR}/lib"
32759 else
32760 pbxlibdir="-L${FREETDS_DIR}"
32763 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
32764 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
32765 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
32766 echo $ECHO_N "(cached) $ECHO_C" >&6
32767 else
32768 ac_check_lib_save_LIBS=$LIBS
32769 LIBS="-ltds ${pbxlibdir} $LIBS"
32770 cat >conftest.$ac_ext <<_ACEOF
32771 /* confdefs.h. */
32772 _ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h. */
32777 /* Override any GCC internal prototype to avoid an error.
32778 Use char because int might match the return type of a GCC
32779 builtin and then its argument prototype would still apply. */
32780 #ifdef __cplusplus
32781 extern "C"
32782 #endif
32783 char tds_version ();
32785 main ()
32787 return tds_version ();
32789 return 0;
32791 _ACEOF
32792 rm -f conftest.$ac_objext conftest$ac_exeext
32793 if { (ac_try="$ac_link"
32794 case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32797 esac
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_link") 2>conftest.er1
32800 ac_status=$?
32801 grep -v '^ *+' conftest.er1 >conftest.err
32802 rm -f conftest.er1
32803 cat conftest.err >&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
32806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32807 { (case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_try") 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; } &&
32816 { ac_try='test -s conftest$ac_exeext'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32823 ac_status=$?
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; }; then
32826 ac_cv_lib_tds_tds_version=yes
32827 else
32828 echo "$as_me: failed program was:" >&5
32829 sed 's/^/| /' conftest.$ac_ext >&5
32831 ac_cv_lib_tds_tds_version=no
32834 rm -f core conftest.err conftest.$ac_objext \
32835 conftest$ac_exeext conftest.$ac_ext
32836 LIBS=$ac_check_lib_save_LIBS
32838 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
32839 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
32840 if test $ac_cv_lib_tds_tds_version = yes; then
32841 AST_FREETDS_FOUND=yes
32842 else
32843 AST_FREETDS_FOUND=no
32847 if test "${AST_FREETDS_FOUND}" = "yes"; then
32848 FREETDS_LIB="-ltds "
32849 FREETDS_HEADER_FOUND="1"
32850 if test "x${FREETDS_DIR}" != "x"; then
32851 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
32852 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
32853 saved_cppflags="${CPPFLAGS}"
32854 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
32855 if test "xtds.h" != "x" ; then
32856 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
32857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32858 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
32859 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
32860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32861 echo $ECHO_N "(cached) $ECHO_C" >&6
32863 ac_res=`eval echo '${'$as_ac_Header'}'`
32864 { echo "$as_me:$LINENO: result: $ac_res" >&5
32865 echo "${ECHO_T}$ac_res" >&6; }
32866 else
32867 # Is the header compilable?
32868 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
32869 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
32870 cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h. */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32876 $ac_includes_default
32877 #include <${FREETDS_DIR}/include/tds.h>
32878 _ACEOF
32879 rm -f conftest.$ac_objext
32880 if { (ac_try="$ac_compile"
32881 case "(($ac_try" in
32882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883 *) ac_try_echo=$ac_try;;
32884 esac
32885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886 (eval "$ac_compile") 2>conftest.er1
32887 ac_status=$?
32888 grep -v '^ *+' conftest.er1 >conftest.err
32889 rm -f conftest.er1
32890 cat conftest.err >&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } &&
32893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32894 { (case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32897 esac
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_try") 2>&5
32900 ac_status=$?
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; } &&
32903 { ac_try='test -s conftest.$ac_objext'
32904 { (case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907 esac
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_try") 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; }; then
32913 ac_header_compiler=yes
32914 else
32915 echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32918 ac_header_compiler=no
32921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32923 echo "${ECHO_T}$ac_header_compiler" >&6; }
32925 # Is the header present?
32926 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
32927 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
32928 cat >conftest.$ac_ext <<_ACEOF
32929 /* confdefs.h. */
32930 _ACEOF
32931 cat confdefs.h >>conftest.$ac_ext
32932 cat >>conftest.$ac_ext <<_ACEOF
32933 /* end confdefs.h. */
32934 #include <${FREETDS_DIR}/include/tds.h>
32935 _ACEOF
32936 if { (ac_try="$ac_cpp conftest.$ac_ext"
32937 case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32940 esac
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32943 ac_status=$?
32944 grep -v '^ *+' conftest.er1 >conftest.err
32945 rm -f conftest.er1
32946 cat conftest.err >&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); } >/dev/null; then
32949 if test -s conftest.err; then
32950 ac_cpp_err=$ac_c_preproc_warn_flag
32951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32952 else
32953 ac_cpp_err=
32955 else
32956 ac_cpp_err=yes
32958 if test -z "$ac_cpp_err"; then
32959 ac_header_preproc=yes
32960 else
32961 echo "$as_me: failed program was:" >&5
32962 sed 's/^/| /' conftest.$ac_ext >&5
32964 ac_header_preproc=no
32967 rm -f conftest.err conftest.$ac_ext
32968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32969 echo "${ECHO_T}$ac_header_preproc" >&6; }
32971 # So? What about this header?
32972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32973 yes:no: )
32974 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
32975 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
32977 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
32978 ac_header_preproc=yes
32980 no:yes:* )
32981 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
32982 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
32983 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
32984 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
32985 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
32986 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
32987 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
32988 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
32989 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
32990 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
32991 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
32992 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
32995 esac
32996 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
32997 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
32998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32999 echo $ECHO_N "(cached) $ECHO_C" >&6
33000 else
33001 eval "$as_ac_Header=\$ac_header_preproc"
33003 ac_res=`eval echo '${'$as_ac_Header'}'`
33004 { echo "$as_me:$LINENO: result: $ac_res" >&5
33005 echo "${ECHO_T}$ac_res" >&6; }
33008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33009 FREETDS_HEADER_FOUND=1
33010 else
33011 FREETDS_HEADER_FOUND=0
33016 CPPFLAGS="${saved_cppflags}"
33017 else
33018 if test "xtds.h" != "x" ; then
33019 if test "${ac_cv_header_tds_h+set}" = set; then
33020 { echo "$as_me:$LINENO: checking for tds.h" >&5
33021 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
33022 if test "${ac_cv_header_tds_h+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33025 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
33026 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
33027 else
33028 # Is the header compilable?
33029 { echo "$as_me:$LINENO: checking tds.h usability" >&5
33030 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
33031 cat >conftest.$ac_ext <<_ACEOF
33032 /* confdefs.h. */
33033 _ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33037 $ac_includes_default
33038 #include <tds.h>
33039 _ACEOF
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33048 ac_status=$?
33049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33058 esac
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 ac_header_compiler=yes
33075 else
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 ac_header_compiler=no
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084 echo "${ECHO_T}$ac_header_compiler" >&6; }
33086 # Is the header present?
33087 { echo "$as_me:$LINENO: checking tds.h presence" >&5
33088 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
33089 cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h. */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 #include <tds.h>
33096 _ACEOF
33097 if { (ac_try="$ac_cpp conftest.$ac_ext"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } >/dev/null; then
33110 if test -s conftest.err; then
33111 ac_cpp_err=$ac_c_preproc_warn_flag
33112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33113 else
33114 ac_cpp_err=
33116 else
33117 ac_cpp_err=yes
33119 if test -z "$ac_cpp_err"; then
33120 ac_header_preproc=yes
33121 else
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33125 ac_header_preproc=no
33128 rm -f conftest.err conftest.$ac_ext
33129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33130 echo "${ECHO_T}$ac_header_preproc" >&6; }
33132 # So? What about this header?
33133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33134 yes:no: )
33135 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
33136 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33137 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
33138 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
33139 ac_header_preproc=yes
33141 no:yes:* )
33142 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
33143 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
33144 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
33145 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
33146 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
33147 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
33148 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
33149 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
33150 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
33151 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
33152 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
33153 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
33156 esac
33157 { echo "$as_me:$LINENO: checking for tds.h" >&5
33158 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
33159 if test "${ac_cv_header_tds_h+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33161 else
33162 ac_cv_header_tds_h=$ac_header_preproc
33164 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
33165 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
33168 if test $ac_cv_header_tds_h = yes; then
33169 FREETDS_HEADER_FOUND=1
33170 else
33171 FREETDS_HEADER_FOUND=0
33177 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
33178 if test -n "${FREETDS_MANDATORY}" ;
33179 then
33180 { echo "$as_me:$LINENO: ***" >&5
33181 echo "$as_me: ***" >&6;}
33182 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
33183 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
33184 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
33185 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
33186 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
33187 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
33188 exit 1
33190 FREETDS_LIB=""
33191 FREETDS_INCLUDE=""
33192 PBX_FREETDS=0
33193 else
33194 PBX_FREETDS=1
33196 cat >>confdefs.h <<_ACEOF
33197 #define HAVE_FREETDS 1
33198 _ACEOF
33201 elif test -n "${FREETDS_MANDATORY}";
33202 then
33203 { echo "$as_me:$LINENO: ***" >&5
33204 echo "$as_me: ***" >&6;}
33205 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
33206 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
33207 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33208 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
33210 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
33211 exit 1
33215 if test "${PBX_FREETDS}" != "0";
33216 then
33217 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
33218 *0.64*)
33219 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
33221 *0.63*)
33222 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
33224 *0.62*)
33225 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
33228 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
33230 esac
33234 if test "${USE_TERMCAP}" != "no"; then
33235 pbxlibdir=""
33236 if test "x${TERMCAP_DIR}" != "x"; then
33237 if test -d ${TERMCAP_DIR}/lib; then
33238 pbxlibdir="-L${TERMCAP_DIR}/lib"
33239 else
33240 pbxlibdir="-L${TERMCAP_DIR}"
33243 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
33244 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
33245 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33247 else
33248 ac_check_lib_save_LIBS=$LIBS
33249 LIBS="-ltermcap ${pbxlibdir} $LIBS"
33250 cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h. */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33257 /* Override any GCC internal prototype to avoid an error.
33258 Use char because int might match the return type of a GCC
33259 builtin and then its argument prototype would still apply. */
33260 #ifdef __cplusplus
33261 extern "C"
33262 #endif
33263 char tgetent ();
33265 main ()
33267 return tgetent ();
33269 return 0;
33271 _ACEOF
33272 rm -f conftest.$ac_objext conftest$ac_exeext
33273 if { (ac_try="$ac_link"
33274 case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33277 esac
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_link") 2>conftest.er1
33280 ac_status=$?
33281 grep -v '^ *+' conftest.er1 >conftest.err
33282 rm -f conftest.er1
33283 cat conftest.err >&5
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); } &&
33286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33287 { (case "(($ac_try" in
33288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33289 *) ac_try_echo=$ac_try;;
33290 esac
33291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33292 (eval "$ac_try") 2>&5
33293 ac_status=$?
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; } &&
33296 { ac_try='test -s conftest$ac_exeext'
33297 { (case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_try") 2>&5
33303 ac_status=$?
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; }; then
33306 ac_cv_lib_termcap_tgetent=yes
33307 else
33308 echo "$as_me: failed program was:" >&5
33309 sed 's/^/| /' conftest.$ac_ext >&5
33311 ac_cv_lib_termcap_tgetent=no
33314 rm -f core conftest.err conftest.$ac_objext \
33315 conftest$ac_exeext conftest.$ac_ext
33316 LIBS=$ac_check_lib_save_LIBS
33318 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
33319 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
33320 if test $ac_cv_lib_termcap_tgetent = yes; then
33321 AST_TERMCAP_FOUND=yes
33322 else
33323 AST_TERMCAP_FOUND=no
33327 if test "${AST_TERMCAP_FOUND}" = "yes"; then
33328 TERMCAP_LIB="-ltermcap "
33329 TERMCAP_HEADER_FOUND="1"
33330 if test "x${TERMCAP_DIR}" != "x"; then
33331 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
33332 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
33333 saved_cppflags="${CPPFLAGS}"
33334 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
33335 if test "x" != "x" ; then
33336 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
33337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33338 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
33339 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
33340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33343 ac_res=`eval echo '${'$as_ac_Header'}'`
33344 { echo "$as_me:$LINENO: result: $ac_res" >&5
33345 echo "${ECHO_T}$ac_res" >&6; }
33346 else
33347 # Is the header compilable?
33348 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
33349 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
33350 cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h. */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33356 $ac_includes_default
33357 #include <${TERMCAP_DIR}/include/>
33358 _ACEOF
33359 rm -f conftest.$ac_objext
33360 if { (ac_try="$ac_compile"
33361 case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33364 esac
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366 (eval "$ac_compile") 2>conftest.er1
33367 ac_status=$?
33368 grep -v '^ *+' conftest.er1 >conftest.err
33369 rm -f conftest.er1
33370 cat conftest.err >&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); } &&
33373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33374 { (case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33377 esac
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_try") 2>&5
33380 ac_status=$?
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; } &&
33383 { ac_try='test -s conftest.$ac_objext'
33384 { (case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33387 esac
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_try") 2>&5
33390 ac_status=$?
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; }; then
33393 ac_header_compiler=yes
33394 else
33395 echo "$as_me: failed program was:" >&5
33396 sed 's/^/| /' conftest.$ac_ext >&5
33398 ac_header_compiler=no
33401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33403 echo "${ECHO_T}$ac_header_compiler" >&6; }
33405 # Is the header present?
33406 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
33407 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
33408 cat >conftest.$ac_ext <<_ACEOF
33409 /* confdefs.h. */
33410 _ACEOF
33411 cat confdefs.h >>conftest.$ac_ext
33412 cat >>conftest.$ac_ext <<_ACEOF
33413 /* end confdefs.h. */
33414 #include <${TERMCAP_DIR}/include/>
33415 _ACEOF
33416 if { (ac_try="$ac_cpp conftest.$ac_ext"
33417 case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33420 esac
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33423 ac_status=$?
33424 grep -v '^ *+' conftest.er1 >conftest.err
33425 rm -f conftest.er1
33426 cat conftest.err >&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } >/dev/null; then
33429 if test -s conftest.err; then
33430 ac_cpp_err=$ac_c_preproc_warn_flag
33431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33432 else
33433 ac_cpp_err=
33435 else
33436 ac_cpp_err=yes
33438 if test -z "$ac_cpp_err"; then
33439 ac_header_preproc=yes
33440 else
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_header_preproc=no
33447 rm -f conftest.err conftest.$ac_ext
33448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33449 echo "${ECHO_T}$ac_header_preproc" >&6; }
33451 # So? What about this header?
33452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33453 yes:no: )
33454 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
33455 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
33456 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
33457 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
33458 ac_header_preproc=yes
33460 no:yes:* )
33461 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
33462 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
33464 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
33466 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
33467 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
33468 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
33469 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
33470 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
33471 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
33472 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
33475 esac
33476 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
33477 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
33478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33479 echo $ECHO_N "(cached) $ECHO_C" >&6
33480 else
33481 eval "$as_ac_Header=\$ac_header_preproc"
33483 ac_res=`eval echo '${'$as_ac_Header'}'`
33484 { echo "$as_me:$LINENO: result: $ac_res" >&5
33485 echo "${ECHO_T}$ac_res" >&6; }
33488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33489 TERMCAP_HEADER_FOUND=1
33490 else
33491 TERMCAP_HEADER_FOUND=0
33496 CPPFLAGS="${saved_cppflags}"
33497 else
33498 if test "x" != "x" ; then
33499 if test "${ac_cv_header_+set}" = set; then
33500 { echo "$as_me:$LINENO: checking for " >&5
33501 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
33502 if test "${ac_cv_header_+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
33506 echo "${ECHO_T}$ac_cv_header_" >&6; }
33507 else
33508 # Is the header compilable?
33509 { echo "$as_me:$LINENO: checking usability" >&5
33510 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
33511 cat >conftest.$ac_ext <<_ACEOF
33512 /* confdefs.h. */
33513 _ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h. */
33517 $ac_includes_default
33518 #include <>
33519 _ACEOF
33520 rm -f conftest.$ac_objext
33521 if { (ac_try="$ac_compile"
33522 case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33525 esac
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_compile") 2>conftest.er1
33528 ac_status=$?
33529 grep -v '^ *+' conftest.er1 >conftest.err
33530 rm -f conftest.er1
33531 cat conftest.err >&5
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
33534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33535 { (case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_try") 2>&5
33541 ac_status=$?
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); }; } &&
33544 { ac_try='test -s conftest.$ac_objext'
33545 { (case "(($ac_try" in
33546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547 *) ac_try_echo=$ac_try;;
33548 esac
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550 (eval "$ac_try") 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 ac_header_compiler=yes
33555 else
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 ac_header_compiler=no
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33564 echo "${ECHO_T}$ac_header_compiler" >&6; }
33566 # Is the header present?
33567 { echo "$as_me:$LINENO: checking presence" >&5
33568 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
33569 cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h. */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 #include <>
33576 _ACEOF
33577 if { (ac_try="$ac_cpp conftest.$ac_ext"
33578 case "(($ac_try" in
33579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33580 *) ac_try_echo=$ac_try;;
33581 esac
33582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33584 ac_status=$?
33585 grep -v '^ *+' conftest.er1 >conftest.err
33586 rm -f conftest.er1
33587 cat conftest.err >&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } >/dev/null; then
33590 if test -s conftest.err; then
33591 ac_cpp_err=$ac_c_preproc_warn_flag
33592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33593 else
33594 ac_cpp_err=
33596 else
33597 ac_cpp_err=yes
33599 if test -z "$ac_cpp_err"; then
33600 ac_header_preproc=yes
33601 else
33602 echo "$as_me: failed program was:" >&5
33603 sed 's/^/| /' conftest.$ac_ext >&5
33605 ac_header_preproc=no
33608 rm -f conftest.err conftest.$ac_ext
33609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33610 echo "${ECHO_T}$ac_header_preproc" >&6; }
33612 # So? What about this header?
33613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33614 yes:no: )
33615 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
33616 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
33617 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
33618 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
33619 ac_header_preproc=yes
33621 no:yes:* )
33622 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
33623 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
33624 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
33625 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
33626 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
33627 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
33628 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
33629 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
33630 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
33631 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
33632 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
33633 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
33636 esac
33637 { echo "$as_me:$LINENO: checking for " >&5
33638 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
33639 if test "${ac_cv_header_+set}" = set; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641 else
33642 ac_cv_header_=$ac_header_preproc
33644 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
33645 echo "${ECHO_T}$ac_cv_header_" >&6; }
33648 if test $ac_cv_header_ = yes; then
33649 TERMCAP_HEADER_FOUND=1
33650 else
33651 TERMCAP_HEADER_FOUND=0
33657 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
33658 if test -n "${TERMCAP_MANDATORY}" ;
33659 then
33660 { echo "$as_me:$LINENO: ***" >&5
33661 echo "$as_me: ***" >&6;}
33662 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
33663 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
33664 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
33665 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
33666 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
33667 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
33668 exit 1
33670 TERMCAP_LIB=""
33671 TERMCAP_INCLUDE=""
33672 PBX_TERMCAP=0
33673 else
33674 PBX_TERMCAP=1
33676 cat >>confdefs.h <<_ACEOF
33677 #define HAVE_TERMCAP 1
33678 _ACEOF
33681 elif test -n "${TERMCAP_MANDATORY}";
33682 then
33683 { echo "$as_me:$LINENO: ***" >&5
33684 echo "$as_me: ***" >&6;}
33685 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
33686 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
33687 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33688 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33689 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
33690 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
33691 exit 1
33697 if test "${USE_TINFO}" != "no"; then
33698 pbxlibdir=""
33699 if test "x${TINFO_DIR}" != "x"; then
33700 if test -d ${TINFO_DIR}/lib; then
33701 pbxlibdir="-L${TINFO_DIR}/lib"
33702 else
33703 pbxlibdir="-L${TINFO_DIR}"
33706 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
33707 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
33708 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
33709 echo $ECHO_N "(cached) $ECHO_C" >&6
33710 else
33711 ac_check_lib_save_LIBS=$LIBS
33712 LIBS="-ltinfo ${pbxlibdir} $LIBS"
33713 cat >conftest.$ac_ext <<_ACEOF
33714 /* confdefs.h. */
33715 _ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h. */
33720 /* Override any GCC internal prototype to avoid an error.
33721 Use char because int might match the return type of a GCC
33722 builtin and then its argument prototype would still apply. */
33723 #ifdef __cplusplus
33724 extern "C"
33725 #endif
33726 char tgetent ();
33728 main ()
33730 return tgetent ();
33732 return 0;
33734 _ACEOF
33735 rm -f conftest.$ac_objext conftest$ac_exeext
33736 if { (ac_try="$ac_link"
33737 case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33740 esac
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_link") 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753 esac
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest$ac_exeext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 ac_cv_lib_tinfo_tgetent=yes
33770 else
33771 echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33774 ac_cv_lib_tinfo_tgetent=no
33777 rm -f core conftest.err conftest.$ac_objext \
33778 conftest$ac_exeext conftest.$ac_ext
33779 LIBS=$ac_check_lib_save_LIBS
33781 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
33782 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
33783 if test $ac_cv_lib_tinfo_tgetent = yes; then
33784 AST_TINFO_FOUND=yes
33785 else
33786 AST_TINFO_FOUND=no
33790 if test "${AST_TINFO_FOUND}" = "yes"; then
33791 TINFO_LIB="-ltinfo "
33792 TINFO_HEADER_FOUND="1"
33793 if test "x${TINFO_DIR}" != "x"; then
33794 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
33795 TINFO_INCLUDE="-I${TINFO_DIR}/include"
33796 saved_cppflags="${CPPFLAGS}"
33797 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
33798 if test "x" != "x" ; then
33799 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
33800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33801 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
33802 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
33803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33806 ac_res=`eval echo '${'$as_ac_Header'}'`
33807 { echo "$as_me:$LINENO: result: $ac_res" >&5
33808 echo "${ECHO_T}$ac_res" >&6; }
33809 else
33810 # Is the header compilable?
33811 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
33812 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
33813 cat >conftest.$ac_ext <<_ACEOF
33814 /* confdefs.h. */
33815 _ACEOF
33816 cat confdefs.h >>conftest.$ac_ext
33817 cat >>conftest.$ac_ext <<_ACEOF
33818 /* end confdefs.h. */
33819 $ac_includes_default
33820 #include <${TINFO_DIR}/include/>
33821 _ACEOF
33822 rm -f conftest.$ac_objext
33823 if { (ac_try="$ac_compile"
33824 case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827 esac
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_compile") 2>conftest.er1
33830 ac_status=$?
33831 grep -v '^ *+' conftest.er1 >conftest.err
33832 rm -f conftest.er1
33833 cat conftest.err >&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
33836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33837 { (case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840 esac
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_try") 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest.$ac_objext'
33847 { (case "(($ac_try" in
33848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849 *) ac_try_echo=$ac_try;;
33850 esac
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852 (eval "$ac_try") 2>&5
33853 ac_status=$?
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); }; }; then
33856 ac_header_compiler=yes
33857 else
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33861 ac_header_compiler=no
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33866 echo "${ECHO_T}$ac_header_compiler" >&6; }
33868 # Is the header present?
33869 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
33870 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
33871 cat >conftest.$ac_ext <<_ACEOF
33872 /* confdefs.h. */
33873 _ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h. */
33877 #include <${TINFO_DIR}/include/>
33878 _ACEOF
33879 if { (ac_try="$ac_cpp conftest.$ac_ext"
33880 case "(($ac_try" in
33881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33882 *) ac_try_echo=$ac_try;;
33883 esac
33884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33886 ac_status=$?
33887 grep -v '^ *+' conftest.er1 >conftest.err
33888 rm -f conftest.er1
33889 cat conftest.err >&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); } >/dev/null; then
33892 if test -s conftest.err; then
33893 ac_cpp_err=$ac_c_preproc_warn_flag
33894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33895 else
33896 ac_cpp_err=
33898 else
33899 ac_cpp_err=yes
33901 if test -z "$ac_cpp_err"; then
33902 ac_header_preproc=yes
33903 else
33904 echo "$as_me: failed program was:" >&5
33905 sed 's/^/| /' conftest.$ac_ext >&5
33907 ac_header_preproc=no
33910 rm -f conftest.err conftest.$ac_ext
33911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33912 echo "${ECHO_T}$ac_header_preproc" >&6; }
33914 # So? What about this header?
33915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33916 yes:no: )
33917 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
33918 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
33919 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
33920 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
33921 ac_header_preproc=yes
33923 no:yes:* )
33924 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
33925 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
33926 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
33927 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
33928 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
33929 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
33930 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
33931 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
33932 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
33933 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
33934 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
33935 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
33938 esac
33939 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
33940 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
33941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943 else
33944 eval "$as_ac_Header=\$ac_header_preproc"
33946 ac_res=`eval echo '${'$as_ac_Header'}'`
33947 { echo "$as_me:$LINENO: result: $ac_res" >&5
33948 echo "${ECHO_T}$ac_res" >&6; }
33951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33952 TINFO_HEADER_FOUND=1
33953 else
33954 TINFO_HEADER_FOUND=0
33959 CPPFLAGS="${saved_cppflags}"
33960 else
33961 if test "x" != "x" ; then
33962 if test "${ac_cv_header_+set}" = set; then
33963 { echo "$as_me:$LINENO: checking for " >&5
33964 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
33965 if test "${ac_cv_header_+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
33969 echo "${ECHO_T}$ac_cv_header_" >&6; }
33970 else
33971 # Is the header compilable?
33972 { echo "$as_me:$LINENO: checking usability" >&5
33973 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
33974 cat >conftest.$ac_ext <<_ACEOF
33975 /* confdefs.h. */
33976 _ACEOF
33977 cat confdefs.h >>conftest.$ac_ext
33978 cat >>conftest.$ac_ext <<_ACEOF
33979 /* end confdefs.h. */
33980 $ac_includes_default
33981 #include <>
33982 _ACEOF
33983 rm -f conftest.$ac_objext
33984 if { (ac_try="$ac_compile"
33985 case "(($ac_try" in
33986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33987 *) ac_try_echo=$ac_try;;
33988 esac
33989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33990 (eval "$ac_compile") 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
33997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33998 { (case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_try") 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; } &&
34007 { ac_try='test -s conftest.$ac_objext'
34008 { (case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34011 esac
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_try") 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; }; then
34017 ac_header_compiler=yes
34018 else
34019 echo "$as_me: failed program was:" >&5
34020 sed 's/^/| /' conftest.$ac_ext >&5
34022 ac_header_compiler=no
34025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34027 echo "${ECHO_T}$ac_header_compiler" >&6; }
34029 # Is the header present?
34030 { echo "$as_me:$LINENO: checking presence" >&5
34031 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
34032 cat >conftest.$ac_ext <<_ACEOF
34033 /* confdefs.h. */
34034 _ACEOF
34035 cat confdefs.h >>conftest.$ac_ext
34036 cat >>conftest.$ac_ext <<_ACEOF
34037 /* end confdefs.h. */
34038 #include <>
34039 _ACEOF
34040 if { (ac_try="$ac_cpp conftest.$ac_ext"
34041 case "(($ac_try" in
34042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34043 *) ac_try_echo=$ac_try;;
34044 esac
34045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34047 ac_status=$?
34048 grep -v '^ *+' conftest.er1 >conftest.err
34049 rm -f conftest.er1
34050 cat conftest.err >&5
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); } >/dev/null; then
34053 if test -s conftest.err; then
34054 ac_cpp_err=$ac_c_preproc_warn_flag
34055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34056 else
34057 ac_cpp_err=
34059 else
34060 ac_cpp_err=yes
34062 if test -z "$ac_cpp_err"; then
34063 ac_header_preproc=yes
34064 else
34065 echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34068 ac_header_preproc=no
34071 rm -f conftest.err conftest.$ac_ext
34072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34073 echo "${ECHO_T}$ac_header_preproc" >&6; }
34075 # So? What about this header?
34076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34077 yes:no: )
34078 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
34079 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
34080 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
34081 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
34082 ac_header_preproc=yes
34084 no:yes:* )
34085 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
34086 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
34087 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
34088 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
34089 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
34090 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
34091 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
34092 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
34093 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
34094 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
34095 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
34096 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
34099 esac
34100 { echo "$as_me:$LINENO: checking for " >&5
34101 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
34102 if test "${ac_cv_header_+set}" = set; then
34103 echo $ECHO_N "(cached) $ECHO_C" >&6
34104 else
34105 ac_cv_header_=$ac_header_preproc
34107 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
34108 echo "${ECHO_T}$ac_cv_header_" >&6; }
34111 if test $ac_cv_header_ = yes; then
34112 TINFO_HEADER_FOUND=1
34113 else
34114 TINFO_HEADER_FOUND=0
34120 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
34121 if test -n "${TINFO_MANDATORY}" ;
34122 then
34123 { echo "$as_me:$LINENO: ***" >&5
34124 echo "$as_me: ***" >&6;}
34125 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
34126 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
34127 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
34128 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
34129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
34130 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
34131 exit 1
34133 TINFO_LIB=""
34134 TINFO_INCLUDE=""
34135 PBX_TINFO=0
34136 else
34137 PBX_TINFO=1
34139 cat >>confdefs.h <<_ACEOF
34140 #define HAVE_TINFO 1
34141 _ACEOF
34144 elif test -n "${TINFO_MANDATORY}";
34145 then
34146 { echo "$as_me:$LINENO: ***" >&5
34147 echo "$as_me: ***" >&6;}
34148 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
34149 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
34150 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34151 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34152 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
34153 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
34154 exit 1
34159 if test "${host_os}" != "linux-gnu" ; then
34160 tonezone_extra="-lm"
34164 if test "${USE_TONEZONE}" != "no"; then
34165 pbxlibdir=""
34166 if test "x${TONEZONE_DIR}" != "x"; then
34167 if test -d ${TONEZONE_DIR}/lib; then
34168 pbxlibdir="-L${TONEZONE_DIR}/lib"
34169 else
34170 pbxlibdir="-L${TONEZONE_DIR}"
34173 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
34174 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
34175 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
34176 echo $ECHO_N "(cached) $ECHO_C" >&6
34177 else
34178 ac_check_lib_save_LIBS=$LIBS
34179 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
34180 cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h. */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h. */
34187 /* Override any GCC internal prototype to avoid an error.
34188 Use char because int might match the return type of a GCC
34189 builtin and then its argument prototype would still apply. */
34190 #ifdef __cplusplus
34191 extern "C"
34192 #endif
34193 char tone_zone_find ();
34195 main ()
34197 return tone_zone_find ();
34199 return 0;
34201 _ACEOF
34202 rm -f conftest.$ac_objext conftest$ac_exeext
34203 if { (ac_try="$ac_link"
34204 case "(($ac_try" in
34205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206 *) ac_try_echo=$ac_try;;
34207 esac
34208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34209 (eval "$ac_link") 2>conftest.er1
34210 ac_status=$?
34211 grep -v '^ *+' conftest.er1 >conftest.err
34212 rm -f conftest.er1
34213 cat conftest.err >&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } &&
34216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34217 { (case "(($ac_try" in
34218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219 *) ac_try_echo=$ac_try;;
34220 esac
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222 (eval "$ac_try") 2>&5
34223 ac_status=$?
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; } &&
34226 { ac_try='test -s conftest$ac_exeext'
34227 { (case "(($ac_try" in
34228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229 *) ac_try_echo=$ac_try;;
34230 esac
34231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34232 (eval "$ac_try") 2>&5
34233 ac_status=$?
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); }; }; then
34236 ac_cv_lib_tonezone_tone_zone_find=yes
34237 else
34238 echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34241 ac_cv_lib_tonezone_tone_zone_find=no
34244 rm -f core conftest.err conftest.$ac_objext \
34245 conftest$ac_exeext conftest.$ac_ext
34246 LIBS=$ac_check_lib_save_LIBS
34248 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
34249 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
34250 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
34251 AST_TONEZONE_FOUND=yes
34252 else
34253 AST_TONEZONE_FOUND=no
34257 if test "${AST_TONEZONE_FOUND}" = "yes"; then
34258 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
34259 TONEZONE_HEADER_FOUND="1"
34260 if test "x${TONEZONE_DIR}" != "x"; then
34261 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
34262 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
34263 saved_cppflags="${CPPFLAGS}"
34264 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
34265 if test "xzaptel/tonezone.h" != "x" ; then
34266 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
34267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34268 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
34269 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
34270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34271 echo $ECHO_N "(cached) $ECHO_C" >&6
34273 ac_res=`eval echo '${'$as_ac_Header'}'`
34274 { echo "$as_me:$LINENO: result: $ac_res" >&5
34275 echo "${ECHO_T}$ac_res" >&6; }
34276 else
34277 # Is the header compilable?
34278 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
34279 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
34280 cat >conftest.$ac_ext <<_ACEOF
34281 /* confdefs.h. */
34282 _ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34286 $ac_includes_default
34287 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
34288 _ACEOF
34289 rm -f conftest.$ac_objext
34290 if { (ac_try="$ac_compile"
34291 case "(($ac_try" in
34292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34293 *) ac_try_echo=$ac_try;;
34294 esac
34295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34296 (eval "$ac_compile") 2>conftest.er1
34297 ac_status=$?
34298 grep -v '^ *+' conftest.er1 >conftest.err
34299 rm -f conftest.er1
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } &&
34303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34304 { (case "(($ac_try" in
34305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34306 *) ac_try_echo=$ac_try;;
34307 esac
34308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34309 (eval "$ac_try") 2>&5
34310 ac_status=$?
34311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); }; } &&
34313 { ac_try='test -s conftest.$ac_objext'
34314 { (case "(($ac_try" in
34315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34316 *) ac_try_echo=$ac_try;;
34317 esac
34318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34319 (eval "$ac_try") 2>&5
34320 ac_status=$?
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); }; }; then
34323 ac_header_compiler=yes
34324 else
34325 echo "$as_me: failed program was:" >&5
34326 sed 's/^/| /' conftest.$ac_ext >&5
34328 ac_header_compiler=no
34331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34333 echo "${ECHO_T}$ac_header_compiler" >&6; }
34335 # Is the header present?
34336 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
34337 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
34338 cat >conftest.$ac_ext <<_ACEOF
34339 /* confdefs.h. */
34340 _ACEOF
34341 cat confdefs.h >>conftest.$ac_ext
34342 cat >>conftest.$ac_ext <<_ACEOF
34343 /* end confdefs.h. */
34344 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
34345 _ACEOF
34346 if { (ac_try="$ac_cpp conftest.$ac_ext"
34347 case "(($ac_try" in
34348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34349 *) ac_try_echo=$ac_try;;
34350 esac
34351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34353 ac_status=$?
34354 grep -v '^ *+' conftest.er1 >conftest.err
34355 rm -f conftest.er1
34356 cat conftest.err >&5
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } >/dev/null; then
34359 if test -s conftest.err; then
34360 ac_cpp_err=$ac_c_preproc_warn_flag
34361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34362 else
34363 ac_cpp_err=
34365 else
34366 ac_cpp_err=yes
34368 if test -z "$ac_cpp_err"; then
34369 ac_header_preproc=yes
34370 else
34371 echo "$as_me: failed program was:" >&5
34372 sed 's/^/| /' conftest.$ac_ext >&5
34374 ac_header_preproc=no
34377 rm -f conftest.err conftest.$ac_ext
34378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34379 echo "${ECHO_T}$ac_header_preproc" >&6; }
34381 # So? What about this header?
34382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34383 yes:no: )
34384 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
34385 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34386 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
34387 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
34388 ac_header_preproc=yes
34390 no:yes:* )
34391 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
34392 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
34393 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
34394 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
34395 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
34396 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
34397 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
34398 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
34399 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
34400 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
34401 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
34402 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
34405 esac
34406 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
34407 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
34408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34410 else
34411 eval "$as_ac_Header=\$ac_header_preproc"
34413 ac_res=`eval echo '${'$as_ac_Header'}'`
34414 { echo "$as_me:$LINENO: result: $ac_res" >&5
34415 echo "${ECHO_T}$ac_res" >&6; }
34418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34419 TONEZONE_HEADER_FOUND=1
34420 else
34421 TONEZONE_HEADER_FOUND=0
34426 CPPFLAGS="${saved_cppflags}"
34427 else
34428 if test "xzaptel/tonezone.h" != "x" ; then
34429 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
34430 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
34431 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
34432 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
34433 echo $ECHO_N "(cached) $ECHO_C" >&6
34435 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
34436 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
34437 else
34438 # Is the header compilable?
34439 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
34440 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
34441 cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h. */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h. */
34447 $ac_includes_default
34448 #include <zaptel/tonezone.h>
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_compile") 2>conftest.er1
34458 ac_status=$?
34459 grep -v '^ *+' conftest.er1 >conftest.err
34460 rm -f conftest.er1
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
34464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34465 { (case "(($ac_try" in
34466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34467 *) ac_try_echo=$ac_try;;
34468 esac
34469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34470 (eval "$ac_try") 2>&5
34471 ac_status=$?
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; } &&
34474 { ac_try='test -s conftest.$ac_objext'
34475 { (case "(($ac_try" in
34476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34477 *) ac_try_echo=$ac_try;;
34478 esac
34479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34480 (eval "$ac_try") 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; }; then
34484 ac_header_compiler=yes
34485 else
34486 echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34489 ac_header_compiler=no
34492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34494 echo "${ECHO_T}$ac_header_compiler" >&6; }
34496 # Is the header present?
34497 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
34498 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
34499 cat >conftest.$ac_ext <<_ACEOF
34500 /* confdefs.h. */
34501 _ACEOF
34502 cat confdefs.h >>conftest.$ac_ext
34503 cat >>conftest.$ac_ext <<_ACEOF
34504 /* end confdefs.h. */
34505 #include <zaptel/tonezone.h>
34506 _ACEOF
34507 if { (ac_try="$ac_cpp conftest.$ac_ext"
34508 case "(($ac_try" in
34509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34510 *) ac_try_echo=$ac_try;;
34511 esac
34512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34514 ac_status=$?
34515 grep -v '^ *+' conftest.er1 >conftest.err
34516 rm -f conftest.er1
34517 cat conftest.err >&5
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } >/dev/null; then
34520 if test -s conftest.err; then
34521 ac_cpp_err=$ac_c_preproc_warn_flag
34522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34523 else
34524 ac_cpp_err=
34526 else
34527 ac_cpp_err=yes
34529 if test -z "$ac_cpp_err"; then
34530 ac_header_preproc=yes
34531 else
34532 echo "$as_me: failed program was:" >&5
34533 sed 's/^/| /' conftest.$ac_ext >&5
34535 ac_header_preproc=no
34538 rm -f conftest.err conftest.$ac_ext
34539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34540 echo "${ECHO_T}$ac_header_preproc" >&6; }
34542 # So? What about this header?
34543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34544 yes:no: )
34545 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
34546 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34547 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
34548 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
34549 ac_header_preproc=yes
34551 no:yes:* )
34552 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
34553 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
34554 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
34555 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
34556 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
34557 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
34558 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
34559 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
34560 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
34561 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
34562 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
34563 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
34566 esac
34567 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
34568 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
34569 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
34570 echo $ECHO_N "(cached) $ECHO_C" >&6
34571 else
34572 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
34574 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
34575 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
34578 if test $ac_cv_header_zaptel_tonezone_h = yes; then
34579 TONEZONE_HEADER_FOUND=1
34580 else
34581 TONEZONE_HEADER_FOUND=0
34587 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
34588 if test -n "${TONEZONE_MANDATORY}" ;
34589 then
34590 { echo "$as_me:$LINENO: ***" >&5
34591 echo "$as_me: ***" >&6;}
34592 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
34593 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
34594 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
34595 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
34596 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
34597 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
34598 exit 1
34600 TONEZONE_LIB=""
34601 TONEZONE_INCLUDE=""
34602 PBX_TONEZONE=0
34603 else
34604 PBX_TONEZONE=1
34606 cat >>confdefs.h <<_ACEOF
34607 #define HAVE_TONEZONE 1
34608 _ACEOF
34611 elif test -n "${TONEZONE_MANDATORY}";
34612 then
34613 { echo "$as_me:$LINENO: ***" >&5
34614 echo "$as_me: ***" >&6;}
34615 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
34616 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
34617 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34618 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34619 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
34620 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
34621 exit 1
34627 if test "${USE_USB}" != "no"; then
34628 pbxlibdir=""
34629 if test "x${USB_DIR}" != "x"; then
34630 if test -d ${USB_DIR}/lib; then
34631 pbxlibdir="-L${USB_DIR}/lib"
34632 else
34633 pbxlibdir="-L${USB_DIR}"
34636 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
34637 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
34638 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
34639 echo $ECHO_N "(cached) $ECHO_C" >&6
34640 else
34641 ac_check_lib_save_LIBS=$LIBS
34642 LIBS="-lusb ${pbxlibdir} $LIBS"
34643 cat >conftest.$ac_ext <<_ACEOF
34644 /* confdefs.h. */
34645 _ACEOF
34646 cat confdefs.h >>conftest.$ac_ext
34647 cat >>conftest.$ac_ext <<_ACEOF
34648 /* end confdefs.h. */
34650 /* Override any GCC internal prototype to avoid an error.
34651 Use char because int might match the return type of a GCC
34652 builtin and then its argument prototype would still apply. */
34653 #ifdef __cplusplus
34654 extern "C"
34655 #endif
34656 char usb_init ();
34658 main ()
34660 return usb_init ();
34662 return 0;
34664 _ACEOF
34665 rm -f conftest.$ac_objext conftest$ac_exeext
34666 if { (ac_try="$ac_link"
34667 case "(($ac_try" in
34668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34669 *) ac_try_echo=$ac_try;;
34670 esac
34671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34672 (eval "$ac_link") 2>conftest.er1
34673 ac_status=$?
34674 grep -v '^ *+' conftest.er1 >conftest.err
34675 rm -f conftest.er1
34676 cat conftest.err >&5
34677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); } &&
34679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34680 { (case "(($ac_try" in
34681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34682 *) ac_try_echo=$ac_try;;
34683 esac
34684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34685 (eval "$ac_try") 2>&5
34686 ac_status=$?
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); }; } &&
34689 { ac_try='test -s conftest$ac_exeext'
34690 { (case "(($ac_try" in
34691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34692 *) ac_try_echo=$ac_try;;
34693 esac
34694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34695 (eval "$ac_try") 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; }; then
34699 ac_cv_lib_usb_usb_init=yes
34700 else
34701 echo "$as_me: failed program was:" >&5
34702 sed 's/^/| /' conftest.$ac_ext >&5
34704 ac_cv_lib_usb_usb_init=no
34707 rm -f core conftest.err conftest.$ac_objext \
34708 conftest$ac_exeext conftest.$ac_ext
34709 LIBS=$ac_check_lib_save_LIBS
34711 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
34712 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
34713 if test $ac_cv_lib_usb_usb_init = yes; then
34714 AST_USB_FOUND=yes
34715 else
34716 AST_USB_FOUND=no
34720 if test "${AST_USB_FOUND}" = "yes"; then
34721 USB_LIB="-lusb "
34722 USB_HEADER_FOUND="1"
34723 if test "x${USB_DIR}" != "x"; then
34724 USB_LIB="${pbxlibdir} ${USB_LIB}"
34725 USB_INCLUDE="-I${USB_DIR}/include"
34726 saved_cppflags="${CPPFLAGS}"
34727 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
34728 if test "xusb.h" != "x" ; then
34729 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
34730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34731 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
34732 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
34733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34734 echo $ECHO_N "(cached) $ECHO_C" >&6
34736 ac_res=`eval echo '${'$as_ac_Header'}'`
34737 { echo "$as_me:$LINENO: result: $ac_res" >&5
34738 echo "${ECHO_T}$ac_res" >&6; }
34739 else
34740 # Is the header compilable?
34741 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
34742 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
34743 cat >conftest.$ac_ext <<_ACEOF
34744 /* confdefs.h. */
34745 _ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h. */
34749 $ac_includes_default
34750 #include <${USB_DIR}/include/usb.h>
34751 _ACEOF
34752 rm -f conftest.$ac_objext
34753 if { (ac_try="$ac_compile"
34754 case "(($ac_try" in
34755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34756 *) ac_try_echo=$ac_try;;
34757 esac
34758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34759 (eval "$ac_compile") 2>conftest.er1
34760 ac_status=$?
34761 grep -v '^ *+' conftest.er1 >conftest.err
34762 rm -f conftest.er1
34763 cat conftest.err >&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); } &&
34766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34767 { (case "(($ac_try" in
34768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769 *) ac_try_echo=$ac_try;;
34770 esac
34771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772 (eval "$ac_try") 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; } &&
34776 { ac_try='test -s conftest.$ac_objext'
34777 { (case "(($ac_try" in
34778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779 *) ac_try_echo=$ac_try;;
34780 esac
34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782 (eval "$ac_try") 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 ac_header_compiler=yes
34787 else
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 ac_header_compiler=no
34794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34796 echo "${ECHO_T}$ac_header_compiler" >&6; }
34798 # Is the header present?
34799 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
34800 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
34801 cat >conftest.$ac_ext <<_ACEOF
34802 /* confdefs.h. */
34803 _ACEOF
34804 cat confdefs.h >>conftest.$ac_ext
34805 cat >>conftest.$ac_ext <<_ACEOF
34806 /* end confdefs.h. */
34807 #include <${USB_DIR}/include/usb.h>
34808 _ACEOF
34809 if { (ac_try="$ac_cpp conftest.$ac_ext"
34810 case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34813 esac
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34816 ac_status=$?
34817 grep -v '^ *+' conftest.er1 >conftest.err
34818 rm -f conftest.er1
34819 cat conftest.err >&5
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); } >/dev/null; then
34822 if test -s conftest.err; then
34823 ac_cpp_err=$ac_c_preproc_warn_flag
34824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34825 else
34826 ac_cpp_err=
34828 else
34829 ac_cpp_err=yes
34831 if test -z "$ac_cpp_err"; then
34832 ac_header_preproc=yes
34833 else
34834 echo "$as_me: failed program was:" >&5
34835 sed 's/^/| /' conftest.$ac_ext >&5
34837 ac_header_preproc=no
34840 rm -f conftest.err conftest.$ac_ext
34841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34842 echo "${ECHO_T}$ac_header_preproc" >&6; }
34844 # So? What about this header?
34845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34846 yes:no: )
34847 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
34848 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34849 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
34850 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
34851 ac_header_preproc=yes
34853 no:yes:* )
34854 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
34855 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
34856 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
34857 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
34858 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
34859 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
34860 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
34861 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
34862 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
34863 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
34864 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
34865 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
34868 esac
34869 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
34870 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
34871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34872 echo $ECHO_N "(cached) $ECHO_C" >&6
34873 else
34874 eval "$as_ac_Header=\$ac_header_preproc"
34876 ac_res=`eval echo '${'$as_ac_Header'}'`
34877 { echo "$as_me:$LINENO: result: $ac_res" >&5
34878 echo "${ECHO_T}$ac_res" >&6; }
34881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34882 USB_HEADER_FOUND=1
34883 else
34884 USB_HEADER_FOUND=0
34889 CPPFLAGS="${saved_cppflags}"
34890 else
34891 if test "xusb.h" != "x" ; then
34892 if test "${ac_cv_header_usb_h+set}" = set; then
34893 { echo "$as_me:$LINENO: checking for usb.h" >&5
34894 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
34895 if test "${ac_cv_header_usb_h+set}" = set; then
34896 echo $ECHO_N "(cached) $ECHO_C" >&6
34898 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
34899 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
34900 else
34901 # Is the header compilable?
34902 { echo "$as_me:$LINENO: checking usb.h usability" >&5
34903 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
34904 cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h. */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h. */
34910 $ac_includes_default
34911 #include <usb.h>
34912 _ACEOF
34913 rm -f conftest.$ac_objext
34914 if { (ac_try="$ac_compile"
34915 case "(($ac_try" in
34916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34917 *) ac_try_echo=$ac_try;;
34918 esac
34919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34920 (eval "$ac_compile") 2>conftest.er1
34921 ac_status=$?
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
34927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34928 { (case "(($ac_try" in
34929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930 *) ac_try_echo=$ac_try;;
34931 esac
34932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933 (eval "$ac_try") 2>&5
34934 ac_status=$?
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; } &&
34937 { ac_try='test -s conftest.$ac_objext'
34938 { (case "(($ac_try" in
34939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940 *) ac_try_echo=$ac_try;;
34941 esac
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943 (eval "$ac_try") 2>&5
34944 ac_status=$?
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; }; then
34947 ac_header_compiler=yes
34948 else
34949 echo "$as_me: failed program was:" >&5
34950 sed 's/^/| /' conftest.$ac_ext >&5
34952 ac_header_compiler=no
34955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34957 echo "${ECHO_T}$ac_header_compiler" >&6; }
34959 # Is the header present?
34960 { echo "$as_me:$LINENO: checking usb.h presence" >&5
34961 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
34962 cat >conftest.$ac_ext <<_ACEOF
34963 /* confdefs.h. */
34964 _ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h. */
34968 #include <usb.h>
34969 _ACEOF
34970 if { (ac_try="$ac_cpp conftest.$ac_ext"
34971 case "(($ac_try" in
34972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34973 *) ac_try_echo=$ac_try;;
34974 esac
34975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34977 ac_status=$?
34978 grep -v '^ *+' conftest.er1 >conftest.err
34979 rm -f conftest.er1
34980 cat conftest.err >&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); } >/dev/null; then
34983 if test -s conftest.err; then
34984 ac_cpp_err=$ac_c_preproc_warn_flag
34985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34986 else
34987 ac_cpp_err=
34989 else
34990 ac_cpp_err=yes
34992 if test -z "$ac_cpp_err"; then
34993 ac_header_preproc=yes
34994 else
34995 echo "$as_me: failed program was:" >&5
34996 sed 's/^/| /' conftest.$ac_ext >&5
34998 ac_header_preproc=no
35001 rm -f conftest.err conftest.$ac_ext
35002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35003 echo "${ECHO_T}$ac_header_preproc" >&6; }
35005 # So? What about this header?
35006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35007 yes:no: )
35008 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
35009 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35010 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
35011 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
35012 ac_header_preproc=yes
35014 no:yes:* )
35015 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
35016 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
35017 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
35018 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
35019 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
35020 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
35021 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
35022 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
35023 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
35024 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
35025 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
35026 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
35029 esac
35030 { echo "$as_me:$LINENO: checking for usb.h" >&5
35031 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
35032 if test "${ac_cv_header_usb_h+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35034 else
35035 ac_cv_header_usb_h=$ac_header_preproc
35037 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
35038 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
35041 if test $ac_cv_header_usb_h = yes; then
35042 USB_HEADER_FOUND=1
35043 else
35044 USB_HEADER_FOUND=0
35050 if test "x${USB_HEADER_FOUND}" = "x0" ; then
35051 if test -n "${USB_MANDATORY}" ;
35052 then
35053 { echo "$as_me:$LINENO: ***" >&5
35054 echo "$as_me: ***" >&6;}
35055 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
35056 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
35057 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
35058 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
35059 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
35060 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
35061 exit 1
35063 USB_LIB=""
35064 USB_INCLUDE=""
35065 PBX_USB=0
35066 else
35067 PBX_USB=1
35069 cat >>confdefs.h <<_ACEOF
35070 #define HAVE_USB 1
35071 _ACEOF
35074 elif test -n "${USB_MANDATORY}";
35075 then
35076 { echo "$as_me:$LINENO: ***" >&5
35077 echo "$as_me: ***" >&6;}
35078 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
35079 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
35080 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35081 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35082 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
35083 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
35084 exit 1
35090 if test "${USE_VORBIS}" != "no"; then
35091 pbxlibdir=""
35092 if test "x${VORBIS_DIR}" != "x"; then
35093 if test -d ${VORBIS_DIR}/lib; then
35094 pbxlibdir="-L${VORBIS_DIR}/lib"
35095 else
35096 pbxlibdir="-L${VORBIS_DIR}"
35099 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
35100 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
35101 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
35102 echo $ECHO_N "(cached) $ECHO_C" >&6
35103 else
35104 ac_check_lib_save_LIBS=$LIBS
35105 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
35106 cat >conftest.$ac_ext <<_ACEOF
35107 /* confdefs.h. */
35108 _ACEOF
35109 cat confdefs.h >>conftest.$ac_ext
35110 cat >>conftest.$ac_ext <<_ACEOF
35111 /* end confdefs.h. */
35113 /* Override any GCC internal prototype to avoid an error.
35114 Use char because int might match the return type of a GCC
35115 builtin and then its argument prototype would still apply. */
35116 #ifdef __cplusplus
35117 extern "C"
35118 #endif
35119 char vorbis_info_init ();
35121 main ()
35123 return vorbis_info_init ();
35125 return 0;
35127 _ACEOF
35128 rm -f conftest.$ac_objext conftest$ac_exeext
35129 if { (ac_try="$ac_link"
35130 case "(($ac_try" in
35131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35132 *) ac_try_echo=$ac_try;;
35133 esac
35134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35135 (eval "$ac_link") 2>conftest.er1
35136 ac_status=$?
35137 grep -v '^ *+' conftest.er1 >conftest.err
35138 rm -f conftest.er1
35139 cat conftest.err >&5
35140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141 (exit $ac_status); } &&
35142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35143 { (case "(($ac_try" in
35144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35145 *) ac_try_echo=$ac_try;;
35146 esac
35147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35148 (eval "$ac_try") 2>&5
35149 ac_status=$?
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; } &&
35152 { ac_try='test -s conftest$ac_exeext'
35153 { (case "(($ac_try" in
35154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35156 esac
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_try") 2>&5
35159 ac_status=$?
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); }; }; then
35162 ac_cv_lib_vorbis_vorbis_info_init=yes
35163 else
35164 echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35167 ac_cv_lib_vorbis_vorbis_info_init=no
35170 rm -f core conftest.err conftest.$ac_objext \
35171 conftest$ac_exeext conftest.$ac_ext
35172 LIBS=$ac_check_lib_save_LIBS
35174 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
35175 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
35176 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
35177 AST_VORBIS_FOUND=yes
35178 else
35179 AST_VORBIS_FOUND=no
35183 if test "${AST_VORBIS_FOUND}" = "yes"; then
35184 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
35185 VORBIS_HEADER_FOUND="1"
35186 if test "x${VORBIS_DIR}" != "x"; then
35187 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
35188 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
35189 saved_cppflags="${CPPFLAGS}"
35190 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
35191 if test "xvorbis/codec.h" != "x" ; then
35192 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
35193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35194 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
35195 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
35196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35197 echo $ECHO_N "(cached) $ECHO_C" >&6
35199 ac_res=`eval echo '${'$as_ac_Header'}'`
35200 { echo "$as_me:$LINENO: result: $ac_res" >&5
35201 echo "${ECHO_T}$ac_res" >&6; }
35202 else
35203 # Is the header compilable?
35204 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
35205 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
35206 cat >conftest.$ac_ext <<_ACEOF
35207 /* confdefs.h. */
35208 _ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h. */
35212 $ac_includes_default
35213 #include <${VORBIS_DIR}/include/vorbis/codec.h>
35214 _ACEOF
35215 rm -f conftest.$ac_objext
35216 if { (ac_try="$ac_compile"
35217 case "(($ac_try" in
35218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219 *) ac_try_echo=$ac_try;;
35220 esac
35221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222 (eval "$ac_compile") 2>conftest.er1
35223 ac_status=$?
35224 grep -v '^ *+' conftest.er1 >conftest.err
35225 rm -f conftest.er1
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); } &&
35229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35230 { (case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233 esac
35234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_try") 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35243 esac
35244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245 (eval "$ac_try") 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
35249 ac_header_compiler=yes
35250 else
35251 echo "$as_me: failed program was:" >&5
35252 sed 's/^/| /' conftest.$ac_ext >&5
35254 ac_header_compiler=no
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35259 echo "${ECHO_T}$ac_header_compiler" >&6; }
35261 # Is the header present?
35262 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
35263 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
35264 cat >conftest.$ac_ext <<_ACEOF
35265 /* confdefs.h. */
35266 _ACEOF
35267 cat confdefs.h >>conftest.$ac_ext
35268 cat >>conftest.$ac_ext <<_ACEOF
35269 /* end confdefs.h. */
35270 #include <${VORBIS_DIR}/include/vorbis/codec.h>
35271 _ACEOF
35272 if { (ac_try="$ac_cpp conftest.$ac_ext"
35273 case "(($ac_try" in
35274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35275 *) ac_try_echo=$ac_try;;
35276 esac
35277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35279 ac_status=$?
35280 grep -v '^ *+' conftest.er1 >conftest.err
35281 rm -f conftest.er1
35282 cat conftest.err >&5
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); } >/dev/null; then
35285 if test -s conftest.err; then
35286 ac_cpp_err=$ac_c_preproc_warn_flag
35287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35288 else
35289 ac_cpp_err=
35291 else
35292 ac_cpp_err=yes
35294 if test -z "$ac_cpp_err"; then
35295 ac_header_preproc=yes
35296 else
35297 echo "$as_me: failed program was:" >&5
35298 sed 's/^/| /' conftest.$ac_ext >&5
35300 ac_header_preproc=no
35303 rm -f conftest.err conftest.$ac_ext
35304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35305 echo "${ECHO_T}$ac_header_preproc" >&6; }
35307 # So? What about this header?
35308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35309 yes:no: )
35310 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
35311 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35312 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
35313 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
35314 ac_header_preproc=yes
35316 no:yes:* )
35317 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
35318 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
35319 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
35320 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
35321 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
35322 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
35323 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
35324 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
35325 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
35326 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
35327 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
35328 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
35331 esac
35332 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
35333 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
35334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35335 echo $ECHO_N "(cached) $ECHO_C" >&6
35336 else
35337 eval "$as_ac_Header=\$ac_header_preproc"
35339 ac_res=`eval echo '${'$as_ac_Header'}'`
35340 { echo "$as_me:$LINENO: result: $ac_res" >&5
35341 echo "${ECHO_T}$ac_res" >&6; }
35344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35345 VORBIS_HEADER_FOUND=1
35346 else
35347 VORBIS_HEADER_FOUND=0
35352 CPPFLAGS="${saved_cppflags}"
35353 else
35354 if test "xvorbis/codec.h" != "x" ; then
35355 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
35356 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
35357 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
35358 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
35359 echo $ECHO_N "(cached) $ECHO_C" >&6
35361 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
35362 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
35363 else
35364 # Is the header compilable?
35365 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
35366 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
35367 cat >conftest.$ac_ext <<_ACEOF
35368 /* confdefs.h. */
35369 _ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h. */
35373 $ac_includes_default
35374 #include <vorbis/codec.h>
35375 _ACEOF
35376 rm -f conftest.$ac_objext
35377 if { (ac_try="$ac_compile"
35378 case "(($ac_try" in
35379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35380 *) ac_try_echo=$ac_try;;
35381 esac
35382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35383 (eval "$ac_compile") 2>conftest.er1
35384 ac_status=$?
35385 grep -v '^ *+' conftest.er1 >conftest.err
35386 rm -f conftest.er1
35387 cat conftest.err >&5
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); } &&
35390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35391 { (case "(($ac_try" in
35392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35393 *) ac_try_echo=$ac_try;;
35394 esac
35395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35396 (eval "$ac_try") 2>&5
35397 ac_status=$?
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); }; } &&
35400 { ac_try='test -s conftest.$ac_objext'
35401 { (case "(($ac_try" in
35402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35403 *) ac_try_echo=$ac_try;;
35404 esac
35405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35406 (eval "$ac_try") 2>&5
35407 ac_status=$?
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); }; }; then
35410 ac_header_compiler=yes
35411 else
35412 echo "$as_me: failed program was:" >&5
35413 sed 's/^/| /' conftest.$ac_ext >&5
35415 ac_header_compiler=no
35418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35420 echo "${ECHO_T}$ac_header_compiler" >&6; }
35422 # Is the header present?
35423 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
35424 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
35425 cat >conftest.$ac_ext <<_ACEOF
35426 /* confdefs.h. */
35427 _ACEOF
35428 cat confdefs.h >>conftest.$ac_ext
35429 cat >>conftest.$ac_ext <<_ACEOF
35430 /* end confdefs.h. */
35431 #include <vorbis/codec.h>
35432 _ACEOF
35433 if { (ac_try="$ac_cpp conftest.$ac_ext"
35434 case "(($ac_try" in
35435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35436 *) ac_try_echo=$ac_try;;
35437 esac
35438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35440 ac_status=$?
35441 grep -v '^ *+' conftest.er1 >conftest.err
35442 rm -f conftest.er1
35443 cat conftest.err >&5
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); } >/dev/null; then
35446 if test -s conftest.err; then
35447 ac_cpp_err=$ac_c_preproc_warn_flag
35448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35449 else
35450 ac_cpp_err=
35452 else
35453 ac_cpp_err=yes
35455 if test -z "$ac_cpp_err"; then
35456 ac_header_preproc=yes
35457 else
35458 echo "$as_me: failed program was:" >&5
35459 sed 's/^/| /' conftest.$ac_ext >&5
35461 ac_header_preproc=no
35464 rm -f conftest.err conftest.$ac_ext
35465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35466 echo "${ECHO_T}$ac_header_preproc" >&6; }
35468 # So? What about this header?
35469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35470 yes:no: )
35471 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
35472 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35473 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
35474 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
35475 ac_header_preproc=yes
35477 no:yes:* )
35478 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
35479 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
35480 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
35481 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
35482 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
35483 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
35484 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
35485 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
35486 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
35487 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
35488 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
35489 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
35492 esac
35493 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
35494 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
35495 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
35496 echo $ECHO_N "(cached) $ECHO_C" >&6
35497 else
35498 ac_cv_header_vorbis_codec_h=$ac_header_preproc
35500 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
35501 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
35504 if test $ac_cv_header_vorbis_codec_h = yes; then
35505 VORBIS_HEADER_FOUND=1
35506 else
35507 VORBIS_HEADER_FOUND=0
35513 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
35514 if test -n "${VORBIS_MANDATORY}" ;
35515 then
35516 { echo "$as_me:$LINENO: ***" >&5
35517 echo "$as_me: ***" >&6;}
35518 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
35519 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
35520 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
35521 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
35522 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
35523 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
35524 exit 1
35526 VORBIS_LIB=""
35527 VORBIS_INCLUDE=""
35528 PBX_VORBIS=0
35529 else
35530 PBX_VORBIS=1
35532 cat >>confdefs.h <<_ACEOF
35533 #define HAVE_VORBIS 1
35534 _ACEOF
35537 elif test -n "${VORBIS_MANDATORY}";
35538 then
35539 { echo "$as_me:$LINENO: ***" >&5
35540 echo "$as_me: ***" >&6;}
35541 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
35542 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
35543 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35544 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35545 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
35546 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
35547 exit 1
35552 ac_ext=cpp
35553 ac_cpp='$CXXCPP $CPPFLAGS'
35554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35559 if test "${USE_VPB}" != "no"; then
35560 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
35561 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
35562 saved_libs="${LIBS}"
35563 saved_cppflags="${CPPFLAGS}"
35564 if test "x${VPB_DIR}" != "x"; then
35565 if test -d ${VPB_DIR}/lib; then
35566 vpblibdir=${VPB_DIR}/lib
35567 else
35568 vpblibdir=${VPB_DIR}
35570 LIBS="${LIBS} -L${vpblibdir}"
35571 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
35573 LIBS="${LIBS} -lvpb -lpthread"
35574 cat >conftest.$ac_ext <<_ACEOF
35576 /* confdefs.h. */
35577 _ACEOF
35578 cat confdefs.h >>conftest.$ac_ext
35579 cat >>conftest.$ac_ext <<_ACEOF
35580 /* end confdefs.h. */
35581 #include <vpbapi.h>
35583 main ()
35585 int q = vpb_open(0,0);
35587 return 0;
35590 _ACEOF
35591 rm -f conftest.$ac_objext conftest$ac_exeext
35592 if { (ac_try="$ac_link"
35593 case "(($ac_try" in
35594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35595 *) ac_try_echo=$ac_try;;
35596 esac
35597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35598 (eval "$ac_link") 2>conftest.er1
35599 ac_status=$?
35600 grep -v '^ *+' conftest.er1 >conftest.err
35601 rm -f conftest.er1
35602 cat conftest.err >&5
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); } &&
35605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35606 { (case "(($ac_try" in
35607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35608 *) ac_try_echo=$ac_try;;
35609 esac
35610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35611 (eval "$ac_try") 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; } &&
35615 { ac_try='test -s conftest$ac_exeext'
35616 { (case "(($ac_try" in
35617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35618 *) ac_try_echo=$ac_try;;
35619 esac
35620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35621 (eval "$ac_try") 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 { echo "$as_me:$LINENO: result: yes" >&5
35626 echo "${ECHO_T}yes" >&6; }
35627 ac_cv_lib_vpb_vpb_open="yes"
35629 else
35630 echo "$as_me: failed program was:" >&5
35631 sed 's/^/| /' conftest.$ac_ext >&5
35633 { echo "$as_me:$LINENO: result: no" >&5
35634 echo "${ECHO_T}no" >&6; }
35635 ac_cv_lib_vpb_vpb_open="no"
35640 rm -f core conftest.err conftest.$ac_objext \
35641 conftest$ac_exeext conftest.$ac_ext
35642 LIBS="${saved_libs}"
35643 CPPFLAGS="${saved_cppflags}"
35644 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
35645 VPB_LIB="-lvpb"
35646 if test "${VPB_DIR}" != ""; then
35647 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
35648 VPB_INCLUDE="-I${VPB_DIR}/include"
35650 PBX_VPB=1
35652 cat >>confdefs.h <<\_ACEOF
35653 #define HAVE_VPB 1
35654 _ACEOF
35656 elif test -n "${VPB_MANDATORY}"; then
35657 { echo "$as_me:$LINENO: ***" >&5
35658 echo "$as_me: ***" >&6;}
35659 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
35660 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
35661 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35662 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35663 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
35664 echo "$as_me: *** including --without-vpb." >&6;}
35665 exit 1
35669 ac_ext=c
35670 ac_cpp='$CPP $CPPFLAGS'
35671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35677 if test "${USE_ZLIB}" != "no"; then
35678 pbxlibdir=""
35679 if test "x${ZLIB_DIR}" != "x"; then
35680 if test -d ${ZLIB_DIR}/lib; then
35681 pbxlibdir="-L${ZLIB_DIR}/lib"
35682 else
35683 pbxlibdir="-L${ZLIB_DIR}"
35686 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
35687 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
35688 if test "${ac_cv_lib_z_compress+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35690 else
35691 ac_check_lib_save_LIBS=$LIBS
35692 LIBS="-lz ${pbxlibdir} $LIBS"
35693 cat >conftest.$ac_ext <<_ACEOF
35694 /* confdefs.h. */
35695 _ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h. */
35700 /* Override any GCC internal prototype to avoid an error.
35701 Use char because int might match the return type of a GCC
35702 builtin and then its argument prototype would still apply. */
35703 #ifdef __cplusplus
35704 extern "C"
35705 #endif
35706 char compress ();
35708 main ()
35710 return compress ();
35712 return 0;
35714 _ACEOF
35715 rm -f conftest.$ac_objext conftest$ac_exeext
35716 if { (ac_try="$ac_link"
35717 case "(($ac_try" in
35718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35719 *) ac_try_echo=$ac_try;;
35720 esac
35721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35722 (eval "$ac_link") 2>conftest.er1
35723 ac_status=$?
35724 grep -v '^ *+' conftest.er1 >conftest.err
35725 rm -f conftest.er1
35726 cat conftest.err >&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } &&
35729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35730 { (case "(($ac_try" in
35731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35732 *) ac_try_echo=$ac_try;;
35733 esac
35734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35735 (eval "$ac_try") 2>&5
35736 ac_status=$?
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; } &&
35739 { ac_try='test -s conftest$ac_exeext'
35740 { (case "(($ac_try" in
35741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35742 *) ac_try_echo=$ac_try;;
35743 esac
35744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35745 (eval "$ac_try") 2>&5
35746 ac_status=$?
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); }; }; then
35749 ac_cv_lib_z_compress=yes
35750 else
35751 echo "$as_me: failed program was:" >&5
35752 sed 's/^/| /' conftest.$ac_ext >&5
35754 ac_cv_lib_z_compress=no
35757 rm -f core conftest.err conftest.$ac_objext \
35758 conftest$ac_exeext conftest.$ac_ext
35759 LIBS=$ac_check_lib_save_LIBS
35761 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
35762 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
35763 if test $ac_cv_lib_z_compress = yes; then
35764 AST_ZLIB_FOUND=yes
35765 else
35766 AST_ZLIB_FOUND=no
35770 if test "${AST_ZLIB_FOUND}" = "yes"; then
35771 ZLIB_LIB="-lz "
35772 ZLIB_HEADER_FOUND="1"
35773 if test "x${ZLIB_DIR}" != "x"; then
35774 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
35775 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
35776 saved_cppflags="${CPPFLAGS}"
35777 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
35778 if test "xzlib.h" != "x" ; then
35779 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
35780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35781 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
35782 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
35783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35784 echo $ECHO_N "(cached) $ECHO_C" >&6
35786 ac_res=`eval echo '${'$as_ac_Header'}'`
35787 { echo "$as_me:$LINENO: result: $ac_res" >&5
35788 echo "${ECHO_T}$ac_res" >&6; }
35789 else
35790 # Is the header compilable?
35791 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
35792 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
35793 cat >conftest.$ac_ext <<_ACEOF
35794 /* confdefs.h. */
35795 _ACEOF
35796 cat confdefs.h >>conftest.$ac_ext
35797 cat >>conftest.$ac_ext <<_ACEOF
35798 /* end confdefs.h. */
35799 $ac_includes_default
35800 #include <${ZLIB_DIR}/include/zlib.h>
35801 _ACEOF
35802 rm -f conftest.$ac_objext
35803 if { (ac_try="$ac_compile"
35804 case "(($ac_try" in
35805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35806 *) ac_try_echo=$ac_try;;
35807 esac
35808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35809 (eval "$ac_compile") 2>conftest.er1
35810 ac_status=$?
35811 grep -v '^ *+' conftest.er1 >conftest.err
35812 rm -f conftest.er1
35813 cat conftest.err >&5
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); } &&
35816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35817 { (case "(($ac_try" in
35818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35819 *) ac_try_echo=$ac_try;;
35820 esac
35821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35822 (eval "$ac_try") 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; } &&
35826 { ac_try='test -s conftest.$ac_objext'
35827 { (case "(($ac_try" in
35828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35829 *) ac_try_echo=$ac_try;;
35830 esac
35831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35832 (eval "$ac_try") 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; }; then
35836 ac_header_compiler=yes
35837 else
35838 echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35841 ac_header_compiler=no
35844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35846 echo "${ECHO_T}$ac_header_compiler" >&6; }
35848 # Is the header present?
35849 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
35850 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
35851 cat >conftest.$ac_ext <<_ACEOF
35852 /* confdefs.h. */
35853 _ACEOF
35854 cat confdefs.h >>conftest.$ac_ext
35855 cat >>conftest.$ac_ext <<_ACEOF
35856 /* end confdefs.h. */
35857 #include <${ZLIB_DIR}/include/zlib.h>
35858 _ACEOF
35859 if { (ac_try="$ac_cpp conftest.$ac_ext"
35860 case "(($ac_try" in
35861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35862 *) ac_try_echo=$ac_try;;
35863 esac
35864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35866 ac_status=$?
35867 grep -v '^ *+' conftest.er1 >conftest.err
35868 rm -f conftest.er1
35869 cat conftest.err >&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } >/dev/null; then
35872 if test -s conftest.err; then
35873 ac_cpp_err=$ac_c_preproc_warn_flag
35874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35875 else
35876 ac_cpp_err=
35878 else
35879 ac_cpp_err=yes
35881 if test -z "$ac_cpp_err"; then
35882 ac_header_preproc=yes
35883 else
35884 echo "$as_me: failed program was:" >&5
35885 sed 's/^/| /' conftest.$ac_ext >&5
35887 ac_header_preproc=no
35890 rm -f conftest.err conftest.$ac_ext
35891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35892 echo "${ECHO_T}$ac_header_preproc" >&6; }
35894 # So? What about this header?
35895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35896 yes:no: )
35897 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
35898 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35899 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
35900 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
35901 ac_header_preproc=yes
35903 no:yes:* )
35904 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
35905 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
35906 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
35907 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
35908 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
35909 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
35910 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
35911 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
35912 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
35913 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
35914 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
35915 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
35918 esac
35919 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
35920 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
35921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35922 echo $ECHO_N "(cached) $ECHO_C" >&6
35923 else
35924 eval "$as_ac_Header=\$ac_header_preproc"
35926 ac_res=`eval echo '${'$as_ac_Header'}'`
35927 { echo "$as_me:$LINENO: result: $ac_res" >&5
35928 echo "${ECHO_T}$ac_res" >&6; }
35931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35932 ZLIB_HEADER_FOUND=1
35933 else
35934 ZLIB_HEADER_FOUND=0
35939 CPPFLAGS="${saved_cppflags}"
35940 else
35941 if test "xzlib.h" != "x" ; then
35942 if test "${ac_cv_header_zlib_h+set}" = set; then
35943 { echo "$as_me:$LINENO: checking for zlib.h" >&5
35944 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
35945 if test "${ac_cv_header_zlib_h+set}" = set; then
35946 echo $ECHO_N "(cached) $ECHO_C" >&6
35948 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
35949 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
35950 else
35951 # Is the header compilable?
35952 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
35953 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
35954 cat >conftest.$ac_ext <<_ACEOF
35955 /* confdefs.h. */
35956 _ACEOF
35957 cat confdefs.h >>conftest.$ac_ext
35958 cat >>conftest.$ac_ext <<_ACEOF
35959 /* end confdefs.h. */
35960 $ac_includes_default
35961 #include <zlib.h>
35962 _ACEOF
35963 rm -f conftest.$ac_objext
35964 if { (ac_try="$ac_compile"
35965 case "(($ac_try" in
35966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35967 *) ac_try_echo=$ac_try;;
35968 esac
35969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35970 (eval "$ac_compile") 2>conftest.er1
35971 ac_status=$?
35972 grep -v '^ *+' conftest.er1 >conftest.err
35973 rm -f conftest.er1
35974 cat conftest.err >&5
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); } &&
35977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35978 { (case "(($ac_try" in
35979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35980 *) ac_try_echo=$ac_try;;
35981 esac
35982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35983 (eval "$ac_try") 2>&5
35984 ac_status=$?
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); }; } &&
35987 { ac_try='test -s conftest.$ac_objext'
35988 { (case "(($ac_try" in
35989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35990 *) ac_try_echo=$ac_try;;
35991 esac
35992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35993 (eval "$ac_try") 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
35997 ac_header_compiler=yes
35998 else
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36002 ac_header_compiler=no
36005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36007 echo "${ECHO_T}$ac_header_compiler" >&6; }
36009 # Is the header present?
36010 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
36011 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
36012 cat >conftest.$ac_ext <<_ACEOF
36013 /* confdefs.h. */
36014 _ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h. */
36018 #include <zlib.h>
36019 _ACEOF
36020 if { (ac_try="$ac_cpp conftest.$ac_ext"
36021 case "(($ac_try" in
36022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36023 *) ac_try_echo=$ac_try;;
36024 esac
36025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36027 ac_status=$?
36028 grep -v '^ *+' conftest.er1 >conftest.err
36029 rm -f conftest.er1
36030 cat conftest.err >&5
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); } >/dev/null; then
36033 if test -s conftest.err; then
36034 ac_cpp_err=$ac_c_preproc_warn_flag
36035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36036 else
36037 ac_cpp_err=
36039 else
36040 ac_cpp_err=yes
36042 if test -z "$ac_cpp_err"; then
36043 ac_header_preproc=yes
36044 else
36045 echo "$as_me: failed program was:" >&5
36046 sed 's/^/| /' conftest.$ac_ext >&5
36048 ac_header_preproc=no
36051 rm -f conftest.err conftest.$ac_ext
36052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36053 echo "${ECHO_T}$ac_header_preproc" >&6; }
36055 # So? What about this header?
36056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36057 yes:no: )
36058 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36059 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36060 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36061 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36062 ac_header_preproc=yes
36064 no:yes:* )
36065 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36066 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36067 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36068 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36069 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36070 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36071 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36072 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36073 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36074 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36075 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36076 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36079 esac
36080 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36081 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36082 if test "${ac_cv_header_zlib_h+set}" = set; then
36083 echo $ECHO_N "(cached) $ECHO_C" >&6
36084 else
36085 ac_cv_header_zlib_h=$ac_header_preproc
36087 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36088 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36091 if test $ac_cv_header_zlib_h = yes; then
36092 ZLIB_HEADER_FOUND=1
36093 else
36094 ZLIB_HEADER_FOUND=0
36100 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
36101 if test -n "${ZLIB_MANDATORY}" ;
36102 then
36103 { echo "$as_me:$LINENO: ***" >&5
36104 echo "$as_me: ***" >&6;}
36105 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
36106 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
36107 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
36108 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
36109 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
36110 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
36111 exit 1
36113 ZLIB_LIB=""
36114 ZLIB_INCLUDE=""
36115 PBX_ZLIB=0
36116 else
36117 PBX_ZLIB=1
36119 cat >>confdefs.h <<_ACEOF
36120 #define HAVE_ZLIB 1
36121 _ACEOF
36124 elif test -n "${ZLIB_MANDATORY}";
36125 then
36126 { echo "$as_me:$LINENO: ***" >&5
36127 echo "$as_me: ***" >&6;}
36128 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
36129 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
36130 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36131 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36132 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
36133 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
36134 exit 1
36139 if test "${USE_ZAPTEL}" != "no"; then
36140 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
36141 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
36142 saved_cppflags="${CPPFLAGS}"
36143 if test "x${ZAPTEL_DIR}" != "x"; then
36144 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
36146 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h. */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h. */
36153 #include <zaptel/zaptel.h>
36155 main ()
36157 int foo = ZT_DIAL_OP_CANCEL;
36159 return 0;
36162 _ACEOF
36163 rm -f conftest.$ac_objext
36164 if { (ac_try="$ac_compile"
36165 case "(($ac_try" in
36166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36167 *) ac_try_echo=$ac_try;;
36168 esac
36169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36170 (eval "$ac_compile") 2>conftest.er1
36171 ac_status=$?
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } &&
36177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36178 { (case "(($ac_try" in
36179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36180 *) ac_try_echo=$ac_try;;
36181 esac
36182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36183 (eval "$ac_try") 2>&5
36184 ac_status=$?
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); }; } &&
36187 { ac_try='test -s conftest.$ac_objext'
36188 { (case "(($ac_try" in
36189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36190 *) ac_try_echo=$ac_try;;
36191 esac
36192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36193 (eval "$ac_try") 2>&5
36194 ac_status=$?
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; }; then
36197 { echo "$as_me:$LINENO: result: yes" >&5
36198 echo "${ECHO_T}yes" >&6; }
36199 ac_cv_zaptel_h="yes"
36201 else
36202 echo "$as_me: failed program was:" >&5
36203 sed 's/^/| /' conftest.$ac_ext >&5
36205 { echo "$as_me:$LINENO: result: no" >&5
36206 echo "${ECHO_T}no" >&6; }
36207 ac_cv_zaptel_h="no"
36212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36213 CPPFLAGS="${saved_cppflags}"
36214 if test "${ac_cv_zaptel_h}" = "yes"; then
36215 if test "${ZAPTEL_DIR}" != ""; then
36216 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
36218 PBX_ZAPTEL=1
36220 cat >>confdefs.h <<\_ACEOF
36221 #define HAVE_ZAPTEL 1
36222 _ACEOF
36224 elif test -n "${ZAPTEL_MANDATORY}";
36225 then
36226 { echo "$as_me:$LINENO: ***" >&5
36227 echo "$as_me: ***" >&6;}
36228 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
36229 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
36230 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36231 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36232 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
36233 echo "$as_me: *** including --without-zaptel." >&6;}
36234 exit 1
36238 if test "${PBX_ZAPTEL}" = 1; then
36239 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
36240 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
36241 saved_cppflags="${CPPFLAGS}"
36242 if test "x${ZAPTEL_DIR}" != "x"; then
36243 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
36245 cat >conftest.$ac_ext <<_ACEOF
36247 /* confdefs.h. */
36248 _ACEOF
36249 cat confdefs.h >>conftest.$ac_ext
36250 cat >>conftest.$ac_ext <<_ACEOF
36251 /* end confdefs.h. */
36252 #include <zaptel/zaptel.h>
36254 main ()
36256 int foo = ZT_EVENT_REMOVED;
36258 return 0;
36261 _ACEOF
36262 rm -f conftest.$ac_objext
36263 if { (ac_try="$ac_compile"
36264 case "(($ac_try" in
36265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266 *) ac_try_echo=$ac_try;;
36267 esac
36268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36269 (eval "$ac_compile") 2>conftest.er1
36270 ac_status=$?
36271 grep -v '^ *+' conftest.er1 >conftest.err
36272 rm -f conftest.er1
36273 cat conftest.err >&5
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); } &&
36276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36277 { (case "(($ac_try" in
36278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279 *) ac_try_echo=$ac_try;;
36280 esac
36281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36282 (eval "$ac_try") 2>&5
36283 ac_status=$?
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); }; } &&
36286 { ac_try='test -s conftest.$ac_objext'
36287 { (case "(($ac_try" in
36288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36289 *) ac_try_echo=$ac_try;;
36290 esac
36291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36292 (eval "$ac_try") 2>&5
36293 ac_status=$?
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); }; }; then
36296 { echo "$as_me:$LINENO: result: yes" >&5
36297 echo "${ECHO_T}yes" >&6; }
36298 ac_cv_zaptel_vldtmf="yes"
36300 else
36301 echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36304 { echo "$as_me:$LINENO: result: no" >&5
36305 echo "${ECHO_T}no" >&6; }
36306 ac_cv_zaptel_vldtmf="no"
36311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36312 CPPFLAGS="${saved_cppflags}"
36313 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
36314 PBX_ZAPTEL_VLDTMF=1
36316 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
36317 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
36318 saved_cppflags="${CPPFLAGS}"
36319 if test "x${ZAPTEL_DIR}" != "x"; then
36320 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
36322 cat >conftest.$ac_ext <<_ACEOF
36324 /* confdefs.h. */
36325 _ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h. */
36329 #include <zaptel/zaptel.h>
36331 main ()
36333 int foo = ZT_TCOP_ALLOCATE;
36335 return 0;
36338 _ACEOF
36339 rm -f conftest.$ac_objext
36340 if { (ac_try="$ac_compile"
36341 case "(($ac_try" in
36342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36343 *) ac_try_echo=$ac_try;;
36344 esac
36345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36346 (eval "$ac_compile") 2>conftest.er1
36347 ac_status=$?
36348 grep -v '^ *+' conftest.er1 >conftest.err
36349 rm -f conftest.er1
36350 cat conftest.err >&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
36353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36354 { (case "(($ac_try" in
36355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36356 *) ac_try_echo=$ac_try;;
36357 esac
36358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36359 (eval "$ac_try") 2>&5
36360 ac_status=$?
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); }; } &&
36363 { ac_try='test -s conftest.$ac_objext'
36364 { (case "(($ac_try" in
36365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36366 *) ac_try_echo=$ac_try;;
36367 esac
36368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36369 (eval "$ac_try") 2>&5
36370 ac_status=$?
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); }; }; then
36373 { echo "$as_me:$LINENO: result: yes" >&5
36374 echo "${ECHO_T}yes" >&6; }
36375 ac_cv_zaptel_transcode="yes"
36377 else
36378 echo "$as_me: failed program was:" >&5
36379 sed 's/^/| /' conftest.$ac_ext >&5
36381 { echo "$as_me:$LINENO: result: no" >&5
36382 echo "${ECHO_T}no" >&6; }
36383 ac_cv_zaptel_transcode="no"
36388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36389 CPPFLAGS="${saved_cppflags}"
36390 if test "${ac_cv_zaptel_transcode}" = "yes"; then
36391 PBX_ZAPTEL_TRANSCODE=1
36397 EDITLINE_LIB=""
36398 if test "x$TERMCAP_LIB" != "x" ; then
36399 EDITLINE_LIB="$TERMCAP_LIB"
36400 elif test "x$TINFO_LIB" != "x" ; then
36401 EDITLINE_LIB="$TINFO_LIB"
36402 elif test "x$CURSES_LIB" != "x" ; then
36403 EDITLINE_LIB="$CURSES_LIB"
36404 elif test "x$NCURSES_LIB" != "x" ; then
36405 EDITLINE_LIB="$NCURSES_LIB"
36406 else
36407 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
36408 echo "$as_me: error: *** termcap support not found" >&2;}
36409 { (exit 1); exit 1; }; }
36413 if test "${ac_cv_header_h323_h+set}" = set; then
36414 { echo "$as_me:$LINENO: checking for h323.h" >&5
36415 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
36416 if test "${ac_cv_header_h323_h+set}" = set; then
36417 echo $ECHO_N "(cached) $ECHO_C" >&6
36419 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
36420 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
36421 else
36422 # Is the header compilable?
36423 { echo "$as_me:$LINENO: checking h323.h usability" >&5
36424 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
36425 cat >conftest.$ac_ext <<_ACEOF
36426 /* confdefs.h. */
36427 _ACEOF
36428 cat confdefs.h >>conftest.$ac_ext
36429 cat >>conftest.$ac_ext <<_ACEOF
36430 /* end confdefs.h. */
36431 $ac_includes_default
36432 #include <h323.h>
36433 _ACEOF
36434 rm -f conftest.$ac_objext
36435 if { (ac_try="$ac_compile"
36436 case "(($ac_try" in
36437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36438 *) ac_try_echo=$ac_try;;
36439 esac
36440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36441 (eval "$ac_compile") 2>conftest.er1
36442 ac_status=$?
36443 grep -v '^ *+' conftest.er1 >conftest.err
36444 rm -f conftest.er1
36445 cat conftest.err >&5
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } &&
36448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36449 { (case "(($ac_try" in
36450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36451 *) ac_try_echo=$ac_try;;
36452 esac
36453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36454 (eval "$ac_try") 2>&5
36455 ac_status=$?
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; } &&
36458 { ac_try='test -s conftest.$ac_objext'
36459 { (case "(($ac_try" in
36460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36461 *) ac_try_echo=$ac_try;;
36462 esac
36463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36464 (eval "$ac_try") 2>&5
36465 ac_status=$?
36466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; }; then
36468 ac_header_compiler=yes
36469 else
36470 echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36473 ac_header_compiler=no
36476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36478 echo "${ECHO_T}$ac_header_compiler" >&6; }
36480 # Is the header present?
36481 { echo "$as_me:$LINENO: checking h323.h presence" >&5
36482 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
36483 cat >conftest.$ac_ext <<_ACEOF
36484 /* confdefs.h. */
36485 _ACEOF
36486 cat confdefs.h >>conftest.$ac_ext
36487 cat >>conftest.$ac_ext <<_ACEOF
36488 /* end confdefs.h. */
36489 #include <h323.h>
36490 _ACEOF
36491 if { (ac_try="$ac_cpp conftest.$ac_ext"
36492 case "(($ac_try" in
36493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494 *) ac_try_echo=$ac_try;;
36495 esac
36496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36498 ac_status=$?
36499 grep -v '^ *+' conftest.er1 >conftest.err
36500 rm -f conftest.er1
36501 cat conftest.err >&5
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); } >/dev/null; then
36504 if test -s conftest.err; then
36505 ac_cpp_err=$ac_c_preproc_warn_flag
36506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36507 else
36508 ac_cpp_err=
36510 else
36511 ac_cpp_err=yes
36513 if test -z "$ac_cpp_err"; then
36514 ac_header_preproc=yes
36515 else
36516 echo "$as_me: failed program was:" >&5
36517 sed 's/^/| /' conftest.$ac_ext >&5
36519 ac_header_preproc=no
36522 rm -f conftest.err conftest.$ac_ext
36523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36524 echo "${ECHO_T}$ac_header_preproc" >&6; }
36526 # So? What about this header?
36527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36528 yes:no: )
36529 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
36530 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36531 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
36532 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
36533 ac_header_preproc=yes
36535 no:yes:* )
36536 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
36537 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
36538 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
36539 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
36540 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
36541 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
36542 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
36543 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
36544 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
36545 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
36546 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
36547 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
36550 esac
36551 { echo "$as_me:$LINENO: checking for h323.h" >&5
36552 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
36553 if test "${ac_cv_header_h323_h+set}" = set; then
36554 echo $ECHO_N "(cached) $ECHO_C" >&6
36555 else
36556 ac_cv_header_h323_h=$ac_header_preproc
36558 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
36559 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
36562 if test $ac_cv_header_h323_h = yes; then
36563 PBX_H323=1
36564 else
36565 PBX_H323=0
36571 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
36572 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
36573 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
36574 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
36575 echo $ECHO_N "(cached) $ECHO_C" >&6
36577 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
36578 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
36579 else
36580 # Is the header compilable?
36581 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
36582 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
36583 cat >conftest.$ac_ext <<_ACEOF
36584 /* confdefs.h. */
36585 _ACEOF
36586 cat confdefs.h >>conftest.$ac_ext
36587 cat >>conftest.$ac_ext <<_ACEOF
36588 /* end confdefs.h. */
36589 $ac_includes_default
36590 #include <linux/compiler.h>
36591 _ACEOF
36592 rm -f conftest.$ac_objext
36593 if { (ac_try="$ac_compile"
36594 case "(($ac_try" in
36595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36596 *) ac_try_echo=$ac_try;;
36597 esac
36598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36599 (eval "$ac_compile") 2>conftest.er1
36600 ac_status=$?
36601 grep -v '^ *+' conftest.er1 >conftest.err
36602 rm -f conftest.er1
36603 cat conftest.err >&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); } &&
36606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36607 { (case "(($ac_try" in
36608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609 *) ac_try_echo=$ac_try;;
36610 esac
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612 (eval "$ac_try") 2>&5
36613 ac_status=$?
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; } &&
36616 { ac_try='test -s conftest.$ac_objext'
36617 { (case "(($ac_try" in
36618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36619 *) ac_try_echo=$ac_try;;
36620 esac
36621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36622 (eval "$ac_try") 2>&5
36623 ac_status=$?
36624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625 (exit $ac_status); }; }; then
36626 ac_header_compiler=yes
36627 else
36628 echo "$as_me: failed program was:" >&5
36629 sed 's/^/| /' conftest.$ac_ext >&5
36631 ac_header_compiler=no
36634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36636 echo "${ECHO_T}$ac_header_compiler" >&6; }
36638 # Is the header present?
36639 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
36640 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
36641 cat >conftest.$ac_ext <<_ACEOF
36642 /* confdefs.h. */
36643 _ACEOF
36644 cat confdefs.h >>conftest.$ac_ext
36645 cat >>conftest.$ac_ext <<_ACEOF
36646 /* end confdefs.h. */
36647 #include <linux/compiler.h>
36648 _ACEOF
36649 if { (ac_try="$ac_cpp conftest.$ac_ext"
36650 case "(($ac_try" in
36651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36652 *) ac_try_echo=$ac_try;;
36653 esac
36654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36656 ac_status=$?
36657 grep -v '^ *+' conftest.er1 >conftest.err
36658 rm -f conftest.er1
36659 cat conftest.err >&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); } >/dev/null; then
36662 if test -s conftest.err; then
36663 ac_cpp_err=$ac_c_preproc_warn_flag
36664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36665 else
36666 ac_cpp_err=
36668 else
36669 ac_cpp_err=yes
36671 if test -z "$ac_cpp_err"; then
36672 ac_header_preproc=yes
36673 else
36674 echo "$as_me: failed program was:" >&5
36675 sed 's/^/| /' conftest.$ac_ext >&5
36677 ac_header_preproc=no
36680 rm -f conftest.err conftest.$ac_ext
36681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36682 echo "${ECHO_T}$ac_header_preproc" >&6; }
36684 # So? What about this header?
36685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36686 yes:no: )
36687 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
36688 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36689 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
36690 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
36691 ac_header_preproc=yes
36693 no:yes:* )
36694 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
36695 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
36696 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
36697 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
36698 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
36699 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
36700 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
36701 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
36702 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
36703 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
36704 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
36705 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
36708 esac
36709 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
36710 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
36711 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
36712 echo $ECHO_N "(cached) $ECHO_C" >&6
36713 else
36714 ac_cv_header_linux_compiler_h=$ac_header_preproc
36716 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
36717 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
36720 if test $ac_cv_header_linux_compiler_h = yes; then
36722 cat >>confdefs.h <<_ACEOF
36723 #define HAVE_LINUX_COMPILER_H 1
36724 _ACEOF
36730 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
36731 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
36732 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
36733 echo $ECHO_N "(cached) $ECHO_C" >&6
36734 else
36735 cat >conftest.$ac_ext <<_ACEOF
36736 /* confdefs.h. */
36737 _ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h. */
36742 #include <linux/version.h>
36743 #ifdef HAVE_LINUX_COMPILER_H
36744 #include <linux/compiler.h>
36745 #endif
36748 #include <linux/ixjuser.h>
36749 _ACEOF
36750 rm -f conftest.$ac_objext
36751 if { (ac_try="$ac_compile"
36752 case "(($ac_try" in
36753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36754 *) ac_try_echo=$ac_try;;
36755 esac
36756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36757 (eval "$ac_compile") 2>conftest.er1
36758 ac_status=$?
36759 grep -v '^ *+' conftest.er1 >conftest.err
36760 rm -f conftest.er1
36761 cat conftest.err >&5
36762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763 (exit $ac_status); } &&
36764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36765 { (case "(($ac_try" in
36766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36767 *) ac_try_echo=$ac_try;;
36768 esac
36769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36770 (eval "$ac_try") 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; } &&
36774 { ac_try='test -s conftest.$ac_objext'
36775 { (case "(($ac_try" in
36776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36777 *) ac_try_echo=$ac_try;;
36778 esac
36779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36780 (eval "$ac_try") 2>&5
36781 ac_status=$?
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; }; then
36784 ac_cv_header_linux_ixjuser_h=yes
36785 else
36786 echo "$as_me: failed program was:" >&5
36787 sed 's/^/| /' conftest.$ac_ext >&5
36789 ac_cv_header_linux_ixjuser_h=no
36792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36794 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
36795 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
36796 if test $ac_cv_header_linux_ixjuser_h = yes; then
36797 PBX_IXJUSER=1
36798 else
36799 PBX_IXJUSER=0
36805 PBX_GTK=0
36806 if test -n "$ac_tool_prefix"; then
36807 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
36808 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
36809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36811 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36813 else
36814 if test -n "$GTKCONFIG"; then
36815 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
36816 else
36817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36818 for as_dir in $PATH
36820 IFS=$as_save_IFS
36821 test -z "$as_dir" && as_dir=.
36822 for ac_exec_ext in '' $ac_executable_extensions; do
36823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
36824 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
36825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36826 break 2
36828 done
36829 done
36830 IFS=$as_save_IFS
36834 GTKCONFIG=$ac_cv_prog_GTKCONFIG
36835 if test -n "$GTKCONFIG"; then
36836 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
36837 echo "${ECHO_T}$GTKCONFIG" >&6; }
36838 else
36839 { echo "$as_me:$LINENO: result: no" >&5
36840 echo "${ECHO_T}no" >&6; }
36845 if test -z "$ac_cv_prog_GTKCONFIG"; then
36846 ac_ct_GTKCONFIG=$GTKCONFIG
36847 # Extract the first word of "gtk-config", so it can be a program name with args.
36848 set dummy gtk-config; ac_word=$2
36849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36851 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
36852 echo $ECHO_N "(cached) $ECHO_C" >&6
36853 else
36854 if test -n "$ac_ct_GTKCONFIG"; then
36855 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
36856 else
36857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36858 for as_dir in $PATH
36860 IFS=$as_save_IFS
36861 test -z "$as_dir" && as_dir=.
36862 for ac_exec_ext in '' $ac_executable_extensions; do
36863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
36864 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
36865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36866 break 2
36868 done
36869 done
36870 IFS=$as_save_IFS
36874 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
36875 if test -n "$ac_ct_GTKCONFIG"; then
36876 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
36877 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
36878 else
36879 { echo "$as_me:$LINENO: result: no" >&5
36880 echo "${ECHO_T}no" >&6; }
36883 if test "x$ac_ct_GTKCONFIG" = x; then
36884 GTKCONFIG="No"
36885 else
36886 case $cross_compiling:$ac_tool_warned in
36887 yes:)
36888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36889 whose name does not start with the host triplet. If you think this
36890 configuration is useful to you, please write to autoconf@gnu.org." >&5
36891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36892 whose name does not start with the host triplet. If you think this
36893 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36894 ac_tool_warned=yes ;;
36895 esac
36896 GTKCONFIG=$ac_ct_GTKCONFIG
36898 else
36899 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
36902 if test ! "x${GTKCONFIG}" = xNo; then
36903 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
36904 GTK_LIB=$(${GTKCONFIG} --libs gthread)
36905 PBX_GTK=1
36907 cat >>confdefs.h <<\_ACEOF
36908 #define HAVE_GTK 1
36909 _ACEOF
36916 PBX_GTK2=0
36917 if test -n "$ac_tool_prefix"; then
36918 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36919 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36922 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
36923 echo $ECHO_N "(cached) $ECHO_C" >&6
36924 else
36925 if test -n "$PKGCONFIG"; then
36926 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
36927 else
36928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36929 for as_dir in $PATH
36931 IFS=$as_save_IFS
36932 test -z "$as_dir" && as_dir=.
36933 for ac_exec_ext in '' $ac_executable_extensions; do
36934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
36935 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
36936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36937 break 2
36939 done
36940 done
36941 IFS=$as_save_IFS
36945 PKGCONFIG=$ac_cv_prog_PKGCONFIG
36946 if test -n "$PKGCONFIG"; then
36947 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
36948 echo "${ECHO_T}$PKGCONFIG" >&6; }
36949 else
36950 { echo "$as_me:$LINENO: result: no" >&5
36951 echo "${ECHO_T}no" >&6; }
36956 if test -z "$ac_cv_prog_PKGCONFIG"; then
36957 ac_ct_PKGCONFIG=$PKGCONFIG
36958 # Extract the first word of "pkg-config", so it can be a program name with args.
36959 set dummy pkg-config; ac_word=$2
36960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36962 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
36963 echo $ECHO_N "(cached) $ECHO_C" >&6
36964 else
36965 if test -n "$ac_ct_PKGCONFIG"; then
36966 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
36967 else
36968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36969 for as_dir in $PATH
36971 IFS=$as_save_IFS
36972 test -z "$as_dir" && as_dir=.
36973 for ac_exec_ext in '' $ac_executable_extensions; do
36974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
36975 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
36976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36977 break 2
36979 done
36980 done
36981 IFS=$as_save_IFS
36985 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
36986 if test -n "$ac_ct_PKGCONFIG"; then
36987 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
36988 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
36989 else
36990 { echo "$as_me:$LINENO: result: no" >&5
36991 echo "${ECHO_T}no" >&6; }
36994 if test "x$ac_ct_PKGCONFIG" = x; then
36995 PKGCONFIG="No"
36996 else
36997 case $cross_compiling:$ac_tool_warned in
36998 yes:)
36999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37000 whose name does not start with the host triplet. If you think this
37001 configuration is useful to you, please write to autoconf@gnu.org." >&5
37002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37003 whose name does not start with the host triplet. If you think this
37004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37005 ac_tool_warned=yes ;;
37006 esac
37007 PKGCONFIG=$ac_ct_PKGCONFIG
37009 else
37010 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
37013 if test ! "x${PKGCONFIG}" = xNo; then
37014 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
37015 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
37016 PBX_GTK2=1
37018 cat >>confdefs.h <<\_ACEOF
37019 #define HAVE_GTK2 1
37020 _ACEOF
37027 if test "${USE_CURL}" != "no"; then
37028 if test -n "$ac_tool_prefix"; then
37029 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
37030 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
37031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37033 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
37034 echo $ECHO_N "(cached) $ECHO_C" >&6
37035 else
37036 case $CURL_CONFIG in
37037 [\\/]* | ?:[\\/]*)
37038 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
37041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37042 for as_dir in $PATH
37044 IFS=$as_save_IFS
37045 test -z "$as_dir" && as_dir=.
37046 for ac_exec_ext in '' $ac_executable_extensions; do
37047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
37048 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37050 break 2
37052 done
37053 done
37054 IFS=$as_save_IFS
37057 esac
37059 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
37060 if test -n "$CURL_CONFIG"; then
37061 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
37062 echo "${ECHO_T}$CURL_CONFIG" >&6; }
37063 else
37064 { echo "$as_me:$LINENO: result: no" >&5
37065 echo "${ECHO_T}no" >&6; }
37070 if test -z "$ac_cv_path_CURL_CONFIG"; then
37071 ac_pt_CURL_CONFIG=$CURL_CONFIG
37072 # Extract the first word of "curl-config", so it can be a program name with args.
37073 set dummy curl-config; ac_word=$2
37074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37076 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
37077 echo $ECHO_N "(cached) $ECHO_C" >&6
37078 else
37079 case $ac_pt_CURL_CONFIG in
37080 [\\/]* | ?:[\\/]*)
37081 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
37084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37085 for as_dir in $PATH
37087 IFS=$as_save_IFS
37088 test -z "$as_dir" && as_dir=.
37089 for ac_exec_ext in '' $ac_executable_extensions; do
37090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
37091 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37093 break 2
37095 done
37096 done
37097 IFS=$as_save_IFS
37100 esac
37102 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
37103 if test -n "$ac_pt_CURL_CONFIG"; then
37104 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
37105 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
37106 else
37107 { echo "$as_me:$LINENO: result: no" >&5
37108 echo "${ECHO_T}no" >&6; }
37111 if test "x$ac_pt_CURL_CONFIG" = x; then
37112 CURL_CONFIG="No"
37113 else
37114 case $cross_compiling:$ac_tool_warned in
37115 yes:)
37116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37117 whose name does not start with the host triplet. If you think this
37118 configuration is useful to you, please write to autoconf@gnu.org." >&5
37119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37120 whose name does not start with the host triplet. If you think this
37121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37122 ac_tool_warned=yes ;;
37123 esac
37124 CURL_CONFIG=$ac_pt_CURL_CONFIG
37126 else
37127 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
37130 if test ! x"${CURL_CONFIG}" = xNo; then
37131 # check for version
37132 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
37133 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
37134 CURL_LIB=$(${CURL_CONFIG} --libs)
37136 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
37137 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
37138 saved_cppflags="${CPPFLAGS}"
37139 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
37140 cat >conftest.$ac_ext <<_ACEOF
37141 /* confdefs.h. */
37142 _ACEOF
37143 cat confdefs.h >>conftest.$ac_ext
37144 cat >>conftest.$ac_ext <<_ACEOF
37145 /* end confdefs.h. */
37146 #include <curl/curl.h>
37148 main ()
37150 curl_version();
37152 return 0;
37155 _ACEOF
37156 rm -f conftest.$ac_objext
37157 if { (ac_try="$ac_compile"
37158 case "(($ac_try" in
37159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160 *) ac_try_echo=$ac_try;;
37161 esac
37162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37163 (eval "$ac_compile") 2>conftest.er1
37164 ac_status=$?
37165 grep -v '^ *+' conftest.er1 >conftest.err
37166 rm -f conftest.er1
37167 cat conftest.err >&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); } &&
37170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37171 { (case "(($ac_try" in
37172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37173 *) ac_try_echo=$ac_try;;
37174 esac
37175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37176 (eval "$ac_try") 2>&5
37177 ac_status=$?
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); }; } &&
37180 { ac_try='test -s conftest.$ac_objext'
37181 { (case "(($ac_try" in
37182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37183 *) ac_try_echo=$ac_try;;
37184 esac
37185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37186 (eval "$ac_try") 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; }; then
37191 { echo "$as_me:$LINENO: result: yes" >&5
37192 echo "${ECHO_T}yes" >&6; }
37193 ac_cv_curl_h="yes"
37195 else
37196 echo "$as_me: failed program was:" >&5
37197 sed 's/^/| /' conftest.$ac_ext >&5
37200 { echo "$as_me:$LINENO: result: no" >&5
37201 echo "${ECHO_T}no" >&6; }
37202 ac_cv_curl_h="no"
37207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37208 CPPFLAGS="${saved_cppflags}"
37209 if test "${ac_cv_curl_h}" = "yes"; then
37210 PBX_CURL=1
37212 cat >>confdefs.h <<\_ACEOF
37213 #define HAVE_CURL 1
37214 _ACEOF
37221 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
37223 cat >confcache <<\_ACEOF
37224 # This file is a shell script that caches the results of configure
37225 # tests run on this system so they can be shared between configure
37226 # scripts and configure runs, see configure's option --config-cache.
37227 # It is not useful on other systems. If it contains results you don't
37228 # want to keep, you may remove or edit it.
37230 # config.status only pays attention to the cache file if you give it
37231 # the --recheck option to rerun configure.
37233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37235 # following values.
37237 _ACEOF
37239 # The following way of writing the cache mishandles newlines in values,
37240 # but we know of no workaround that is simple, portable, and efficient.
37241 # So, we kill variables containing newlines.
37242 # Ultrix sh set writes to stderr and can't be redirected directly,
37243 # and sets the high bit in the cache file unless we assign to the vars.
37245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37246 eval ac_val=\$$ac_var
37247 case $ac_val in #(
37248 *${as_nl}*)
37249 case $ac_var in #(
37250 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37251 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37252 esac
37253 case $ac_var in #(
37254 _ | IFS | as_nl) ;; #(
37255 *) $as_unset $ac_var ;;
37256 esac ;;
37257 esac
37258 done
37260 (set) 2>&1 |
37261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37262 *${as_nl}ac_space=\ *)
37263 # `set' does not quote correctly, so add quotes (double-quote
37264 # substitution turns \\\\ into \\, and sed turns \\ into \).
37265 sed -n \
37266 "s/'/'\\\\''/g;
37267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37268 ;; #(
37270 # `set' quotes correctly as required by POSIX, so do not add quotes.
37271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37273 esac |
37274 sort
37276 sed '
37277 /^ac_cv_env_/b end
37278 t clear
37279 :clear
37280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37281 t end
37282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37283 :end' >>confcache
37284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37285 if test -w "$cache_file"; then
37286 test "x$cache_file" != "x/dev/null" &&
37287 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37288 echo "$as_me: updating cache $cache_file" >&6;}
37289 cat confcache >$cache_file
37290 else
37291 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37292 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37295 rm -f confcache
37297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37298 # Let make expand exec_prefix.
37299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37301 DEFS=-DHAVE_CONFIG_H
37303 ac_libobjs=
37304 ac_ltlibobjs=
37305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37306 # 1. Remove the extension, and $U if already installed.
37307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37308 ac_i=`echo "$ac_i" | sed "$ac_script"`
37309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37310 # will be set to the directory where LIBOBJS objects are built.
37311 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37312 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37313 done
37314 LIBOBJS=$ac_libobjs
37316 LTLIBOBJS=$ac_ltlibobjs
37320 : ${CONFIG_STATUS=./config.status}
37321 ac_clean_files_save=$ac_clean_files
37322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37323 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37324 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37325 cat >$CONFIG_STATUS <<_ACEOF
37326 #! $SHELL
37327 # Generated by $as_me.
37328 # Run this file to recreate the current configuration.
37329 # Compiler output produced by configure, useful for debugging
37330 # configure, is in config.log if it exists.
37332 debug=false
37333 ac_cs_recheck=false
37334 ac_cs_silent=false
37335 SHELL=\${CONFIG_SHELL-$SHELL}
37336 _ACEOF
37338 cat >>$CONFIG_STATUS <<\_ACEOF
37339 ## --------------------- ##
37340 ## M4sh Initialization. ##
37341 ## --------------------- ##
37343 # Be Bourne compatible
37344 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37345 emulate sh
37346 NULLCMD=:
37347 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37348 # is contrary to our usage. Disable this feature.
37349 alias -g '${1+"$@"}'='"$@"'
37350 setopt NO_GLOB_SUBST
37351 else
37352 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
37354 BIN_SH=xpg4; export BIN_SH # for Tru64
37355 DUALCASE=1; export DUALCASE # for MKS sh
37358 # PATH needs CR
37359 # Avoid depending upon Character Ranges.
37360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37363 as_cr_digits='0123456789'
37364 as_cr_alnum=$as_cr_Letters$as_cr_digits
37366 # The user is always right.
37367 if test "${PATH_SEPARATOR+set}" != set; then
37368 echo "#! /bin/sh" >conf$$.sh
37369 echo "exit 0" >>conf$$.sh
37370 chmod +x conf$$.sh
37371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37372 PATH_SEPARATOR=';'
37373 else
37374 PATH_SEPARATOR=:
37376 rm -f conf$$.sh
37379 # Support unset when possible.
37380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37381 as_unset=unset
37382 else
37383 as_unset=false
37387 # IFS
37388 # We need space, tab and new line, in precisely that order. Quoting is
37389 # there to prevent editors from complaining about space-tab.
37390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37391 # splitting by setting IFS to empty value.)
37392 as_nl='
37394 IFS=" "" $as_nl"
37396 # Find who we are. Look in the path if we contain no directory separator.
37397 case $0 in
37398 *[\\/]* ) as_myself=$0 ;;
37399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37400 for as_dir in $PATH
37402 IFS=$as_save_IFS
37403 test -z "$as_dir" && as_dir=.
37404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37405 done
37406 IFS=$as_save_IFS
37409 esac
37410 # We did not find ourselves, most probably we were run as `sh COMMAND'
37411 # in which case we are not to be found in the path.
37412 if test "x$as_myself" = x; then
37413 as_myself=$0
37415 if test ! -f "$as_myself"; then
37416 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37417 { (exit 1); exit 1; }
37420 # Work around bugs in pre-3.0 UWIN ksh.
37421 for as_var in ENV MAIL MAILPATH
37422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37423 done
37424 PS1='$ '
37425 PS2='> '
37426 PS4='+ '
37428 # NLS nuisances.
37429 for as_var in \
37430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37432 LC_TELEPHONE LC_TIME
37434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37435 eval $as_var=C; export $as_var
37436 else
37437 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37439 done
37441 # Required to use basename.
37442 if expr a : '\(a\)' >/dev/null 2>&1 &&
37443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37444 as_expr=expr
37445 else
37446 as_expr=false
37449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37450 as_basename=basename
37451 else
37452 as_basename=false
37456 # Name of the executable.
37457 as_me=`$as_basename -- "$0" ||
37458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37459 X"$0" : 'X\(//\)$' \| \
37460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37461 echo X/"$0" |
37462 sed '/^.*\/\([^/][^/]*\)\/*$/{
37463 s//\1/
37466 /^X\/\(\/\/\)$/{
37467 s//\1/
37470 /^X\/\(\/\).*/{
37471 s//\1/
37474 s/.*/./; q'`
37476 # CDPATH.
37477 $as_unset CDPATH
37481 as_lineno_1=$LINENO
37482 as_lineno_2=$LINENO
37483 test "x$as_lineno_1" != "x$as_lineno_2" &&
37484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37487 # uniformly replaced by the line number. The first 'sed' inserts a
37488 # line-number line after each line using $LINENO; the second 'sed'
37489 # does the real work. The second script uses 'N' to pair each
37490 # line-number line with the line containing $LINENO, and appends
37491 # trailing '-' during substitution so that $LINENO is not a special
37492 # case at line end.
37493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37494 # scripts with optimization help from Paolo Bonzini. Blame Lee
37495 # E. McMahon (1931-1989) for sed's syntax. :-)
37496 sed -n '
37498 /[$]LINENO/=
37499 ' <$as_myself |
37500 sed '
37501 s/[$]LINENO.*/&-/
37502 t lineno
37504 :lineno
37506 :loop
37507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37508 t loop
37509 s/-\n.*//
37510 ' >$as_me.lineno &&
37511 chmod +x "$as_me.lineno" ||
37512 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37513 { (exit 1); exit 1; }; }
37515 # Don't try to exec as it changes $[0], causing all sort of problems
37516 # (the dirname of $[0] is not the place where we might find the
37517 # original and so on. Autoconf is especially sensitive to this).
37518 . "./$as_me.lineno"
37519 # Exit status is that of the last command.
37520 exit
37524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37525 as_dirname=dirname
37526 else
37527 as_dirname=false
37530 ECHO_C= ECHO_N= ECHO_T=
37531 case `echo -n x` in
37532 -n*)
37533 case `echo 'x\c'` in
37534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37535 *) ECHO_C='\c';;
37536 esac;;
37538 ECHO_N='-n';;
37539 esac
37541 if expr a : '\(a\)' >/dev/null 2>&1 &&
37542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37543 as_expr=expr
37544 else
37545 as_expr=false
37548 rm -f conf$$ conf$$.exe conf$$.file
37549 if test -d conf$$.dir; then
37550 rm -f conf$$.dir/conf$$.file
37551 else
37552 rm -f conf$$.dir
37553 mkdir conf$$.dir
37555 echo >conf$$.file
37556 if ln -s conf$$.file conf$$ 2>/dev/null; then
37557 as_ln_s='ln -s'
37558 # ... but there are two gotchas:
37559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37561 # In both cases, we have to default to `cp -p'.
37562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37563 as_ln_s='cp -p'
37564 elif ln conf$$.file conf$$ 2>/dev/null; then
37565 as_ln_s=ln
37566 else
37567 as_ln_s='cp -p'
37569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37570 rmdir conf$$.dir 2>/dev/null
37572 if mkdir -p . 2>/dev/null; then
37573 as_mkdir_p=:
37574 else
37575 test -d ./-p && rmdir ./-p
37576 as_mkdir_p=false
37579 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
37580 # systems may use methods other than mode bits to determine executability.
37581 cat >conf$$.file <<_ASEOF
37582 #! /bin/sh
37583 exit 0
37584 _ASEOF
37585 chmod +x conf$$.file
37586 if test -x conf$$.file >/dev/null 2>&1; then
37587 as_executable_p="test -x"
37588 else
37589 as_executable_p=:
37591 rm -f conf$$.file
37593 # Sed expression to map a string onto a valid CPP name.
37594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37596 # Sed expression to map a string onto a valid variable name.
37597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37600 exec 6>&1
37602 # Save the log message, to keep $[0] and so on meaningful, and to
37603 # report actual input values of CONFIG_FILES etc. instead of their
37604 # values after options handling.
37605 ac_log="
37606 This file was extended by $as_me, which was
37607 generated by GNU Autoconf 2.60. Invocation command line was
37609 CONFIG_FILES = $CONFIG_FILES
37610 CONFIG_HEADERS = $CONFIG_HEADERS
37611 CONFIG_LINKS = $CONFIG_LINKS
37612 CONFIG_COMMANDS = $CONFIG_COMMANDS
37613 $ $0 $@
37615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37618 _ACEOF
37620 cat >>$CONFIG_STATUS <<_ACEOF
37621 # Files that config.status was made for.
37622 config_files="$ac_config_files"
37623 config_headers="$ac_config_headers"
37625 _ACEOF
37627 cat >>$CONFIG_STATUS <<\_ACEOF
37628 ac_cs_usage="\
37629 \`$as_me' instantiates files from templates according to the
37630 current configuration.
37632 Usage: $0 [OPTIONS] [FILE]...
37634 -h, --help print this help, then exit
37635 -V, --version print version number, then exit
37636 -q, --quiet do not print progress messages
37637 -d, --debug don't remove temporary files
37638 --recheck update $as_me by reconfiguring in the same conditions
37639 --file=FILE[:TEMPLATE]
37640 instantiate the configuration file FILE
37641 --header=FILE[:TEMPLATE]
37642 instantiate the configuration header FILE
37644 Configuration files:
37645 $config_files
37647 Configuration headers:
37648 $config_headers
37650 Report bugs to <bug-autoconf@gnu.org>."
37652 _ACEOF
37653 cat >>$CONFIG_STATUS <<_ACEOF
37654 ac_cs_version="\\
37655 config.status
37656 configured by $0, generated by GNU Autoconf 2.60,
37657 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37659 Copyright (C) 2006 Free Software Foundation, Inc.
37660 This config.status script is free software; the Free Software Foundation
37661 gives unlimited permission to copy, distribute and modify it."
37663 ac_pwd='$ac_pwd'
37664 srcdir='$srcdir'
37665 INSTALL='$INSTALL'
37666 _ACEOF
37668 cat >>$CONFIG_STATUS <<\_ACEOF
37669 # If no file are specified by the user, then we need to provide default
37670 # value. By we need to know if files were specified by the user.
37671 ac_need_defaults=:
37672 while test $# != 0
37674 case $1 in
37675 --*=*)
37676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37677 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37678 ac_shift=:
37681 ac_option=$1
37682 ac_optarg=$2
37683 ac_shift=shift
37685 esac
37687 case $ac_option in
37688 # Handling of the options.
37689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37690 ac_cs_recheck=: ;;
37691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37692 echo "$ac_cs_version"; exit ;;
37693 --debug | --debu | --deb | --de | --d | -d )
37694 debug=: ;;
37695 --file | --fil | --fi | --f )
37696 $ac_shift
37697 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37698 ac_need_defaults=false;;
37699 --header | --heade | --head | --hea )
37700 $ac_shift
37701 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37702 ac_need_defaults=false;;
37703 --he | --h)
37704 # Conflict between --help and --header
37705 { echo "$as_me: error: ambiguous option: $1
37706 Try \`$0 --help' for more information." >&2
37707 { (exit 1); exit 1; }; };;
37708 --help | --hel | -h )
37709 echo "$ac_cs_usage"; exit ;;
37710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37712 ac_cs_silent=: ;;
37714 # This is an error.
37715 -*) { echo "$as_me: error: unrecognized option: $1
37716 Try \`$0 --help' for more information." >&2
37717 { (exit 1); exit 1; }; } ;;
37719 *) ac_config_targets="$ac_config_targets $1"
37720 ac_need_defaults=false ;;
37722 esac
37723 shift
37724 done
37726 ac_configure_extra_args=
37728 if $ac_cs_silent; then
37729 exec 6>/dev/null
37730 ac_configure_extra_args="$ac_configure_extra_args --silent"
37733 _ACEOF
37734 cat >>$CONFIG_STATUS <<_ACEOF
37735 if \$ac_cs_recheck; then
37736 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37737 CONFIG_SHELL=$SHELL
37738 export CONFIG_SHELL
37739 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37742 _ACEOF
37743 cat >>$CONFIG_STATUS <<\_ACEOF
37744 exec 5>>config.log
37746 echo
37747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37748 ## Running $as_me. ##
37749 _ASBOX
37750 echo "$ac_log"
37751 } >&5
37753 _ACEOF
37754 cat >>$CONFIG_STATUS <<_ACEOF
37755 _ACEOF
37757 cat >>$CONFIG_STATUS <<\_ACEOF
37759 # Handling of arguments.
37760 for ac_config_target in $ac_config_targets
37762 case $ac_config_target in
37763 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
37764 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
37765 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
37766 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
37768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37770 { (exit 1); exit 1; }; };;
37771 esac
37772 done
37775 # If the user did not use the arguments to specify the items to instantiate,
37776 # then the envvar interface is used. Set only those that are not.
37777 # We use the long form for the default assignment because of an extremely
37778 # bizarre bug on SunOS 4.1.3.
37779 if $ac_need_defaults; then
37780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37784 # Have a temporary directory for convenience. Make it in the build tree
37785 # simply because there is no reason against having it here, and in addition,
37786 # creating and moving files from /tmp can sometimes cause problems.
37787 # Hook for its removal unless debugging.
37788 # Note that there is a small window in which the directory will not be cleaned:
37789 # after its creation but before its name has been assigned to `$tmp'.
37790 $debug ||
37792 tmp=
37793 trap 'exit_status=$?
37794 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
37796 trap '{ (exit 1); exit 1; }' 1 2 13 15
37798 # Create a (secure) tmp directory for tmp files.
37801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37802 test -n "$tmp" && test -d "$tmp"
37803 } ||
37805 tmp=./conf$$-$RANDOM
37806 (umask 077 && mkdir "$tmp")
37807 } ||
37809 echo "$me: cannot create a temporary directory in ." >&2
37810 { (exit 1); exit 1; }
37814 # Set up the sed scripts for CONFIG_FILES section.
37817 # No need to generate the scripts if there are no CONFIG_FILES.
37818 # This happens for instance when ./config.status config.h
37819 if test -n "$CONFIG_FILES"; then
37821 _ACEOF
37825 ac_delim='%!_!# '
37826 for ac_last_try in false false false false false :; do
37827 cat >conf$$subs.sed <<_ACEOF
37828 SHELL!$SHELL$ac_delim
37829 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37830 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37831 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37832 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37833 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
37834 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
37835 exec_prefix!$exec_prefix$ac_delim
37836 prefix!$prefix$ac_delim
37837 program_transform_name!$program_transform_name$ac_delim
37838 bindir!$bindir$ac_delim
37839 sbindir!$sbindir$ac_delim
37840 libexecdir!$libexecdir$ac_delim
37841 datarootdir!$datarootdir$ac_delim
37842 datadir!$datadir$ac_delim
37843 sysconfdir!$sysconfdir$ac_delim
37844 sharedstatedir!$sharedstatedir$ac_delim
37845 localstatedir!$localstatedir$ac_delim
37846 includedir!$includedir$ac_delim
37847 oldincludedir!$oldincludedir$ac_delim
37848 docdir!$docdir$ac_delim
37849 infodir!$infodir$ac_delim
37850 htmldir!$htmldir$ac_delim
37851 dvidir!$dvidir$ac_delim
37852 pdfdir!$pdfdir$ac_delim
37853 psdir!$psdir$ac_delim
37854 libdir!$libdir$ac_delim
37855 localedir!$localedir$ac_delim
37856 mandir!$mandir$ac_delim
37857 DEFS!$DEFS$ac_delim
37858 ECHO_C!$ECHO_C$ac_delim
37859 ECHO_N!$ECHO_N$ac_delim
37860 ECHO_T!$ECHO_T$ac_delim
37861 LIBS!$LIBS$ac_delim
37862 build_alias!$build_alias$ac_delim
37863 host_alias!$host_alias$ac_delim
37864 target_alias!$target_alias$ac_delim
37865 build!$build$ac_delim
37866 build_cpu!$build_cpu$ac_delim
37867 build_vendor!$build_vendor$ac_delim
37868 build_os!$build_os$ac_delim
37869 host!$host$ac_delim
37870 host_cpu!$host_cpu$ac_delim
37871 host_vendor!$host_vendor$ac_delim
37872 host_os!$host_os$ac_delim
37873 CC!$CC$ac_delim
37874 CFLAGS!$CFLAGS$ac_delim
37875 LDFLAGS!$LDFLAGS$ac_delim
37876 CPPFLAGS!$CPPFLAGS$ac_delim
37877 ac_ct_CC!$ac_ct_CC$ac_delim
37878 EXEEXT!$EXEEXT$ac_delim
37879 OBJEXT!$OBJEXT$ac_delim
37880 CPP!$CPP$ac_delim
37881 GREP!$GREP$ac_delim
37882 EGREP!$EGREP$ac_delim
37883 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
37884 BUILD_CPU!$BUILD_CPU$ac_delim
37885 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
37886 BUILD_OS!$BUILD_OS$ac_delim
37887 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
37888 HOST_CPU!$HOST_CPU$ac_delim
37889 HOST_VENDOR!$HOST_VENDOR$ac_delim
37890 HOST_OS!$HOST_OS$ac_delim
37891 OSARCH!$OSARCH$ac_delim
37892 UNAME!$UNAME$ac_delim
37893 PBX_OSREV!$PBX_OSREV$ac_delim
37894 CXX!$CXX$ac_delim
37895 LD!$LD$ac_delim
37896 RANLIB!$RANLIB$ac_delim
37897 CXXFLAGS!$CXXFLAGS$ac_delim
37898 ac_ct_CXX!$ac_ct_CXX$ac_delim
37899 CXXCPP!$CXXCPP$ac_delim
37900 SED!$SED$ac_delim
37901 AWK!$AWK$ac_delim
37902 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
37903 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
37904 INSTALL_DATA!$INSTALL_DATA$ac_delim
37905 LN_S!$LN_S$ac_delim
37906 GNU_MAKE!$GNU_MAKE$ac_delim
37907 STRIP!$STRIP$ac_delim
37908 AR!$AR$ac_delim
37909 GNU_LD!$GNU_LD$ac_delim
37910 FIND!$FIND$ac_delim
37911 COMPRESS!$COMPRESS$ac_delim
37912 BASENAME!$BASENAME$ac_delim
37913 ID!$ID$ac_delim
37914 DIRNAME!$DIRNAME$ac_delim
37915 LN!$LN$ac_delim
37916 DOT!$DOT$ac_delim
37917 WGET!$WGET$ac_delim
37918 FETCH!$FETCH$ac_delim
37919 DOWNLOAD!$DOWNLOAD$ac_delim
37920 acx_pthread_config!$acx_pthread_config$ac_delim
37921 PTHREAD_CC!$PTHREAD_CC$ac_delim
37922 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
37923 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
37924 AST_DEVMODE!$AST_DEVMODE$ac_delim
37925 _ACEOF
37927 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
37928 break
37929 elif $ac_last_try; then
37930 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37931 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37932 { (exit 1); exit 1; }; }
37933 else
37934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37936 done
37938 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37939 if test -n "$ac_eof"; then
37940 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37941 ac_eof=`expr $ac_eof + 1`
37944 cat >>$CONFIG_STATUS <<_ACEOF
37945 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
37946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37947 _ACEOF
37948 sed '
37949 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37950 s/^/s,@/; s/!/@,|#_!!_#|/
37953 s/'"$ac_delim"'$/,g/; t
37954 s/$/\\/; p
37955 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37956 ' >>$CONFIG_STATUS <conf$$subs.sed
37957 rm -f conf$$subs.sed
37958 cat >>$CONFIG_STATUS <<_ACEOF
37959 CEOF$ac_eof
37960 _ACEOF
37963 ac_delim='%!_!# '
37964 for ac_last_try in false false false false false :; do
37965 cat >conf$$subs.sed <<_ACEOF
37966 ALSA_LIB!$ALSA_LIB$ac_delim
37967 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
37968 ALSA_DIR!$ALSA_DIR$ac_delim
37969 PBX_ALSA!$PBX_ALSA$ac_delim
37970 CURL_LIB!$CURL_LIB$ac_delim
37971 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
37972 CURL_DIR!$CURL_DIR$ac_delim
37973 PBX_CURL!$PBX_CURL$ac_delim
37974 CURSES_LIB!$CURSES_LIB$ac_delim
37975 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
37976 CURSES_DIR!$CURSES_DIR$ac_delim
37977 PBX_CURSES!$PBX_CURSES$ac_delim
37978 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
37979 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
37980 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
37981 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
37982 GSM_LIB!$GSM_LIB$ac_delim
37983 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
37984 GSM_DIR!$GSM_DIR$ac_delim
37985 PBX_GSM!$PBX_GSM$ac_delim
37986 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
37987 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
37988 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
37989 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
37990 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
37991 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
37992 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
37993 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
37994 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
37995 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
37996 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
37997 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
37998 KDE_LIB!$KDE_LIB$ac_delim
37999 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
38000 KDE_DIR!$KDE_DIR$ac_delim
38001 PBX_KDE!$PBX_KDE$ac_delim
38002 LTDL_LIB!$LTDL_LIB$ac_delim
38003 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
38004 LTDL_DIR!$LTDL_DIR$ac_delim
38005 PBX_LTDL!$PBX_LTDL$ac_delim
38006 MISDN_LIB!$MISDN_LIB$ac_delim
38007 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
38008 MISDN_DIR!$MISDN_DIR$ac_delim
38009 PBX_MISDN!$PBX_MISDN$ac_delim
38010 NBS_LIB!$NBS_LIB$ac_delim
38011 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
38012 NBS_DIR!$NBS_DIR$ac_delim
38013 PBX_NBS!$PBX_NBS$ac_delim
38014 NCURSES_LIB!$NCURSES_LIB$ac_delim
38015 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
38016 NCURSES_DIR!$NCURSES_DIR$ac_delim
38017 PBX_NCURSES!$PBX_NCURSES$ac_delim
38018 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
38019 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
38020 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
38021 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
38022 NEWT_LIB!$NEWT_LIB$ac_delim
38023 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
38024 NEWT_DIR!$NEWT_DIR$ac_delim
38025 PBX_NEWT!$PBX_NEWT$ac_delim
38026 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
38027 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
38028 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
38029 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
38030 OGG_LIB!$OGG_LIB$ac_delim
38031 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
38032 OGG_DIR!$OGG_DIR$ac_delim
38033 PBX_OGG!$PBX_OGG$ac_delim
38034 OSPTK_LIB!$OSPTK_LIB$ac_delim
38035 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
38036 OSPTK_DIR!$OSPTK_DIR$ac_delim
38037 PBX_OSPTK!$PBX_OSPTK$ac_delim
38038 OSS_LIB!$OSS_LIB$ac_delim
38039 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
38040 OSS_DIR!$OSS_DIR$ac_delim
38041 PBX_OSS!$PBX_OSS$ac_delim
38042 POPT_LIB!$POPT_LIB$ac_delim
38043 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
38044 POPT_DIR!$POPT_DIR$ac_delim
38045 PBX_POPT!$PBX_POPT$ac_delim
38046 PGSQL_LIB!$PGSQL_LIB$ac_delim
38047 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
38048 PGSQL_DIR!$PGSQL_DIR$ac_delim
38049 PBX_PGSQL!$PBX_PGSQL$ac_delim
38050 PRI_LIB!$PRI_LIB$ac_delim
38051 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
38052 PRI_DIR!$PRI_DIR$ac_delim
38053 PBX_PRI!$PBX_PRI$ac_delim
38054 PWLIB_LIB!$PWLIB_LIB$ac_delim
38055 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
38056 PWLIB_DIR!$PWLIB_DIR$ac_delim
38057 PBX_PWLIB!$PBX_PWLIB$ac_delim
38058 OPENH323_LIB!$OPENH323_LIB$ac_delim
38059 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
38060 OPENH323_DIR!$OPENH323_DIR$ac_delim
38061 PBX_OPENH323!$PBX_OPENH323$ac_delim
38062 QT_LIB!$QT_LIB$ac_delim
38063 _ACEOF
38065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38066 break
38067 elif $ac_last_try; then
38068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38070 { (exit 1); exit 1; }; }
38071 else
38072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38074 done
38076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38077 if test -n "$ac_eof"; then
38078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38079 ac_eof=`expr $ac_eof + 1`
38082 cat >>$CONFIG_STATUS <<_ACEOF
38083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38085 _ACEOF
38086 sed '
38087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38088 s/^/s,@/; s/!/@,|#_!!_#|/
38091 s/'"$ac_delim"'$/,g/; t
38092 s/$/\\/; p
38093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38094 ' >>$CONFIG_STATUS <conf$$subs.sed
38095 rm -f conf$$subs.sed
38096 cat >>$CONFIG_STATUS <<_ACEOF
38097 CEOF$ac_eof
38098 _ACEOF
38101 ac_delim='%!_!# '
38102 for ac_last_try in false false false false false :; do
38103 cat >conf$$subs.sed <<_ACEOF
38104 QT_INCLUDE!$QT_INCLUDE$ac_delim
38105 QT_DIR!$QT_DIR$ac_delim
38106 PBX_QT!$PBX_QT$ac_delim
38107 RADIUS_LIB!$RADIUS_LIB$ac_delim
38108 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
38109 RADIUS_DIR!$RADIUS_DIR$ac_delim
38110 PBX_RADIUS!$PBX_RADIUS$ac_delim
38111 SPEEX_LIB!$SPEEX_LIB$ac_delim
38112 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
38113 SPEEX_DIR!$SPEEX_DIR$ac_delim
38114 PBX_SPEEX!$PBX_SPEEX$ac_delim
38115 SQLITE_LIB!$SQLITE_LIB$ac_delim
38116 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
38117 SQLITE_DIR!$SQLITE_DIR$ac_delim
38118 PBX_SQLITE!$PBX_SQLITE$ac_delim
38119 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
38120 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
38121 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
38122 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
38123 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
38124 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
38125 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
38126 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
38127 FREETDS_LIB!$FREETDS_LIB$ac_delim
38128 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
38129 FREETDS_DIR!$FREETDS_DIR$ac_delim
38130 PBX_FREETDS!$PBX_FREETDS$ac_delim
38131 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
38132 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
38133 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
38134 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
38135 TINFO_LIB!$TINFO_LIB$ac_delim
38136 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
38137 TINFO_DIR!$TINFO_DIR$ac_delim
38138 PBX_TINFO!$PBX_TINFO$ac_delim
38139 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
38140 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
38141 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
38142 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
38143 USB_LIB!$USB_LIB$ac_delim
38144 USB_INCLUDE!$USB_INCLUDE$ac_delim
38145 USB_DIR!$USB_DIR$ac_delim
38146 PBX_USB!$PBX_USB$ac_delim
38147 VORBIS_LIB!$VORBIS_LIB$ac_delim
38148 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
38149 VORBIS_DIR!$VORBIS_DIR$ac_delim
38150 PBX_VORBIS!$PBX_VORBIS$ac_delim
38151 VPB_LIB!$VPB_LIB$ac_delim
38152 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
38153 VPB_DIR!$VPB_DIR$ac_delim
38154 PBX_VPB!$PBX_VPB$ac_delim
38155 ZLIB_LIB!$ZLIB_LIB$ac_delim
38156 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
38157 ZLIB_DIR!$ZLIB_DIR$ac_delim
38158 PBX_ZLIB!$PBX_ZLIB$ac_delim
38159 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
38160 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
38161 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
38162 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
38163 ALLOCA!$ALLOCA$ac_delim
38164 LIBOBJS!$LIBOBJS$ac_delim
38165 POW_LIB!$POW_LIB$ac_delim
38166 GC_CFLAGS!$GC_CFLAGS$ac_delim
38167 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
38168 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
38169 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
38170 KDEINIT!$KDEINIT$ac_delim
38171 KDEDIR!$KDEDIR$ac_delim
38172 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
38173 PG_CONFIG!$PG_CONFIG$ac_delim
38174 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
38175 PWLIBDIR!$PWLIBDIR$ac_delim
38176 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
38177 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
38178 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
38179 OPENH323DIR!$OPENH323DIR$ac_delim
38180 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
38181 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
38182 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
38183 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
38184 QTMOC!$QTMOC$ac_delim
38185 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
38186 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
38187 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
38188 PBX_H323!$PBX_H323$ac_delim
38189 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
38190 GTKCONFIG!$GTKCONFIG$ac_delim
38191 PBX_GTK!$PBX_GTK$ac_delim
38192 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
38193 GTK_LIB!$GTK_LIB$ac_delim
38194 PKGCONFIG!$PKGCONFIG$ac_delim
38195 PBX_GTK2!$PBX_GTK2$ac_delim
38196 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
38197 GTK2_LIB!$GTK2_LIB$ac_delim
38198 CURL_CONFIG!$CURL_CONFIG$ac_delim
38199 LTLIBOBJS!$LTLIBOBJS$ac_delim
38200 _ACEOF
38202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
38203 break
38204 elif $ac_last_try; then
38205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38207 { (exit 1); exit 1; }; }
38208 else
38209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38211 done
38213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38214 if test -n "$ac_eof"; then
38215 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38216 ac_eof=`expr $ac_eof + 1`
38219 cat >>$CONFIG_STATUS <<_ACEOF
38220 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
38221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38222 _ACEOF
38223 sed '
38224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38225 s/^/s,@/; s/!/@,|#_!!_#|/
38228 s/'"$ac_delim"'$/,g/; t
38229 s/$/\\/; p
38230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38231 ' >>$CONFIG_STATUS <conf$$subs.sed
38232 rm -f conf$$subs.sed
38233 cat >>$CONFIG_STATUS <<_ACEOF
38234 CEOF$ac_eof
38235 _ACEOF
38238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38240 # trailing colons and then remove the whole line if VPATH becomes empty
38241 # (actually we leave an empty line to preserve line numbers).
38242 if test "x$srcdir" = x.; then
38243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
38244 s/:*\$(srcdir):*/:/
38245 s/:*\${srcdir}:*/:/
38246 s/:*@srcdir@:*/:/
38247 s/^\([^=]*=[ ]*\):*/\1/
38248 s/:*$//
38249 s/^[^=]*=[ ]*$//
38253 cat >>$CONFIG_STATUS <<\_ACEOF
38254 fi # test -n "$CONFIG_FILES"
38257 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
38259 case $ac_tag in
38260 :[FHLC]) ac_mode=$ac_tag; continue;;
38261 esac
38262 case $ac_mode$ac_tag in
38263 :[FHL]*:*);;
38264 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38266 { (exit 1); exit 1; }; };;
38267 :[FH]-) ac_tag=-:-;;
38268 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38269 esac
38270 ac_save_IFS=$IFS
38271 IFS=:
38272 set x $ac_tag
38273 IFS=$ac_save_IFS
38274 shift
38275 ac_file=$1
38276 shift
38278 case $ac_mode in
38279 :L) ac_source=$1;;
38280 :[FH])
38281 ac_file_inputs=
38282 for ac_f
38284 case $ac_f in
38285 -) ac_f="$tmp/stdin";;
38286 *) # Look for the file first in the build tree, then in the source tree
38287 # (if the path is not absolute). The absolute path cannot be DOS-style,
38288 # because $ac_f cannot contain `:'.
38289 test -f "$ac_f" ||
38290 case $ac_f in
38291 [\\/$]*) false;;
38292 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38293 esac ||
38294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38296 { (exit 1); exit 1; }; };;
38297 esac
38298 ac_file_inputs="$ac_file_inputs $ac_f"
38299 done
38301 # Let's still pretend it is `configure' which instantiates (i.e., don't
38302 # use $as_me), people would be surprised to read:
38303 # /* config.h. Generated by config.status. */
38304 configure_input="Generated from "`IFS=:
38305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38306 if test x"$ac_file" != x-; then
38307 configure_input="$ac_file. $configure_input"
38308 { echo "$as_me:$LINENO: creating $ac_file" >&5
38309 echo "$as_me: creating $ac_file" >&6;}
38312 case $ac_tag in
38313 *:-:* | *:-) cat >"$tmp/stdin";;
38314 esac
38316 esac
38318 ac_dir=`$as_dirname -- "$ac_file" ||
38319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38320 X"$ac_file" : 'X\(//\)[^/]' \| \
38321 X"$ac_file" : 'X\(//\)$' \| \
38322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38323 echo X"$ac_file" |
38324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38325 s//\1/
38328 /^X\(\/\/\)[^/].*/{
38329 s//\1/
38332 /^X\(\/\/\)$/{
38333 s//\1/
38336 /^X\(\/\).*/{
38337 s//\1/
38340 s/.*/./; q'`
38341 { as_dir="$ac_dir"
38342 case $as_dir in #(
38343 -*) as_dir=./$as_dir;;
38344 esac
38345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38346 as_dirs=
38347 while :; do
38348 case $as_dir in #(
38349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38350 *) as_qdir=$as_dir;;
38351 esac
38352 as_dirs="'$as_qdir' $as_dirs"
38353 as_dir=`$as_dirname -- "$as_dir" ||
38354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38355 X"$as_dir" : 'X\(//\)[^/]' \| \
38356 X"$as_dir" : 'X\(//\)$' \| \
38357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38358 echo X"$as_dir" |
38359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38360 s//\1/
38363 /^X\(\/\/\)[^/].*/{
38364 s//\1/
38367 /^X\(\/\/\)$/{
38368 s//\1/
38371 /^X\(\/\).*/{
38372 s//\1/
38375 s/.*/./; q'`
38376 test -d "$as_dir" && break
38377 done
38378 test -z "$as_dirs" || eval "mkdir $as_dirs"
38379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
38381 { (exit 1); exit 1; }; }; }
38382 ac_builddir=.
38384 case "$ac_dir" in
38385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38388 # A ".." for each directory in $ac_dir_suffix.
38389 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38390 case $ac_top_builddir_sub in
38391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38393 esac ;;
38394 esac
38395 ac_abs_top_builddir=$ac_pwd
38396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38397 # for backward compatibility:
38398 ac_top_builddir=$ac_top_build_prefix
38400 case $srcdir in
38401 .) # We are building in place.
38402 ac_srcdir=.
38403 ac_top_srcdir=$ac_top_builddir_sub
38404 ac_abs_top_srcdir=$ac_pwd ;;
38405 [\\/]* | ?:[\\/]* ) # Absolute name.
38406 ac_srcdir=$srcdir$ac_dir_suffix;
38407 ac_top_srcdir=$srcdir
38408 ac_abs_top_srcdir=$srcdir ;;
38409 *) # Relative name.
38410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38411 ac_top_srcdir=$ac_top_build_prefix$srcdir
38412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38413 esac
38414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38417 case $ac_mode in
38420 # CONFIG_FILE
38423 case $INSTALL in
38424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38426 esac
38427 _ACEOF
38429 cat >>$CONFIG_STATUS <<\_ACEOF
38430 # If the template does not know about datarootdir, expand it.
38431 # FIXME: This hack should be removed a few years after 2.60.
38432 ac_datarootdir_hack=; ac_datarootdir_seen=
38434 case `sed -n '/datarootdir/ {
38438 /@datadir@/p
38439 /@docdir@/p
38440 /@infodir@/p
38441 /@localedir@/p
38442 /@mandir@/p
38443 ' $ac_file_inputs` in
38444 *datarootdir*) ac_datarootdir_seen=yes;;
38445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38446 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38447 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38448 _ACEOF
38449 cat >>$CONFIG_STATUS <<_ACEOF
38450 ac_datarootdir_hack='
38451 s&@datadir@&$datadir&g
38452 s&@docdir@&$docdir&g
38453 s&@infodir@&$infodir&g
38454 s&@localedir@&$localedir&g
38455 s&@mandir@&$mandir&g
38456 s&\\\${datarootdir}&$datarootdir&g' ;;
38457 esac
38458 _ACEOF
38460 # Neutralize VPATH when `$srcdir' = `.'.
38461 # Shell code in configure.ac might set extrasub.
38462 # FIXME: do we really want to maintain this feature?
38463 cat >>$CONFIG_STATUS <<_ACEOF
38464 sed "$ac_vpsub
38465 $extrasub
38466 _ACEOF
38467 cat >>$CONFIG_STATUS <<\_ACEOF
38469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38470 s&@configure_input@&$configure_input&;t t
38471 s&@top_builddir@&$ac_top_builddir_sub&;t t
38472 s&@srcdir@&$ac_srcdir&;t t
38473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38474 s&@top_srcdir@&$ac_top_srcdir&;t t
38475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38476 s&@builddir@&$ac_builddir&;t t
38477 s&@abs_builddir@&$ac_abs_builddir&;t t
38478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38479 s&@INSTALL@&$ac_INSTALL&;t t
38480 $ac_datarootdir_hack
38481 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
38483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38486 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38487 which seems to be undefined. Please make sure it is defined." >&5
38488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38489 which seems to be undefined. Please make sure it is defined." >&2;}
38491 rm -f "$tmp/stdin"
38492 case $ac_file in
38493 -) cat "$tmp/out"; rm -f "$tmp/out";;
38494 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38495 esac
38499 # CONFIG_HEADER
38501 _ACEOF
38503 # Transform confdefs.h into a sed script `conftest.defines', that
38504 # substitutes the proper values into config.h.in to produce config.h.
38505 rm -f conftest.defines conftest.tail
38506 # First, append a space to every undef/define line, to ease matching.
38507 echo 's/$/ /' >conftest.defines
38508 # Then, protect against being on the right side of a sed subst, or in
38509 # an unquoted here document, in config.status. If some macros were
38510 # called several times there might be several #defines for the same
38511 # symbol, which is useless. But do not sort them, since the last
38512 # AC_DEFINE must be honored.
38513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
38516 # PARAMS is the parameter list in the macro definition--in most cases, it's
38517 # just an empty string.
38518 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38519 ac_dB='\\)[ (].*,\\1define\\2'
38520 ac_dC=' '
38521 ac_dD=' ,'
38523 uniq confdefs.h |
38524 sed -n '
38525 t rset
38526 :rset
38527 s/^[ ]*#[ ]*define[ ][ ]*//
38528 t ok
38531 s/[\\&,]/\\&/g
38532 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38533 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38534 ' >>conftest.defines
38536 # Remove the space that was appended to ease matching.
38537 # Then replace #undef with comments. This is necessary, for
38538 # example, in the case of _POSIX_SOURCE, which is predefined and required
38539 # on some systems where configure will not decide to define it.
38540 # (The regexp can be short, since the line contains either #define or #undef.)
38541 echo 's/ $//
38542 s,^[ #]*u.*,/* & */,' >>conftest.defines
38544 # Break up conftest.defines:
38545 ac_max_sed_lines=50
38547 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38548 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38549 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38550 # et cetera.
38551 ac_in='$ac_file_inputs'
38552 ac_out='"$tmp/out1"'
38553 ac_nxt='"$tmp/out2"'
38555 while :
38557 # Write a here document:
38558 cat >>$CONFIG_STATUS <<_ACEOF
38559 # First, check the format of the line:
38560 cat >"\$tmp/defines.sed" <<\\CEOF
38561 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38562 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
38564 :def
38565 _ACEOF
38566 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38567 echo 'CEOF
38568 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38569 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38570 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38571 grep . conftest.tail >/dev/null || break
38572 rm -f conftest.defines
38573 mv conftest.tail conftest.defines
38574 done
38575 rm -f conftest.defines conftest.tail
38577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
38578 cat >>$CONFIG_STATUS <<\_ACEOF
38579 if test x"$ac_file" != x-; then
38580 echo "/* $configure_input */" >"$tmp/config.h"
38581 cat "$ac_result" >>"$tmp/config.h"
38582 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38584 echo "$as_me: $ac_file is unchanged" >&6;}
38585 else
38586 rm -f $ac_file
38587 mv "$tmp/config.h" $ac_file
38589 else
38590 echo "/* $configure_input */"
38591 cat "$ac_result"
38593 rm -f "$tmp/out12"
38597 esac
38599 done # for ac_tag
38602 { (exit 0); exit 0; }
38603 _ACEOF
38604 chmod +x $CONFIG_STATUS
38605 ac_clean_files=$ac_clean_files_save
38608 # configure is writing to config.log, and then calls config.status.
38609 # config.status does its own redirection, appending to config.log.
38610 # Unfortunately, on DOS this fails, as config.log is still kept open
38611 # by configure, so config.status won't be able to write to it; its
38612 # output is simply discarded. So we exec the FD to /dev/null,
38613 # effectively closing config.log, so it can be properly (re)opened and
38614 # appended to by config.status. When coming back to configure, we
38615 # need to make the FD available again.
38616 if test "$no_create" != yes; then
38617 ac_cs_success=:
38618 ac_config_status_args=
38619 test "$silent" = yes &&
38620 ac_config_status_args="$ac_config_status_args --quiet"
38621 exec 5>/dev/null
38622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38623 exec 5>>config.log
38624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38625 # would make configure fail if this is the last instruction.
38626 $ac_cs_success || { (exit 1); exit 1; }
38630 if test "x${silent}" != "xyes" ; then
38631 echo
38632 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
38633 echo " .\$7\$7.. .7\$\$7:. "
38634 echo " .\$\$:. ,\$7.7 "
38635 echo " .\$7. 7\$\$\$\$ .\$\$77 "
38636 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
38637 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
38638 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
38639 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
38640 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
38641 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
38642 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
38643 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
38644 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
38645 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
38646 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
38647 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
38648 echo " \$\$\$\$\$ \$\$\$ "
38649 echo " \$\$\$\$7. \$\$ (TM) "
38650 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
38651 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
38652 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
38653 echo
38656 { echo "$as_me:$LINENO: Package configured for: " >&5
38657 echo "$as_me: Package configured for: " >&6;}
38658 { echo "$as_me:$LINENO: OS type : $host_os" >&5
38659 echo "$as_me: OS type : $host_os" >&6;}
38660 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
38661 echo "$as_me: Host CPU : $host_cpu" >&6;}
38662 if test "${cross_compiling}" = "yes"; then
38663 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
38664 echo "$as_me: Cross Compilation = YES" >&6;}