Blocked revisions 115296 via svnmerge
[asterisk-bristuff.git] / configure
blob86b2c57be3d7172a8c9e2fad502baf6a183c3908
1 #! /bin/sh
2 # From configure.ac Revision: 115257 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # "Asterisk"
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
55 rm -f conf$$.sh
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
73 IFS=" "" $as_nl"
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 done
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
145 /^X\/\(\/\/\)$/{
146 s//\1/
149 /^X\/\(\/\).*/{
150 s//\1/
153 s/.*/./; q'`
155 # CDPATH.
156 $as_unset CDPATH
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
170 as_func_success () {
171 as_func_return 0
173 as_func_failure () {
174 as_func_return 1
176 as_func_ret_success () {
177 return 0
179 as_func_ret_failure () {
180 return 1
183 exitcode=0
184 if as_func_success; then
186 else
187 exitcode=1
188 echo as_func_success failed.
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 else
211 exitcode=1
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
282 (as_func_return () {
283 (exit $1)
285 as_func_success () {
286 as_func_return 0
288 as_func_failure () {
289 as_func_return 1
291 as_func_ret_success () {
292 return 0
294 as_func_ret_failure () {
295 return 1
298 exitcode=0
299 if as_func_success; then
301 else
302 exitcode=1
303 echo as_func_success failed.
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 else
326 exitcode=1
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 _ASEOF
339 }; then
340 break
345 done
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
372 (exit \$1)
374 as_func_success () {
375 as_func_return 0
377 as_func_failure () {
378 as_func_return 1
380 as_func_ret_success () {
381 return 0
383 as_func_ret_failure () {
384 return 1
387 exitcode=0
388 if as_func_success; then
390 else
391 exitcode=1
392 echo as_func_success failed.
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 else
415 exitcode=1
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
423 echo message
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
451 :lineno
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
485 ECHO_N='-n';;
486 esac
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
559 # Name of the host.
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 # Initializations.
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.4'
581 PACKAGE_STRING='asterisk 1.4'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_header_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
711 WGET
712 FETCH
713 DOWNLOAD
714 SOXMIX
715 acx_pthread_config
716 PTHREAD_CC
717 PTHREAD_LIBS
718 PTHREAD_CFLAGS
719 AST_DEVMODE
720 ALSA_LIB
721 ALSA_INCLUDE
722 ALSA_DIR
723 PBX_ALSA
724 CURL_LIB
725 CURL_INCLUDE
726 CURL_DIR
727 PBX_CURL
728 CAP_LIB
729 CAP_INCLUDE
730 CAP_DIR
731 PBX_CAP
732 CURSES_LIB
733 CURSES_INCLUDE
734 CURSES_DIR
735 PBX_CURSES
736 GNUTLS_LIB
737 GNUTLS_INCLUDE
738 GNUTLS_DIR
739 PBX_GNUTLS
740 GSM_LIB
741 GSM_INCLUDE
742 GSM_DIR
743 PBX_GSM
744 IKSEMEL_LIB
745 IKSEMEL_INCLUDE
746 IKSEMEL_DIR
747 PBX_IKSEMEL
748 IMAP_TK_LIB
749 IMAP_TK_INCLUDE
750 IMAP_TK_DIR
751 PBX_IMAP_TK
752 ISDNNET_LIB
753 ISDNNET_INCLUDE
754 ISDNNET_DIR
755 PBX_ISDNNET
756 KDE_LIB
757 KDE_INCLUDE
758 KDE_DIR
759 PBX_KDE
760 LTDL_LIB
761 LTDL_INCLUDE
762 LTDL_DIR
763 PBX_LTDL
764 MISDN_LIB
765 MISDN_INCLUDE
766 MISDN_DIR
767 PBX_MISDN
768 NBS_LIB
769 NBS_INCLUDE
770 NBS_DIR
771 PBX_NBS
772 NCURSES_LIB
773 NCURSES_INCLUDE
774 NCURSES_DIR
775 PBX_NCURSES
776 NETSNMP_LIB
777 NETSNMP_INCLUDE
778 NETSNMP_DIR
779 PBX_NETSNMP
780 NEWT_LIB
781 NEWT_INCLUDE
782 NEWT_DIR
783 PBX_NEWT
784 UNIXODBC_LIB
785 UNIXODBC_INCLUDE
786 UNIXODBC_DIR
787 PBX_UNIXODBC
788 OGG_LIB
789 OGG_INCLUDE
790 OGG_DIR
791 PBX_OGG
792 OSPTK_LIB
793 OSPTK_INCLUDE
794 OSPTK_DIR
795 PBX_OSPTK
796 OSS_LIB
797 OSS_INCLUDE
798 OSS_DIR
799 PBX_OSS
800 POPT_LIB
801 POPT_INCLUDE
802 POPT_DIR
803 PBX_POPT
804 PGSQL_LIB
805 PGSQL_INCLUDE
806 PGSQL_DIR
807 PBX_PGSQL
808 PRI_LIB
809 PRI_INCLUDE
810 PRI_DIR
811 PBX_PRI
812 PWLIB_LIB
813 PWLIB_INCLUDE
814 PWLIB_DIR
815 PBX_PWLIB
816 OPENH323_LIB
817 OPENH323_INCLUDE
818 OPENH323_DIR
819 PBX_OPENH323
820 RADIUS_LIB
821 RADIUS_INCLUDE
822 RADIUS_DIR
823 PBX_RADIUS
824 SPEEX_LIB
825 SPEEX_INCLUDE
826 SPEEX_DIR
827 PBX_SPEEX
828 SPEEXDSP_LIB
829 SPEEXDSP_INCLUDE
830 SPEEXDSP_DIR
831 PBX_SPEEXDSP
832 SQLITE_LIB
833 SQLITE_INCLUDE
834 SQLITE_DIR
835 PBX_SQLITE
836 SUPPSERV_LIB
837 SUPPSERV_INCLUDE
838 SUPPSERV_DIR
839 PBX_SUPPSERV
840 OPENSSL_LIB
841 OPENSSL_INCLUDE
842 OPENSSL_DIR
843 PBX_OPENSSL
844 FREETDS_LIB
845 FREETDS_INCLUDE
846 FREETDS_DIR
847 PBX_FREETDS
848 TERMCAP_LIB
849 TERMCAP_INCLUDE
850 TERMCAP_DIR
851 PBX_TERMCAP
852 TINFO_LIB
853 TINFO_INCLUDE
854 TINFO_DIR
855 PBX_TINFO
856 TONEZONE_LIB
857 TONEZONE_INCLUDE
858 TONEZONE_DIR
859 PBX_TONEZONE
860 USB_LIB
861 USB_INCLUDE
862 USB_DIR
863 PBX_USB
864 VORBIS_LIB
865 VORBIS_INCLUDE
866 VORBIS_DIR
867 PBX_VORBIS
868 VPB_LIB
869 VPB_INCLUDE
870 VPB_DIR
871 PBX_VPB
872 ZLIB_LIB
873 ZLIB_INCLUDE
874 ZLIB_DIR
875 PBX_ZLIB
876 ZAPTEL_LIB
877 ZAPTEL_INCLUDE
878 ZAPTEL_DIR
879 PBX_ZAPTEL
880 ALLOCA
881 LIBOBJS
882 POW_LIB
883 GC_CFLAGS
884 GC_LDFLAGS
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
887 GSM_INTERNAL
888 KDEINIT
889 KDEDIR
890 NETSNMP_CONFIG
891 PG_CONFIG
892 PTLIB_CONFIG
893 PWLIBDIR
894 PWLIB_INCDIR
895 PWLIB_LIBDIR
896 PWLIB_PLATFORM
897 OPENH323DIR
898 OPENH323_INCDIR
899 OPENH323_LIBDIR
900 OPENH323_SUFFIX
901 OPENH323_BUILD
902 PBX_ZAPTEL_VLDTMF
903 PBX_ZAPTEL_TRANSCODE
904 EDITLINE_LIB
905 PBX_H323
906 PBX_IXJUSER
907 GTKCONFIG
908 PBX_GTK
909 GTK_INCLUDE
910 GTK_LIB
911 PKGCONFIG
912 PBX_GTK2
913 GTK2_INCLUDE
914 GTK2_LIB
915 CURL_CONFIG
916 LTLIBOBJS'
917 ac_subst_files=''
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
928 CXXFLAGS
930 CXXCPP'
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
979 ac_prev=
980 ac_dashdash=
981 for ac_option
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
990 case $ac_option in
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *) ac_optarg=yes ;;
993 esac
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
999 ac_dashdash=yes ;;
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 esac
1308 done
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1383 /^X\(\/\/\)$/{
1384 s//\1/
1387 /^X\(\/\).*/{
1388 s//\1/
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1396 else
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1488 cat <<\_ACEOF
1490 System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of asterisk 1.4:";;
1499 esac
1500 cat <<\_ACEOF
1502 Optional Features:
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-dev-mode Turn on developer mode
1506 --disable-largefile omit support for large files
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1513 --with-curl=PATH use cURL files in PATH
1514 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1515 --with-curses=PATH use curses files in PATH
1516 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1517 PATH
1518 --with-gsm=PATH use GSM files in PATH , or 'internal'
1519 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1520 --with-imap=PATH use UW IMAP Toolkit files in PATH
1521 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1522 --with-kde=PATH use KDE files in PATH
1523 --with-ltdl=PATH use libtool files in PATH
1524 --with-misdn=PATH use mISDN User Library files in PATH
1525 --with-nbs=PATH use Network Broadcast Sound files in PATH
1526 --with-ncurses=PATH use ncurses files in PATH
1527 --with-netsnmp=PATH use Net-SNMP files in PATH
1528 --with-newt=PATH use newt files in PATH
1529 --with-odbc=PATH use unixODBC files in PATH
1530 --with-ogg=PATH use OGG files in PATH
1531 --with-osptk=PATH use OSP Toolkit files in PATH
1532 --with-oss=PATH use Open Sound System files in PATH
1533 --with-popt=PATH use popt files in PATH
1534 --with-postgres=PATH use PostgreSQL files in PATH
1535 --with-pri=PATH use ISDN PRI files in PATH
1536 --with-pwlib=PATH use PWlib files in PATH
1537 --with-h323=PATH use OpenH323 files in PATH
1538 --with-radius=PATH use Radius Client files in PATH
1539 --with-speex=PATH use Speex files in PATH
1540 --with-speexdsp=PATH use Speexdsp files in PATH
1541 --with-sqlite=PATH use SQLite files in PATH
1542 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1543 --with-ssl=PATH use OpenSSL files in PATH
1544 --with-tds=PATH use FreeTDS files in PATH
1545 --with-termcap=PATH use Termcap files in PATH
1546 --with-tinfo=PATH use Term Info files in PATH
1547 --with-tonezone=PATH use tonezone files in PATH
1548 --with-usb=PATH use usb files in PATH
1549 --with-vorbis=PATH use Vorbis files in PATH
1550 --with-vpb=PATH use Voicetronix API files in PATH
1551 --with-z=PATH use zlib files in PATH
1552 --with-zaptel=PATH use Zaptel files in PATH
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <www.asterisk.org>.
1571 _ACEOF
1572 ac_status=$?
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1579 ac_builddir=.
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1597 case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630 cat <<\_ACEOF
1631 asterisk configure 1.4
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1639 "Asterisk"
1640 _ACEOF
1641 exit
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by asterisk $as_me 1.4, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1650 $ $0 $@
1652 _ACEOF
1653 exec 5>>config.log
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677 _ASUNAME
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1685 done
1686 IFS=$as_save_IFS
1688 } >&5
1690 cat >&5 <<_ACEOF
1693 ## ----------- ##
1694 ## Core tests. ##
1695 ## ----------- ##
1697 _ACEOF
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_configure_args=
1706 ac_configure_args0=
1707 ac_configure_args1=
1708 ac_must_keep_next=false
1709 for ac_pass in 1 2
1711 for ac_arg
1713 case $ac_arg in
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1717 continue ;;
1718 *\'*)
1719 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 esac
1721 case $ac_pass in
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1727 else
1728 case $ac_arg in
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 esac
1737 -* ) ac_must_keep_next=true ;;
1738 esac
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1742 esac
1743 done
1744 done
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1756 echo
1758 cat <<\_ASBOX
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1762 _ASBOX
1763 echo
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in #(
1769 *${as_nl}*)
1770 case $ac_var in #(
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 esac
1774 case $ac_var in #(
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1777 esac ;;
1778 esac
1779 done
1780 (set) 2>&1 |
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1783 sed -n \
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 ;; #(
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790 esac |
1791 sort
1793 echo
1795 cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800 echo
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1811 if test -n "$ac_subst_files"; then
1812 cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817 echo
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1829 if test -s confdefs.h; then
1830 cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835 echo
1836 cat confdefs.h
1837 echo
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1842 } >&5
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 exit $exit_status
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 else
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1892 shift
1893 for ac_site_file
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1899 . "$ac_site_file"
1901 done
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1909 case $cache_file in
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1912 esac
1914 else
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1917 >$cache_file
1920 ac_header_list="$ac_header_list utime.h"
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1930 set,)
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1934 ,set)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,);;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1948 fi;;
1949 esac
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1952 case $ac_new_val in
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1955 esac
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 esac
1961 done
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 # cross-compile macros
2003 ac_aux_dir=
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 break
2009 elif test -f "$ac_dir/install.sh"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 break
2013 elif test -f "$ac_dir/shtool"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 break
2018 done
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2061 *-*-*) ;;
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2065 esac
2066 build=$ac_cv_build
2067 ac_save_IFS=$IFS; IFS='-'
2068 set x $ac_cv_build
2069 shift
2070 build_cpu=$1
2071 build_vendor=$2
2072 shift; shift
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2075 build_os=$*
2076 IFS=$ac_save_IFS
2077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2087 else
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2097 case $ac_cv_host in
2098 *-*-*) ;;
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2102 esac
2103 host=$ac_cv_host
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_host
2106 shift
2107 host_cpu=$1
2108 host_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 host_os=$*
2113 IFS=$ac_save_IFS
2114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2118 # check existence of the package
2121 # specify output header file
2122 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2129 cat >>confdefs.h <<\_ACEOF
2130 #define _GNU_SOURCE 1
2131 _ACEOF
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2161 done
2162 done
2163 IFS=$as_save_IFS
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2171 else
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2179 ac_ct_CC=$CC
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2217 CC=""
2218 else
2219 case $cross_compiling:$ac_tool_warned in
2220 yes:)
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2297 continue
2299 ac_cv_prog_CC="cc"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2305 IFS=$as_save_IFS
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2310 shift
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2315 shift
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2325 else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2359 IFS=$as_save_IFS
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2367 else
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2374 done
2376 if test -z "$CC"; then
2377 ac_ct_CC=$CC
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 else
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2418 done
2420 if test "x$ac_ct_CC" = x; then
2421 CC=""
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433 CC=$ac_ct_CC
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2470 case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2488 main ()
2492 return 0;
2494 _ACEOF
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2499 # of exeext.
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2512 ac_rmfiles=
2513 for ac_file in $ac_files
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2518 esac
2519 done
2520 rm -f $ac_rmfiles
2522 if { (ac_try="$ac_link_default"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2536 # Autoconf.
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2543 [ab].out )
2544 # We found the default executable, but exeext='' is most
2545 # certainly right.
2546 break;;
2547 *.* )
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2549 then :; else
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2556 # actually working.
2557 break;;
2559 break;;
2560 esac
2561 done
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2564 else
2565 ac_file=''
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 cross_compiling=no
2601 else
2602 if test "$cross_compiling" = maybe; then
2603 cross_compiling=yes
2604 else
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 break;;
2649 * ) break;;
2650 esac
2651 done
2652 else
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 main ()
2684 return 0;
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703 break;;
2704 esac
2705 done
2706 else
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2722 ac_objext=$OBJEXT
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2736 main ()
2738 #ifndef __GNUC__
2739 choke me
2740 #endif
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2763 ac_compiler_gnu=yes
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 ac_compiler_gnu=no
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 ac_save_c_werror_flag=$ac_c_werror_flag
2786 ac_c_werror_flag=yes
2787 ac_cv_prog_cc_g=no
2788 CFLAGS="-g"
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 main ()
2801 return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2821 ac_cv_prog_cc_g=yes
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 CFLAGS=""
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2865 CFLAGS="-g"
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2874 main ()
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_cv_prog_cc_g=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2921 CFLAGS="-g -O2"
2922 else
2923 CFLAGS="-g"
2925 else
2926 if test "$GCC" = yes; then
2927 CFLAGS="-O2"
2928 else
2929 CFLAGS=
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 ac_cv_prog_cc_c89=no
2938 ac_save_CC=$CC
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <stdarg.h>
2946 #include <stdio.h>
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2953 char **p;
2954 int i;
2956 return p[i];
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2960 char *s;
2961 va_list v;
2962 va_start (v,p);
2963 s = g (p, va_arg (v,int));
2964 va_end (v);
2965 return s;
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2979 #define FOO(x) 'x'
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 int argc;
2987 char **argv;
2989 main ()
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2993 return 0;
2995 _ACEOF
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_cv_prog_cc_c89=$ac_arg
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 done
3028 rm -f conftest.$ac_ext
3029 CC=$ac_save_CC
3032 # AC_CACHE_VAL
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3037 xno)
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3044 esac
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3063 CPP=
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 # Double quotes because CPP needs to be expanded
3070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3072 ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092 Syntax error
3093 _ACEOF
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3116 continue
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3130 _ACEOF
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3158 rm -f conftest.err conftest.$ac_ext
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 break
3167 done
3168 ac_cv_prog_CPP=$CPP
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #ifdef __STDC__
3193 # include <limits.h>
3194 #else
3195 # include <assert.h>
3196 #endif
3197 Syntax error
3198 _ACEOF
3199 if { (ac_try="$ac_cpp conftest.$ac_ext"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 }; then
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3221 continue
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null && {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 }; then
3252 # Broken: success on invalid input.
3253 continue
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3263 rm -f conftest.err conftest.$ac_ext
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3270 else
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy grep ggrep; ac_prog_name=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 ac_path_GREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in grep ggrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3313 ac_count=0
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 while :
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3336 $ac_path_GREP_found && break 3
3337 done
3338 done
3340 done
3341 IFS=$as_save_IFS
3346 GREP="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3353 else
3354 ac_cv_path_GREP=$GREP
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP="$ac_cv_path_GREP"
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3370 then ac_cv_path_EGREP="$GREP -E"
3371 else
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy egrep; ac_prog_name=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_path_EGREP_found=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_prog in egrep; do
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3392 *GNU*)
3393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3395 ac_count=0
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3397 while :
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405 ac_count=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP="$ac_path_EGREP"
3409 ac_path_EGREP_max=$ac_count
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3413 done
3414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415 esac
3418 $ac_path_EGREP_found && break 3
3419 done
3420 done
3422 done
3423 IFS=$as_save_IFS
3428 EGREP="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3435 else
3436 ac_cv_path_EGREP=$EGREP
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for AIX" >&5
3449 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #ifdef _AIX
3458 #endif
3460 _ACEOF
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "yes" >/dev/null 2>&1; then
3463 { echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6; }
3465 cat >>confdefs.h <<\_ACEOF
3466 #define _ALL_SOURCE 1
3467 _ACEOF
3469 else
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3473 rm -f conftest*
3476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3478 if test "${ac_cv_header_stdc+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #include <stdlib.h>
3488 #include <stdarg.h>
3489 #include <string.h>
3490 #include <float.h>
3493 main ()
3497 return 0;
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_header_stdc=yes
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 if test $ac_cv_header_stdc = yes; then
3528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <string.h>
3537 _ACEOF
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "memchr" >/dev/null 2>&1; then
3541 else
3542 ac_cv_header_stdc=no
3544 rm -f conftest*
3548 if test $ac_cv_header_stdc = yes; then
3549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <stdlib.h>
3558 _ACEOF
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "free" >/dev/null 2>&1; then
3562 else
3563 ac_cv_header_stdc=no
3565 rm -f conftest*
3569 if test $ac_cv_header_stdc = yes; then
3570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3571 if test "$cross_compiling" = yes; then
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <ctype.h>
3581 #include <stdlib.h>
3582 #if ((' ' & 0x0FF) == 0x020)
3583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3585 #else
3586 # define ISLOWER(c) \
3587 (('a' <= (c) && (c) <= 'i') \
3588 || ('j' <= (c) && (c) <= 'r') \
3589 || ('s' <= (c) && (c) <= 'z'))
3590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3591 #endif
3593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3595 main ()
3597 int i;
3598 for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i))
3600 || toupper (i) != TOUPPER (i))
3601 return 2;
3602 return 0;
3604 _ACEOF
3605 rm -f conftest$ac_exeext
3606 if { (ac_try="$ac_link"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3626 else
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ( exit $ac_status )
3632 ac_cv_header_stdc=no
3634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3646 _ACEOF
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3661 inttypes.h stdint.h unistd.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3677 #include <$ac_header>
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.$ac_objext; then
3696 eval "$as_ac_Header=yes"
3697 else
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 eval "$as_ac_Header=no"
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_res=`eval echo '${'$as_ac_Header'}'`
3707 { echo "$as_me:$LINENO: result: $ac_res" >&5
3708 echo "${ECHO_T}$ac_res" >&6; }
3709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710 cat >>confdefs.h <<_ACEOF
3711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3712 _ACEOF
3716 done
3719 if test "${ac_cv_header_minix_config_h+set}" = set; then
3720 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3727 else
3728 # Is the header compilable?
3729 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3730 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3738 #include <minix/config.h>
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_header_compiler=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6; }
3769 # Is the header present?
3770 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3771 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <minix/config.h>
3779 _ACEOF
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev/null && {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 }; then
3796 ac_header_preproc=yes
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_header_preproc=no
3804 rm -f conftest.err conftest.$ac_ext
3805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6; }
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3810 yes:no: )
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc=yes
3817 no:yes:* )
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3830 ( cat <<\_ASBOX
3831 ## ------------------------------- ##
3832 ## Report this to www.asterisk.org ##
3833 ## ------------------------------- ##
3834 _ASBOX
3835 ) | sed "s/^/$as_me: WARNING: /" >&2
3837 esac
3838 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3839 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_minix_config_h+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 ac_cv_header_minix_config_h=$ac_header_preproc
3845 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3846 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3849 if test $ac_cv_header_minix_config_h = yes; then
3850 MINIX=yes
3851 else
3852 MINIX=
3856 if test "$MINIX" = yes; then
3858 cat >>confdefs.h <<\_ACEOF
3859 #define _POSIX_SOURCE 1
3860 _ACEOF
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_1_SOURCE 2
3865 _ACEOF
3868 cat >>confdefs.h <<\_ACEOF
3869 #define _MINIX 1
3870 _ACEOF
3884 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3885 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3886 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # define __EXTENSIONS__ 1
3897 $ac_includes_default
3899 main ()
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_safe_to_define___extensions__=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_safe_to_define___extensions__=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3934 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 cat >>confdefs.h <<\_ACEOF
3937 #define __EXTENSIONS__ 1
3938 _ACEOF
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_PTHREAD_SEMANTICS 1
3942 _ACEOF
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _TANDEM_SOURCE 1
3946 _ACEOF
3948 # note- does not work on FreeBSD
3950 case "${host_os}" in
3951 freebsd*)
3952 ac_default_prefix=/usr/local
3953 CPPFLAGS=-I/usr/local/include
3954 LDFLAGS=-L/usr/local/lib
3957 ac_default_prefix=/usr
3958 if test ${sysconfdir} = '${prefix}/etc'; then
3959 sysconfdir=/etc
3961 if test ${mandir} = '${prefix}/man'; then
3962 mandir=/usr/share/man
3965 esac
3967 if test ${localstatedir} = '${prefix}/var'; then
3968 localstatedir=/var
3971 BUILD_PLATFORM=${build}
3972 BUILD_CPU=${build_cpu}
3973 BUILD_VENDOR=${build_vendor}
3974 BUILD_OS=${build_os}
3981 HOST_PLATFORM=${host}
3982 HOST_CPU=${host_cpu}
3983 HOST_VENDOR=${host_vendor}
3984 HOST_OS=${host_os}
3991 case "${host_os}" in
3992 freebsd*)
3993 OSARCH=FreeBSD
3995 netbsd*)
3996 OSARCH=NetBSD
3998 openbsd*)
3999 OSARCH=OpenBSD
4001 solaris*)
4002 OSARCH=SunOS
4005 OSARCH=${HOST_OS}
4007 esac
4011 # check for uname
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}uname; ac_word=$2
4015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_UNAME+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 case $UNAME in
4021 [\\/]* | ?:[\\/]*)
4022 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4041 esac
4043 UNAME=$ac_cv_path_UNAME
4044 if test -n "$UNAME"; then
4045 { echo "$as_me:$LINENO: result: $UNAME" >&5
4046 echo "${ECHO_T}$UNAME" >&6; }
4047 else
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4054 if test -z "$ac_cv_path_UNAME"; then
4055 ac_pt_UNAME=$UNAME
4056 # Extract the first word of "uname", so it can be a program name with args.
4057 set dummy uname; ac_word=$2
4058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $ac_pt_UNAME in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4084 esac
4086 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4087 if test -n "$ac_pt_UNAME"; then
4088 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4089 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4090 else
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 if test "x$ac_pt_UNAME" = x; then
4096 UNAME="No"
4097 else
4098 case $cross_compiling:$ac_tool_warned in
4099 yes:)
4100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4101 whose name does not start with the host triplet. If you think this
4102 configuration is useful to you, please write to autoconf@gnu.org." >&5
4103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 UNAME=$ac_pt_UNAME
4110 else
4111 UNAME="$ac_cv_path_UNAME"
4114 if test ! x"${UNAME}" = xNo; then
4115 PBX_OSREV=$(${UNAME} -r)
4125 # cross-compile checks
4126 if test "${cross_compiling}" = "yes";
4127 then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4152 IFS=$as_save_IFS
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158 { echo "$as_me:$LINENO: result: $CC" >&5
4159 echo "${ECHO_T}$CC" >&6; }
4160 else
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_prog_CC"; then
4168 ac_ct_CC=$CC
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6; }
4200 else
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_ct_CC" = x; then
4206 CC=":"
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218 CC=$ac_ct_CC
4220 else
4221 CC="$ac_cv_prog_CC"
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}g++; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 CXX=$ac_cv_prog_CXX
4253 if test -n "$CXX"; then
4254 { echo "$as_me:$LINENO: result: $CXX" >&5
4255 echo "${ECHO_T}$CXX" >&6; }
4256 else
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4263 if test -z "$ac_cv_prog_CXX"; then
4264 ac_ct_CXX=$CXX
4265 # Extract the first word of "g++", so it can be a program name with args.
4266 set dummy g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CXX="g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4295 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4296 else
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4301 if test "x$ac_ct_CXX" = x; then
4302 CXX=":"
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&5
4309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CXX=$ac_ct_CXX
4316 else
4317 CXX="$ac_cv_prog_CXX"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ld; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_prog_LD+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$LD"; then
4329 ac_cv_prog_LD="$LD" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_LD="${ac_tool_prefix}ld"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 LD=$ac_cv_prog_LD
4349 if test -n "$LD"; then
4350 { echo "$as_me:$LINENO: result: $LD" >&5
4351 echo "${ECHO_T}$LD" >&6; }
4352 else
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4359 if test -z "$ac_cv_prog_LD"; then
4360 ac_ct_LD=$LD
4361 # Extract the first word of "ld", so it can be a program name with args.
4362 set dummy ld; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 if test -n "$ac_ct_LD"; then
4369 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_LD="ld"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4382 done
4383 done
4384 IFS=$as_save_IFS
4388 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4389 if test -n "$ac_ct_LD"; then
4390 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4391 echo "${ECHO_T}$ac_ct_LD" >&6; }
4392 else
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4397 if test "x$ac_ct_LD" = x; then
4398 LD=":"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&5
4405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4408 ac_tool_warned=yes ;;
4409 esac
4410 LD=$ac_ct_LD
4412 else
4413 LD="$ac_cv_prog_LD"
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$RANLIB"; then
4425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 RANLIB=$ac_cv_prog_RANLIB
4445 if test -n "$RANLIB"; then
4446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4447 echo "${ECHO_T}$RANLIB" >&6; }
4448 else
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4455 if test -z "$ac_cv_prog_RANLIB"; then
4456 ac_ct_RANLIB=$RANLIB
4457 # Extract the first word of "ranlib", so it can be a program name with args.
4458 set dummy ranlib; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test -n "$ac_ct_RANLIB"; then
4465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_RANLIB="ranlib"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4485 if test -n "$ac_ct_RANLIB"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4488 else
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4493 if test "x$ac_ct_RANLIB" = x; then
4494 RANLIB=":"
4495 else
4496 case $cross_compiling:$ac_tool_warned in
4497 yes:)
4498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 RANLIB=$ac_ct_RANLIB
4508 else
4509 RANLIB="$ac_cv_prog_RANLIB"
4514 # Checks for programs.
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 CC=$ac_cv_prog_CC
4549 if test -n "$CC"; then
4550 { echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_CC"; then
4560 ac_ct_CC=$CC
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562 set dummy gcc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6; }
4592 else
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_CC" = x; then
4598 CC=""
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601 yes:)
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 CC=$ac_ct_CC
4612 else
4613 CC="$ac_cv_prog_CC"
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}cc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 # Extract the first word of "cc", so it can be a program name with args.
4659 set dummy cc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4667 else
4668 ac_prog_rejected=no
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677 ac_prog_rejected=yes
4678 continue
4680 ac_cv_prog_CC="cc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4688 if test $ac_prog_rejected = yes; then
4689 # We found a bogon in the path, so make sure we never use it.
4690 set dummy $ac_cv_prog_CC
4691 shift
4692 if test $# != 0; then
4693 # We chose a different compiler from the bogus one.
4694 # However, it has the same basename, so the bogon will be chosen
4695 # first if we set CC to just the basename; use the full file name.
4696 shift
4697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4702 CC=$ac_cv_prog_CC
4703 if test -n "$CC"; then
4704 { echo "$as_me:$LINENO: result: $CC" >&5
4705 echo "${ECHO_T}$CC" >&6; }
4706 else
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl.exe
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4740 IFS=$as_save_IFS
4744 CC=$ac_cv_prog_CC
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 test -n "$CC" && break
4755 done
4757 if test -z "$CC"; then
4758 ac_ct_CC=$CC
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_CC="$ac_prog"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4789 if test -n "$ac_ct_CC"; then
4790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4791 echo "${ECHO_T}$ac_ct_CC" >&6; }
4792 else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 test -n "$ac_ct_CC" && break
4799 done
4801 if test "x$ac_ct_CC" = x; then
4802 CC=""
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the host triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 CC=$ac_ct_CC
4821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." >&5
4823 echo "$as_me: error: no acceptable C compiler found in \$PATH
4824 See \`config.log' for more details." >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Provide some information about the compiler.
4828 echo "$as_me:$LINENO: checking for C compiler version" >&5
4829 ac_compiler=`set X $ac_compile; echo $2`
4830 { (ac_try="$ac_compiler --version >&5"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compiler --version >&5") 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }
4840 { (ac_try="$ac_compiler -v >&5"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compiler -v >&5") 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }
4850 { (ac_try="$ac_compiler -V >&5"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compiler -V >&5") 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }
4861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4862 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4874 main ()
4876 #ifndef __GNUC__
4877 choke me
4878 #endif
4881 return 0;
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4886 case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4901 ac_compiler_gnu=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 ac_compiler_gnu=no
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4913 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4915 GCC=`test $ac_compiler_gnu = yes && echo yes`
4916 ac_test_CFLAGS=${CFLAGS+set}
4917 ac_save_CFLAGS=$CFLAGS
4918 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_cc_g+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4925 ac_cv_prog_cc_g=no
4926 CFLAGS="-g"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4935 main ()
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4959 ac_cv_prog_cc_g=yes
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 CFLAGS=""
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4973 main ()
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5003 CFLAGS="-g"
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 ()
5016 return 0;
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_prog_cc_g=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5059 CFLAGS="-g -O2"
5060 else
5061 CFLAGS="-g"
5063 else
5064 if test "$GCC" = yes; then
5065 CFLAGS="-O2"
5066 else
5067 CFLAGS=
5070 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5071 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 ac_cv_prog_cc_c89=no
5076 ac_save_CC=$CC
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <stdarg.h>
5084 #include <stdio.h>
5085 #include <sys/types.h>
5086 #include <sys/stat.h>
5087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5088 struct buf { int x; };
5089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5090 static char *e (p, i)
5091 char **p;
5092 int i;
5094 return p[i];
5096 static char *f (char * (*g) (char **, int), char **p, ...)
5098 char *s;
5099 va_list v;
5100 va_start (v,p);
5101 s = g (p, va_arg (v,int));
5102 va_end (v);
5103 return s;
5106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5107 function prototypes and stuff, but not '\xHH' hex character constants.
5108 These don't provoke an error unfortunately, instead are silently treated
5109 as 'x'. The following induces an error, until -std is added to get
5110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5111 array size at least. It's necessary to write '\x00'==0 to get something
5112 that's true only with -std. */
5113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5116 inside strings and character constants. */
5117 #define FOO(x) 'x'
5118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5120 int test (int i, double x);
5121 struct s1 {int (*f) (int a);};
5122 struct s2 {int (*f) (double a);};
5123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5124 int argc;
5125 char **argv;
5127 main ()
5129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5131 return 0;
5133 _ACEOF
5134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5137 CC="$ac_save_CC $ac_arg"
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_prog_cc_c89=$ac_arg
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 done
5166 rm -f conftest.$ac_ext
5167 CC=$ac_save_CC
5170 # AC_CACHE_VAL
5171 case "x$ac_cv_prog_cc_c89" in
5173 { echo "$as_me:$LINENO: result: none needed" >&5
5174 echo "${ECHO_T}none needed" >&6; } ;;
5175 xno)
5176 { echo "$as_me:$LINENO: result: unsupported" >&5
5177 echo "${ECHO_T}unsupported" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5182 esac
5185 ac_ext=c
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 ac_ext=cpp
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5198 CXX=$CCC
5199 else
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 CXX=$ac_cv_prog_CXX
5231 if test -n "$CXX"; then
5232 { echo "$as_me:$LINENO: result: $CXX" >&5
5233 echo "${ECHO_T}$CXX" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5240 test -n "$CXX" && break
5241 done
5243 if test -z "$CXX"; then
5244 ac_ct_CXX=$CXX
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5278 else
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 test -n "$ac_ct_CXX" && break
5285 done
5287 if test "x$ac_ct_CXX" = x; then
5288 CXX="g++"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet. If you think this
5294 configuration is useful to you, please write to autoconf@gnu.org." >&5
5295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5296 whose name does not start with the host triplet. If you think this
5297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300 CXX=$ac_ct_CXX
5306 # Provide some information about the compiler.
5307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (ac_try="$ac_compiler --version >&5"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler -v >&5") 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -V >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5340 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5341 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5353 main ()
5355 #ifndef __GNUC__
5356 choke me
5357 #endif
5360 return 0;
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5380 ac_compiler_gnu=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_compiler_gnu=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5394 GXX=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CXXFLAGS=${CXXFLAGS+set}
5396 ac_save_CXXFLAGS=$CXXFLAGS
5397 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5398 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cxx_g+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5403 ac_cxx_werror_flag=yes
5404 ac_cv_prog_cxx_g=no
5405 CXXFLAGS="-g"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5414 main ()
5418 return 0;
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5423 case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_cv_prog_cxx_g=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 CXXFLAGS=""
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5452 main ()
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5482 CXXFLAGS="-g"
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5491 main ()
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_prog_cxx_g=yes
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5534 if test "$ac_test_CXXFLAGS" = set; then
5535 CXXFLAGS=$ac_save_CXXFLAGS
5536 elif test $ac_cv_prog_cxx_g = yes; then
5537 if test "$GXX" = yes; then
5538 CXXFLAGS="-g -O2"
5539 else
5540 CXXFLAGS="-g"
5542 else
5543 if test "$GXX" = yes; then
5544 CXXFLAGS="-O2"
5545 else
5546 CXXFLAGS=
5549 ac_ext=c
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5561 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5564 CPP=
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 ac_preproc_ok=false
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593 Syntax error
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5610 }; then
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Broken: fails on valid input.
5617 continue
5620 rm -f conftest.err conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5631 _ACEOF
5632 if { (ac_try="$ac_cpp conftest.$ac_ext"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 }; then
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5659 rm -f conftest.err conftest.$ac_ext
5661 done
5662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663 rm -f conftest.err conftest.$ac_ext
5664 if $ac_preproc_ok; then
5665 break
5668 done
5669 ac_cv_prog_CPP=$CPP
5672 CPP=$ac_cv_prog_CPP
5673 else
5674 ac_cv_prog_CPP=$CPP
5676 { echo "$as_me:$LINENO: result: $CPP" >&5
5677 echo "${ECHO_T}$CPP" >&6; }
5678 ac_preproc_ok=false
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698 Syntax error
5699 _ACEOF
5700 if { (ac_try="$ac_cpp conftest.$ac_ext"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 }; then
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5722 continue
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5736 _ACEOF
5737 if { (ac_try="$ac_cpp conftest.$ac_ext"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 }; then
5753 # Broken: success on invalid input.
5754 continue
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5760 ac_preproc_ok=:
5761 break
5764 rm -f conftest.err conftest.$ac_ext
5766 done
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5771 else
5772 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5773 See \`config.log' for more details." >&5
5774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5775 See \`config.log' for more details." >&2;}
5776 { (exit 1); exit 1; }; }
5779 ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 ac_ext=cpp
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5792 if test -z "$CXXCPP"; then
5793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 # Double quotes because CXXCPP needs to be expanded
5797 for CXXCPP in "$CXX -E" "/lib/cpp"
5799 ac_preproc_ok=false
5800 for ac_cxx_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 Syntax error
5820 _ACEOF
5821 if { (ac_try="$ac_cpp conftest.$ac_ext"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 # Broken: fails on valid input.
5843 continue
5846 rm -f conftest.err conftest.$ac_ext
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5857 _ACEOF
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null && {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 }; then
5874 # Broken: success on invalid input.
5875 continue
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 # Passes both tests.
5881 ac_preproc_ok=:
5882 break
5885 rm -f conftest.err conftest.$ac_ext
5887 done
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.$ac_ext
5890 if $ac_preproc_ok; then
5891 break
5894 done
5895 ac_cv_prog_CXXCPP=$CXXCPP
5898 CXXCPP=$ac_cv_prog_CXXCPP
5899 else
5900 ac_cv_prog_CXXCPP=$CXXCPP
5902 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5903 echo "${ECHO_T}$CXXCPP" >&6; }
5904 ac_preproc_ok=false
5905 for ac_cxx_preproc_warn_flag in '' yes
5907 # Use a header file that comes with gcc, so configuring glibc
5908 # with a fresh cross-compiler works.
5909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 # <limits.h> exists even on freestanding compilers.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef __STDC__
5920 # include <limits.h>
5921 #else
5922 # include <assert.h>
5923 #endif
5924 Syntax error
5925 _ACEOF
5926 if { (ac_try="$ac_cpp conftest.$ac_ext"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940 test ! -s conftest.err
5941 }; then
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 # Broken: fails on valid input.
5948 continue
5951 rm -f conftest.err conftest.$ac_ext
5953 # OK, works on sane cases. Now check whether nonexistent headers
5954 # can be detected and how.
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <ac_nonexistent.h>
5962 _ACEOF
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev/null && {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5978 }; then
5979 # Broken: success on invalid input.
5980 continue
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 # Passes both tests.
5986 ac_preproc_ok=:
5987 break
5990 rm -f conftest.err conftest.$ac_ext
5992 done
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.$ac_ext
5995 if $ac_preproc_ok; then
5997 else
5998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&5
6000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6001 See \`config.log' for more details." >&2;}
6002 { (exit 1); exit 1; }; }
6005 ac_ext=c
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6012 # the developers regenerating the configure script don't have to install libtool.
6013 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6014 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_SED+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6019 for ac_i in 1 2 3 4 5 6 7; do
6020 ac_script="$ac_script$as_nl$ac_script"
6021 done
6022 echo "$ac_script" | sed 99q >conftest.sed
6023 $as_unset ac_script || ac_script=
6024 # Extract the first word of "sed gsed" to use in msg output
6025 if test -z "$SED"; then
6026 set dummy sed gsed; ac_prog_name=$2
6027 if test "${ac_cv_path_SED+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 ac_path_SED_found=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_prog in sed gsed; do
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6041 # Check for GNU ac_path_SED and select it if it is found.
6042 # Check for GNU $ac_path_SED
6043 case `"$ac_path_SED" --version 2>&1` in
6044 *GNU*)
6045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6047 ac_count=0
6048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6049 while :
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 echo '' >> "conftest.nl"
6055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6057 ac_count=`expr $ac_count + 1`
6058 if test $ac_count -gt ${ac_path_SED_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_SED="$ac_path_SED"
6061 ac_path_SED_max=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6065 done
6066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6067 esac
6070 $ac_path_SED_found && break 3
6071 done
6072 done
6074 done
6075 IFS=$as_save_IFS
6080 SED="$ac_cv_path_SED"
6081 if test -z "$SED"; then
6082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6083 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6084 { (exit 1); exit 1; }; }
6087 else
6088 ac_cv_path_SED=$SED
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6093 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6094 SED="$ac_cv_path_SED"
6095 rm -f conftest.sed
6097 { echo "$as_me:$LINENO: checking for egrep" >&5
6098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_egrep+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6103 then ac_cv_prog_egrep='grep -E'
6104 else ac_cv_prog_egrep='egrep'
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6109 EGREP=$ac_cv_prog_egrep
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6116 else
6117 with_gnu_ld=no
6120 ac_prog=ld
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6125 case $host in
6126 *-*-mingw*)
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6131 esac
6132 case $ac_prog in
6133 # Accept absolute paths.
6134 [\\/]* | ?:[\\/]*)
6135 re_direlt='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6139 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6140 done
6141 test -z "$LD" && LD="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6145 ac_prog=ld
6148 # If it is relative, then search for the first ld in PATH.
6149 with_gnu_ld=unknown
6151 esac
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6155 else
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 if test -z "$LD"; then
6163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6164 for ac_dir in $PATH; do
6165 IFS="$lt_save_ifs"
6166 test -z "$ac_dir" && ac_dir=.
6167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU* | *'with BFD'*)
6174 test "$with_gnu_ld" != no && break
6177 test "$with_gnu_ld" != yes && break
6179 esac
6181 done
6182 IFS="$lt_save_ifs"
6183 else
6184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6188 LD="$lt_cv_path_LD"
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6192 else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU* | *'with BFD'*)
6207 lt_cv_prog_gnu_ld=yes
6210 lt_cv_prog_gnu_ld=no
6212 esac
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld=$lt_cv_prog_gnu_ld
6218 # note - does not work on freebsd
6219 for ac_prog in gawk mawk nawk awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy $ac_prog; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6248 AWK=$ac_cv_prog_AWK
6249 if test -n "$AWK"; then
6250 { echo "$as_me:$LINENO: result: $AWK" >&5
6251 echo "${ECHO_T}$AWK" >&6; }
6252 else
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 test -n "$AWK" && break
6259 done
6261 # Find a good install program. We prefer a C program (faster),
6262 # so one script is as good as another. But avoid the broken or
6263 # incompatible versions:
6264 # SysV /etc/install, /usr/sbin/install
6265 # SunOS /usr/etc/install
6266 # IRIX /sbin/install
6267 # AIX /bin/install
6268 # AmigaOS /C/install, which installs bootblocks on floppy discs
6269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6272 # OS/2's system install, which has a completely different semantic
6273 # ./install, which can be erroneously created by make from ./install.sh.
6274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6276 if test -z "$INSTALL"; then
6277 if test "${ac_cv_path_install+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 # Account for people who put trailing slashes in PATH elements.
6286 case $as_dir/ in
6287 ./ | .// | /cC/* | \
6288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6290 /usr/ucb/* ) ;;
6292 # OSF1 and SCO ODT 3.0 have their own names for install.
6293 # Don't use installbsd from OSF since it installs stuff as root
6294 # by default.
6295 for ac_prog in ginstall scoinst install; do
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6298 if test $ac_prog = install &&
6299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6300 # AIX install. It has an incompatible calling convention.
6302 elif test $ac_prog = install &&
6303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6304 # program-specific install script used by HP pwplus--don't use.
6306 else
6307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6308 break 3
6311 done
6312 done
6314 esac
6315 done
6316 IFS=$as_save_IFS
6320 if test "${ac_cv_path_install+set}" = set; then
6321 INSTALL=$ac_cv_path_install
6322 else
6323 # As a last resort, use the slow shell script. Don't cache a
6324 # value for INSTALL within a source directory, because that will
6325 # break other packages using the cache if that directory is
6326 # removed, or if the value is a relative name.
6327 INSTALL=$ac_install_sh
6330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6331 echo "${ECHO_T}$INSTALL" >&6; }
6333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6334 # It thinks the first close brace ends the variable substitution.
6335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6343 LN_S=$as_ln_s
6344 if test "$LN_S" = "ln -s"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6347 else
6348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6349 echo "${ECHO_T}no, using $LN_S" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6374 done
6375 done
6376 IFS=$as_save_IFS
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6384 else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6414 done
6415 done
6416 IFS=$as_save_IFS
6420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6424 else
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x; then
6430 RANLIB=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442 RANLIB=$ac_ct_RANLIB
6444 else
6445 RANLIB="$ac_cv_prog_RANLIB"
6448 { echo "$as_me:$LINENO: checking for GNU make" >&5
6449 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6450 if test "${GNU_MAKE+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 GNU_MAKE='Not Found' ;
6454 GNU_MAKE_VERSION_MAJOR=0 ;
6455 GNU_MAKE_VERSION_MINOR=0 ;
6456 for a in make gmake gnumake ; do
6457 if test -z "$a" ; then continue ; fi ;
6458 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6459 GNU_MAKE=$a ;
6460 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6461 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6462 break;
6464 done ;
6467 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6468 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6469 if test "x$GNU_MAKE" = "xNot Found" ; then
6470 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6471 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6472 { (exit 1); exit 1; }; }
6473 exit 1
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}strip; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_STRIP+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 case $STRIP in
6487 [\\/]* | ?:[\\/]*)
6488 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6507 esac
6509 STRIP=$ac_cv_path_STRIP
6510 if test -n "$STRIP"; then
6511 { echo "$as_me:$LINENO: result: $STRIP" >&5
6512 echo "${ECHO_T}$STRIP" >&6; }
6513 else
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6520 if test -z "$ac_cv_path_STRIP"; then
6521 ac_pt_STRIP=$STRIP
6522 # Extract the first word of "strip", so it can be a program name with args.
6523 set dummy strip; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 case $ac_pt_STRIP in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6550 esac
6552 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6553 if test -n "$ac_pt_STRIP"; then
6554 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6555 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6561 if test "x$ac_pt_STRIP" = x; then
6562 STRIP=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned=yes ;;
6573 esac
6574 STRIP=$ac_pt_STRIP
6576 else
6577 STRIP="$ac_cv_path_STRIP"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}ar; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 case $AR in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6609 esac
6611 AR=$ac_cv_path_AR
6612 if test -n "$AR"; then
6613 { echo "$as_me:$LINENO: result: $AR" >&5
6614 echo "${ECHO_T}$AR" >&6; }
6615 else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6622 if test -z "$ac_cv_path_AR"; then
6623 ac_pt_AR=$AR
6624 # Extract the first word of "ar", so it can be a program name with args.
6625 set dummy ar; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 case $ac_pt_AR in
6632 [\\/]* | ?:[\\/]*)
6633 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6652 esac
6654 ac_pt_AR=$ac_cv_path_ac_pt_AR
6655 if test -n "$ac_pt_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6657 echo "${ECHO_T}$ac_pt_AR" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_pt_AR" = x; then
6664 AR=":"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 AR=$ac_pt_AR
6678 else
6679 AR="$ac_cv_path_AR"
6683 GNU_LD=0
6684 if test "x$with_gnu_ld" = "xyes" ; then
6685 GNU_LD=1
6689 # Extract the first word of "awk", so it can be a program name with args.
6690 set dummy awk; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_AWK+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 case $AWK in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6712 done
6713 done
6714 IFS=$as_save_IFS
6716 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6718 esac
6720 AWK=$ac_cv_path_AWK
6721 if test -n "$AWK"; then
6722 { echo "$as_me:$LINENO: result: $AWK" >&5
6723 echo "${ECHO_T}$AWK" >&6; }
6724 else
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy grep; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 case $GREP in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6759 esac
6761 GREP=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6765 else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "find", so it can be a program name with args.
6772 set dummy find; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_FIND+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 case $FIND in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6796 IFS=$as_save_IFS
6798 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6800 esac
6802 FIND=$ac_cv_path_FIND
6803 if test -n "$FIND"; then
6804 { echo "$as_me:$LINENO: result: $FIND" >&5
6805 echo "${ECHO_T}$FIND" >&6; }
6806 else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "compress", so it can be a program name with args.
6813 set dummy compress; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_COMPRESS+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 case $COMPRESS in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6839 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6841 esac
6843 COMPRESS=$ac_cv_path_COMPRESS
6844 if test -n "$COMPRESS"; then
6845 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6846 echo "${ECHO_T}$COMPRESS" >&6; }
6847 else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "basename", so it can be a program name with args.
6854 set dummy basename; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_BASENAME+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 case $BASENAME in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6880 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6882 esac
6884 BASENAME=$ac_cv_path_BASENAME
6885 if test -n "$BASENAME"; then
6886 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6887 echo "${ECHO_T}$BASENAME" >&6; }
6888 else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "id", so it can be a program name with args.
6895 set dummy id; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_ID+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 case $ID in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6917 done
6918 done
6919 IFS=$as_save_IFS
6921 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6923 esac
6925 ID=$ac_cv_path_ID
6926 if test -n "$ID"; then
6927 { echo "$as_me:$LINENO: result: $ID" >&5
6928 echo "${ECHO_T}$ID" >&6; }
6929 else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "dirname", so it can be a program name with args.
6936 set dummy dirname; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_DIRNAME+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 case $DIRNAME in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6962 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6964 esac
6966 DIRNAME=$ac_cv_path_DIRNAME
6967 if test -n "$DIRNAME"; then
6968 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6969 echo "${ECHO_T}$DIRNAME" >&6; }
6970 else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "sh", so it can be a program name with args.
6977 set dummy sh; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_SHELL+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 case $SHELL in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7003 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7005 esac
7007 SHELL=$ac_cv_path_SHELL
7008 if test -n "$SHELL"; then
7009 { echo "$as_me:$LINENO: result: $SHELL" >&5
7010 echo "${ECHO_T}$SHELL" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "ln", so it can be a program name with args.
7018 set dummy ln; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_LN+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 case $LN in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7044 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7046 esac
7048 LN=$ac_cv_path_LN
7049 if test -n "$LN"; then
7050 { echo "$as_me:$LINENO: result: $LN" >&5
7051 echo "${ECHO_T}$LN" >&6; }
7052 else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "dot", so it can be a program name with args.
7059 set dummy dot; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_DOT+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 case $DOT in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7087 esac
7089 DOT=$ac_cv_path_DOT
7090 if test -n "$DOT"; then
7091 { echo "$as_me:$LINENO: result: $DOT" >&5
7092 echo "${ECHO_T}$DOT" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "wget", so it can be a program name with args.
7100 set dummy wget; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_WGET+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 case $WGET in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7126 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7128 esac
7130 WGET=$ac_cv_path_WGET
7131 if test -n "$WGET"; then
7132 { echo "$as_me:$LINENO: result: $WGET" >&5
7133 echo "${ECHO_T}$WGET" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 if test "${WGET}" != ":" ; then
7141 DOWNLOAD=${WGET}
7142 else
7143 # Extract the first word of "fetch", so it can be a program name with args.
7144 set dummy fetch; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_FETCH+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 case $FETCH in
7151 [\\/]* | ?:[\\/]*)
7152 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7168 IFS=$as_save_IFS
7170 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7172 esac
7174 FETCH=$ac_cv_path_FETCH
7175 if test -n "$FETCH"; then
7176 { echo "$as_me:$LINENO: result: $FETCH" >&5
7177 echo "${ECHO_T}$FETCH" >&6; }
7178 else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 DOWNLOAD=${FETCH}
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 if test -n "$SOXMIX"; then
7197 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 SOXMIX=$ac_cv_prog_SOXMIX
7217 if test -n "$SOXMIX"; then
7218 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7219 echo "${ECHO_T}$SOXMIX" >&6; }
7220 else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7227 if test -z "$ac_cv_prog_SOXMIX"; then
7228 ac_ct_SOXMIX=$SOXMIX
7229 # Extract the first word of "soxmix", so it can be a program name with args.
7230 set dummy soxmix; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 if test -n "$ac_ct_SOXMIX"; then
7237 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7257 if test -n "$ac_ct_SOXMIX"; then
7258 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7259 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7260 else
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7265 if test "x$ac_ct_SOXMIX" = x; then
7266 SOXMIX=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned=yes ;;
7277 esac
7278 SOXMIX=$ac_ct_SOXMIX
7280 else
7281 SOXMIX="$ac_cv_prog_SOXMIX"
7284 if test "${SOXMIX}" != ":" ; then
7286 cat >>confdefs.h <<\_ACEOF
7287 #define HAVE_SOXMIX 1
7288 _ACEOF
7295 ac_ext=c
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 acx_pthread_ok=no
7303 # We used to check for pthread.h first, but this fails if pthread.h
7304 # requires special compiler flags (e.g. on True64 or Sequent).
7305 # It gets checked for in the link test anyway.
7307 # First of all, check if the user has set any of the PTHREAD_LIBS,
7308 # etcetera environment variables, and if threads linking works using
7309 # them:
7310 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7311 save_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7313 save_LIBS="$LIBS"
7314 LIBS="$PTHREAD_LIBS $LIBS"
7315 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7316 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 char pthread_join ();
7332 main ()
7334 return pthread_join ();
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 acx_pthread_ok=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7368 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7369 if test x"$acx_pthread_ok" = xno; then
7370 PTHREAD_LIBS=""
7371 PTHREAD_CFLAGS=""
7373 LIBS="$save_LIBS"
7374 CFLAGS="$save_CFLAGS"
7377 # We must check for the threads library under a number of different
7378 # names; the ordering is very important because some systems
7379 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7380 # libraries is broken (non-POSIX).
7382 # Create a list of thread flags to try. Items starting with a "-" are
7383 # C compiler flags, and other items are library names, except for "none"
7384 # which indicates that we try without any flags at all, and "pthread-config"
7385 # which is a program returning the flags for the Pth emulation library.
7387 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7389 # The ordering *is* (sometimes) important. Some notes on the
7390 # individual items follow:
7392 # pthreads: AIX (must check this before -lpthread)
7393 # none: in case threads are in libc; should be tried before -Kthread and
7394 # other compiler flags to prevent continual compiler warnings
7395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7396 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7397 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7399 # -pthreads: Solaris/gcc
7400 # -mthreads: Mingw32/gcc, Lynx/gcc
7401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7402 # doesn't hurt to check since this sometimes defines pthreads too;
7403 # also defines -D_REENTRANT)
7404 # ... -mt is also the pthreads flag for HP/aCC
7405 # pthread: Linux, etcetera
7406 # --thread-safe: KAI C++
7407 # pthread-config: use pthread-config program (for GNU Pth library)
7409 case "${host_cpu}-${host_os}" in
7410 *solaris*)
7412 # On Solaris (at least, for some versions), libc contains stubbed
7413 # (non-functional) versions of the pthreads routines, so link-based
7414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7416 # a function called by this macro, so we could check for that, but
7417 # who knows whether they'll stub that too in a future libc.) So,
7418 # we'll just look for -pthreads and -lpthread first:
7420 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7422 esac
7424 if test x"$acx_pthread_ok" = xno; then
7425 for flag in $acx_pthread_flags; do
7427 case $flag in
7428 none)
7429 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7430 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7434 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7435 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7436 PTHREAD_CFLAGS="$flag"
7439 pthread-config)
7440 # Extract the first word of "pthread-config", so it can be a program name with args.
7441 set dummy pthread-config; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 if test -n "$acx_pthread_config"; then
7448 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_acx_pthread_config="yes"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7465 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7468 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7469 if test -n "$acx_pthread_config"; then
7470 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7471 echo "${ECHO_T}$acx_pthread_config" >&6; }
7472 else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test x"$acx_pthread_config" = xno; then continue; fi
7479 PTHREAD_CFLAGS="`pthread-config --cflags`"
7480 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7484 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7485 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7486 PTHREAD_LIBS="-l$flag"
7488 esac
7490 save_LIBS="$LIBS"
7491 save_CFLAGS="$CFLAGS"
7492 LIBS="$PTHREAD_LIBS $LIBS"
7493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7495 # Check for various functions. We must include pthread.h,
7496 # since some functions may be macros. (On the Sequent, we
7497 # need a special flag -Kthread to make this header compile.)
7498 # We check for pthread_join because it is in -lpthread on IRIX
7499 # while pthread_create is in libc. We check for pthread_attr_init
7500 # due to DEC craziness with -lpthreads. We check for
7501 # pthread_cleanup_push because it is one of the few pthread
7502 # functions on Solaris that doesn't have a non-functional libc stub.
7503 # We try pthread_create on general principles.
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <pthread.h>
7512 main ()
7514 pthread_t th; pthread_join(th, 0);
7515 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7516 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest$ac_exeext &&
7538 $as_test_x conftest$ac_exeext; then
7539 acx_pthread_ok=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7550 LIBS="$save_LIBS"
7551 CFLAGS="$save_CFLAGS"
7553 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7554 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7555 if test "x$acx_pthread_ok" = xyes; then
7556 break;
7559 PTHREAD_LIBS=""
7560 PTHREAD_CFLAGS=""
7561 done
7564 # Various other checks:
7565 if test "x$acx_pthread_ok" = xyes; then
7566 save_LIBS="$LIBS"
7567 LIBS="$PTHREAD_LIBS $LIBS"
7568 save_CFLAGS="$CFLAGS"
7569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7571 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7572 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7573 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7574 attr_name=unknown
7575 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <pthread.h>
7584 main ()
7586 int attr=$attr; return attr;
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 attr_name=$attr; break
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7619 done
7620 { echo "$as_me:$LINENO: result: $attr_name" >&5
7621 echo "${ECHO_T}$attr_name" >&6; }
7622 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define PTHREAD_CREATE_JOINABLE $attr_name
7626 _ACEOF
7630 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7631 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7632 flag=no
7633 case "${host_cpu}-${host_os}" in
7634 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7635 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7636 esac
7637 { echo "$as_me:$LINENO: result: ${flag}" >&5
7638 echo "${ECHO_T}${flag}" >&6; }
7639 if test "x$flag" != xno; then
7640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7643 LIBS="$save_LIBS"
7644 CFLAGS="$save_CFLAGS"
7646 # More AIX lossage: must compile with xlc_r or cc_r
7647 if test x"$GCC" != xyes; then
7648 for ac_prog in xlc_r cc_r
7650 # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 if test -n "$PTHREAD_CC"; then
7658 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_PTHREAD_CC="$ac_prog"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7678 if test -n "$PTHREAD_CC"; then
7679 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7680 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7681 else
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 test -n "$PTHREAD_CC" && break
7688 done
7689 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7691 else
7692 PTHREAD_CC=$CC
7694 else
7695 PTHREAD_CC="$CC"
7702 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7703 if test x"$acx_pthread_ok" = xyes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PTHREAD 1
7707 _ACEOF
7710 else
7711 acx_pthread_ok=no
7714 ac_ext=c
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 ac_ext=c
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 # Check whether --enable-dev-mode was given.
7730 if test "${enable_dev_mode+set}" = set; then
7731 enableval=$enable_dev_mode; case "${enableval}" in
7732 y|ye|yes) AST_DEVMODE=yes ;;
7733 n|no) AST_DEVMODE=no ;;
7734 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7735 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7737 esac
7742 # package option names should be in alphabetical order
7743 # by the --with option name, to make things easier for the users :-)
7746 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7747 ALSA_OPTION="asound"
7749 # Check whether --with-asound was given.
7750 if test "${with_asound+set}" = set; then
7751 withval=$with_asound;
7752 case ${withval} in
7753 n|no)
7754 USE_ALSA=no
7756 y|ye|yes)
7757 ALSA_MANDATORY="yes"
7760 ALSA_DIR="${withval}"
7761 ALSA_MANDATORY="yes"
7763 esac
7767 PBX_ALSA=0
7774 CURL_DESCRIP="cURL"
7775 CURL_OPTION="curl"
7777 # Check whether --with-curl was given.
7778 if test "${with_curl+set}" = set; then
7779 withval=$with_curl;
7780 case ${withval} in
7781 n|no)
7782 USE_CURL=no
7784 y|ye|yes)
7785 CURL_MANDATORY="yes"
7788 CURL_DIR="${withval}"
7789 CURL_MANDATORY="yes"
7791 esac
7795 PBX_CURL=0
7802 CAP_DESCRIP="POSIX 1.e capabilities"
7803 CAP_OPTION="cap"
7805 # Check whether --with-cap was given.
7806 if test "${with_cap+set}" = set; then
7807 withval=$with_cap;
7808 case ${withval} in
7809 n|no)
7810 USE_CAP=no
7812 y|ye|yes)
7813 CAP_MANDATORY="yes"
7816 CAP_DIR="${withval}"
7817 CAP_MANDATORY="yes"
7819 esac
7823 PBX_CAP=0
7830 CURSES_DESCRIP="curses"
7831 CURSES_OPTION="curses"
7833 # Check whether --with-curses was given.
7834 if test "${with_curses+set}" = set; then
7835 withval=$with_curses;
7836 case ${withval} in
7837 n|no)
7838 USE_CURSES=no
7840 y|ye|yes)
7841 CURSES_MANDATORY="yes"
7844 CURSES_DIR="${withval}"
7845 CURSES_MANDATORY="yes"
7847 esac
7851 PBX_CURSES=0
7858 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7859 GNUTLS_OPTION="gnutls"
7861 # Check whether --with-gnutls was given.
7862 if test "${with_gnutls+set}" = set; then
7863 withval=$with_gnutls;
7864 case ${withval} in
7865 n|no)
7866 USE_GNUTLS=no
7868 y|ye|yes)
7869 GNUTLS_MANDATORY="yes"
7872 GNUTLS_DIR="${withval}"
7873 GNUTLS_MANDATORY="yes"
7875 esac
7879 PBX_GNUTLS=0
7886 GSM_DESCRIP="GSM"
7887 GSM_OPTION="gsm"
7889 # Check whether --with-gsm was given.
7890 if test "${with_gsm+set}" = set; then
7891 withval=$with_gsm;
7892 case ${withval} in
7893 n|no)
7894 USE_GSM=no
7896 y|ye|yes)
7897 GSM_MANDATORY="yes"
7900 GSM_DIR="${withval}"
7901 GSM_MANDATORY="yes"
7903 esac
7907 PBX_GSM=0
7914 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7915 IKSEMEL_OPTION="iksemel"
7917 # Check whether --with-iksemel was given.
7918 if test "${with_iksemel+set}" = set; then
7919 withval=$with_iksemel;
7920 case ${withval} in
7921 n|no)
7922 USE_IKSEMEL=no
7924 y|ye|yes)
7925 IKSEMEL_MANDATORY="yes"
7928 IKSEMEL_DIR="${withval}"
7929 IKSEMEL_MANDATORY="yes"
7931 esac
7935 PBX_IKSEMEL=0
7942 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7943 IMAP_TK_OPTION="imap"
7945 # Check whether --with-imap was given.
7946 if test "${with_imap+set}" = set; then
7947 withval=$with_imap;
7948 case ${withval} in
7949 n|no)
7950 USE_IMAP_TK=no
7952 y|ye|yes)
7953 IMAP_TK_MANDATORY="yes"
7956 IMAP_TK_DIR="${withval}"
7957 IMAP_TK_MANDATORY="yes"
7959 esac
7963 PBX_IMAP_TK=0
7970 ISDNNET_DESCRIP="ISDN4Linux Library"
7971 ISDNNET_OPTION="isdnnet"
7973 # Check whether --with-isdnnet was given.
7974 if test "${with_isdnnet+set}" = set; then
7975 withval=$with_isdnnet;
7976 case ${withval} in
7977 n|no)
7978 USE_ISDNNET=no
7980 y|ye|yes)
7981 ISDNNET_MANDATORY="yes"
7984 ISDNNET_DIR="${withval}"
7985 ISDNNET_MANDATORY="yes"
7987 esac
7991 PBX_ISDNNET=0
7998 KDE_DESCRIP="KDE"
7999 KDE_OPTION="kde"
8001 # Check whether --with-kde was given.
8002 if test "${with_kde+set}" = set; then
8003 withval=$with_kde;
8004 case ${withval} in
8005 n|no)
8006 USE_KDE=no
8008 y|ye|yes)
8009 KDE_MANDATORY="yes"
8012 KDE_DIR="${withval}"
8013 KDE_MANDATORY="yes"
8015 esac
8019 PBX_KDE=0
8026 LTDL_DESCRIP="libtool"
8027 LTDL_OPTION="ltdl"
8029 # Check whether --with-ltdl was given.
8030 if test "${with_ltdl+set}" = set; then
8031 withval=$with_ltdl;
8032 case ${withval} in
8033 n|no)
8034 USE_LTDL=no
8036 y|ye|yes)
8037 LTDL_MANDATORY="yes"
8040 LTDL_DIR="${withval}"
8041 LTDL_MANDATORY="yes"
8043 esac
8047 PBX_LTDL=0
8054 MISDN_DESCRIP="mISDN User Library"
8055 MISDN_OPTION="misdn"
8057 # Check whether --with-misdn was given.
8058 if test "${with_misdn+set}" = set; then
8059 withval=$with_misdn;
8060 case ${withval} in
8061 n|no)
8062 USE_MISDN=no
8064 y|ye|yes)
8065 MISDN_MANDATORY="yes"
8068 MISDN_DIR="${withval}"
8069 MISDN_MANDATORY="yes"
8071 esac
8075 PBX_MISDN=0
8082 NBS_DESCRIP="Network Broadcast Sound"
8083 NBS_OPTION="nbs"
8085 # Check whether --with-nbs was given.
8086 if test "${with_nbs+set}" = set; then
8087 withval=$with_nbs;
8088 case ${withval} in
8089 n|no)
8090 USE_NBS=no
8092 y|ye|yes)
8093 NBS_MANDATORY="yes"
8096 NBS_DIR="${withval}"
8097 NBS_MANDATORY="yes"
8099 esac
8103 PBX_NBS=0
8110 NCURSES_DESCRIP="ncurses"
8111 NCURSES_OPTION="ncurses"
8113 # Check whether --with-ncurses was given.
8114 if test "${with_ncurses+set}" = set; then
8115 withval=$with_ncurses;
8116 case ${withval} in
8117 n|no)
8118 USE_NCURSES=no
8120 y|ye|yes)
8121 NCURSES_MANDATORY="yes"
8124 NCURSES_DIR="${withval}"
8125 NCURSES_MANDATORY="yes"
8127 esac
8131 PBX_NCURSES=0
8138 NETSNMP_DESCRIP="Net-SNMP"
8139 NETSNMP_OPTION="netsnmp"
8141 # Check whether --with-netsnmp was given.
8142 if test "${with_netsnmp+set}" = set; then
8143 withval=$with_netsnmp;
8144 case ${withval} in
8145 n|no)
8146 USE_NETSNMP=no
8148 y|ye|yes)
8149 NETSNMP_MANDATORY="yes"
8152 NETSNMP_DIR="${withval}"
8153 NETSNMP_MANDATORY="yes"
8155 esac
8159 PBX_NETSNMP=0
8166 NEWT_DESCRIP="newt"
8167 NEWT_OPTION="newt"
8169 # Check whether --with-newt was given.
8170 if test "${with_newt+set}" = set; then
8171 withval=$with_newt;
8172 case ${withval} in
8173 n|no)
8174 USE_NEWT=no
8176 y|ye|yes)
8177 NEWT_MANDATORY="yes"
8180 NEWT_DIR="${withval}"
8181 NEWT_MANDATORY="yes"
8183 esac
8187 PBX_NEWT=0
8194 UNIXODBC_DESCRIP="unixODBC"
8195 UNIXODBC_OPTION="odbc"
8197 # Check whether --with-odbc was given.
8198 if test "${with_odbc+set}" = set; then
8199 withval=$with_odbc;
8200 case ${withval} in
8201 n|no)
8202 USE_UNIXODBC=no
8204 y|ye|yes)
8205 UNIXODBC_MANDATORY="yes"
8208 UNIXODBC_DIR="${withval}"
8209 UNIXODBC_MANDATORY="yes"
8211 esac
8215 PBX_UNIXODBC=0
8222 OGG_DESCRIP="OGG"
8223 OGG_OPTION="ogg"
8225 # Check whether --with-ogg was given.
8226 if test "${with_ogg+set}" = set; then
8227 withval=$with_ogg;
8228 case ${withval} in
8229 n|no)
8230 USE_OGG=no
8232 y|ye|yes)
8233 OGG_MANDATORY="yes"
8236 OGG_DIR="${withval}"
8237 OGG_MANDATORY="yes"
8239 esac
8243 PBX_OGG=0
8250 OSPTK_DESCRIP="OSP Toolkit"
8251 OSPTK_OPTION="osptk"
8253 # Check whether --with-osptk was given.
8254 if test "${with_osptk+set}" = set; then
8255 withval=$with_osptk;
8256 case ${withval} in
8257 n|no)
8258 USE_OSPTK=no
8260 y|ye|yes)
8261 OSPTK_MANDATORY="yes"
8264 OSPTK_DIR="${withval}"
8265 OSPTK_MANDATORY="yes"
8267 esac
8271 PBX_OSPTK=0
8278 OSS_DESCRIP="Open Sound System"
8279 OSS_OPTION="oss"
8281 # Check whether --with-oss was given.
8282 if test "${with_oss+set}" = set; then
8283 withval=$with_oss;
8284 case ${withval} in
8285 n|no)
8286 USE_OSS=no
8288 y|ye|yes)
8289 OSS_MANDATORY="yes"
8292 OSS_DIR="${withval}"
8293 OSS_MANDATORY="yes"
8295 esac
8299 PBX_OSS=0
8306 POPT_DESCRIP="popt"
8307 POPT_OPTION="popt"
8309 # Check whether --with-popt was given.
8310 if test "${with_popt+set}" = set; then
8311 withval=$with_popt;
8312 case ${withval} in
8313 n|no)
8314 USE_POPT=no
8316 y|ye|yes)
8317 POPT_MANDATORY="yes"
8320 POPT_DIR="${withval}"
8321 POPT_MANDATORY="yes"
8323 esac
8327 PBX_POPT=0
8334 PGSQL_DESCRIP="PostgreSQL"
8335 PGSQL_OPTION="postgres"
8337 # Check whether --with-postgres was given.
8338 if test "${with_postgres+set}" = set; then
8339 withval=$with_postgres;
8340 case ${withval} in
8341 n|no)
8342 USE_PGSQL=no
8344 y|ye|yes)
8345 PGSQL_MANDATORY="yes"
8348 PGSQL_DIR="${withval}"
8349 PGSQL_MANDATORY="yes"
8351 esac
8355 PBX_PGSQL=0
8362 PRI_DESCRIP="ISDN PRI"
8363 PRI_OPTION="pri"
8365 # Check whether --with-pri was given.
8366 if test "${with_pri+set}" = set; then
8367 withval=$with_pri;
8368 case ${withval} in
8369 n|no)
8370 USE_PRI=no
8372 y|ye|yes)
8373 PRI_MANDATORY="yes"
8376 PRI_DIR="${withval}"
8377 PRI_MANDATORY="yes"
8379 esac
8383 PBX_PRI=0
8390 PWLIB_DESCRIP="PWlib"
8391 PWLIB_OPTION="pwlib"
8393 # Check whether --with-pwlib was given.
8394 if test "${with_pwlib+set}" = set; then
8395 withval=$with_pwlib;
8396 case ${withval} in
8397 n|no)
8398 USE_PWLIB=no
8400 y|ye|yes)
8401 PWLIB_MANDATORY="yes"
8404 PWLIB_DIR="${withval}"
8405 PWLIB_MANDATORY="yes"
8407 esac
8411 PBX_PWLIB=0
8418 OPENH323_DESCRIP="OpenH323"
8419 OPENH323_OPTION="h323"
8421 # Check whether --with-h323 was given.
8422 if test "${with_h323+set}" = set; then
8423 withval=$with_h323;
8424 case ${withval} in
8425 n|no)
8426 USE_OPENH323=no
8428 y|ye|yes)
8429 OPENH323_MANDATORY="yes"
8432 OPENH323_DIR="${withval}"
8433 OPENH323_MANDATORY="yes"
8435 esac
8439 PBX_OPENH323=0
8446 RADIUS_DESCRIP="Radius Client"
8447 RADIUS_OPTION="radius"
8449 # Check whether --with-radius was given.
8450 if test "${with_radius+set}" = set; then
8451 withval=$with_radius;
8452 case ${withval} in
8453 n|no)
8454 USE_RADIUS=no
8456 y|ye|yes)
8457 RADIUS_MANDATORY="yes"
8460 RADIUS_DIR="${withval}"
8461 RADIUS_MANDATORY="yes"
8463 esac
8467 PBX_RADIUS=0
8474 SPEEX_DESCRIP="Speex"
8475 SPEEX_OPTION="speex"
8477 # Check whether --with-speex was given.
8478 if test "${with_speex+set}" = set; then
8479 withval=$with_speex;
8480 case ${withval} in
8481 n|no)
8482 USE_SPEEX=no
8484 y|ye|yes)
8485 SPEEX_MANDATORY="yes"
8488 SPEEX_DIR="${withval}"
8489 SPEEX_MANDATORY="yes"
8491 esac
8495 PBX_SPEEX=0
8502 SPEEXDSP_DESCRIP="Speexdsp"
8503 SPEEXDSP_OPTION="speexdsp"
8505 # Check whether --with-speexdsp was given.
8506 if test "${with_speexdsp+set}" = set; then
8507 withval=$with_speexdsp;
8508 case ${withval} in
8509 n|no)
8510 USE_SPEEXDSP=no
8512 y|ye|yes)
8513 SPEEXDSP_MANDATORY="yes"
8516 SPEEXDSP_DIR="${withval}"
8517 SPEEXDSP_MANDATORY="yes"
8519 esac
8523 PBX_SPEEXDSP=0
8530 SQLITE_DESCRIP="SQLite"
8531 SQLITE_OPTION="sqlite"
8533 # Check whether --with-sqlite was given.
8534 if test "${with_sqlite+set}" = set; then
8535 withval=$with_sqlite;
8536 case ${withval} in
8537 n|no)
8538 USE_SQLITE=no
8540 y|ye|yes)
8541 SQLITE_MANDATORY="yes"
8544 SQLITE_DIR="${withval}"
8545 SQLITE_MANDATORY="yes"
8547 esac
8551 PBX_SQLITE=0
8558 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8559 SUPPSERV_OPTION="suppserv"
8561 # Check whether --with-suppserv was given.
8562 if test "${with_suppserv+set}" = set; then
8563 withval=$with_suppserv;
8564 case ${withval} in
8565 n|no)
8566 USE_SUPPSERV=no
8568 y|ye|yes)
8569 SUPPSERV_MANDATORY="yes"
8572 SUPPSERV_DIR="${withval}"
8573 SUPPSERV_MANDATORY="yes"
8575 esac
8579 PBX_SUPPSERV=0
8586 OPENSSL_DESCRIP="OpenSSL"
8587 OPENSSL_OPTION="ssl"
8589 # Check whether --with-ssl was given.
8590 if test "${with_ssl+set}" = set; then
8591 withval=$with_ssl;
8592 case ${withval} in
8593 n|no)
8594 USE_OPENSSL=no
8596 y|ye|yes)
8597 OPENSSL_MANDATORY="yes"
8600 OPENSSL_DIR="${withval}"
8601 OPENSSL_MANDATORY="yes"
8603 esac
8607 PBX_OPENSSL=0
8614 FREETDS_DESCRIP="FreeTDS"
8615 FREETDS_OPTION="tds"
8617 # Check whether --with-tds was given.
8618 if test "${with_tds+set}" = set; then
8619 withval=$with_tds;
8620 case ${withval} in
8621 n|no)
8622 USE_FREETDS=no
8624 y|ye|yes)
8625 FREETDS_MANDATORY="yes"
8628 FREETDS_DIR="${withval}"
8629 FREETDS_MANDATORY="yes"
8631 esac
8635 PBX_FREETDS=0
8642 TERMCAP_DESCRIP="Termcap"
8643 TERMCAP_OPTION="termcap"
8645 # Check whether --with-termcap was given.
8646 if test "${with_termcap+set}" = set; then
8647 withval=$with_termcap;
8648 case ${withval} in
8649 n|no)
8650 USE_TERMCAP=no
8652 y|ye|yes)
8653 TERMCAP_MANDATORY="yes"
8656 TERMCAP_DIR="${withval}"
8657 TERMCAP_MANDATORY="yes"
8659 esac
8663 PBX_TERMCAP=0
8670 TINFO_DESCRIP="Term Info"
8671 TINFO_OPTION="tinfo"
8673 # Check whether --with-tinfo was given.
8674 if test "${with_tinfo+set}" = set; then
8675 withval=$with_tinfo;
8676 case ${withval} in
8677 n|no)
8678 USE_TINFO=no
8680 y|ye|yes)
8681 TINFO_MANDATORY="yes"
8684 TINFO_DIR="${withval}"
8685 TINFO_MANDATORY="yes"
8687 esac
8691 PBX_TINFO=0
8698 TONEZONE_DESCRIP="tonezone"
8699 TONEZONE_OPTION="tonezone"
8701 # Check whether --with-tonezone was given.
8702 if test "${with_tonezone+set}" = set; then
8703 withval=$with_tonezone;
8704 case ${withval} in
8705 n|no)
8706 USE_TONEZONE=no
8708 y|ye|yes)
8709 TONEZONE_MANDATORY="yes"
8712 TONEZONE_DIR="${withval}"
8713 TONEZONE_MANDATORY="yes"
8715 esac
8719 PBX_TONEZONE=0
8726 USB_DESCRIP="usb"
8727 USB_OPTION="usb"
8729 # Check whether --with-usb was given.
8730 if test "${with_usb+set}" = set; then
8731 withval=$with_usb;
8732 case ${withval} in
8733 n|no)
8734 USE_USB=no
8736 y|ye|yes)
8737 USB_MANDATORY="yes"
8740 USB_DIR="${withval}"
8741 USB_MANDATORY="yes"
8743 esac
8747 PBX_USB=0
8754 VORBIS_DESCRIP="Vorbis"
8755 VORBIS_OPTION="vorbis"
8757 # Check whether --with-vorbis was given.
8758 if test "${with_vorbis+set}" = set; then
8759 withval=$with_vorbis;
8760 case ${withval} in
8761 n|no)
8762 USE_VORBIS=no
8764 y|ye|yes)
8765 VORBIS_MANDATORY="yes"
8768 VORBIS_DIR="${withval}"
8769 VORBIS_MANDATORY="yes"
8771 esac
8775 PBX_VORBIS=0
8782 VPB_DESCRIP="Voicetronix API"
8783 VPB_OPTION="vpb"
8785 # Check whether --with-vpb was given.
8786 if test "${with_vpb+set}" = set; then
8787 withval=$with_vpb;
8788 case ${withval} in
8789 n|no)
8790 USE_VPB=no
8792 y|ye|yes)
8793 VPB_MANDATORY="yes"
8796 VPB_DIR="${withval}"
8797 VPB_MANDATORY="yes"
8799 esac
8803 PBX_VPB=0
8810 ZLIB_DESCRIP="zlib"
8811 ZLIB_OPTION="z"
8813 # Check whether --with-z was given.
8814 if test "${with_z+set}" = set; then
8815 withval=$with_z;
8816 case ${withval} in
8817 n|no)
8818 USE_ZLIB=no
8820 y|ye|yes)
8821 ZLIB_MANDATORY="yes"
8824 ZLIB_DIR="${withval}"
8825 ZLIB_MANDATORY="yes"
8827 esac
8831 PBX_ZLIB=0
8838 ZAPTEL_DESCRIP="Zaptel"
8839 ZAPTEL_OPTION="zaptel"
8841 # Check whether --with-zaptel was given.
8842 if test "${with_zaptel+set}" = set; then
8843 withval=$with_zaptel;
8844 case ${withval} in
8845 n|no)
8846 USE_ZAPTEL=no
8848 y|ye|yes)
8849 ZAPTEL_MANDATORY="yes"
8852 ZAPTEL_DIR="${withval}"
8853 ZAPTEL_MANDATORY="yes"
8855 esac
8859 PBX_ZAPTEL=0
8866 # check for basic system features and functionality before
8867 # checking for package libraries
8869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8870 # for constant arguments. Useless!
8871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8873 if test "${ac_cv_working_alloca_h+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h. */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 #include <alloca.h>
8884 main ()
8886 char *p = (char *) alloca (2 * sizeof (int));
8887 if (p) return 0;
8889 return 0;
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (ac_try="$ac_link"
8894 case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_link") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest$ac_exeext &&
8909 $as_test_x conftest$ac_exeext; then
8910 ac_cv_working_alloca_h=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_cv_working_alloca_h=no
8918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8919 conftest$ac_exeext conftest.$ac_ext
8921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8923 if test $ac_cv_working_alloca_h = yes; then
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_ALLOCA_H 1
8927 _ACEOF
8931 { echo "$as_me:$LINENO: checking for alloca" >&5
8932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_alloca_works+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 #ifdef __GNUC__
8943 # define alloca __builtin_alloca
8944 #else
8945 # ifdef _MSC_VER
8946 # include <malloc.h>
8947 # define alloca _alloca
8948 # else
8949 # ifdef HAVE_ALLOCA_H
8950 # include <alloca.h>
8951 # else
8952 # ifdef _AIX
8953 #pragma alloca
8954 # else
8955 # ifndef alloca /* predefined by HP cc +Olibcalls */
8956 char *alloca ();
8957 # endif
8958 # endif
8959 # endif
8960 # endif
8961 #endif
8964 main ()
8966 char *p = (char *) alloca (1);
8967 if (p) return 0;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8974 case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_alloca_works=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_alloca_works=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9004 if test $ac_cv_func_alloca_works = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ALLOCA 1
9008 _ACEOF
9010 else
9011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9012 # that cause trouble. Some versions do not even contain alloca or
9013 # contain a buggy version. If you still want to use their alloca,
9014 # use ar to extract alloca.o from them instead of compiling alloca.c.
9016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9018 cat >>confdefs.h <<\_ACEOF
9019 #define C_ALLOCA 1
9020 _ACEOF
9023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9025 if test "${ac_cv_os_cray+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #if defined CRAY && ! defined CRAY2
9035 webecray
9036 #else
9037 wenotbecray
9038 #endif
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "webecray" >/dev/null 2>&1; then
9043 ac_cv_os_cray=yes
9044 else
9045 ac_cv_os_cray=no
9047 rm -f conftest*
9050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9052 if test $ac_cv_os_cray = yes; then
9053 for ac_func in _getb67 GETB67 getb67; do
9054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h. */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9075 #ifdef __STDC__
9076 # include <limits.h>
9077 #else
9078 # include <assert.h>
9079 #endif
9081 #undef $ac_func
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char $ac_func ();
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_$ac_func || defined __stub___$ac_func
9094 choke me
9095 #endif
9098 main ()
9100 return $ac_func ();
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 eval "$as_ac_var=yes"
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no"
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9134 ac_res=`eval echo '${'$as_ac_var'}'`
9135 { echo "$as_me:$LINENO: result: $ac_res" >&5
9136 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9141 _ACEOF
9143 break
9146 done
9149 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9150 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9165 find_stack_direction ()
9167 static char *addr = 0;
9168 auto char dummy;
9169 if (addr == 0)
9171 addr = &dummy;
9172 return find_stack_direction ();
9174 else
9175 return (&dummy > addr) ? 1 : -1;
9179 main ()
9181 return find_stack_direction () < 0;
9183 _ACEOF
9184 rm -f conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9186 case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_stack_direction=1
9205 else
9206 echo "$as_me: program exited with status $ac_status" >&5
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 ( exit $ac_status )
9211 ac_cv_c_stack_direction=-1
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9221 cat >>confdefs.h <<_ACEOF
9222 #define STACK_DIRECTION $ac_cv_c_stack_direction
9223 _ACEOF
9233 ac_header_dirent=no
9234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9235 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9237 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9248 #include <$ac_hdr>
9251 main ()
9253 if ((DIR *) 0)
9254 return 0;
9256 return 0;
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9261 case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 eval "$as_ac_Header=yes"
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 eval "$as_ac_Header=no"
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_res=`eval echo '${'$as_ac_Header'}'`
9287 { echo "$as_me:$LINENO: result: $ac_res" >&5
9288 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9292 _ACEOF
9294 ac_header_dirent=$ac_hdr; break
9297 done
9298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9299 if test $ac_header_dirent = dirent.h; then
9300 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9302 if test "${ac_cv_search_opendir+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 ac_func_search_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any GCC internal prototype to avoid an error.
9314 Use char because int might match the return type of a GCC
9315 builtin and then its argument prototype would still apply. */
9316 #ifdef __cplusplus
9317 extern "C"
9318 #endif
9319 char opendir ();
9321 main ()
9323 return opendir ();
9325 return 0;
9327 _ACEOF
9328 for ac_lib in '' dir; do
9329 if test -z "$ac_lib"; then
9330 ac_res="none required"
9331 else
9332 ac_res=-l$ac_lib
9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest$ac_exeext &&
9352 $as_test_x conftest$ac_exeext; then
9353 ac_cv_search_opendir=$ac_res
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9362 conftest$ac_exeext
9363 if test "${ac_cv_search_opendir+set}" = set; then
9364 break
9366 done
9367 if test "${ac_cv_search_opendir+set}" = set; then
9369 else
9370 ac_cv_search_opendir=no
9372 rm conftest.$ac_ext
9373 LIBS=$ac_func_search_save_LIBS
9375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9377 ac_res=$ac_cv_search_opendir
9378 if test "$ac_res" != no; then
9379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9383 else
9384 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9386 if test "${ac_cv_search_opendir+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char opendir ();
9405 main ()
9407 return opendir ();
9409 return 0;
9411 _ACEOF
9412 for ac_lib in '' x; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required"
9415 else
9416 ac_res=-l$ac_lib
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_search_opendir=$ac_res
9438 else
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9446 conftest$ac_exeext
9447 if test "${ac_cv_search_opendir+set}" = set; then
9448 break
9450 done
9451 if test "${ac_cv_search_opendir+set}" = set; then
9453 else
9454 ac_cv_search_opendir=no
9456 rm conftest.$ac_ext
9457 LIBS=$ac_func_search_save_LIBS
9459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9469 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9470 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9471 if test "${ac_cv_header_stdc+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <stdlib.h>
9481 #include <stdarg.h>
9482 #include <string.h>
9483 #include <float.h>
9486 main ()
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_header_stdc=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_header_stdc=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test $ac_cv_header_stdc = yes; then
9521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <string.h>
9530 _ACEOF
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 $EGREP "memchr" >/dev/null 2>&1; then
9534 else
9535 ac_cv_header_stdc=no
9537 rm -f conftest*
9541 if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 #include <stdlib.h>
9551 _ACEOF
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 $EGREP "free" >/dev/null 2>&1; then
9555 else
9556 ac_cv_header_stdc=no
9558 rm -f conftest*
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <ctype.h>
9574 #include <stdlib.h>
9575 #if ((' ' & 0x0FF) == 0x020)
9576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9578 #else
9579 # define ISLOWER(c) \
9580 (('a' <= (c) && (c) <= 'i') \
9581 || ('j' <= (c) && (c) <= 'r') \
9582 || ('s' <= (c) && (c) <= 'z'))
9583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9584 #endif
9586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9588 main ()
9590 int i;
9591 for (i = 0; i < 256; i++)
9592 if (XOR (islower (i), ISLOWER (i))
9593 || toupper (i) != TOUPPER (i))
9594 return 2;
9595 return 0;
9597 _ACEOF
9598 rm -f conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9619 else
9620 echo "$as_me: program exited with status $ac_status" >&5
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ( exit $ac_status )
9625 ac_cv_header_stdc=no
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9635 if test $ac_cv_header_stdc = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define STDC_HEADERS 1
9639 _ACEOF
9643 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9644 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9645 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/wait.h>
9656 #ifndef WEXITSTATUS
9657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9658 #endif
9659 #ifndef WIFEXITED
9660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9661 #endif
9664 main ()
9666 int s;
9667 wait (&s);
9668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_cv_header_sys_wait_h=yes
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_header_sys_wait_h=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9702 if test $ac_cv_header_sys_wait_h = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SYS_WAIT_H 1
9706 _ACEOF
9733 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
9735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 ac_res=`eval echo '${'$as_ac_Header'}'`
9743 { echo "$as_me:$LINENO: result: $ac_res" >&5
9744 echo "${ECHO_T}$ac_res" >&6; }
9745 else
9746 # Is the header compilable?
9747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #include <$ac_header>
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_header_compiler=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_compiler=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9785 echo "${ECHO_T}$ac_header_compiler" >&6; }
9787 # Is the header present?
9788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h. */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <$ac_header>
9797 _ACEOF
9798 if { (ac_try="$ac_cpp conftest.$ac_ext"
9799 case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } >/dev/null && {
9811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 }; then
9814 ac_header_preproc=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9822 rm -f conftest.err conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9824 echo "${ECHO_T}$ac_header_preproc" >&6; }
9826 # So? What about this header?
9827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9828 yes:no: )
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9833 ac_header_preproc=yes
9835 no:yes:* )
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9848 ( cat <<\_ASBOX
9849 ## ------------------------------- ##
9850 ## Report this to www.asterisk.org ##
9851 ## ------------------------------- ##
9852 _ASBOX
9853 ) | sed "s/^/$as_me: WARNING: /" >&2
9855 esac
9856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 eval "$as_ac_Header=\$ac_header_preproc"
9863 ac_res=`eval echo '${'$as_ac_Header'}'`
9864 { echo "$as_me:$LINENO: result: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 _ACEOF
9875 done
9878 # Check whether --enable-largefile was given.
9879 if test "${enable_largefile+set}" = set; then
9880 enableval=$enable_largefile;
9883 if test "$enable_largefile" != no; then
9885 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9886 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9887 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 ac_cv_sys_largefile_CC=no
9891 if test "$GCC" != yes; then
9892 ac_save_CC=$CC
9893 while :; do
9894 # IRIX 6.2 and later do not support large files by default,
9895 # so use the C compiler's -n32 option if that helps.
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905 since some C++ compilers masquerading as C compilers
9906 incorrectly reject 9223372036854775807. */
9907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909 && LARGE_OFF_T % 2147483647 == 1)
9910 ? 1 : -1];
9912 main ()
9916 return 0;
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9936 break
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f core conftest.err conftest.$ac_objext
9945 CC="$CC -n32"
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_cv_sys_largefile_CC=' -n32'; break
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext
9972 break
9973 done
9974 CC=$ac_save_CC
9975 rm -f conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9980 if test "$ac_cv_sys_largefile_CC" != no; then
9981 CC=$CC$ac_cv_sys_largefile_CC
9984 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9985 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 while :; do
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10004 ? 1 : -1];
10006 main ()
10010 return 0;
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_sys_file_offset_bits=no; break
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #define _FILE_OFFSET_BITS 64
10046 #include <sys/types.h>
10047 /* Check that off_t can represent 2**63 - 1 correctly.
10048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10049 since some C++ compilers masquerading as C compilers
10050 incorrectly reject 9223372036854775807. */
10051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10053 && LARGE_OFF_T % 2147483647 == 1)
10054 ? 1 : -1];
10056 main ()
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_sys_file_offset_bits=64; break
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
10090 break
10091 done
10093 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10094 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10095 case $ac_cv_sys_file_offset_bits in #(
10096 no | unknown) ;;
10098 cat >>confdefs.h <<_ACEOF
10099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10100 _ACEOF
10102 esac
10103 rm -f conftest*
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
10105 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10106 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10107 if test "${ac_cv_sys_large_files+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 while :; do
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 /* Check that off_t can represent 2**63 - 1 correctly.
10119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10120 since some C++ compilers masquerading as C compilers
10121 incorrectly reject 9223372036854775807. */
10122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10124 && LARGE_OFF_T % 2147483647 == 1)
10125 ? 1 : -1];
10127 main ()
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_cv_sys_large_files=no; break
10152 else
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _LARGE_FILES 1
10167 #include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10175 ? 1 : -1];
10177 main ()
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_cv_sys_large_files=1; break
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 ac_cv_sys_large_files=unknown
10211 break
10212 done
10214 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10216 case $ac_cv_sys_large_files in #(
10217 no | unknown) ;;
10219 cat >>confdefs.h <<_ACEOF
10220 #define _LARGE_FILES $ac_cv_sys_large_files
10221 _ACEOF
10223 esac
10224 rm -f conftest*
10229 # Checks for typedefs, structures, and compiler characteristics.
10230 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10231 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10232 if test "${ac_cv_header_stdbool_h+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10242 #include <stdbool.h>
10243 #ifndef bool
10244 "error: bool is not defined"
10245 #endif
10246 #ifndef false
10247 "error: false is not defined"
10248 #endif
10249 #if false
10250 "error: false is not 0"
10251 #endif
10252 #ifndef true
10253 "error: true is not defined"
10254 #endif
10255 #if true != 1
10256 "error: true is not 1"
10257 #endif
10258 #ifndef __bool_true_false_are_defined
10259 "error: __bool_true_false_are_defined is not defined"
10260 #endif
10262 struct s { _Bool s: 1; _Bool t; } s;
10264 char a[true == 1 ? 1 : -1];
10265 char b[false == 0 ? 1 : -1];
10266 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10267 char d[(bool) 0.5 == true ? 1 : -1];
10268 bool e = &s;
10269 char f[(_Bool) 0.0 == false ? 1 : -1];
10270 char g[true];
10271 char h[sizeof (_Bool)];
10272 char i[sizeof s.t];
10273 enum { j = false, k = true, l = false * true, m = true * 256 };
10274 _Bool n[m];
10275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10277 # if defined __xlc__ || defined __GNUC__
10278 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10279 reported by James Lemley on 2005-10-05; see
10280 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10281 This test is not quite right, since xlc is allowed to
10282 reject this program, as the initializer for xlcbug is
10283 not one of the forms that C requires support for.
10284 However, doing the test right would require a runtime
10285 test, and that would make cross-compilation harder.
10286 Let us hope that IBM fixes the xlc bug, and also adds
10287 support for this kind of constant expression. In the
10288 meantime, this test will reject xlc, which is OK, since
10289 our stdbool.h substitute should suffice. We also test
10290 this with GCC, where it should work, to detect more
10291 quickly whether someone messes up the test in the
10292 future. */
10293 char digs[] = "0123456789";
10294 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10295 # endif
10296 /* Catch a bug in an HP-UX C compiler. See
10297 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10298 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10300 _Bool q = true;
10301 _Bool *pq = &q;
10304 main ()
10307 *pq |= q;
10308 *pq |= ! q;
10309 /* Refer to every declared value, to avoid compiler optimizations. */
10310 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10311 + !m + !n + !o + !p + !q + !pq);
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_compile") 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest.$ac_objext; then
10334 ac_cv_header_stdbool_h=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_stdbool_h=no
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10346 { echo "$as_me:$LINENO: checking for _Bool" >&5
10347 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10348 if test "${ac_cv_type__Bool+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef _Bool ac__type_new_;
10360 main ()
10362 if ((ac__type_new_ *) 0)
10363 return 0;
10364 if (sizeof (ac__type_new_))
10365 return 0;
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type__Bool=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type__Bool=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10398 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10399 if test $ac_cv_type__Bool = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE__BOOL 1
10403 _ACEOF
10408 if test $ac_cv_header_stdbool_h = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define HAVE_STDBOOL_H 1
10412 _ACEOF
10416 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10417 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10418 if test "${ac_cv_c_const+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10429 main ()
10431 /* FIXME: Include the comments suggested by Paul. */
10432 #ifndef __cplusplus
10433 /* Ultrix mips cc rejects this. */
10434 typedef int charset[2];
10435 const charset cs;
10436 /* SunOS 4.1.1 cc rejects this. */
10437 char const *const *pcpcc;
10438 char **ppc;
10439 /* NEC SVR4.0.2 mips cc rejects this. */
10440 struct point {int x, y;};
10441 static struct point const zero = {0,0};
10442 /* AIX XL C 1.02.0.0 rejects this.
10443 It does not let you subtract one const X* pointer from another in
10444 an arm of an if-expression whose if-part is not a constant
10445 expression */
10446 const char *g = "string";
10447 pcpcc = &g + (g ? g-g : 0);
10448 /* HPUX 7.0 cc rejects these. */
10449 ++pcpcc;
10450 ppc = (char**) pcpcc;
10451 pcpcc = (char const *const *) ppc;
10452 { /* SCO 3.2v4 cc rejects this. */
10453 char *t;
10454 char const *s = 0 ? (char *) 0 : (char const *) 0;
10456 *t++ = 0;
10457 if (s) return 0;
10459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10460 int x[] = {25, 17};
10461 const int *foo = &x[0];
10462 ++foo;
10464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10465 typedef const int *iptr;
10466 iptr p = 0;
10467 ++p;
10469 { /* AIX XL C 1.02.0.0 rejects this saying
10470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10471 struct s { int j; const int *ap[3]; };
10472 struct s *b; b->j = 5;
10474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10475 const int foo = 10;
10476 if (!foo) return 0;
10478 return !cs[0] && !zero.x;
10479 #endif
10482 return 0;
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 ac_cv_c_const=yes
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_c_const=no
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define const
10518 _ACEOF
10522 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10523 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10524 if test "${ac_cv_type_uid_t+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10535 _ACEOF
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "uid_t" >/dev/null 2>&1; then
10538 ac_cv_type_uid_t=yes
10539 else
10540 ac_cv_type_uid_t=no
10542 rm -f conftest*
10545 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10546 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10547 if test $ac_cv_type_uid_t = no; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define uid_t int
10551 _ACEOF
10554 cat >>confdefs.h <<\_ACEOF
10555 #define gid_t int
10556 _ACEOF
10560 { echo "$as_me:$LINENO: checking for inline" >&5
10561 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10562 if test "${ac_cv_c_inline+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 ac_cv_c_inline=no
10566 for ac_kw in inline __inline__ __inline; do
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h. */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #ifndef __cplusplus
10574 typedef int foo_t;
10575 static $ac_kw foo_t static_foo () {return 0; }
10576 $ac_kw foo_t foo () {return 0; }
10577 #endif
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_cv_c_inline=$ac_kw
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 test "$ac_cv_c_inline" != no && break
10607 done
10610 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10614 case $ac_cv_c_inline in
10615 inline | yes) ;;
10617 case $ac_cv_c_inline in
10618 no) ac_val=;;
10619 *) ac_val=$ac_cv_c_inline;;
10620 esac
10621 cat >>confdefs.h <<_ACEOF
10622 #ifndef __cplusplus
10623 #define inline $ac_val
10624 #endif
10625 _ACEOF
10627 esac
10629 { echo "$as_me:$LINENO: checking for mode_t" >&5
10630 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10631 if test "${ac_cv_type_mode_t+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef mode_t ac__type_new_;
10643 main ()
10645 if ((ac__type_new_ *) 0)
10646 return 0;
10647 if (sizeof (ac__type_new_))
10648 return 0;
10650 return 0;
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_cv_type_mode_t=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10682 if test $ac_cv_type_mode_t = yes; then
10684 else
10686 cat >>confdefs.h <<_ACEOF
10687 #define mode_t int
10688 _ACEOF
10692 { echo "$as_me:$LINENO: checking for off_t" >&5
10693 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10694 if test "${ac_cv_type_off_t+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 typedef off_t ac__type_new_;
10706 main ()
10708 if ((ac__type_new_ *) 0)
10709 return 0;
10710 if (sizeof (ac__type_new_))
10711 return 0;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_type_off_t=yes
10734 else
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_type_off_t=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10744 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10745 if test $ac_cv_type_off_t = yes; then
10747 else
10749 cat >>confdefs.h <<_ACEOF
10750 #define off_t long int
10751 _ACEOF
10755 { echo "$as_me:$LINENO: checking for pid_t" >&5
10756 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10757 if test "${ac_cv_type_pid_t+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_new_;
10769 main ()
10771 if ((ac__type_new_ *) 0)
10772 return 0;
10773 if (sizeof (ac__type_new_))
10774 return 0;
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_type_pid_t=yes
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_type_pid_t=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10808 if test $ac_cv_type_pid_t = yes; then
10810 else
10812 cat >>confdefs.h <<_ACEOF
10813 #define pid_t int
10814 _ACEOF
10818 { echo "$as_me:$LINENO: checking for size_t" >&5
10819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10820 if test "${ac_cv_type_size_t+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h. */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 typedef size_t ac__type_new_;
10832 main ()
10834 if ((ac__type_new_ *) 0)
10835 return 0;
10836 if (sizeof (ac__type_new_))
10837 return 0;
10839 return 0;
10841 _ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (ac_try="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_size_t=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_size_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10871 if test $ac_cv_type_size_t = yes; then
10873 else
10875 cat >>confdefs.h <<_ACEOF
10876 #define size_t unsigned int
10877 _ACEOF
10881 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10882 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10894 main ()
10896 static struct stat ac_aggr;
10897 if (ac_aggr.st_blksize)
10898 return 0;
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_blksize=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
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. */
10931 $ac_includes_default
10933 main ()
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_blksize)
10937 return 0;
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_cv_member_struct_stat_st_blksize=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_member_struct_stat_st_blksize=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10974 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10978 _ACEOF
10983 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
10996 #include <time.h>
10999 main ()
11001 if ((struct tm *) 0)
11002 return 0;
11004 return 0;
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_cv_header_time=yes
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_header_time=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11036 if test $ac_cv_header_time = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TIME_WITH_SYS_TIME 1
11040 _ACEOF
11044 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11045 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11046 if test "${ac_cv_struct_tm+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <sys/types.h>
11056 #include <time.h>
11059 main ()
11061 struct tm tm;
11062 int *p = &tm.tm_sec;
11063 return !p;
11065 return 0;
11067 _ACEOF
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 ac_cv_struct_tm=time.h
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_struct_tm=sys/time.h
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11096 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11097 if test $ac_cv_struct_tm = sys/time.h; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define TM_IN_SYS_TIME 1
11101 _ACEOF
11105 { echo "$as_me:$LINENO: checking for working volatile" >&5
11106 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11107 if test "${ac_cv_c_volatile+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11118 main ()
11121 volatile int x;
11122 int * volatile y = (int *) 0;
11123 return !x && !y;
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_cv_c_volatile=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_c_volatile=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11156 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11157 if test $ac_cv_c_volatile = no; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define volatile
11161 _ACEOF
11165 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 typedef ptrdiff_t ac__type_new_;
11179 main ()
11181 if ((ac__type_new_ *) 0)
11182 return 0;
11183 if (sizeof (ac__type_new_))
11184 return 0;
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11206 ac_cv_type_ptrdiff_t=yes
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_ptrdiff_t=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11218 if test $ac_cv_type_ptrdiff_t = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_PTRDIFF_T 1
11222 _ACEOF
11228 # Checks for library functions.
11230 for ac_header in unistd.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_header_compiler=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_compiler=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284 # Is the header present?
11285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11294 _ACEOF
11295 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } >/dev/null && {
11308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 }; then
11311 ac_header_preproc=yes
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11319 rm -f conftest.err conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11325 yes:no: )
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11330 ac_header_preproc=yes
11332 no:yes:* )
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345 ( cat <<\_ASBOX
11346 ## ------------------------------- ##
11347 ## Report this to www.asterisk.org ##
11348 ## ------------------------------- ##
11349 _ASBOX
11350 ) | sed "s/^/$as_me: WARNING: /" >&2
11352 esac
11353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 eval "$as_ac_Header=\$ac_header_preproc"
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368 _ACEOF
11372 done
11374 { echo "$as_me:$LINENO: checking for working chown" >&5
11375 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11376 if test "${ac_cv_func_chown_works+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 if test "$cross_compiling" = yes; then
11380 ac_cv_func_chown_works=no
11381 else
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <fcntl.h>
11392 main ()
11394 char *f = "conftest.chown";
11395 struct stat before, after;
11397 if (creat (f, 0600) < 0)
11398 return 1;
11399 if (stat (f, &before) < 0)
11400 return 1;
11401 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11402 return 1;
11403 if (stat (f, &after) < 0)
11404 return 1;
11405 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11408 return 0;
11410 _ACEOF
11411 rm -f conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_try") 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_func_chown_works=yes
11432 else
11433 echo "$as_me: program exited with status $ac_status" >&5
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ( exit $ac_status )
11438 ac_cv_func_chown_works=no
11440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444 rm -f conftest.chown
11447 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11449 if test $ac_cv_func_chown_works = yes; then
11451 cat >>confdefs.h <<\_ACEOF
11452 #define HAVE_CHOWN 1
11453 _ACEOF
11457 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11458 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11459 if test "${ac_cv_func_closedir_void+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_func_closedir_void=yes
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header_dirent>
11473 #ifndef __cplusplus
11474 int closedir ();
11475 #endif
11478 main ()
11480 return closedir (opendir (".")) != 0;
11482 return 0;
11484 _ACEOF
11485 rm -f conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_func_closedir_void=no
11506 else
11507 echo "$as_me: program exited with status $ac_status" >&5
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ( exit $ac_status )
11512 ac_cv_func_closedir_void=yes
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11521 if test $ac_cv_func_closedir_void = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define CLOSEDIR_VOID 1
11525 _ACEOF
11529 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11530 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11531 if test "${ac_cv_lib_error_at_line+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 #include <error.h>
11542 main ()
11544 error_at_line (0, 0, "", 0, "an error occurred");
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_error_at_line=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_error_at_line=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11580 if test $ac_cv_lib_error_at_line = no; then
11581 case " $LIBOBJS " in
11582 *" error.$ac_objext "* ) ;;
11583 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11585 esac
11590 for ac_header in vfork.h
11592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602 else
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 }; then
11671 ac_header_preproc=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705 ( cat <<\_ASBOX
11706 ## ------------------------------- ##
11707 ## Report this to www.asterisk.org ##
11708 ## ------------------------------- ##
11709 _ASBOX
11710 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 esac
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 eval "$as_ac_Header=\$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 _ACEOF
11732 done
11736 for ac_func in fork vfork
11738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11759 #ifdef __STDC__
11760 # include <limits.h>
11761 #else
11762 # include <assert.h>
11763 #endif
11765 #undef $ac_func
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char $ac_func ();
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11778 choke me
11779 #endif
11782 main ()
11784 return $ac_func ();
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 _ACEOF
11827 done
11829 if test "x$ac_cv_func_fork" = xyes; then
11830 { echo "$as_me:$LINENO: checking for working fork" >&5
11831 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11832 if test "${ac_cv_func_fork_works+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 if test "$cross_compiling" = yes; then
11836 ac_cv_func_fork_works=cross
11837 else
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h. */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11846 main ()
11849 /* By Ruediger Kuhlmann. */
11850 return fork () < 0;
11853 return 0;
11855 _ACEOF
11856 rm -f conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_fork_works=yes
11877 else
11878 echo "$as_me: program exited with status $ac_status" >&5
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ( exit $ac_status )
11883 ac_cv_func_fork_works=no
11885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11893 else
11894 ac_cv_func_fork_works=$ac_cv_func_fork
11896 if test "x$ac_cv_func_fork_works" = xcross; then
11897 case $host in
11898 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11899 # Override, as these systems have only a dummy fork() stub
11900 ac_cv_func_fork_works=no
11903 ac_cv_func_fork_works=yes
11905 esac
11906 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11907 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11909 ac_cv_func_vfork_works=$ac_cv_func_vfork
11910 if test "x$ac_cv_func_vfork" = xyes; then
11911 { echo "$as_me:$LINENO: checking for working vfork" >&5
11912 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11913 if test "${ac_cv_func_vfork_works+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_vfork_works=cross
11918 else
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Thanks to Paul Eggert for this test. */
11926 $ac_includes_default
11927 #include <sys/wait.h>
11928 #ifdef HAVE_VFORK_H
11929 # include <vfork.h>
11930 #endif
11931 /* On some sparc systems, changes by the child to local and incoming
11932 argument registers are propagated back to the parent. The compiler
11933 is told about this with #include <vfork.h>, but some compilers
11934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11935 static variable whose address is put into a register that is
11936 clobbered by the vfork. */
11937 static void
11938 #ifdef __cplusplus
11939 sparc_address_test (int arg)
11940 # else
11941 sparc_address_test (arg) int arg;
11942 #endif
11944 static pid_t child;
11945 if (!child) {
11946 child = vfork ();
11947 if (child < 0) {
11948 perror ("vfork");
11949 _exit(2);
11951 if (!child) {
11952 arg = getpid();
11953 write(-1, "", 0);
11954 _exit (arg);
11960 main ()
11962 pid_t parent = getpid ();
11963 pid_t child;
11965 sparc_address_test (0);
11967 child = vfork ();
11969 if (child == 0) {
11970 /* Here is another test for sparc vfork register problems. This
11971 test uses lots of local variables, at least as many local
11972 variables as main has allocated so far including compiler
11973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11975 reuse the register of parent for one of the local variables,
11976 since it will think that parent can't possibly be used any more
11977 in this routine. Assigning to the local variable will thus
11978 munge parent in the parent process. */
11979 pid_t
11980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11982 /* Convince the compiler that p..p7 are live; otherwise, it might
11983 use the same hardware register for all 8 local variables. */
11984 if (p != p1 || p != p2 || p != p3 || p != p4
11985 || p != p5 || p != p6 || p != p7)
11986 _exit(1);
11988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11989 from child file descriptors. If the child closes a descriptor
11990 before it execs or exits, this munges the parent's descriptor
11991 as well. Test for this by closing stdout in the child. */
11992 _exit(close(fileno(stdout)) != 0);
11993 } else {
11994 int status;
11995 struct stat st;
11997 while (wait(&status) != child)
11999 return (
12000 /* Was there some problem with vforking? */
12001 child < 0
12003 /* Did the child fail? (This shouldn't happen.) */
12004 || status
12006 /* Did the vfork/compiler bug occur? */
12007 || parent != getpid()
12009 /* Did the file descriptor bug occur? */
12010 || fstat(fileno(stdout), &st) != 0
12014 _ACEOF
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_vfork_works=yes
12036 else
12037 echo "$as_me: program exited with status $ac_status" >&5
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ac_cv_func_vfork_works=no
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12053 if test "x$ac_cv_func_fork_works" = xcross; then
12054 ac_cv_func_vfork_works=$ac_cv_func_vfork
12055 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12056 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12059 if test "x$ac_cv_func_vfork_works" = xyes; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_WORKING_VFORK 1
12063 _ACEOF
12065 else
12067 cat >>confdefs.h <<\_ACEOF
12068 #define vfork fork
12069 _ACEOF
12072 if test "x$ac_cv_func_fork_works" = xyes; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_WORKING_FORK 1
12076 _ACEOF
12080 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12081 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12082 if test "${ac_cv_sys_largefile_source+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 while :; do
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <sys/types.h> /* for off_t */
12093 #include <stdio.h>
12095 main ()
12097 int (*fp) (FILE *, off_t, int) = fseeko;
12098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest$ac_exeext &&
12120 $as_test_x conftest$ac_exeext; then
12121 ac_cv_sys_largefile_source=no; break
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #define _LARGEFILE_SOURCE 1
12138 #include <sys/types.h> /* for off_t */
12139 #include <stdio.h>
12141 main ()
12143 int (*fp) (FILE *, off_t, int) = fseeko;
12144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest$ac_exeext &&
12166 $as_test_x conftest$ac_exeext; then
12167 ac_cv_sys_largefile_source=1; break
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 ac_cv_sys_largefile_source=unknown
12178 break
12179 done
12181 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12182 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12183 case $ac_cv_sys_largefile_source in #(
12184 no | unknown) ;;
12186 cat >>confdefs.h <<_ACEOF
12187 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12188 _ACEOF
12190 esac
12191 rm -f conftest*
12193 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12194 # in glibc 2.1.3, but that breaks too many other things.
12195 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12196 if test $ac_cv_sys_largefile_source != unknown; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_FSEEKO 1
12200 _ACEOF
12204 if test $ac_cv_c_compiler_gnu = yes; then
12205 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12206 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12207 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 ac_pattern="Autoconf.*'x'"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 #include <sgtty.h>
12218 Autoconf TIOCGETP
12219 _ACEOF
12220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12221 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12222 ac_cv_prog_gcc_traditional=yes
12223 else
12224 ac_cv_prog_gcc_traditional=no
12226 rm -f conftest*
12229 if test $ac_cv_prog_gcc_traditional = no; then
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <termio.h>
12237 Autoconf TCGETA
12238 _ACEOF
12239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12240 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12241 ac_cv_prog_gcc_traditional=yes
12243 rm -f conftest*
12247 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12248 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12249 if test $ac_cv_prog_gcc_traditional = yes; then
12250 CC="$CC -traditional"
12254 # XXX: these are commented out until we determine whether it matters if our malloc()
12255 # acts exactly like glibc's or not
12256 # AC_FUNC_MALLOC
12257 # AC_FUNC_REALLOC
12258 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12259 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12260 if test "${ac_cv_func_memcmp_working+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 if test "$cross_compiling" = yes; then
12264 ac_cv_func_memcmp_working=no
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12274 main ()
12277 /* Some versions of memcmp are not 8-bit clean. */
12278 char c0 = '\100', c1 = '\200', c2 = '\201';
12279 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12280 return 1;
12282 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12283 or more and with at least one buffer not starting on a 4-byte boundary.
12284 William Lewis provided this test program. */
12286 char foo[21];
12287 char bar[21];
12288 int i;
12289 for (i = 0; i < 4; i++)
12291 char *a = foo + i;
12292 char *b = bar + i;
12293 strcpy (a, "--------01111111");
12294 strcpy (b, "--------10000000");
12295 if (memcmp (a, b, 16) >= 0)
12296 return 1;
12298 return 0;
12302 return 0;
12304 _ACEOF
12305 rm -f conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_memcmp_working=yes
12326 else
12327 echo "$as_me: program exited with status $ac_status" >&5
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 ac_cv_func_memcmp_working=no
12334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12340 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12341 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12342 *" memcmp.$ac_objext "* ) ;;
12343 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12345 esac
12350 for ac_header in stdlib.h unistd.h
12352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 ac_res=`eval echo '${'$as_ac_Header'}'`
12360 { echo "$as_me:$LINENO: result: $ac_res" >&5
12361 echo "${ECHO_T}$ac_res" >&6; }
12362 else
12363 # Is the header compilable?
12364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_header_compiler=yes
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_header_compiler=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <$ac_header>
12414 _ACEOF
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 }; then
12431 ac_header_preproc=yes
12432 else
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_header_preproc=no
12439 rm -f conftest.err conftest.$ac_ext
12440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12441 echo "${ECHO_T}$ac_header_preproc" >&6; }
12443 # So? What about this header?
12444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12445 yes:no: )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12450 ac_header_preproc=yes
12452 no:yes:* )
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12465 ( cat <<\_ASBOX
12466 ## ------------------------------- ##
12467 ## Report this to www.asterisk.org ##
12468 ## ------------------------------- ##
12469 _ASBOX
12470 ) | sed "s/^/$as_me: WARNING: /" >&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
12495 for ac_func in getpagesize
12497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511 #define $ac_func innocuous_$ac_func
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12518 #ifdef __STDC__
12519 # include <limits.h>
12520 #else
12521 # include <assert.h>
12522 #endif
12524 #undef $ac_func
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char $ac_func ();
12533 /* The GNU C library defines this for functions which it implements
12534 to always fail with ENOSYS. Some functions are actually named
12535 something starting with __ and the normal name is an alias. */
12536 #if defined __stub_$ac_func || defined __stub___$ac_func
12537 choke me
12538 #endif
12541 main ()
12543 return $ac_func ();
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 eval "$as_ac_var=yes"
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 eval "$as_ac_var=no"
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12577 ac_res=`eval echo '${'$as_ac_var'}'`
12578 { echo "$as_me:$LINENO: result: $ac_res" >&5
12579 echo "${ECHO_T}$ac_res" >&6; }
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 _ACEOF
12586 done
12588 { echo "$as_me:$LINENO: checking for working mmap" >&5
12589 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_mmap_fixed_mapped=no
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 /* malloc might have been renamed as rpl_malloc. */
12604 #undef malloc
12606 /* Thanks to Mike Haertel and Jim Avera for this test.
12607 Here is a matrix of mmap possibilities:
12608 mmap private not fixed
12609 mmap private fixed at somewhere currently unmapped
12610 mmap private fixed at somewhere already mapped
12611 mmap shared not fixed
12612 mmap shared fixed at somewhere currently unmapped
12613 mmap shared fixed at somewhere already mapped
12614 For private mappings, we should verify that changes cannot be read()
12615 back from the file, nor mmap's back from the file at a different
12616 address. (There have been systems where private was not correctly
12617 implemented like the infamous i386 svr4.0, and systems where the
12618 VM page cache was not coherent with the file system buffer cache
12619 like early versions of FreeBSD and possibly contemporary NetBSD.)
12620 For shared mappings, we should conversely verify that changes get
12621 propagated back to all the places they're supposed to be.
12623 Grep wants private fixed already mapped.
12624 The main things grep needs to know about mmap are:
12625 * does it exist and is it safe to write into the mmap'd area
12626 * how to use it (BSD variants) */
12628 #include <fcntl.h>
12629 #include <sys/mman.h>
12631 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12632 char *malloc ();
12633 #endif
12635 /* This mess was copied from the GNU getpagesize.h. */
12636 #ifndef HAVE_GETPAGESIZE
12637 /* Assume that all systems that can run configure have sys/param.h. */
12638 # ifndef HAVE_SYS_PARAM_H
12639 # define HAVE_SYS_PARAM_H 1
12640 # endif
12642 # ifdef _SC_PAGESIZE
12643 # define getpagesize() sysconf(_SC_PAGESIZE)
12644 # else /* no _SC_PAGESIZE */
12645 # ifdef HAVE_SYS_PARAM_H
12646 # include <sys/param.h>
12647 # ifdef EXEC_PAGESIZE
12648 # define getpagesize() EXEC_PAGESIZE
12649 # else /* no EXEC_PAGESIZE */
12650 # ifdef NBPG
12651 # define getpagesize() NBPG * CLSIZE
12652 # ifndef CLSIZE
12653 # define CLSIZE 1
12654 # endif /* no CLSIZE */
12655 # else /* no NBPG */
12656 # ifdef NBPC
12657 # define getpagesize() NBPC
12658 # else /* no NBPC */
12659 # ifdef PAGESIZE
12660 # define getpagesize() PAGESIZE
12661 # endif /* PAGESIZE */
12662 # endif /* no NBPC */
12663 # endif /* no NBPG */
12664 # endif /* no EXEC_PAGESIZE */
12665 # else /* no HAVE_SYS_PARAM_H */
12666 # define getpagesize() 8192 /* punt totally */
12667 # endif /* no HAVE_SYS_PARAM_H */
12668 # endif /* no _SC_PAGESIZE */
12670 #endif /* no HAVE_GETPAGESIZE */
12673 main ()
12675 char *data, *data2, *data3;
12676 int i, pagesize;
12677 int fd;
12679 pagesize = getpagesize ();
12681 /* First, make a file with some known garbage in it. */
12682 data = (char *) malloc (pagesize);
12683 if (!data)
12684 return 1;
12685 for (i = 0; i < pagesize; ++i)
12686 *(data + i) = rand ();
12687 umask (0);
12688 fd = creat ("conftest.mmap", 0600);
12689 if (fd < 0)
12690 return 1;
12691 if (write (fd, data, pagesize) != pagesize)
12692 return 1;
12693 close (fd);
12695 /* Next, try to mmap the file at a fixed address which already has
12696 something else allocated at it. If we can, also make sure that
12697 we see the same garbage. */
12698 fd = open ("conftest.mmap", O_RDWR);
12699 if (fd < 0)
12700 return 1;
12701 data2 = (char *) malloc (2 * pagesize);
12702 if (!data2)
12703 return 1;
12704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12707 return 1;
12708 for (i = 0; i < pagesize; ++i)
12709 if (*(data + i) != *(data2 + i))
12710 return 1;
12712 /* Finally, make sure that changes to the mapped area do not
12713 percolate back to the file as seen by read(). (This is a bug on
12714 some variants of i386 svr4.0.) */
12715 for (i = 0; i < pagesize; ++i)
12716 *(data2 + i) = *(data2 + i) + 1;
12717 data3 = (char *) malloc (pagesize);
12718 if (!data3)
12719 return 1;
12720 if (read (fd, data3, pagesize) != pagesize)
12721 return 1;
12722 for (i = 0; i < pagesize; ++i)
12723 if (*(data + i) != *(data3 + i))
12724 return 1;
12725 close (fd);
12726 return 0;
12728 _ACEOF
12729 rm -f conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_func_mmap_fixed_mapped=yes
12750 else
12751 echo "$as_me: program exited with status $ac_status" >&5
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ( exit $ac_status )
12756 ac_cv_func_mmap_fixed_mapped=no
12758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_MMAP 1
12769 _ACEOF
12772 rm -f conftest.mmap
12776 for ac_header in sys/select.h sys/socket.h
12778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 ac_res=`eval echo '${'$as_ac_Header'}'`
12786 { echo "$as_me:$LINENO: result: $ac_res" >&5
12787 echo "${ECHO_T}$ac_res" >&6; }
12788 else
12789 # Is the header compilable?
12790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #include <$ac_header>
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_header_compiler=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12828 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830 # Is the header present?
12831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <$ac_header>
12840 _ACEOF
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null && {
12854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 }; then
12857 ac_header_preproc=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6; }
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12871 yes:no: )
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12876 ac_header_preproc=yes
12878 no:yes:* )
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12891 ( cat <<\_ASBOX
12892 ## ------------------------------- ##
12893 ## Report this to www.asterisk.org ##
12894 ## ------------------------------- ##
12895 _ASBOX
12896 ) | sed "s/^/$as_me: WARNING: /" >&2
12898 esac
12899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 eval "$as_ac_Header=\$ac_header_preproc"
12906 ac_res=`eval echo '${'$as_ac_Header'}'`
12907 { echo "$as_me:$LINENO: result: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12914 _ACEOF
12918 done
12920 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12921 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12922 if test "${ac_cv_func_select_args+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12926 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12927 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 #ifdef HAVE_SYS_SELECT_H
12936 # include <sys/select.h>
12937 #endif
12938 #ifdef HAVE_SYS_SOCKET_H
12939 # include <sys/socket.h>
12940 #endif
12943 main ()
12945 extern int select ($ac_arg1,
12946 $ac_arg234, $ac_arg234, $ac_arg234,
12947 $ac_arg5);
12949 return 0;
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (ac_try="$ac_compile"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979 done
12980 done
12981 # Provide a safe default value.
12982 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12985 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12986 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12987 ac_save_IFS=$IFS; IFS=','
12988 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12989 IFS=$ac_save_IFS
12990 shift
12992 cat >>confdefs.h <<_ACEOF
12993 #define SELECT_TYPE_ARG1 $1
12994 _ACEOF
12997 cat >>confdefs.h <<_ACEOF
12998 #define SELECT_TYPE_ARG234 ($2)
12999 _ACEOF
13002 cat >>confdefs.h <<_ACEOF
13003 #define SELECT_TYPE_ARG5 ($3)
13004 _ACEOF
13006 rm -f conftest*
13008 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13009 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13010 if test "$ac_cv_prog_cc_c89" != no; then
13011 { echo "$as_me:$LINENO: result: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13014 cat >>confdefs.h <<\_ACEOF
13015 #define PROTOTYPES 1
13016 _ACEOF
13019 cat >>confdefs.h <<\_ACEOF
13020 #define __PROTOTYPES 1
13021 _ACEOF
13023 else
13024 { echo "$as_me:$LINENO: result: no" >&5
13025 echo "${ECHO_T}no" >&6; }
13028 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13029 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13030 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 ac_cv_func_setvbuf_reversed=no
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include <stdio.h>
13041 # ifdef PROTOTYPES
13042 int (setvbuf) (FILE *, int, char *, size_t);
13043 # endif
13045 main ()
13047 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 #include <stdio.h>
13077 # ifdef PROTOTYPES
13078 int (setvbuf) (FILE *, int, char *, size_t);
13079 # endif
13081 main ()
13083 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13085 return 0;
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest$ac_exeext &&
13105 $as_test_x conftest$ac_exeext; then
13106 # It compiles and links either way, so it must not be declared
13107 # with a prototype and most likely this is a K&R C compiler.
13108 # Try running it.
13109 if test "$cross_compiling" = yes; then
13110 : # Assume setvbuf is not reversed when cross-compiling.
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13120 main ()
13122 /* This call has the arguments reversed.
13123 A reversed system may check and see that the address of buf
13124 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13125 char buf;
13126 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13127 return 1;
13128 putchar ('\r');
13129 return 0; /* Non-reversed systems SEGV here. */
13131 return 0;
13133 _ACEOF
13134 rm -f conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_func_setvbuf_reversed=yes
13155 else
13156 echo "$as_me: program exited with status $ac_status" >&5
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13165 ac_cv_func_setvbuf_reversed=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13186 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13187 if test $ac_cv_func_setvbuf_reversed = yes; then
13189 cat >>confdefs.h <<\_ACEOF
13190 #define SETVBUF_REVERSED 1
13191 _ACEOF
13195 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13196 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13197 if test "${ac_cv_type_signal+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h. */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <signal.h>
13210 main ()
13212 return *(signal (0, 0)) (0) == 1;
13214 return 0;
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13234 ac_cv_type_signal=int
13235 else
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_cv_type_signal=void
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13245 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define RETSIGTYPE $ac_cv_type_signal
13249 _ACEOF
13252 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 rm -f conftest.sym conftest.file
13258 echo >conftest.file
13259 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13260 if test "$cross_compiling" = yes; then
13261 ac_cv_func_lstat_dereferences_slashed_symlink=no
13262 else
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13271 main ()
13273 struct stat sbuf;
13274 /* Linux will dereference the symlink and fail.
13275 That is better in the sense that it means we will not
13276 have to compile and use the lstat wrapper. */
13277 return lstat ("conftest.sym/", &sbuf) == 0;
13279 return 0;
13281 _ACEOF
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13303 else
13304 echo "$as_me: program exited with status $ac_status" >&5
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ( exit $ac_status )
13309 ac_cv_func_lstat_dereferences_slashed_symlink=no
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 else
13316 # If the `ln -s' command failed, then we probably don't even
13317 # have an lstat function.
13318 ac_cv_func_lstat_dereferences_slashed_symlink=no
13320 rm -f conftest.sym conftest.file
13323 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13324 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13326 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13328 cat >>confdefs.h <<_ACEOF
13329 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13330 _ACEOF
13333 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13334 case " $LIBOBJS " in
13335 *" lstat.$ac_objext "* ) ;;
13336 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13338 esac
13342 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13343 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13344 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 if test "$cross_compiling" = yes; then
13348 ac_cv_func_stat_empty_string_bug=yes
13349 else
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13358 main ()
13360 struct stat sbuf;
13361 return stat ("", &sbuf) == 0;
13363 return 0;
13365 _ACEOF
13366 rm -f conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_stat_empty_string_bug=no
13387 else
13388 echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_func_stat_empty_string_bug=yes
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13401 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13402 if test $ac_cv_func_stat_empty_string_bug = yes; then
13403 case " $LIBOBJS " in
13404 *" stat.$ac_objext "* ) ;;
13405 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13407 esac
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STAT_EMPTY_STRING_BUG 1
13412 _ACEOF
13416 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13417 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strcoll_works+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strcoll_works=no
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13432 main ()
13434 return (strcoll ("abc", "def") >= 0 ||
13435 strcoll ("ABC", "DEF") >= 0 ||
13436 strcoll ("123", "456") >= 0)
13438 return 0;
13440 _ACEOF
13441 rm -f conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_func_strcoll_works=yes
13462 else
13463 echo "$as_me: program exited with status $ac_status" >&5
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ( exit $ac_status )
13468 ac_cv_func_strcoll_works=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13476 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13477 if test $ac_cv_func_strcoll_works = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_STRCOLL 1
13481 _ACEOF
13486 for ac_func in strftime
13488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13502 #define $ac_func innocuous_$ac_func
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func (); below.
13506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507 <limits.h> exists even on freestanding compilers. */
13509 #ifdef __STDC__
13510 # include <limits.h>
13511 #else
13512 # include <assert.h>
13513 #endif
13515 #undef $ac_func
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char $ac_func ();
13524 /* The GNU C library defines this for functions which it implements
13525 to always fail with ENOSYS. Some functions are actually named
13526 something starting with __ and the normal name is an alias. */
13527 #if defined __stub_$ac_func || defined __stub___$ac_func
13528 choke me
13529 #endif
13532 main ()
13534 return $ac_func ();
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest$ac_exeext &&
13556 $as_test_x conftest$ac_exeext; then
13557 eval "$as_ac_var=yes"
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 eval "$as_ac_var=no"
13565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13566 conftest$ac_exeext conftest.$ac_ext
13568 ac_res=`eval echo '${'$as_ac_var'}'`
13569 { echo "$as_me:$LINENO: result: $ac_res" >&5
13570 echo "${ECHO_T}$ac_res" >&6; }
13571 if test `eval echo '${'$as_ac_var'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13574 _ACEOF
13576 else
13577 # strftime is in -lintl on SCO UNIX.
13578 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13579 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13580 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-lintl $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char strftime ();
13600 main ()
13602 return strftime ();
13604 return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_intl_strftime=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_lib_intl_strftime=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13638 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13639 if test $ac_cv_lib_intl_strftime = yes; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_STRFTIME 1
13642 _ACEOF
13644 LIBS="-lintl $LIBS"
13648 done
13650 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13651 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13652 if test "${ac_cv_func_strnlen_working+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 if test "$cross_compiling" = yes; then
13656 ac_cv_func_strnlen_working=no
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13666 main ()
13669 #define S "foobar"
13670 #define S_LEN (sizeof S - 1)
13672 /* At least one implementation is buggy: that of AIX 4.3 would
13673 give strnlen (S, 1) == 3. */
13675 int i;
13676 for (i = 0; i < S_LEN + 1; ++i)
13678 int expected = i <= S_LEN ? i : S_LEN;
13679 if (strnlen (S, i) != expected)
13680 return 1;
13682 return 0;
13685 return 0;
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_func_strnlen_working=yes
13709 else
13710 echo "$as_me: program exited with status $ac_status" >&5
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ( exit $ac_status )
13715 ac_cv_func_strnlen_working=no
13717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13722 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13723 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13724 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13725 *" strnlen.$ac_objext "* ) ;;
13726 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13728 esac
13731 { echo "$as_me:$LINENO: checking for working strtod" >&5
13732 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13733 if test "${ac_cv_func_strtod+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 if test "$cross_compiling" = yes; then
13737 ac_cv_func_strtod=no
13738 else
13739 cat >conftest.$ac_ext <<_ACEOF
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13746 $ac_includes_default
13747 #ifndef strtod
13748 double strtod ();
13749 #endif
13751 main()
13754 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13755 char *string = " +69";
13756 char *term;
13757 double value;
13758 value = strtod (string, &term);
13759 if (value != 69 || term != (string + 4))
13760 return 1;
13764 /* Under Solaris 2.4, strtod returns the wrong value for the
13765 terminating character under some conditions. */
13766 char *string = "NaN";
13767 char *term;
13768 strtod (string, &term);
13769 if (term != string && *(term - 1) == 0)
13770 return 1;
13772 return 0;
13775 _ACEOF
13776 rm -f conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_strtod=yes
13797 else
13798 echo "$as_me: program exited with status $ac_status" >&5
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ( exit $ac_status )
13803 ac_cv_func_strtod=no
13805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13811 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13812 if test $ac_cv_func_strtod = no; then
13813 case " $LIBOBJS " in
13814 *" strtod.$ac_objext "* ) ;;
13815 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13817 esac
13819 { echo "$as_me:$LINENO: checking for pow" >&5
13820 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13821 if test "${ac_cv_func_pow+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define pow innocuous_pow
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char pow (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13839 #ifdef __STDC__
13840 # include <limits.h>
13841 #else
13842 # include <assert.h>
13843 #endif
13845 #undef pow
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char pow ();
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_pow || defined __stub___pow
13858 choke me
13859 #endif
13862 main ()
13864 return pow ();
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13887 ac_cv_func_pow=yes
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_func_pow=no
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13899 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13901 if test $ac_cv_func_pow = no; then
13902 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13903 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13904 if test "${ac_cv_lib_m_pow+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907 ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lm $LIBS"
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h. */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char pow ();
13924 main ()
13926 return pow ();
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 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest$ac_exeext &&
13948 $as_test_x conftest$ac_exeext; then
13949 ac_cv_lib_m_pow=yes
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_lib_m_pow=no
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13962 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13963 if test $ac_cv_lib_m_pow = yes; then
13964 POW_LIB=-lm
13965 else
13966 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13967 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13978 for ac_header in $ac_header_list
13980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_res=`eval echo '${'$as_ac_Header'}'`
13988 { echo "$as_me:$LINENO: result: $ac_res" >&5
13989 echo "${ECHO_T}$ac_res" >&6; }
13990 else
13991 # Is the header compilable?
13992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 #include <$ac_header>
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (ac_try="$ac_compile"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_compile") 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } && {
14017 test -z "$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14019 } && test -s conftest.$ac_objext; then
14020 ac_header_compiler=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_compiler=no
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14030 echo "${ECHO_T}$ac_header_compiler" >&6; }
14032 # Is the header present?
14033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 #include <$ac_header>
14042 _ACEOF
14043 if { (ac_try="$ac_cpp conftest.$ac_ext"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } >/dev/null && {
14056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 }; then
14059 ac_header_preproc=yes
14060 else
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_preproc=no
14067 rm -f conftest.err conftest.$ac_ext
14068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14069 echo "${ECHO_T}$ac_header_preproc" >&6; }
14071 # So? What about this header?
14072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14073 yes:no: )
14074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14078 ac_header_preproc=yes
14080 no:yes:* )
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14093 ( cat <<\_ASBOX
14094 ## ------------------------------- ##
14095 ## Report this to www.asterisk.org ##
14096 ## ------------------------------- ##
14097 _ASBOX
14098 ) | sed "s/^/$as_me: WARNING: /" >&2
14100 esac
14101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 eval "$as_ac_Header=\$ac_header_preproc"
14108 ac_res=`eval echo '${'$as_ac_Header'}'`
14109 { echo "$as_me:$LINENO: result: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14116 _ACEOF
14120 done
14130 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14131 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14132 if test "${ac_cv_func_utime_null+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 rm -f conftest.data; >conftest.data
14136 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14137 if test "$cross_compiling" = yes; then
14138 ac_cv_func_utime_null=no
14139 else
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #ifdef HAVE_UTIME_H
14148 # include <utime.h>
14149 #endif
14151 main ()
14153 struct stat s, t;
14154 return ! (stat ("conftest.data", &s) == 0
14155 && utime ("conftest.data", 0) == 0
14156 && stat ("conftest.data", &t) == 0
14157 && t.st_mtime >= s.st_mtime
14158 && t.st_mtime - s.st_mtime < 120);
14160 return 0;
14162 _ACEOF
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_func_utime_null=yes
14184 else
14185 echo "$as_me: program exited with status $ac_status" >&5
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 ac_cv_func_utime_null=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14198 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14199 if test $ac_cv_func_utime_null = yes; then
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_UTIME_NULL 1
14203 _ACEOF
14206 rm -f conftest.data
14209 for ac_func in vprintf
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14225 #define $ac_func innocuous_$ac_func
14227 /* System header to define __stub macros and hopefully few prototypes,
14228 which can conflict with char $ac_func (); below.
14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 <limits.h> exists even on freestanding compilers. */
14232 #ifdef __STDC__
14233 # include <limits.h>
14234 #else
14235 # include <assert.h>
14236 #endif
14238 #undef $ac_func
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char $ac_func ();
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14251 choke me
14252 #endif
14255 main ()
14257 return $ac_func ();
14259 return 0;
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest$ac_exeext &&
14279 $as_test_x conftest$ac_exeext; then
14280 eval "$as_ac_var=yes"
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 eval "$as_ac_var=no"
14288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14289 conftest$ac_exeext conftest.$ac_ext
14291 ac_res=`eval echo '${'$as_ac_var'}'`
14292 { echo "$as_me:$LINENO: result: $ac_res" >&5
14293 echo "${ECHO_T}$ac_res" >&6; }
14294 if test `eval echo '${'$as_ac_var'}'` = yes; then
14295 cat >>confdefs.h <<_ACEOF
14296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297 _ACEOF
14299 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14300 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14301 if test "${ac_cv_func__doprnt+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h. */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14312 #define _doprnt innocuous__doprnt
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char _doprnt (); below.
14316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14317 <limits.h> exists even on freestanding compilers. */
14319 #ifdef __STDC__
14320 # include <limits.h>
14321 #else
14322 # include <assert.h>
14323 #endif
14325 #undef _doprnt
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char _doprnt ();
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined __stub__doprnt || defined __stub____doprnt
14338 choke me
14339 #endif
14342 main ()
14344 return _doprnt ();
14346 return 0;
14348 _ACEOF
14349 rm -f conftest.$ac_objext conftest$ac_exeext
14350 if { (ac_try="$ac_link"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14354 esac
14355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_link") 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } && {
14363 test -z "$ac_c_werror_flag" ||
14364 test ! -s conftest.err
14365 } && test -s conftest$ac_exeext &&
14366 $as_test_x conftest$ac_exeext; then
14367 ac_cv_func__doprnt=yes
14368 else
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_cv_func__doprnt=no
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14379 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14380 if test $ac_cv_func__doprnt = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_DOPRNT 1
14384 _ACEOF
14389 done
14441 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
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14464 #ifdef __STDC__
14465 # include <limits.h>
14466 #else
14467 # include <assert.h>
14468 #endif
14470 #undef $ac_func
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char $ac_func ();
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined __stub_$ac_func || defined __stub___$ac_func
14483 choke me
14484 #endif
14487 main ()
14489 return $ac_func ();
14491 return 0;
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14512 eval "$as_ac_var=yes"
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 eval "$as_ac_var=no"
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14523 ac_res=`eval echo '${'$as_ac_var'}'`
14524 { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14529 _ACEOF
14532 done
14535 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14536 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14537 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14538 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 ac_func_search_save_LIBS=$LIBS
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char gethostbyname_r ();
14557 main ()
14559 return gethostbyname_r ();
14561 return 0;
14563 _ACEOF
14564 for ac_lib in '' socket nsl; do
14565 if test -z "$ac_lib"; then
14566 ac_res="none required"
14567 else
14568 ac_res=-l$ac_lib
14569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14571 rm -f conftest.$ac_objext conftest$ac_exeext
14572 if { (ac_try="$ac_link"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_link") 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext &&
14588 $as_test_x conftest$ac_exeext; then
14589 ac_cv_search_gethostbyname_r=$ac_res
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14598 conftest$ac_exeext
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14600 break
14602 done
14603 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14605 else
14606 ac_cv_search_gethostbyname_r=no
14608 rm conftest.$ac_ext
14609 LIBS=$ac_func_search_save_LIBS
14611 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14612 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14613 ac_res=$ac_cv_search_gethostbyname_r
14614 if test "$ac_res" != no; then
14615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14620 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14621 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <stdlib.h>
14629 #include <netdb.h>
14631 main ()
14633 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14635 return 0;
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 { echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6; }
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_GETHOSTBYNAME_R_6 1
14661 _ACEOF
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 { echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6; }
14672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14673 conftest$ac_exeext conftest.$ac_ext
14675 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14676 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <stdlib.h>
14684 #include <netdb.h>
14686 main ()
14688 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14690 return 0;
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14711 { echo "$as_me:$LINENO: result: yes" >&5
14712 echo "${ECHO_T}yes" >&6; }
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_GETHOSTBYNAME_R_5 1
14716 _ACEOF
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 { echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6; }
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14731 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <pthread.h>
14740 main ()
14742 int foo = PTHREAD_RWLOCK_INITIALIZER;
14744 return 0;
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext &&
14764 $as_test_x conftest$ac_exeext; then
14765 { echo "$as_me:$LINENO: result: yes" >&5
14766 echo "${ECHO_T}yes" >&6; }
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14770 _ACEOF
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 { echo "$as_me:$LINENO: result: no" >&5
14777 echo "${ECHO_T}no" >&6; }
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14785 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <pthread.h>
14794 main ()
14796 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 { echo "$as_me:$LINENO: result: yes" >&5
14820 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14824 _ACEOF
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 { echo "$as_me:$LINENO: result: no" >&5
14831 echo "${ECHO_T}no" >&6; }
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14839 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h. */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14848 main ()
14850 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14852 return 0;
14854 _ACEOF
14855 rm -f conftest.$ac_objext conftest$ac_exeext
14856 if { (ac_try="$ac_link"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_link") 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest$ac_exeext &&
14872 $as_test_x conftest$ac_exeext; then
14873 { echo "$as_me:$LINENO: result: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_GCC_ATOMICS 1
14878 _ACEOF
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 { echo "$as_me:$LINENO: result: no" >&5
14885 echo "${ECHO_T}no" >&6; }
14889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14894 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14895 saved_CFLAGS="$CFLAGS"
14896 CFLAGS="$CFLAGS -Werror"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 static void __attribute__((pure)) *test(void *muffin, ...) {}
14905 main ()
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 { echo "$as_me:$LINENO: result: yes" >&5
14930 echo "${ECHO_T}yes" >&6; }
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_ATTRIBUTE_pure 1
14934 _ACEOF
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 { echo "$as_me:$LINENO: result: no" >&5
14941 echo "${ECHO_T}no" >&6; }
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 CFLAGS="$saved_CFLAGS"
14949 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14950 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14951 saved_CFLAGS="$CFLAGS"
14952 CFLAGS="$CFLAGS -Werror"
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14961 main ()
14965 return 0;
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest.$ac_objext; then
14985 { echo "$as_me:$LINENO: result: yes" >&5
14986 echo "${ECHO_T}yes" >&6; }
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_ATTRIBUTE_malloc 1
14990 _ACEOF
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 { echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6; }
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 CFLAGS="$saved_CFLAGS"
15005 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15006 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15007 saved_CFLAGS="$CFLAGS"
15008 CFLAGS="$CFLAGS -Werror"
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 static void __attribute__((const)) *test(void *muffin, ...) {}
15017 main ()
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 { echo "$as_me:$LINENO: result: yes" >&5
15042 echo "${ECHO_T}yes" >&6; }
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_ATTRIBUTE_const 1
15046 _ACEOF
15048 else
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 { echo "$as_me:$LINENO: result: no" >&5
15053 echo "${ECHO_T}no" >&6; }
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 CFLAGS="$saved_CFLAGS"
15061 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15062 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15063 saved_CFLAGS="$CFLAGS"
15064 CFLAGS="$CFLAGS -Werror"
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 static void __attribute__((unused)) *test(void *muffin, ...) {}
15073 main ()
15077 return 0;
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (ac_try="$ac_compile"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_compile") 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest.$ac_objext; then
15097 { echo "$as_me:$LINENO: result: yes" >&5
15098 echo "${ECHO_T}yes" >&6; }
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_ATTRIBUTE_unused 1
15102 _ACEOF
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 { echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6; }
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 CFLAGS="$saved_CFLAGS"
15117 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15118 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15119 saved_CFLAGS="$CFLAGS"
15120 CFLAGS="$CFLAGS -Werror"
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15129 main ()
15133 return 0;
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_compile") 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && {
15150 test -z "$ac_c_werror_flag" ||
15151 test ! -s conftest.err
15152 } && test -s conftest.$ac_objext; then
15153 { echo "$as_me:$LINENO: result: yes" >&5
15154 echo "${ECHO_T}yes" >&6; }
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_ATTRIBUTE_always_inline 1
15158 _ACEOF
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 { echo "$as_me:$LINENO: result: no" >&5
15165 echo "${ECHO_T}no" >&6; }
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 CFLAGS="$saved_CFLAGS"
15173 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15174 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15175 saved_CFLAGS="$CFLAGS"
15176 CFLAGS="$CFLAGS -Werror"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15185 main ()
15189 return 0;
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest.$ac_objext; then
15209 { echo "$as_me:$LINENO: result: yes" >&5
15210 echo "${ECHO_T}yes" >&6; }
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_ATTRIBUTE_deprecated 1
15214 _ACEOF
15216 else
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 { echo "$as_me:$LINENO: result: no" >&5
15221 echo "${ECHO_T}no" >&6; }
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226 CFLAGS="$saved_CFLAGS"
15229 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15230 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15231 saved_CFLAGS="${CFLAGS}"
15232 CFLAGS="${CFLAGS} -ffunction-sections"
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15241 main ()
15243 int x = 1;
15245 return 0;
15247 _ACEOF
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && {
15262 test -z "$ac_c_werror_flag" ||
15263 test ! -s conftest.err
15264 } && test -s conftest.$ac_objext; then
15265 { echo "$as_me:$LINENO: result: yes" >&5
15266 echo "${ECHO_T}yes" >&6; }
15267 saved_LDFLAGS="${LDFLAGS}"
15268 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15269 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15270 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h. */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15279 main ()
15281 int x = 1;
15283 return 0;
15285 _ACEOF
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (ac_try="$ac_link"
15288 case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291 esac
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_link") 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext &&
15303 $as_test_x conftest$ac_exeext; then
15304 { echo "$as_me:$LINENO: result: yes" >&5
15305 echo "${ECHO_T}yes" >&6; }
15306 GC_CFLAGS="-ffunction-sections"
15307 GC_LDFLAGS="-Wl,--gc-sections"
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 { echo "$as_me:$LINENO: result: no" >&5
15313 echo "${ECHO_T}no" >&6; }
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318 conftest$ac_exeext conftest.$ac_ext
15319 LDFLAGS="${saved_LDFLAGS}"
15320 else
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 { echo "$as_me:$LINENO: result: no" >&5
15325 echo "${ECHO_T}no" >&6; }
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 CFLAGS="${saved_CFLAGS}"
15334 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15335 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15336 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15337 { echo "$as_me:$LINENO: result: yes" >&5
15338 echo "${ECHO_T}yes" >&6; }
15339 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15340 else
15341 { echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6; }
15343 AST_DECLARATION_AFTER_STATEMENT=
15347 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15348 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15349 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15350 { echo "$as_me:$LINENO: result: yes" >&5
15351 echo "${ECHO_T}yes" >&6; }
15352 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15353 else
15354 { echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6; }
15356 AST_NO_STRICT_OVERFLOW=
15360 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15361 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <resolv.h>
15370 main ()
15372 int foo = res_ninit(NULL);
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (ac_try="$ac_link"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_link") 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest$ac_exeext &&
15394 $as_test_x conftest$ac_exeext; then
15395 { echo "$as_me:$LINENO: result: yes" >&5
15396 echo "${ECHO_T}yes" >&6; }
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_RES_NINIT 1
15400 _ACEOF
15402 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15403 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <resolv.h>
15412 main ()
15414 int foo = res_ndestroy(NULL);
15416 return 0;
15418 _ACEOF
15419 rm -f conftest.$ac_objext conftest$ac_exeext
15420 if { (ac_try="$ac_link"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest$ac_exeext &&
15436 $as_test_x conftest$ac_exeext; then
15437 { echo "$as_me:$LINENO: result: yes" >&5
15438 echo "${ECHO_T}yes" >&6; }
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_RES_NDESTROY 1
15442 _ACEOF
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 { echo "$as_me:$LINENO: result: no" >&5
15449 echo "${ECHO_T}no" >&6; }
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 { echo "$as_me:$LINENO: result: no" >&5
15460 echo "${ECHO_T}no" >&6; }
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15468 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <dlfcn.h>
15477 main ()
15479 int foo = RTLD_NOLOAD;
15481 return 0;
15483 _ACEOF
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_link") 2>conftest.er1
15492 ac_status=$?
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && {
15498 test -z "$ac_c_werror_flag" ||
15499 test ! -s conftest.err
15500 } && test -s conftest$ac_exeext &&
15501 $as_test_x conftest$ac_exeext; then
15502 { echo "$as_me:$LINENO: result: yes" >&5
15503 echo "${ECHO_T}yes" >&6; }
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_RTLD_NOLOAD 1
15507 _ACEOF
15509 else
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 { echo "$as_me:$LINENO: result: no" >&5
15514 echo "${ECHO_T}no" >&6; }
15518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15519 conftest$ac_exeext conftest.$ac_ext
15521 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15522 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h. */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <netinet/in.h>
15531 main ()
15533 int foo = IP_MTU_DISCOVER;
15535 return 0;
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (ac_try="$ac_link"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_link") 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } && {
15552 test -z "$ac_c_werror_flag" ||
15553 test ! -s conftest.err
15554 } && test -s conftest$ac_exeext &&
15555 $as_test_x conftest$ac_exeext; then
15556 { echo "$as_me:$LINENO: result: yes" >&5
15557 echo "${ECHO_T}yes" >&6; }
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_IP_MTU_DISCOVER 1
15561 _ACEOF
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 { echo "$as_me:$LINENO: result: no" >&5
15568 echo "${ECHO_T}no" >&6; }
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15575 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15576 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15577 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15578 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15582 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15583 else
15584 # Is the header compilable?
15585 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15586 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 $ac_includes_default
15594 #include <libkern/OSAtomic.h>
15595 _ACEOF
15596 rm -f conftest.$ac_objext
15597 if { (ac_try="$ac_compile"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_compile") 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest.$ac_objext; then
15613 ac_header_compiler=yes
15614 else
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_header_compiler=no
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15623 echo "${ECHO_T}$ac_header_compiler" >&6; }
15625 # Is the header present?
15626 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15627 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 #include <libkern/OSAtomic.h>
15635 _ACEOF
15636 if { (ac_try="$ac_cpp conftest.$ac_ext"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15640 esac
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15643 ac_status=$?
15644 grep -v '^ *+' conftest.er1 >conftest.err
15645 rm -f conftest.er1
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev/null && {
15649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15650 test ! -s conftest.err
15651 }; then
15652 ac_header_preproc=yes
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_header_preproc=no
15660 rm -f conftest.err conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15662 echo "${ECHO_T}$ac_header_preproc" >&6; }
15664 # So? What about this header?
15665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15666 yes:no: )
15667 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15668 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15670 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15671 ac_header_preproc=yes
15673 no:yes:* )
15674 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15675 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15677 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15679 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15681 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15683 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15685 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15686 ( cat <<\_ASBOX
15687 ## ------------------------------- ##
15688 ## Report this to www.asterisk.org ##
15689 ## ------------------------------- ##
15690 _ASBOX
15691 ) | sed "s/^/$as_me: WARNING: /" >&2
15693 esac
15694 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15695 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15696 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15701 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15702 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15705 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_OSX_ATOMICS 1
15709 _ACEOF
15715 { echo "$as_me:$LINENO: checking for int" >&5
15716 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15717 if test "${ac_cv_type_int+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720 cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h. */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 $ac_includes_default
15727 typedef int ac__type_new_;
15729 main ()
15731 if ((ac__type_new_ *) 0)
15732 return 0;
15733 if (sizeof (ac__type_new_))
15734 return 0;
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext
15740 if { (ac_try="$ac_compile"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest.$ac_objext; then
15756 ac_cv_type_int=yes
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_cv_type_int=no
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15767 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15769 # The cast to long int works around a bug in the HP C Compiler
15770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15772 # This bug is HP SR number 8606223364.
15773 { echo "$as_me:$LINENO: checking size of int" >&5
15774 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15775 if test "${ac_cv_sizeof_int+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778 if test "$cross_compiling" = yes; then
15779 # Depending upon the size, compute the lo and hi bounds.
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15787 typedef int ac__type_sizeof_;
15789 main ()
15791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15792 test_array [0] = 0
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_lo=0 ac_mid=0
15816 while :; do
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 $ac_includes_default
15824 typedef int ac__type_sizeof_;
15826 main ()
15828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15829 test_array [0] = 0
15832 return 0;
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest.$ac_objext; then
15852 ac_hi=$ac_mid; break
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_lo=`expr $ac_mid + 1`
15858 if test $ac_lo -le $ac_mid; then
15859 ac_lo= ac_hi=
15860 break
15862 ac_mid=`expr 2 '*' $ac_mid + 1`
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 done
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 typedef int ac__type_sizeof_;
15880 main ()
15882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15883 test_array [0] = 0
15886 return 0;
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (ac_try="$ac_compile"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_compile") 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest.$ac_objext; then
15906 ac_hi=-1 ac_mid=-1
15907 while :; do
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15915 typedef int ac__type_sizeof_;
15917 main ()
15919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15920 test_array [0] = 0
15923 return 0;
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest.$ac_objext; then
15943 ac_lo=$ac_mid; break
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_hi=`expr '(' $ac_mid ')' - 1`
15949 if test $ac_mid -le $ac_hi; then
15950 ac_lo= ac_hi=
15951 break
15953 ac_mid=`expr 2 '*' $ac_mid`
15956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 done
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_lo= ac_hi=
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 # Binary search between lo and hi bounds.
15970 while test "x$ac_lo" != "x$ac_hi"; do
15971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 typedef int ac__type_sizeof_;
15981 main ()
15983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15984 test_array [0] = 0
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_compile") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest.$ac_objext; then
16007 ac_hi=$ac_mid
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_lo=`expr '(' $ac_mid ')' + 1`
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 done
16017 case $ac_lo in
16018 ?*) ac_cv_sizeof_int=$ac_lo;;
16019 '') if test "$ac_cv_type_int" = yes; then
16020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16021 See \`config.log' for more details." >&5
16022 echo "$as_me: error: cannot compute sizeof (int)
16023 See \`config.log' for more details." >&2;}
16024 { (exit 77); exit 77; }; }
16025 else
16026 ac_cv_sizeof_int=0
16027 fi ;;
16028 esac
16029 else
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 $ac_includes_default
16037 typedef int ac__type_sizeof_;
16038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16040 #include <stdio.h>
16041 #include <stdlib.h>
16043 main ()
16046 FILE *f = fopen ("conftest.val", "w");
16047 if (! f)
16048 return 1;
16049 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16051 long int i = longval ();
16052 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16053 return 1;
16054 fprintf (f, "%ld\n", i);
16056 else
16058 unsigned long int i = ulongval ();
16059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16060 return 1;
16061 fprintf (f, "%lu\n", i);
16063 return ferror (f) || fclose (f) != 0;
16066 return 0;
16068 _ACEOF
16069 rm -f conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_link") 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_sizeof_int=`cat conftest.val`
16090 else
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ( exit $ac_status )
16096 if test "$ac_cv_type_int" = yes; then
16097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16098 See \`config.log' for more details." >&5
16099 echo "$as_me: error: cannot compute sizeof (int)
16100 See \`config.log' for more details." >&2;}
16101 { (exit 77); exit 77; }; }
16102 else
16103 ac_cv_sizeof_int=0
16106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16108 rm -f conftest.val
16110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16111 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16115 cat >>confdefs.h <<_ACEOF
16116 #define SIZEOF_INT $ac_cv_sizeof_int
16117 _ACEOF
16121 # do the package library checks now
16124 if test "${USE_ALSA}" != "no"; then
16125 pbxlibdir=""
16126 if test "x${ALSA_DIR}" != "x"; then
16127 if test -d ${ALSA_DIR}/lib; then
16128 pbxlibdir="-L${ALSA_DIR}/lib"
16129 else
16130 pbxlibdir="-L${ALSA_DIR}"
16133 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16134 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16135 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h. */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16150 #ifdef __cplusplus
16151 extern "C"
16152 #endif
16153 char snd_spcm_init ();
16155 main ()
16157 return snd_spcm_init ();
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 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest$ac_exeext &&
16179 $as_test_x conftest$ac_exeext; then
16180 ac_cv_lib_asound_snd_spcm_init=yes
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_cv_lib_asound_snd_spcm_init=no
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16192 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16193 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16194 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16195 AST_ALSA_FOUND=yes
16196 else
16197 AST_ALSA_FOUND=no
16201 if test "${AST_ALSA_FOUND}" = "yes"; then
16202 ALSA_LIB="-lasound -lm -ldl"
16203 ALSA_HEADER_FOUND="1"
16204 if test "x${ALSA_DIR}" != "x"; then
16205 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16206 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16207 saved_cppflags="${CPPFLAGS}"
16208 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16209 if test "xalsa/asoundlib.h" != "x" ; then
16210 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16213 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_res=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16220 else
16221 # Is the header compilable?
16222 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16223 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16232 _ACEOF
16233 rm -f conftest.$ac_objext
16234 if { (ac_try="$ac_compile"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } && {
16247 test -z "$ac_c_werror_flag" ||
16248 test ! -s conftest.err
16249 } && test -s conftest.$ac_objext; then
16250 ac_header_compiler=yes
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_compiler=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16264 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16272 _ACEOF
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null && {
16286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16288 }; then
16289 ac_header_preproc=yes
16290 else
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16294 ac_header_preproc=no
16297 rm -f conftest.err conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 echo "${ECHO_T}$ac_header_preproc" >&6; }
16301 # So? What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16303 yes:no: )
16304 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16305 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16307 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16308 ac_header_preproc=yes
16310 no:yes:* )
16311 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16312 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16314 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16316 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16318 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16320 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16322 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16323 ( cat <<\_ASBOX
16324 ## ------------------------------- ##
16325 ## Report this to www.asterisk.org ##
16326 ## ------------------------------- ##
16327 _ASBOX
16328 ) | sed "s/^/$as_me: WARNING: /" >&2
16330 esac
16331 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16332 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 eval "$as_ac_Header=\$ac_header_preproc"
16338 ac_res=`eval echo '${'$as_ac_Header'}'`
16339 { echo "$as_me:$LINENO: result: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 ALSA_HEADER_FOUND=1
16345 else
16346 ALSA_HEADER_FOUND=0
16351 CPPFLAGS="${saved_cppflags}"
16352 else
16353 if test "xalsa/asoundlib.h" != "x" ; then
16354 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16355 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16356 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16357 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16361 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16362 else
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16365 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <alsa/asoundlib.h>
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16406 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <alsa/asoundlib.h>
16414 _ACEOF
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null && {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 }; then
16431 ac_header_preproc=yes
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_preproc=no
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 yes:no: )
16446 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc=yes
16452 no:yes:* )
16453 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16465 ( cat <<\_ASBOX
16466 ## ------------------------------- ##
16467 ## Report this to www.asterisk.org ##
16468 ## ------------------------------- ##
16469 _ASBOX
16470 ) | sed "s/^/$as_me: WARNING: /" >&2
16472 esac
16473 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16474 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16475 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16480 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16484 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16485 ALSA_HEADER_FOUND=1
16486 else
16487 ALSA_HEADER_FOUND=0
16493 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16494 if test -n "${ALSA_MANDATORY}" ;
16495 then
16496 { echo "$as_me:$LINENO: ***" >&5
16497 echo "$as_me: ***" >&6;}
16498 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16499 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16500 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16501 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16502 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16503 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16504 exit 1
16506 ALSA_LIB=""
16507 ALSA_INCLUDE=""
16508 PBX_ALSA=0
16509 else
16510 PBX_ALSA=1
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_ALSA 1
16514 _ACEOF
16517 elif test -n "${ALSA_MANDATORY}";
16518 then
16519 { echo "$as_me:$LINENO: ***" >&5
16520 echo "$as_me: ***" >&6;}
16521 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16522 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16523 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16524 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16525 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16526 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16527 exit 1
16533 if test "${USE_CURSES}" != "no"; then
16534 pbxlibdir=""
16535 if test "x${CURSES_DIR}" != "x"; then
16536 if test -d ${CURSES_DIR}/lib; then
16537 pbxlibdir="-L${CURSES_DIR}/lib"
16538 else
16539 pbxlibdir="-L${CURSES_DIR}"
16542 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16543 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16544 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 ac_check_lib_save_LIBS=$LIBS
16548 LIBS="-lcurses ${pbxlibdir} $LIBS"
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h. */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16556 /* Override any GCC internal prototype to avoid an error.
16557 Use char because int might match the return type of a GCC
16558 builtin and then its argument prototype would still apply. */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 char initscr ();
16564 main ()
16566 return initscr ();
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext &&
16588 $as_test_x conftest$ac_exeext; then
16589 ac_cv_lib_curses_initscr=yes
16590 else
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_cv_lib_curses_initscr=no
16597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16598 conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16601 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16602 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16603 if test $ac_cv_lib_curses_initscr = yes; then
16604 AST_CURSES_FOUND=yes
16605 else
16606 AST_CURSES_FOUND=no
16610 if test "${AST_CURSES_FOUND}" = "yes"; then
16611 CURSES_LIB="-lcurses "
16612 CURSES_HEADER_FOUND="1"
16613 if test "x${CURSES_DIR}" != "x"; then
16614 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16615 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16616 saved_cppflags="${CPPFLAGS}"
16617 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16618 if test "xcurses.h" != "x" ; then
16619 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16621 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16622 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629 else
16630 # Is the header compilable?
16631 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16632 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h. */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 $ac_includes_default
16640 #include <${CURSES_DIR}/include/curses.h>
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest.$ac_objext; then
16659 ac_header_compiler=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_compiler=no
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16669 echo "${ECHO_T}$ac_header_compiler" >&6; }
16671 # Is the header present?
16672 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16673 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <${CURSES_DIR}/include/curses.h>
16681 _ACEOF
16682 if { (ac_try="$ac_cpp conftest.$ac_ext"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } >/dev/null && {
16695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16696 test ! -s conftest.err
16697 }; then
16698 ac_header_preproc=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6; }
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16732 ( cat <<\_ASBOX
16733 ## ------------------------------- ##
16734 ## Report this to www.asterisk.org ##
16735 ## ------------------------------- ##
16736 _ASBOX
16737 ) | sed "s/^/$as_me: WARNING: /" >&2
16739 esac
16740 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16741 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745 eval "$as_ac_Header=\$ac_header_preproc"
16747 ac_res=`eval echo '${'$as_ac_Header'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753 CURSES_HEADER_FOUND=1
16754 else
16755 CURSES_HEADER_FOUND=0
16760 CPPFLAGS="${saved_cppflags}"
16761 else
16762 if test "xcurses.h" != "x" ; then
16763 if test "${ac_cv_header_curses_h+set}" = set; then
16764 { echo "$as_me:$LINENO: checking for curses.h" >&5
16765 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16766 if test "${ac_cv_header_curses_h+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16770 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16771 else
16772 # Is the header compilable?
16773 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16774 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 $ac_includes_default
16782 #include <curses.h>
16783 _ACEOF
16784 rm -f conftest.$ac_objext
16785 if { (ac_try="$ac_compile"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16801 ac_header_compiler=yes
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_header_compiler=no
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16811 echo "${ECHO_T}$ac_header_compiler" >&6; }
16813 # Is the header present?
16814 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16815 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 #include <curses.h>
16823 _ACEOF
16824 if { (ac_try="$ac_cpp conftest.$ac_ext"
16825 case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } >/dev/null && {
16837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16838 test ! -s conftest.err
16839 }; then
16840 ac_header_preproc=yes
16841 else
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_header_preproc=no
16848 rm -f conftest.err conftest.$ac_ext
16849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16850 echo "${ECHO_T}$ac_header_preproc" >&6; }
16852 # So? What about this header?
16853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16854 yes:no: )
16855 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16856 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16858 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16859 ac_header_preproc=yes
16861 no:yes:* )
16862 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16863 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16864 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16865 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16866 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16867 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16869 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16871 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16873 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16874 ( cat <<\_ASBOX
16875 ## ------------------------------- ##
16876 ## Report this to www.asterisk.org ##
16877 ## ------------------------------- ##
16878 _ASBOX
16879 ) | sed "s/^/$as_me: WARNING: /" >&2
16881 esac
16882 { echo "$as_me:$LINENO: checking for curses.h" >&5
16883 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16884 if test "${ac_cv_header_curses_h+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887 ac_cv_header_curses_h=$ac_header_preproc
16889 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16890 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16893 if test $ac_cv_header_curses_h = yes; then
16894 CURSES_HEADER_FOUND=1
16895 else
16896 CURSES_HEADER_FOUND=0
16902 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16903 if test -n "${CURSES_MANDATORY}" ;
16904 then
16905 { echo "$as_me:$LINENO: ***" >&5
16906 echo "$as_me: ***" >&6;}
16907 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16908 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16909 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16910 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16912 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16913 exit 1
16915 CURSES_LIB=""
16916 CURSES_INCLUDE=""
16917 PBX_CURSES=0
16918 else
16919 PBX_CURSES=1
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_CURSES 1
16923 _ACEOF
16926 elif test -n "${CURSES_MANDATORY}";
16927 then
16928 { echo "$as_me:$LINENO: ***" >&5
16929 echo "$as_me: ***" >&6;}
16930 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16931 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16935 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16936 exit 1
16941 if test "x${host_os}" = "xlinux-gnu" ; then
16943 if test "${USE_CAP}" != "no"; then
16944 pbxlibdir=""
16945 if test "x${CAP_DIR}" != "x"; then
16946 if test -d ${CAP_DIR}/lib; then
16947 pbxlibdir="-L${CAP_DIR}/lib"
16948 else
16949 pbxlibdir="-L${CAP_DIR}"
16952 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16953 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16954 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 ac_check_lib_save_LIBS=$LIBS
16958 LIBS="-lcap ${pbxlibdir} $LIBS"
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char cap_from_text ();
16974 main ()
16976 return cap_from_text ();
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext &&
16998 $as_test_x conftest$ac_exeext; then
16999 ac_cv_lib_cap_cap_from_text=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_lib_cap_cap_from_text=no
17007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17011 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17012 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17013 if test $ac_cv_lib_cap_cap_from_text = yes; then
17014 AST_CAP_FOUND=yes
17015 else
17016 AST_CAP_FOUND=no
17020 if test "${AST_CAP_FOUND}" = "yes"; then
17021 CAP_LIB="-lcap "
17022 CAP_HEADER_FOUND="1"
17023 if test "x${CAP_DIR}" != "x"; then
17024 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
17025 CAP_INCLUDE="-I${CAP_DIR}/include"
17026 saved_cppflags="${CPPFLAGS}"
17027 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
17028 if test "xsys/capability.h" != "x" ; then
17029 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17031 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17032 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 ac_res=`eval echo '${'$as_ac_Header'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17039 else
17040 # Is the header compilable?
17041 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17042 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h. */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 $ac_includes_default
17050 #include <${CAP_DIR}/include/sys/capability.h>
17051 _ACEOF
17052 rm -f conftest.$ac_objext
17053 if { (ac_try="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_compile") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest.$ac_objext; then
17069 ac_header_compiler=yes
17070 else
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ac_header_compiler=no
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17079 echo "${ECHO_T}$ac_header_compiler" >&6; }
17081 # Is the header present?
17082 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17083 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 #include <${CAP_DIR}/include/sys/capability.h>
17091 _ACEOF
17092 if { (ac_try="$ac_cpp conftest.$ac_ext"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null && {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 }; then
17108 ac_header_preproc=yes
17109 else
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_header_preproc=no
17116 rm -f conftest.err conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 echo "${ECHO_T}$ac_header_preproc" >&6; }
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 yes:no: )
17123 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17124 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17126 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17129 no:yes:* )
17130 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17131 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17133 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17135 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17137 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17139 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17141 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17142 ( cat <<\_ASBOX
17143 ## ------------------------------- ##
17144 ## Report this to www.asterisk.org ##
17145 ## ------------------------------- ##
17146 _ASBOX
17147 ) | sed "s/^/$as_me: WARNING: /" >&2
17149 esac
17150 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17151 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155 eval "$as_ac_Header=\$ac_header_preproc"
17157 ac_res=`eval echo '${'$as_ac_Header'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17163 CAP_HEADER_FOUND=1
17164 else
17165 CAP_HEADER_FOUND=0
17170 CPPFLAGS="${saved_cppflags}"
17171 else
17172 if test "xsys/capability.h" != "x" ; then
17173 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17174 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17175 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17176 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17180 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17181 else
17182 # Is the header compilable?
17183 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17184 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 $ac_includes_default
17192 #include <sys/capability.h>
17193 _ACEOF
17194 rm -f conftest.$ac_objext
17195 if { (ac_try="$ac_compile"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_compile") 2>conftest.er1
17202 ac_status=$?
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest.$ac_objext; then
17211 ac_header_compiler=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_header_compiler=no
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17221 echo "${ECHO_T}$ac_header_compiler" >&6; }
17223 # Is the header present?
17224 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17225 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #include <sys/capability.h>
17233 _ACEOF
17234 if { (ac_try="$ac_cpp conftest.$ac_ext"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } >/dev/null && {
17247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 }; then
17250 ac_header_preproc=yes
17251 else
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_header_preproc=no
17258 rm -f conftest.err conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17260 echo "${ECHO_T}$ac_header_preproc" >&6; }
17262 # So? What about this header?
17263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17264 yes:no: )
17265 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17266 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17268 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17269 ac_header_preproc=yes
17271 no:yes:* )
17272 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17273 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17275 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17276 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17277 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17279 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17281 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17283 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17284 ( cat <<\_ASBOX
17285 ## ------------------------------- ##
17286 ## Report this to www.asterisk.org ##
17287 ## ------------------------------- ##
17288 _ASBOX
17289 ) | sed "s/^/$as_me: WARNING: /" >&2
17291 esac
17292 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17293 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17294 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 ac_cv_header_sys_capability_h=$ac_header_preproc
17299 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17300 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17303 if test $ac_cv_header_sys_capability_h = yes; then
17304 CAP_HEADER_FOUND=1
17305 else
17306 CAP_HEADER_FOUND=0
17312 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17313 if test -n "${CAP_MANDATORY}" ;
17314 then
17315 { echo "$as_me:$LINENO: ***" >&5
17316 echo "$as_me: ***" >&6;}
17317 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17318 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17319 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17320 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17321 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17322 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17323 exit 1
17325 CAP_LIB=""
17326 CAP_INCLUDE=""
17327 PBX_CAP=0
17328 else
17329 PBX_CAP=1
17331 cat >>confdefs.h <<_ACEOF
17332 #define HAVE_CAP 1
17333 _ACEOF
17336 elif test -n "${CAP_MANDATORY}";
17337 then
17338 { echo "$as_me:$LINENO: ***" >&5
17339 echo "$as_me: ***" >&6;}
17340 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17341 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17342 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17343 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17344 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17345 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17346 exit 1
17353 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17354 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17355 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17356 saved_cppflags="${CPPFLAGS}"
17357 if test "x${GETIFADDRS_DIR}" != "x"; then
17358 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17360 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <ifaddrs.h>
17370 main ()
17372 struct ifaddrs *p; getifaddrs(&p);
17375 return 0;
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest.$ac_objext; then
17395 { echo "$as_me:$LINENO: result: yes" >&5
17396 echo "${ECHO_T}yes" >&6; }
17397 PBX_GETIFADDRS=1
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_GETIFADDRS 1
17401 _ACEOF
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_GETIFADDRS_VERSION
17406 _ACEOF
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 { echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6; }
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 CPPFLAGS="${saved_cppflags}"
17423 GSM_INTERNAL="yes"
17425 GSM_SYSTEM="yes"
17426 if test "${USE_GSM}" != "no"; then
17427 if test "${GSM_DIR}" = "internal"; then
17428 GSM_SYSTEM="no"
17429 elif test "${GSM_DIR}" != ""; then
17430 GSM_INTERNAL="no"
17432 if test "${GSM_SYSTEM}" = "yes"; then
17433 gsmlibdir=""
17434 if test "x${GSM_DIR}" != "x"; then
17435 if test -d ${GSM_DIR}/lib; then
17436 gsmlibdir="-L${GSM_DIR}/lib"
17437 else
17438 gsmlibdir="-L${GSM_DIR}"
17441 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17442 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17443 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446 ac_check_lib_save_LIBS=$LIBS
17447 LIBS="-lgsm ${gsmlibdir} $LIBS"
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17455 /* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17458 #ifdef __cplusplus
17459 extern "C"
17460 #endif
17461 char gsm_create ();
17463 main ()
17465 return gsm_create ();
17467 return 0;
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest$ac_exeext &&
17487 $as_test_x conftest$ac_exeext; then
17488 ac_cv_lib_gsm_gsm_create=yes
17489 else
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_cv_lib_gsm_gsm_create=no
17496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17501 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17502 if test $ac_cv_lib_gsm_gsm_create = yes; then
17504 cat >>confdefs.h <<_ACEOF
17505 #define HAVE_GSM 1
17506 _ACEOF
17510 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17511 if test "x${GSM_DIR}" != "x" ; then
17512 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17514 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17515 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 ac_res=`eval echo '${'$as_ac_Header'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 else
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17525 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <${GSM_DIR}/include/gsm.h>
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_header_compiler=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17566 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <${GSM_DIR}/include/gsm.h>
17574 _ACEOF
17575 if { (ac_try="$ac_cpp conftest.$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } >/dev/null && {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17590 }; then
17591 ac_header_preproc=yes
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_header_preproc=no
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17605 yes:no: )
17606 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17607 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17609 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17610 ac_header_preproc=yes
17612 no:yes:* )
17613 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17614 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17616 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17618 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17620 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17624 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17625 ( cat <<\_ASBOX
17626 ## ------------------------------- ##
17627 ## Report this to www.asterisk.org ##
17628 ## ------------------------------- ##
17629 _ASBOX
17630 ) | sed "s/^/$as_me: WARNING: /" >&2
17632 esac
17633 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17634 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638 eval "$as_ac_Header=\$ac_header_preproc"
17640 ac_res=`eval echo '${'$as_ac_Header'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642 echo "${ECHO_T}$ac_res" >&6; }
17645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17646 GSM_HEADER_FOUND=1
17647 else
17648 GSM_HEADER_FOUND=0
17652 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17654 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17655 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 ac_res=`eval echo '${'$as_ac_Header'}'`
17660 { echo "$as_me:$LINENO: result: $ac_res" >&5
17661 echo "${ECHO_T}$ac_res" >&6; }
17662 else
17663 # Is the header compilable?
17664 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17665 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 #include <${GSM_DIR}/include/gsm/gsm.h>
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (ac_try="$ac_compile"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_compile") 2>conftest.er1
17683 ac_status=$?
17684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest.$ac_objext; then
17692 ac_header_compiler=yes
17693 else
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_header_compiler=no
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17702 echo "${ECHO_T}$ac_header_compiler" >&6; }
17704 # Is the header present?
17705 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17706 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 #include <${GSM_DIR}/include/gsm/gsm.h>
17714 _ACEOF
17715 if { (ac_try="$ac_cpp conftest.$ac_ext"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } >/dev/null && {
17728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17730 }; then
17731 ac_header_preproc=yes
17732 else
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_header_preproc=no
17739 rm -f conftest.err conftest.$ac_ext
17740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17741 echo "${ECHO_T}$ac_header_preproc" >&6; }
17743 # So? What about this header?
17744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17745 yes:no: )
17746 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17747 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17749 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17750 ac_header_preproc=yes
17752 no:yes:* )
17753 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17754 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17756 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17758 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17760 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17762 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17764 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17765 ( cat <<\_ASBOX
17766 ## ------------------------------- ##
17767 ## Report this to www.asterisk.org ##
17768 ## ------------------------------- ##
17769 _ASBOX
17770 ) | sed "s/^/$as_me: WARNING: /" >&2
17772 esac
17773 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17774 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 eval "$as_ac_Header=\$ac_header_preproc"
17780 ac_res=`eval echo '${'$as_ac_Header'}'`
17781 { echo "$as_me:$LINENO: result: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17786 GSM_GSM_HEADER_FOUND=1
17787 else
17788 GSM_GSM_HEADER_FOUND=0
17792 else
17793 if test "${ac_cv_header_gsm_h+set}" = set; then
17794 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17795 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17796 if test "${ac_cv_header_gsm_h+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17800 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17801 else
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17804 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 #include <gsm.h>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.$ac_objext; then
17831 ac_header_compiler=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_compiler=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17841 echo "${ECHO_T}$ac_header_compiler" >&6; }
17843 # Is the header present?
17844 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17845 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 #include <gsm.h>
17853 _ACEOF
17854 if { (ac_try="$ac_cpp conftest.$ac_ext"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev/null && {
17867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 }; then
17870 ac_header_preproc=yes
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_header_preproc=no
17878 rm -f conftest.err conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17880 echo "${ECHO_T}$ac_header_preproc" >&6; }
17882 # So? What about this header?
17883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17884 yes:no: )
17885 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17886 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17888 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17889 ac_header_preproc=yes
17891 no:yes:* )
17892 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17893 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17895 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17897 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17899 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17901 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17903 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17904 ( cat <<\_ASBOX
17905 ## ------------------------------- ##
17906 ## Report this to www.asterisk.org ##
17907 ## ------------------------------- ##
17908 _ASBOX
17909 ) | sed "s/^/$as_me: WARNING: /" >&2
17911 esac
17912 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17913 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17914 if test "${ac_cv_header_gsm_h+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 ac_cv_header_gsm_h=$ac_header_preproc
17919 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17920 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17923 if test $ac_cv_header_gsm_h = yes; then
17924 GSM_HEADER_FOUND=1
17925 else
17926 GSM_HEADER_FOUND=0
17930 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17931 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17932 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17933 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17937 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17938 else
17939 # Is the header compilable?
17940 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17941 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 #include <gsm/gsm.h>
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17959 ac_status=$?
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_header_compiler=yes
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_compiler=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6; }
17980 # Is the header present?
17981 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17982 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 #include <gsm/gsm.h>
17990 _ACEOF
17991 if { (ac_try="$ac_cpp conftest.$ac_ext"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } >/dev/null && {
18004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 }; then
18007 ac_header_preproc=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_header_preproc=no
18015 rm -f conftest.err conftest.$ac_ext
18016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6; }
18019 # So? What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18021 yes:no: )
18022 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18026 ac_header_preproc=yes
18028 no:yes:* )
18029 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18041 ( cat <<\_ASBOX
18042 ## ------------------------------- ##
18043 ## Report this to www.asterisk.org ##
18044 ## ------------------------------- ##
18045 _ASBOX
18046 ) | sed "s/^/$as_me: WARNING: /" >&2
18048 esac
18049 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18050 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18051 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 ac_cv_header_gsm_gsm_h=$ac_header_preproc
18056 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18057 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18060 if test $ac_cv_header_gsm_gsm_h = yes; then
18061 GSM_GSM_HEADER_FOUND=1
18062 else
18063 GSM_GSM_HEADER_FOUND=0
18068 if test "${GSM_HEADER_FOUND}" = "0" ; then
18069 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18070 if test "x${GSM_MANDATORY}" = "xyes" ; then
18071 { echo "$as_me:$LINENO: ***" >&5
18072 echo "$as_me: ***" >&6;}
18073 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18074 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18075 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18076 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18077 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18078 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18079 exit 1
18083 GSM_OK=0
18084 if test "${GSM_HEADER_FOUND}" = "1" ; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_GSM_HEADER 1
18088 _ACEOF
18090 GSM_OK=1
18091 else
18092 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_GSM_GSM_HEADER 1
18096 _ACEOF
18098 GSM_OK=1
18101 if test "${GSM_OK}" = "1" ; then
18102 GSM_LIB="-lgsm"
18103 if test "x${GSM_DIR}" != "x"; then
18104 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
18105 GSM_INCLUDE="-I${GSM_DIR}/include"
18107 PBX_GSM=1
18108 GSM_INTERNAL="no"
18112 if test "${GSM_INTERNAL}" = "yes"; then
18113 PBX_GSM=1
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_GSM_HEADER 1
18117 _ACEOF
18123 if test "${USE_IKSEMEL}" != "no"; then
18124 pbxlibdir=""
18125 if test "x${IKSEMEL_DIR}" != "x"; then
18126 if test -d ${IKSEMEL_DIR}/lib; then
18127 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18128 else
18129 pbxlibdir="-L${IKSEMEL_DIR}"
18132 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18133 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18134 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137 ac_check_lib_save_LIBS=$LIBS
18138 LIBS="-liksemel ${pbxlibdir} $LIBS"
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h. */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 char iks_start_sasl ();
18154 main ()
18156 return iks_start_sasl ();
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
18169 ac_status=$?
18170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } && {
18175 test -z "$ac_c_werror_flag" ||
18176 test ! -s conftest.err
18177 } && test -s conftest$ac_exeext &&
18178 $as_test_x conftest$ac_exeext; then
18179 ac_cv_lib_iksemel_iks_start_sasl=yes
18180 else
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_iksemel_iks_start_sasl=no
18187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18188 conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18192 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18193 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18194 AST_IKSEMEL_FOUND=yes
18195 else
18196 AST_IKSEMEL_FOUND=no
18200 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18201 IKSEMEL_LIB="-liksemel "
18202 IKSEMEL_HEADER_FOUND="1"
18203 if test "x${IKSEMEL_DIR}" != "x"; then
18204 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18205 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18206 saved_cppflags="${CPPFLAGS}"
18207 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18208 if test "xiksemel.h" != "x" ; then
18209 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
18210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18211 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18212 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_res=`eval echo '${'$as_ac_Header'}'`
18217 { echo "$as_me:$LINENO: result: $ac_res" >&5
18218 echo "${ECHO_T}$ac_res" >&6; }
18219 else
18220 # Is the header compilable?
18221 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18222 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 $ac_includes_default
18230 #include <${IKSEMEL_DIR}/include/iksemel.h>
18231 _ACEOF
18232 rm -f conftest.$ac_objext
18233 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18240 ac_status=$?
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } && {
18246 test -z "$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18248 } && test -s conftest.$ac_objext; then
18249 ac_header_compiler=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_header_compiler=no
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18259 echo "${ECHO_T}$ac_header_compiler" >&6; }
18261 # Is the header present?
18262 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18263 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 #include <${IKSEMEL_DIR}/include/iksemel.h>
18271 _ACEOF
18272 if { (ac_try="$ac_cpp conftest.$ac_ext"
18273 case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18276 esac
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } >/dev/null && {
18285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 }; then
18288 ac_header_preproc=yes
18289 else
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_header_preproc=no
18296 rm -f conftest.err conftest.$ac_ext
18297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18298 echo "${ECHO_T}$ac_header_preproc" >&6; }
18300 # So? What about this header?
18301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18302 yes:no: )
18303 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18304 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18305 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18306 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18307 ac_header_preproc=yes
18309 no:yes:* )
18310 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18311 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18313 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18315 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18317 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18319 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18321 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18322 ( cat <<\_ASBOX
18323 ## ------------------------------- ##
18324 ## Report this to www.asterisk.org ##
18325 ## ------------------------------- ##
18326 _ASBOX
18327 ) | sed "s/^/$as_me: WARNING: /" >&2
18329 esac
18330 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18331 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335 eval "$as_ac_Header=\$ac_header_preproc"
18337 ac_res=`eval echo '${'$as_ac_Header'}'`
18338 { echo "$as_me:$LINENO: result: $ac_res" >&5
18339 echo "${ECHO_T}$ac_res" >&6; }
18342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18343 IKSEMEL_HEADER_FOUND=1
18344 else
18345 IKSEMEL_HEADER_FOUND=0
18350 CPPFLAGS="${saved_cppflags}"
18351 else
18352 if test "xiksemel.h" != "x" ; then
18353 if test "${ac_cv_header_iksemel_h+set}" = set; then
18354 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18355 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18356 if test "${ac_cv_header_iksemel_h+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18360 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18361 else
18362 # Is the header compilable?
18363 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18364 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 $ac_includes_default
18372 #include <iksemel.h>
18373 _ACEOF
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.$ac_objext; then
18391 ac_header_compiler=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_header_compiler=no
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18401 echo "${ECHO_T}$ac_header_compiler" >&6; }
18403 # Is the header present?
18404 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18405 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #include <iksemel.h>
18413 _ACEOF
18414 if { (ac_try="$ac_cpp conftest.$ac_ext"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } >/dev/null && {
18427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18429 }; then
18430 ac_header_preproc=yes
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_header_preproc=no
18438 rm -f conftest.err conftest.$ac_ext
18439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18440 echo "${ECHO_T}$ac_header_preproc" >&6; }
18442 # So? What about this header?
18443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18444 yes:no: )
18445 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18446 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18448 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18449 ac_header_preproc=yes
18451 no:yes:* )
18452 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18453 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18455 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18457 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18459 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18461 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18463 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18464 ( cat <<\_ASBOX
18465 ## ------------------------------- ##
18466 ## Report this to www.asterisk.org ##
18467 ## ------------------------------- ##
18468 _ASBOX
18469 ) | sed "s/^/$as_me: WARNING: /" >&2
18471 esac
18472 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18473 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18474 if test "${ac_cv_header_iksemel_h+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 ac_cv_header_iksemel_h=$ac_header_preproc
18479 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18480 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18483 if test $ac_cv_header_iksemel_h = yes; then
18484 IKSEMEL_HEADER_FOUND=1
18485 else
18486 IKSEMEL_HEADER_FOUND=0
18492 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18493 if test -n "${IKSEMEL_MANDATORY}" ;
18494 then
18495 { echo "$as_me:$LINENO: ***" >&5
18496 echo "$as_me: ***" >&6;}
18497 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18498 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18499 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18500 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18501 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18502 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18503 exit 1
18505 IKSEMEL_LIB=""
18506 IKSEMEL_INCLUDE=""
18507 PBX_IKSEMEL=0
18508 else
18509 PBX_IKSEMEL=1
18511 cat >>confdefs.h <<_ACEOF
18512 #define HAVE_IKSEMEL 1
18513 _ACEOF
18516 elif test -n "${IKSEMEL_MANDATORY}";
18517 then
18518 { echo "$as_me:$LINENO: ***" >&5
18519 echo "$as_me: ***" >&6;}
18520 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18521 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18522 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18523 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18524 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18525 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18526 exit 1
18531 if test "${PBX_IKSEMEL}" = 1; then
18533 if test "${USE_GNUTLS}" != "no"; then
18534 pbxlibdir=""
18535 if test "x${GNUTLS_DIR}" != "x"; then
18536 if test -d ${GNUTLS_DIR}/lib; then
18537 pbxlibdir="-L${GNUTLS_DIR}/lib"
18538 else
18539 pbxlibdir="-L${GNUTLS_DIR}"
18542 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18543 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547 ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h. */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18559 #ifdef __cplusplus
18560 extern "C"
18561 #endif
18562 char gnutls_bye ();
18564 main ()
18566 return gnutls_bye ();
18568 return 0;
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest$ac_exeext &&
18588 $as_test_x conftest$ac_exeext; then
18589 ac_cv_lib_gnutls_gnutls_bye=yes
18590 else
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_lib_gnutls_gnutls_bye=no
18597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18598 conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18602 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18603 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18604 AST_GNUTLS_FOUND=yes
18605 else
18606 AST_GNUTLS_FOUND=no
18610 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18611 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18612 GNUTLS_HEADER_FOUND="1"
18613 if test "x${GNUTLS_DIR}" != "x"; then
18614 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18615 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18616 saved_cppflags="${CPPFLAGS}"
18617 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18618 if test "xgnutls/gnutls.h" != "x" ; then
18619 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18621 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18622 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 ac_res=`eval echo '${'$as_ac_Header'}'`
18627 { echo "$as_me:$LINENO: result: $ac_res" >&5
18628 echo "${ECHO_T}$ac_res" >&6; }
18629 else
18630 # Is the header compilable?
18631 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18632 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 $ac_includes_default
18640 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18641 _ACEOF
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_compile") 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && {
18656 test -z "$ac_c_werror_flag" ||
18657 test ! -s conftest.err
18658 } && test -s conftest.$ac_objext; then
18659 ac_header_compiler=yes
18660 else
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_header_compiler=no
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18669 echo "${ECHO_T}$ac_header_compiler" >&6; }
18671 # Is the header present?
18672 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18673 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18681 _ACEOF
18682 if { (ac_try="$ac_cpp conftest.$ac_ext"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } >/dev/null && {
18695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 }; then
18698 ac_header_preproc=yes
18699 else
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 ac_header_preproc=no
18706 rm -f conftest.err conftest.$ac_ext
18707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18708 echo "${ECHO_T}$ac_header_preproc" >&6; }
18710 # So? What about this header?
18711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18712 yes:no: )
18713 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18714 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18716 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18717 ac_header_preproc=yes
18719 no:yes:* )
18720 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18721 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18723 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18725 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18727 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18731 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18732 ( cat <<\_ASBOX
18733 ## ------------------------------- ##
18734 ## Report this to www.asterisk.org ##
18735 ## ------------------------------- ##
18736 _ASBOX
18737 ) | sed "s/^/$as_me: WARNING: /" >&2
18739 esac
18740 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18741 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745 eval "$as_ac_Header=\$ac_header_preproc"
18747 ac_res=`eval echo '${'$as_ac_Header'}'`
18748 { echo "$as_me:$LINENO: result: $ac_res" >&5
18749 echo "${ECHO_T}$ac_res" >&6; }
18752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18753 GNUTLS_HEADER_FOUND=1
18754 else
18755 GNUTLS_HEADER_FOUND=0
18760 CPPFLAGS="${saved_cppflags}"
18761 else
18762 if test "xgnutls/gnutls.h" != "x" ; then
18763 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18764 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18765 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18766 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18770 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18771 else
18772 # Is the header compilable?
18773 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18774 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 $ac_includes_default
18782 #include <gnutls/gnutls.h>
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_header_compiler=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_compiler=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18811 echo "${ECHO_T}$ac_header_compiler" >&6; }
18813 # Is the header present?
18814 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18815 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <gnutls/gnutls.h>
18823 _ACEOF
18824 if { (ac_try="$ac_cpp conftest.$ac_ext"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } >/dev/null && {
18837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 }; then
18840 ac_header_preproc=yes
18841 else
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ac_header_preproc=no
18848 rm -f conftest.err conftest.$ac_ext
18849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 echo "${ECHO_T}$ac_header_preproc" >&6; }
18852 # So? What about this header?
18853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18854 yes:no: )
18855 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18856 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18858 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18859 ac_header_preproc=yes
18861 no:yes:* )
18862 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18863 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18865 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18867 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18869 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18871 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18873 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18874 ( cat <<\_ASBOX
18875 ## ------------------------------- ##
18876 ## Report this to www.asterisk.org ##
18877 ## ------------------------------- ##
18878 _ASBOX
18879 ) | sed "s/^/$as_me: WARNING: /" >&2
18881 esac
18882 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18883 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18884 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18889 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18890 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18893 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18894 GNUTLS_HEADER_FOUND=1
18895 else
18896 GNUTLS_HEADER_FOUND=0
18902 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18903 if test -n "${GNUTLS_MANDATORY}" ;
18904 then
18905 { echo "$as_me:$LINENO: ***" >&5
18906 echo "$as_me: ***" >&6;}
18907 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18908 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18909 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18910 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18912 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18913 exit 1
18915 GNUTLS_LIB=""
18916 GNUTLS_INCLUDE=""
18917 PBX_GNUTLS=0
18918 else
18919 PBX_GNUTLS=1
18921 cat >>confdefs.h <<_ACEOF
18922 #define HAVE_GNUTLS 1
18923 _ACEOF
18926 elif test -n "${GNUTLS_MANDATORY}";
18927 then
18928 { echo "$as_me:$LINENO: ***" >&5
18929 echo "$as_me: ***" >&6;}
18930 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18931 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18935 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18936 exit 1
18942 if test "${USE_IMAP_TK}" != "no"; then
18943 saved_cppflags="${CPPFLAGS}"
18944 saved_libs="${LIBS}"
18945 switch_to_system_on_failure="no"
18946 if test "${IMAP_TK_DIR}" = ""; then
18947 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18948 switch_to_system_on_failure="yes"
18950 if test "${IMAP_TK_DIR}" != "system"; then
18951 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18952 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18953 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18954 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18956 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18957 imap_include="-I${IMAP_TK_DIR}/c-client"
18958 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18959 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h. */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 #include "c-client.h"
18967 void mm_searched (MAILSTREAM *stream,unsigned long number)
18970 void mm_exists (MAILSTREAM *stream,unsigned long number)
18973 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18976 void mm_flags (MAILSTREAM *stream,unsigned long number)
18979 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18982 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18985 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18988 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18991 void mm_log (char *string,long errflg)
18994 void mm_dlog (char *string)
18997 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19000 void mm_critical (MAILSTREAM *stream)
19003 void mm_nocritical (MAILSTREAM *stream)
19006 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19009 void mm_fatal (char *string)
19013 main ()
19016 MAILSTREAM *foo = mail_open(NULL, "", 0);
19020 return 0;
19022 _ACEOF
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest$ac_exeext &&
19040 $as_test_x conftest$ac_exeext; then
19041 ac_cv_imap_tk="yes"
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_cv_imap_tk="no"
19050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052 if test "${ac_cv_imap_tk}" = "yes"; then
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #include "c-client.h"
19060 void mm_searched (MAILSTREAM *stream,unsigned long number)
19063 void mm_exists (MAILSTREAM *stream,unsigned long number)
19066 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19069 void mm_flags (MAILSTREAM *stream,unsigned long number)
19072 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19075 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19078 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19081 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19084 void mm_log (char *string,long errflg)
19087 void mm_dlog (char *string)
19090 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19093 void mm_critical (MAILSTREAM *stream)
19096 void mm_nocritical (MAILSTREAM *stream)
19099 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19102 void mm_fatal (char *string)
19106 main ()
19109 long check = mail_expunge_full(NULL, "", 0);
19113 return 0;
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_imap_tk2006="yes"
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_imap_tk2006="no"
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144 conftest$ac_exeext conftest.$ac_ext
19146 CPPFLAGS="${saved_cppflags}"
19147 LIBS="${saved_libs}"
19148 if test "${ac_cv_imap_tk}" = "no"; then
19149 { echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6; }
19151 if test "${switch_to_system_on_failure}" = "yes"; then
19152 IMAP_TK_DIR="system"
19153 else #This means they specified a directory. Search for a package installation there too
19154 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19155 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19156 CPPFLAGS="${saved_cppflags}"
19157 LIBS="${saved_libs}"
19158 imap_include="-I${IMAP_TK_DIR}/include"
19159 imap_ldflags="-L${IMAP_TK_DIR}/lib"
19160 imap_libs="-lc-client"
19161 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19162 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include "c-client.h"
19170 void mm_searched (MAILSTREAM *stream,unsigned long number)
19173 void mm_exists (MAILSTREAM *stream,unsigned long number)
19176 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19179 void mm_flags (MAILSTREAM *stream,unsigned long number)
19182 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19185 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19188 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19191 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19194 void mm_log (char *string,long errflg)
19197 void mm_dlog (char *string)
19200 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19203 void mm_critical (MAILSTREAM *stream)
19206 void mm_nocritical (MAILSTREAM *stream)
19209 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19212 void mm_fatal (char *string)
19216 main ()
19219 MAILSTREAM *foo = mail_open(NULL, "", 0);
19223 return 0;
19225 _ACEOF
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_imap_tk="yes"
19245 else
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_imap_tk="no"
19253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19254 conftest$ac_exeext conftest.$ac_ext
19255 if test "${ac_cv_imap_tk}" = "yes"; then
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include "c-client.h"
19263 void mm_searched (MAILSTREAM *stream,unsigned long number)
19266 void mm_exists (MAILSTREAM *stream,unsigned long number)
19269 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19272 void mm_flags (MAILSTREAM *stream,unsigned long number)
19275 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19278 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19281 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19284 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19287 void mm_log (char *string,long errflg)
19290 void mm_dlog (char *string)
19293 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19296 void mm_critical (MAILSTREAM *stream)
19299 void mm_nocritical (MAILSTREAM *stream)
19302 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19305 void mm_fatal (char *string)
19309 main ()
19312 long check = mail_expunge_full(NULL, "", 0);
19316 return 0;
19318 _ACEOF
19319 rm -f conftest.$ac_objext conftest$ac_exeext
19320 if { (ac_try="$ac_link"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_link") 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } && {
19333 test -z "$ac_c_werror_flag" ||
19334 test ! -s conftest.err
19335 } && test -s conftest$ac_exeext &&
19336 $as_test_x conftest$ac_exeext; then
19337 ac_cv_imap_tk2006="yes"
19338 else
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_imap_tk2006="no"
19346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19347 conftest$ac_exeext conftest.$ac_ext
19352 if test "${IMAP_TK_DIR}" = "system"; then
19353 #We will enter here if user specified "system" or if any of above checks failed
19354 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19355 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19356 CPPFLAGS="${saved_cppflags}"
19357 LIBS="${saved_libs}"
19358 imap_ldflags=""
19359 imap_libs="-lc-client"
19360 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19361 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19362 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 #include <stdio.h>
19370 #include <imap/c-client.h>
19371 void mm_searched (MAILSTREAM *stream,unsigned long number)
19374 void mm_exists (MAILSTREAM *stream,unsigned long number)
19377 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19380 void mm_flags (MAILSTREAM *stream,unsigned long number)
19383 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19386 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19389 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19392 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19395 void mm_log (char *string,long errflg)
19398 void mm_dlog (char *string)
19401 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19404 void mm_critical (MAILSTREAM *stream)
19407 void mm_nocritical (MAILSTREAM *stream)
19410 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19413 void mm_fatal (char *string)
19417 main ()
19420 MAILSTREAM *foo = mail_open(NULL, "", 0);
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } && {
19441 test -z "$ac_c_werror_flag" ||
19442 test ! -s conftest.err
19443 } && test -s conftest$ac_exeext &&
19444 $as_test_x conftest$ac_exeext; then
19445 ac_cv_imap_tk="yes"
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_cv_imap_tk="no"
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455 conftest$ac_exeext conftest.$ac_ext
19456 if test "${ac_cv_imap_tk}" = "yes"; then
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 #include <stdio.h>
19464 #include <imap/c-client.h>
19465 void mm_searched (MAILSTREAM *stream,unsigned long number)
19468 void mm_exists (MAILSTREAM *stream,unsigned long number)
19471 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19474 void mm_flags (MAILSTREAM *stream,unsigned long number)
19477 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19480 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19483 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19486 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19489 void mm_log (char *string,long errflg)
19492 void mm_dlog (char *string)
19495 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19498 void mm_critical (MAILSTREAM *stream)
19501 void mm_nocritical (MAILSTREAM *stream)
19504 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19507 void mm_fatal (char *string)
19511 main ()
19514 long check = mail_expunge_full(NULL, "", 0);
19518 return 0;
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext &&
19538 $as_test_x conftest$ac_exeext; then
19539 ac_cv_imap_tk2006="yes"
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_imap_tk2006="no"
19548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19549 conftest$ac_exeext conftest.$ac_ext
19550 else #looking in imap directory didn't work, try c-client
19551 imap_ldflags=""
19552 imap_libs="-lc-client"
19553 imap_include="-DUSE_SYSTEM_CCLIENT"
19554 CPPFLAGS="${saved_cppflags}"
19555 LIBS="${saved_libs}"
19556 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19557 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h. */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19564 #include <stdio.h>
19565 #include <c-client/c-client.h>
19566 void mm_searched (MAILSTREAM *stream,unsigned long number)
19569 void mm_exists (MAILSTREAM *stream,unsigned long number)
19572 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19575 void mm_flags (MAILSTREAM *stream,unsigned long number)
19578 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19581 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19584 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19587 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19590 void mm_log (char *string,long errflg)
19593 void mm_dlog (char *string)
19596 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19599 void mm_critical (MAILSTREAM *stream)
19602 void mm_nocritical (MAILSTREAM *stream)
19605 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19608 void mm_fatal (char *string)
19612 main ()
19615 MAILSTREAM *foo = mail_open(NULL, "", 0);
19619 return 0;
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } && {
19636 test -z "$ac_c_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest$ac_exeext &&
19639 $as_test_x conftest$ac_exeext; then
19640 ac_cv_imap_tk="yes"
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_cv_imap_tk="no"
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19651 if test "${ac_cv_imap_tk}" = "yes"; then
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <stdio.h>
19659 #include <c-client/c-client.h>
19660 void mm_searched (MAILSTREAM *stream,unsigned long number)
19663 void mm_exists (MAILSTREAM *stream,unsigned long number)
19666 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19669 void mm_flags (MAILSTREAM *stream,unsigned long number)
19672 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19675 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19678 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19681 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19684 void mm_log (char *string,long errflg)
19687 void mm_dlog (char *string)
19690 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19693 void mm_critical (MAILSTREAM *stream)
19696 void mm_nocritical (MAILSTREAM *stream)
19699 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19702 void mm_fatal (char *string)
19706 main ()
19709 long check = mail_expunge_full(NULL, "", 0);
19713 return 0;
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 ac_cv_imap_tk2006="yes"
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_imap_tk2006="no"
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19748 if test "${ac_cv_imap_tk}" = "yes"; then
19749 { echo "$as_me:$LINENO: result: yes" >&5
19750 echo "${ECHO_T}yes" >&6; }
19751 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19752 IMAP_TK_INCLUDE="${imap_include}"
19753 PBX_IMAP_TK=1
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE_IMAP_TK 1
19757 _ACEOF
19759 if test "${ac_cv_imap_tk2006}" = "yes"; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE_IMAP_TK2006 1
19763 _ACEOF
19766 elif test -n "${IMAP_TK_MANDATORY}"; then
19767 { echo "$as_me:$LINENO: result: no" >&5
19768 echo "${ECHO_T}no" >&6; }
19769 { echo "$as_me:$LINENO: ***" >&5
19770 echo "$as_me: ***" >&6;}
19771 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19772 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19773 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19774 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19775 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19776 echo "$as_me: *** including --without-imap." >&6;}
19777 exit 1
19778 else
19779 { echo "$as_me:$LINENO: result: no" >&5
19780 echo "${ECHO_T}no" >&6; }
19782 CPPFLAGS="${saved_cppflags}"
19783 LIBS="${saved_libs}"
19786 # Needed by unixodbc
19788 if test "${USE_LTDL}" != "no"; then
19789 pbxlibdir=""
19790 if test "x${LTDL_DIR}" != "x"; then
19791 if test -d ${LTDL_DIR}/lib; then
19792 pbxlibdir="-L${LTDL_DIR}/lib"
19793 else
19794 pbxlibdir="-L${LTDL_DIR}"
19797 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19798 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19799 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 ac_check_lib_save_LIBS=$LIBS
19803 LIBS="-lltdl ${pbxlibdir} $LIBS"
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h. */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char lt_dlinit ();
19819 main ()
19821 return lt_dlinit ();
19823 return 0;
19825 _ACEOF
19826 rm -f conftest.$ac_objext conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_link") 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest$ac_exeext &&
19843 $as_test_x conftest$ac_exeext; then
19844 ac_cv_lib_ltdl_lt_dlinit=yes
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_lib_ltdl_lt_dlinit=no
19852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19853 conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19856 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19857 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19858 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19859 AST_LTDL_FOUND=yes
19860 else
19861 AST_LTDL_FOUND=no
19865 if test "${AST_LTDL_FOUND}" = "yes"; then
19866 LTDL_LIB="-lltdl "
19867 LTDL_HEADER_FOUND="1"
19868 if test "x${LTDL_DIR}" != "x"; then
19869 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19870 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19871 saved_cppflags="${CPPFLAGS}"
19872 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19873 if test "xltdl.h" != "x" ; then
19874 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19876 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19877 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882 { echo "$as_me:$LINENO: result: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19884 else
19885 # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19887 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #include <${LTDL_DIR}/include/ltdl.h>
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_header_compiler=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_header_compiler=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19928 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <${LTDL_DIR}/include/ltdl.h>
19936 _ACEOF
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
19950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951 test ! -s conftest.err
19952 }; then
19953 ac_header_preproc=yes
19954 else
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_header_preproc=no
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19965 # So? What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19967 yes:no: )
19968 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19971 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19972 ac_header_preproc=yes
19974 no:yes:* )
19975 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19976 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19978 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19980 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19982 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19984 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19986 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19987 ( cat <<\_ASBOX
19988 ## ------------------------------- ##
19989 ## Report this to www.asterisk.org ##
19990 ## ------------------------------- ##
19991 _ASBOX
19992 ) | sed "s/^/$as_me: WARNING: /" >&2
19994 esac
19995 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19996 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000 eval "$as_ac_Header=\$ac_header_preproc"
20002 ac_res=`eval echo '${'$as_ac_Header'}'`
20003 { echo "$as_me:$LINENO: result: $ac_res" >&5
20004 echo "${ECHO_T}$ac_res" >&6; }
20007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20008 LTDL_HEADER_FOUND=1
20009 else
20010 LTDL_HEADER_FOUND=0
20015 CPPFLAGS="${saved_cppflags}"
20016 else
20017 if test "xltdl.h" != "x" ; then
20018 if test "${ac_cv_header_ltdl_h+set}" = set; then
20019 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20020 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20021 if test "${ac_cv_header_ltdl_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20025 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20026 else
20027 # Is the header compilable?
20028 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20029 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 $ac_includes_default
20037 #include <ltdl.h>
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_compile") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest.$ac_objext; then
20056 ac_header_compiler=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_header_compiler=no
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20066 echo "${ECHO_T}$ac_header_compiler" >&6; }
20068 # Is the header present?
20069 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20070 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 #include <ltdl.h>
20078 _ACEOF
20079 if { (ac_try="$ac_cpp conftest.$ac_ext"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20086 ac_status=$?
20087 grep -v '^ *+' conftest.er1 >conftest.err
20088 rm -f conftest.er1
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } >/dev/null && {
20092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 }; then
20095 ac_header_preproc=yes
20096 else
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_header_preproc=no
20103 rm -f conftest.err conftest.$ac_ext
20104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20105 echo "${ECHO_T}$ac_header_preproc" >&6; }
20107 # So? What about this header?
20108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20109 yes:no: )
20110 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20111 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20113 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20114 ac_header_preproc=yes
20116 no:yes:* )
20117 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20118 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20120 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20122 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20124 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20126 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20128 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20129 ( cat <<\_ASBOX
20130 ## ------------------------------- ##
20131 ## Report this to www.asterisk.org ##
20132 ## ------------------------------- ##
20133 _ASBOX
20134 ) | sed "s/^/$as_me: WARNING: /" >&2
20136 esac
20137 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20138 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20139 if test "${ac_cv_header_ltdl_h+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 ac_cv_header_ltdl_h=$ac_header_preproc
20144 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20145 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20148 if test $ac_cv_header_ltdl_h = yes; then
20149 LTDL_HEADER_FOUND=1
20150 else
20151 LTDL_HEADER_FOUND=0
20157 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20158 if test -n "${LTDL_MANDATORY}" ;
20159 then
20160 { echo "$as_me:$LINENO: ***" >&5
20161 echo "$as_me: ***" >&6;}
20162 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20163 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20164 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20165 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20166 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20167 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20168 exit 1
20170 LTDL_LIB=""
20171 LTDL_INCLUDE=""
20172 PBX_LTDL=0
20173 else
20174 PBX_LTDL=1
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_LTDL 1
20178 _ACEOF
20181 elif test -n "${LTDL_MANDATORY}";
20182 then
20183 { echo "$as_me:$LINENO: ***" >&5
20184 echo "$as_me: ***" >&6;}
20185 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20186 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20187 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20188 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20189 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20190 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20191 exit 1
20196 ac_ext=cpp
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20203 if test "${USE_KDE}" != "no"; then
20204 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20205 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20206 saved_libs="${LIBS}"
20207 saved_cppflags="${CPPFLAGS}"
20208 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20209 if test -d ${KDE_DIR}/lib; then
20210 kdelibdir="${KDE_DIR}/lib"
20211 else
20212 kdelibdir="${KDE_DIR}"
20214 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include "kcrash.h"
20225 main ()
20227 KCrash::defaultCrashHandler(1);
20229 return 0;
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_cxx_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest$ac_exeext &&
20250 $as_test_x conftest$ac_exeext; then
20251 ac_cv_lib_kde_crash="yes"
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_cv_lib_kde_crash="no"
20259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20260 conftest$ac_exeext conftest.$ac_ext
20262 LIBS="${saved_libs}"
20263 CPPFLAGS="${saved_cppflags}"
20265 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20266 { echo "$as_me:$LINENO: result: yes" >&5
20267 echo "${ECHO_T}yes" >&6; }
20268 KDE_LIB="-lkdecore -lkdeui"
20269 if test "${KDE_DIR}" != ""; then
20270 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
20271 KDE_INCLUDE="-I${KDE_DIR}/include"
20273 PBX_KDE=1
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_LIBKDE 1
20277 _ACEOF
20279 elif test -n "${KDE_MANDATORY}"; then
20280 { echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6; }
20282 { echo "$as_me:$LINENO: ***" >&5
20283 echo "$as_me: ***" >&6;}
20284 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20285 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20286 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20287 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20288 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20289 echo "$as_me: *** including --without-kde." >&6;}
20290 exit 1
20291 else
20292 { echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6; }
20296 if test "${PBX_KDE}" = 1; then
20297 if test -n "$ac_tool_prefix"; then
20298 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20299 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
20300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20302 if test "${ac_cv_path_KDEINIT+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 case $KDEINIT in
20306 [\\/]* | ?:[\\/]*)
20307 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
20310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20311 for as_dir in $PATH
20313 IFS=$as_save_IFS
20314 test -z "$as_dir" && as_dir=.
20315 for ac_exec_ext in '' $ac_executable_extensions; do
20316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20317 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20319 break 2
20321 done
20322 done
20323 IFS=$as_save_IFS
20326 esac
20328 KDEINIT=$ac_cv_path_KDEINIT
20329 if test -n "$KDEINIT"; then
20330 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20331 echo "${ECHO_T}$KDEINIT" >&6; }
20332 else
20333 { echo "$as_me:$LINENO: result: no" >&5
20334 echo "${ECHO_T}no" >&6; }
20339 if test -z "$ac_cv_path_KDEINIT"; then
20340 ac_pt_KDEINIT=$KDEINIT
20341 # Extract the first word of "kdeinit", so it can be a program name with args.
20342 set dummy kdeinit; ac_word=$2
20343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20345 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348 case $ac_pt_KDEINIT in
20349 [\\/]* | ?:[\\/]*)
20350 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
20353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20354 for as_dir in $PATH
20356 IFS=$as_save_IFS
20357 test -z "$as_dir" && as_dir=.
20358 for ac_exec_ext in '' $ac_executable_extensions; do
20359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20360 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20362 break 2
20364 done
20365 done
20366 IFS=$as_save_IFS
20369 esac
20371 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
20372 if test -n "$ac_pt_KDEINIT"; then
20373 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20374 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20375 else
20376 { echo "$as_me:$LINENO: result: no" >&5
20377 echo "${ECHO_T}no" >&6; }
20380 if test "x$ac_pt_KDEINIT" = x; then
20381 KDEINIT="No"
20382 else
20383 case $cross_compiling:$ac_tool_warned in
20384 yes:)
20385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20386 whose name does not start with the host triplet. If you think this
20387 configuration is useful to you, please write to autoconf@gnu.org." >&5
20388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20389 whose name does not start with the host triplet. If you think this
20390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20391 ac_tool_warned=yes ;;
20392 esac
20393 KDEINIT=$ac_pt_KDEINIT
20395 else
20396 KDEINIT="$ac_cv_path_KDEINIT"
20399 if test ! x"${KDEINIT}" = xNo; then
20400 KDEDIR=$(${DIRNAME} ${KDEINIT})
20401 KDEDIR=$(${DIRNAME} ${KDEDIR})
20406 ac_ext=c
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414 if test "${USE_MISDN}" != "no"; then
20415 pbxlibdir=""
20416 if test "x${MISDN_DIR}" != "x"; then
20417 if test -d ${MISDN_DIR}/lib; then
20418 pbxlibdir="-L${MISDN_DIR}/lib"
20419 else
20420 pbxlibdir="-L${MISDN_DIR}"
20423 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20424 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20425 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 ac_check_lib_save_LIBS=$LIBS
20429 LIBS="-lmISDN ${pbxlibdir} $LIBS"
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char mISDN_open ();
20445 main ()
20447 return mISDN_open ();
20449 return 0;
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext &&
20469 $as_test_x conftest$ac_exeext; then
20470 ac_cv_lib_mISDN_mISDN_open=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_mISDN_mISDN_open=no
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20483 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20484 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20485 AST_MISDN_FOUND=yes
20486 else
20487 AST_MISDN_FOUND=no
20491 if test "${AST_MISDN_FOUND}" = "yes"; then
20492 MISDN_LIB="-lmISDN "
20493 MISDN_HEADER_FOUND="1"
20494 if test "x${MISDN_DIR}" != "x"; then
20495 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20496 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20497 saved_cppflags="${CPPFLAGS}"
20498 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20499 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20500 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
20501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20502 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20503 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_res=`eval echo '${'$as_ac_Header'}'`
20508 { echo "$as_me:$LINENO: result: $ac_res" >&5
20509 echo "${ECHO_T}$ac_res" >&6; }
20510 else
20511 # Is the header compilable?
20512 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20513 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h. */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 $ac_includes_default
20521 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20522 _ACEOF
20523 rm -f conftest.$ac_objext
20524 if { (ac_try="$ac_compile"
20525 case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_compile") 2>conftest.er1
20531 ac_status=$?
20532 grep -v '^ *+' conftest.er1 >conftest.err
20533 rm -f conftest.er1
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && {
20537 test -z "$ac_c_werror_flag" ||
20538 test ! -s conftest.err
20539 } && test -s conftest.$ac_objext; then
20540 ac_header_compiler=yes
20541 else
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20545 ac_header_compiler=no
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20550 echo "${ECHO_T}$ac_header_compiler" >&6; }
20552 # Is the header present?
20553 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20554 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20562 _ACEOF
20563 if { (ac_try="$ac_cpp conftest.$ac_ext"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } >/dev/null && {
20576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 }; then
20579 ac_header_preproc=yes
20580 else
20581 echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20584 ac_header_preproc=no
20587 rm -f conftest.err conftest.$ac_ext
20588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20589 echo "${ECHO_T}$ac_header_preproc" >&6; }
20591 # So? What about this header?
20592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20593 yes:no: )
20594 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20595 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20597 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20598 ac_header_preproc=yes
20600 no:yes:* )
20601 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20602 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20604 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20606 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20608 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20610 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20612 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20613 ( cat <<\_ASBOX
20614 ## ------------------------------- ##
20615 ## Report this to www.asterisk.org ##
20616 ## ------------------------------- ##
20617 _ASBOX
20618 ) | sed "s/^/$as_me: WARNING: /" >&2
20620 esac
20621 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20622 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626 eval "$as_ac_Header=\$ac_header_preproc"
20628 ac_res=`eval echo '${'$as_ac_Header'}'`
20629 { echo "$as_me:$LINENO: result: $ac_res" >&5
20630 echo "${ECHO_T}$ac_res" >&6; }
20633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20634 MISDN_HEADER_FOUND=1
20635 else
20636 MISDN_HEADER_FOUND=0
20641 CPPFLAGS="${saved_cppflags}"
20642 else
20643 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20644 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20645 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20646 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20647 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20651 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20652 else
20653 # Is the header compilable?
20654 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20655 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 #include <mISDNuser/mISDNlib.h>
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (ac_try="$ac_compile"
20667 case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_compile") 2>conftest.er1
20673 ac_status=$?
20674 grep -v '^ *+' conftest.er1 >conftest.err
20675 rm -f conftest.er1
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && {
20679 test -z "$ac_c_werror_flag" ||
20680 test ! -s conftest.err
20681 } && test -s conftest.$ac_objext; then
20682 ac_header_compiler=yes
20683 else
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 ac_header_compiler=no
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20692 echo "${ECHO_T}$ac_header_compiler" >&6; }
20694 # Is the header present?
20695 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20696 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 #include <mISDNuser/mISDNlib.h>
20704 _ACEOF
20705 if { (ac_try="$ac_cpp conftest.$ac_ext"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20712 ac_status=$?
20713 grep -v '^ *+' conftest.er1 >conftest.err
20714 rm -f conftest.er1
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } >/dev/null && {
20718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 }; then
20721 ac_header_preproc=yes
20722 else
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_preproc=no
20729 rm -f conftest.err conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 echo "${ECHO_T}$ac_header_preproc" >&6; }
20733 # So? What about this header?
20734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20735 yes:no: )
20736 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20737 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20739 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20740 ac_header_preproc=yes
20742 no:yes:* )
20743 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20744 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20746 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20748 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20750 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20752 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20754 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20755 ( cat <<\_ASBOX
20756 ## ------------------------------- ##
20757 ## Report this to www.asterisk.org ##
20758 ## ------------------------------- ##
20759 _ASBOX
20760 ) | sed "s/^/$as_me: WARNING: /" >&2
20762 esac
20763 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20764 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20765 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20770 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20771 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20774 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20775 MISDN_HEADER_FOUND=1
20776 else
20777 MISDN_HEADER_FOUND=0
20783 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20784 if test -n "${MISDN_MANDATORY}" ;
20785 then
20786 { echo "$as_me:$LINENO: ***" >&5
20787 echo "$as_me: ***" >&6;}
20788 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20789 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20790 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20791 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20792 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20793 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20794 exit 1
20796 MISDN_LIB=""
20797 MISDN_INCLUDE=""
20798 PBX_MISDN=0
20799 else
20800 PBX_MISDN=1
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_MISDN 1
20804 _ACEOF
20807 elif test -n "${MISDN_MANDATORY}";
20808 then
20809 { echo "$as_me:$LINENO: ***" >&5
20810 echo "$as_me: ***" >&6;}
20811 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20812 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20813 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20814 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20815 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20816 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20817 exit 1
20822 if test "${PBX_MISDN}" = 1; then
20824 if test "${USE_ISDNNET}" != "no"; then
20825 pbxlibdir=""
20826 if test "x${ISDNNET_DIR}" != "x"; then
20827 if test -d ${ISDNNET_DIR}/lib; then
20828 pbxlibdir="-L${ISDNNET_DIR}/lib"
20829 else
20830 pbxlibdir="-L${ISDNNET_DIR}"
20833 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20834 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20835 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838 ac_check_lib_save_LIBS=$LIBS
20839 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20847 /* Override any GCC internal prototype to avoid an error.
20848 Use char because int might match the return type of a GCC
20849 builtin and then its argument prototype would still apply. */
20850 #ifdef __cplusplus
20851 extern "C"
20852 #endif
20853 char init_manager ();
20855 main ()
20857 return init_manager ();
20859 return 0;
20861 _ACEOF
20862 rm -f conftest.$ac_objext conftest$ac_exeext
20863 if { (ac_try="$ac_link"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_link") 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } && {
20876 test -z "$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 } && test -s conftest$ac_exeext &&
20879 $as_test_x conftest$ac_exeext; then
20880 ac_cv_lib_isdnnet_init_manager=yes
20881 else
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_cv_lib_isdnnet_init_manager=no
20888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20889 conftest$ac_exeext conftest.$ac_ext
20890 LIBS=$ac_check_lib_save_LIBS
20892 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20893 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20894 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20895 AST_ISDNNET_FOUND=yes
20896 else
20897 AST_ISDNNET_FOUND=no
20901 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20902 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20903 ISDNNET_HEADER_FOUND="1"
20904 if test "x${ISDNNET_DIR}" != "x"; then
20905 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20906 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20907 saved_cppflags="${CPPFLAGS}"
20908 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20909 if test "xmISDNuser/isdn_net.h" != "x" ; then
20910 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20912 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20913 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 ac_res=`eval echo '${'$as_ac_Header'}'`
20918 { echo "$as_me:$LINENO: result: $ac_res" >&5
20919 echo "${ECHO_T}$ac_res" >&6; }
20920 else
20921 # Is the header compilable?
20922 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20923 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 $ac_includes_default
20931 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (ac_try="$ac_compile"
20935 case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest.$ac_objext; then
20950 ac_header_compiler=yes
20951 else
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ac_header_compiler=no
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20960 echo "${ECHO_T}$ac_header_compiler" >&6; }
20962 # Is the header present?
20963 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20964 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20972 _ACEOF
20973 if { (ac_try="$ac_cpp conftest.$ac_ext"
20974 case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } >/dev/null && {
20986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20987 test ! -s conftest.err
20988 }; then
20989 ac_header_preproc=yes
20990 else
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20994 ac_header_preproc=no
20997 rm -f conftest.err conftest.$ac_ext
20998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20999 echo "${ECHO_T}$ac_header_preproc" >&6; }
21001 # So? What about this header?
21002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21003 yes:no: )
21004 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21005 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21007 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21008 ac_header_preproc=yes
21010 no:yes:* )
21011 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21012 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21013 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21014 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21016 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21018 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21020 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21022 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21023 ( cat <<\_ASBOX
21024 ## ------------------------------- ##
21025 ## Report this to www.asterisk.org ##
21026 ## ------------------------------- ##
21027 _ASBOX
21028 ) | sed "s/^/$as_me: WARNING: /" >&2
21030 esac
21031 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21032 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 eval "$as_ac_Header=\$ac_header_preproc"
21038 ac_res=`eval echo '${'$as_ac_Header'}'`
21039 { echo "$as_me:$LINENO: result: $ac_res" >&5
21040 echo "${ECHO_T}$ac_res" >&6; }
21043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21044 ISDNNET_HEADER_FOUND=1
21045 else
21046 ISDNNET_HEADER_FOUND=0
21051 CPPFLAGS="${saved_cppflags}"
21052 else
21053 if test "xmISDNuser/isdn_net.h" != "x" ; then
21054 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21055 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21056 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21061 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21062 else
21063 # Is the header compilable?
21064 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21065 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 #include <mISDNuser/isdn_net.h>
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_header_compiler=yes
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_header_compiler=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21106 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h. */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <mISDNuser/isdn_net.h>
21114 _ACEOF
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev/null && {
21128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 }; then
21131 ac_header_preproc=yes
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_header_preproc=no
21139 rm -f conftest.err conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143 # So? What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21145 yes:no: )
21146 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21150 ac_header_preproc=yes
21152 no:yes:* )
21153 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21165 ( cat <<\_ASBOX
21166 ## ------------------------------- ##
21167 ## Report this to www.asterisk.org ##
21168 ## ------------------------------- ##
21169 _ASBOX
21170 ) | sed "s/^/$as_me: WARNING: /" >&2
21172 esac
21173 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21174 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21175 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
21180 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21181 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21184 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21185 ISDNNET_HEADER_FOUND=1
21186 else
21187 ISDNNET_HEADER_FOUND=0
21193 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21194 if test -n "${ISDNNET_MANDATORY}" ;
21195 then
21196 { echo "$as_me:$LINENO: ***" >&5
21197 echo "$as_me: ***" >&6;}
21198 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21199 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21200 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21201 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21202 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21203 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21204 exit 1
21206 ISDNNET_LIB=""
21207 ISDNNET_INCLUDE=""
21208 PBX_ISDNNET=0
21209 else
21210 PBX_ISDNNET=1
21212 cat >>confdefs.h <<_ACEOF
21213 #define HAVE_ISDNNET 1
21214 _ACEOF
21217 elif test -n "${ISDNNET_MANDATORY}";
21218 then
21219 { echo "$as_me:$LINENO: ***" >&5
21220 echo "$as_me: ***" >&6;}
21221 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21222 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21223 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21224 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21225 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21226 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21227 exit 1
21232 if test "${USE_SUPPSERV}" != "no"; then
21233 pbxlibdir=""
21234 if test "x${SUPPSERV_DIR}" != "x"; then
21235 if test -d ${SUPPSERV_DIR}/lib; then
21236 pbxlibdir="-L${SUPPSERV_DIR}/lib"
21237 else
21238 pbxlibdir="-L${SUPPSERV_DIR}"
21241 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21242 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21243 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246 ac_check_lib_save_LIBS=$LIBS
21247 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 /* Override any GCC internal prototype to avoid an error.
21256 Use char because int might match the return type of a GCC
21257 builtin and then its argument prototype would still apply. */
21258 #ifdef __cplusplus
21259 extern "C"
21260 #endif
21261 char encodeFac ();
21263 main ()
21265 return encodeFac ();
21267 return 0;
21269 _ACEOF
21270 rm -f conftest.$ac_objext conftest$ac_exeext
21271 if { (ac_try="$ac_link"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_link") 2>conftest.er1
21278 ac_status=$?
21279 grep -v '^ *+' conftest.er1 >conftest.err
21280 rm -f conftest.er1
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest$ac_exeext &&
21287 $as_test_x conftest$ac_exeext; then
21288 ac_cv_lib_suppserv_encodeFac=yes
21289 else
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_cv_lib_suppserv_encodeFac=no
21296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21297 conftest$ac_exeext conftest.$ac_ext
21298 LIBS=$ac_check_lib_save_LIBS
21300 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21301 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21302 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21303 AST_SUPPSERV_FOUND=yes
21304 else
21305 AST_SUPPSERV_FOUND=no
21309 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21310 SUPPSERV_LIB="-lsuppserv "
21311 SUPPSERV_HEADER_FOUND="1"
21312 if test "x${SUPPSERV_DIR}" != "x"; then
21313 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21314 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21315 saved_cppflags="${CPPFLAGS}"
21316 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21317 if test "xmISDNuser/suppserv.h" != "x" ; then
21318 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21321 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_res=`eval echo '${'$as_ac_Header'}'`
21326 { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21328 else
21329 # Is the header compilable?
21330 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21331 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21332 cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h. */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 $ac_includes_default
21339 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest.$ac_objext; then
21358 ac_header_compiler=yes
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_header_compiler=no
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21368 echo "${ECHO_T}$ac_header_compiler" >&6; }
21370 # Is the header present?
21371 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21372 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21380 _ACEOF
21381 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
21388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null && {
21394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21395 test ! -s conftest.err
21396 }; then
21397 ac_header_preproc=yes
21398 else
21399 echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_header_preproc=no
21405 rm -f conftest.err conftest.$ac_ext
21406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21407 echo "${ECHO_T}$ac_header_preproc" >&6; }
21409 # So? What about this header?
21410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21411 yes:no: )
21412 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21413 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21415 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21416 ac_header_preproc=yes
21418 no:yes:* )
21419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21424 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21425 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21426 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21427 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21428 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21430 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21431 ( cat <<\_ASBOX
21432 ## ------------------------------- ##
21433 ## Report this to www.asterisk.org ##
21434 ## ------------------------------- ##
21435 _ASBOX
21436 ) | sed "s/^/$as_me: WARNING: /" >&2
21438 esac
21439 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21440 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444 eval "$as_ac_Header=\$ac_header_preproc"
21446 ac_res=`eval echo '${'$as_ac_Header'}'`
21447 { echo "$as_me:$LINENO: result: $ac_res" >&5
21448 echo "${ECHO_T}$ac_res" >&6; }
21451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21452 SUPPSERV_HEADER_FOUND=1
21453 else
21454 SUPPSERV_HEADER_FOUND=0
21459 CPPFLAGS="${saved_cppflags}"
21460 else
21461 if test "xmISDNuser/suppserv.h" != "x" ; then
21462 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21463 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21464 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21465 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21469 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21470 else
21471 # Is the header compilable?
21472 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21473 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21474 cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h. */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 $ac_includes_default
21481 #include <mISDNuser/suppserv.h>
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 ac_header_compiler=yes
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_header_compiler=no
21508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21510 echo "${ECHO_T}$ac_header_compiler" >&6; }
21512 # Is the header present?
21513 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21514 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 #include <mISDNuser/suppserv.h>
21522 _ACEOF
21523 if { (ac_try="$ac_cpp conftest.$ac_ext"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527 esac
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } >/dev/null && {
21536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 }; then
21539 ac_header_preproc=yes
21540 else
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_header_preproc=no
21547 rm -f conftest.err conftest.$ac_ext
21548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21549 echo "${ECHO_T}$ac_header_preproc" >&6; }
21551 # So? What about this header?
21552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21553 yes:no: )
21554 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21555 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21557 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21558 ac_header_preproc=yes
21560 no:yes:* )
21561 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21562 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21564 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21566 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21568 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21570 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21572 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21573 ( cat <<\_ASBOX
21574 ## ------------------------------- ##
21575 ## Report this to www.asterisk.org ##
21576 ## ------------------------------- ##
21577 _ASBOX
21578 ) | sed "s/^/$as_me: WARNING: /" >&2
21580 esac
21581 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21582 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21583 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 else
21586 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21588 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21589 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21592 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21593 SUPPSERV_HEADER_FOUND=1
21594 else
21595 SUPPSERV_HEADER_FOUND=0
21601 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21602 if test -n "${SUPPSERV_MANDATORY}" ;
21603 then
21604 { echo "$as_me:$LINENO: ***" >&5
21605 echo "$as_me: ***" >&6;}
21606 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21607 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21608 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21609 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21610 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21611 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21612 exit 1
21614 SUPPSERV_LIB=""
21615 SUPPSERV_INCLUDE=""
21616 PBX_SUPPSERV=0
21617 else
21618 PBX_SUPPSERV=1
21620 cat >>confdefs.h <<_ACEOF
21621 #define HAVE_SUPPSERV 1
21622 _ACEOF
21625 elif test -n "${SUPPSERV_MANDATORY}";
21626 then
21627 { echo "$as_me:$LINENO: ***" >&5
21628 echo "$as_me: ***" >&6;}
21629 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21630 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21631 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21632 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21633 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21634 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21635 exit 1
21639 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21640 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21641 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21642 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21647 else
21648 # Is the header compilable?
21649 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21650 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21658 #include <linux/mISDNdsp.h>
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21677 ac_header_compiler=yes
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ac_header_compiler=no
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21687 echo "${ECHO_T}$ac_header_compiler" >&6; }
21689 # Is the header present?
21690 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21691 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h. */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <linux/mISDNdsp.h>
21699 _ACEOF
21700 if { (ac_try="$ac_cpp conftest.$ac_ext"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } >/dev/null && {
21713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 }; then
21716 ac_header_preproc=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21724 rm -f conftest.err conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21726 echo "${ECHO_T}$ac_header_preproc" >&6; }
21728 # So? What about this header?
21729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21730 yes:no: )
21731 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21732 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21734 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21735 ac_header_preproc=yes
21737 no:yes:* )
21738 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21739 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21741 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21743 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21745 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21747 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21749 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21750 ( cat <<\_ASBOX
21751 ## ------------------------------- ##
21752 ## Report this to www.asterisk.org ##
21753 ## ------------------------------- ##
21754 _ASBOX
21755 ) | sed "s/^/$as_me: WARNING: /" >&2
21757 esac
21758 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21759 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21760 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21765 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21766 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21769 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define MISDN_1_2 1
21773 _ACEOF
21781 if test "${USE_NBS}" != "no"; then
21782 pbxlibdir=""
21783 if test "x${NBS_DIR}" != "x"; then
21784 if test -d ${NBS_DIR}/lib; then
21785 pbxlibdir="-L${NBS_DIR}/lib"
21786 else
21787 pbxlibdir="-L${NBS_DIR}"
21790 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21791 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21792 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795 ac_check_lib_save_LIBS=$LIBS
21796 LIBS="-lnbs ${pbxlibdir} $LIBS"
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21804 /* Override any GCC internal prototype to avoid an error.
21805 Use char because int might match the return type of a GCC
21806 builtin and then its argument prototype would still apply. */
21807 #ifdef __cplusplus
21808 extern "C"
21809 #endif
21810 char nbs_connect ();
21812 main ()
21814 return nbs_connect ();
21816 return 0;
21818 _ACEOF
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_link") 2>conftest.er1
21827 ac_status=$?
21828 grep -v '^ *+' conftest.er1 >conftest.err
21829 rm -f conftest.er1
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } && {
21833 test -z "$ac_c_werror_flag" ||
21834 test ! -s conftest.err
21835 } && test -s conftest$ac_exeext &&
21836 $as_test_x conftest$ac_exeext; then
21837 ac_cv_lib_nbs_nbs_connect=yes
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_cv_lib_nbs_nbs_connect=no
21845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21846 conftest$ac_exeext conftest.$ac_ext
21847 LIBS=$ac_check_lib_save_LIBS
21849 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21850 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21851 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21852 AST_NBS_FOUND=yes
21853 else
21854 AST_NBS_FOUND=no
21858 if test "${AST_NBS_FOUND}" = "yes"; then
21859 NBS_LIB="-lnbs "
21860 NBS_HEADER_FOUND="1"
21861 if test "x${NBS_DIR}" != "x"; then
21862 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
21863 NBS_INCLUDE="-I${NBS_DIR}/include"
21864 saved_cppflags="${CPPFLAGS}"
21865 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
21866 if test "xnbs.h" != "x" ; then
21867 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21869 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21870 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 ac_res=`eval echo '${'$as_ac_Header'}'`
21875 { echo "$as_me:$LINENO: result: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21877 else
21878 # Is the header compilable?
21879 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21880 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #include <${NBS_DIR}/include/nbs.h>
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_compile") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest.$ac_objext; then
21907 ac_header_compiler=yes
21908 else
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_compiler=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21917 echo "${ECHO_T}$ac_header_compiler" >&6; }
21919 # Is the header present?
21920 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21921 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <${NBS_DIR}/include/nbs.h>
21929 _ACEOF
21930 if { (ac_try="$ac_cpp conftest.$ac_ext"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21937 ac_status=$?
21938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev/null && {
21943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 }; then
21946 ac_header_preproc=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_preproc=no
21954 rm -f conftest.err conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21960 yes:no: )
21961 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21962 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21964 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21965 ac_header_preproc=yes
21967 no:yes:* )
21968 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21969 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21971 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21973 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21975 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21977 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21979 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21980 ( cat <<\_ASBOX
21981 ## ------------------------------- ##
21982 ## Report this to www.asterisk.org ##
21983 ## ------------------------------- ##
21984 _ASBOX
21985 ) | sed "s/^/$as_me: WARNING: /" >&2
21987 esac
21988 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21989 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 else
21993 eval "$as_ac_Header=\$ac_header_preproc"
21995 ac_res=`eval echo '${'$as_ac_Header'}'`
21996 { echo "$as_me:$LINENO: result: $ac_res" >&5
21997 echo "${ECHO_T}$ac_res" >&6; }
22000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22001 NBS_HEADER_FOUND=1
22002 else
22003 NBS_HEADER_FOUND=0
22008 CPPFLAGS="${saved_cppflags}"
22009 else
22010 if test "xnbs.h" != "x" ; then
22011 if test "${ac_cv_header_nbs_h+set}" = set; then
22012 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22013 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_nbs_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22019 else
22020 # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22022 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h. */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22030 #include <nbs.h>
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest.$ac_objext; then
22049 ac_header_compiler=yes
22050 else
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_header_compiler=no
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22059 echo "${ECHO_T}$ac_header_compiler" >&6; }
22061 # Is the header present?
22062 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22063 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h. */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <nbs.h>
22071 _ACEOF
22072 if { (ac_try="$ac_cpp conftest.$ac_ext"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } >/dev/null && {
22085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 }; then
22088 ac_header_preproc=yes
22089 else
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_preproc=no
22096 rm -f conftest.err conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22098 echo "${ECHO_T}$ac_header_preproc" >&6; }
22100 # So? What about this header?
22101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22102 yes:no: )
22103 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22104 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22106 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22107 ac_header_preproc=yes
22109 no:yes:* )
22110 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22111 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22113 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22115 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22117 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22119 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22121 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22122 ( cat <<\_ASBOX
22123 ## ------------------------------- ##
22124 ## Report this to www.asterisk.org ##
22125 ## ------------------------------- ##
22126 _ASBOX
22127 ) | sed "s/^/$as_me: WARNING: /" >&2
22129 esac
22130 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22131 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22132 if test "${ac_cv_header_nbs_h+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 ac_cv_header_nbs_h=$ac_header_preproc
22137 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22138 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22141 if test $ac_cv_header_nbs_h = yes; then
22142 NBS_HEADER_FOUND=1
22143 else
22144 NBS_HEADER_FOUND=0
22150 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22151 if test -n "${NBS_MANDATORY}" ;
22152 then
22153 { echo "$as_me:$LINENO: ***" >&5
22154 echo "$as_me: ***" >&6;}
22155 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22156 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22157 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22158 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22159 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22160 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22161 exit 1
22163 NBS_LIB=""
22164 NBS_INCLUDE=""
22165 PBX_NBS=0
22166 else
22167 PBX_NBS=1
22169 cat >>confdefs.h <<_ACEOF
22170 #define HAVE_NBS 1
22171 _ACEOF
22174 elif test -n "${NBS_MANDATORY}";
22175 then
22176 { echo "$as_me:$LINENO: ***" >&5
22177 echo "$as_me: ***" >&6;}
22178 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22179 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22180 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22181 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22182 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22183 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22184 exit 1
22190 if test "${USE_NCURSES}" != "no"; then
22191 pbxlibdir=""
22192 if test "x${NCURSES_DIR}" != "x"; then
22193 if test -d ${NCURSES_DIR}/lib; then
22194 pbxlibdir="-L${NCURSES_DIR}/lib"
22195 else
22196 pbxlibdir="-L${NCURSES_DIR}"
22199 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22200 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22201 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204 ac_check_lib_save_LIBS=$LIBS
22205 LIBS="-lncurses ${pbxlibdir} $LIBS"
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h. */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22213 /* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22216 #ifdef __cplusplus
22217 extern "C"
22218 #endif
22219 char initscr ();
22221 main ()
22223 return initscr ();
22225 return 0;
22227 _ACEOF
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_link") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext &&
22245 $as_test_x conftest$ac_exeext; then
22246 ac_cv_lib_ncurses_initscr=yes
22247 else
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 ac_cv_lib_ncurses_initscr=no
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22258 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22259 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22260 if test $ac_cv_lib_ncurses_initscr = yes; then
22261 AST_NCURSES_FOUND=yes
22262 else
22263 AST_NCURSES_FOUND=no
22267 if test "${AST_NCURSES_FOUND}" = "yes"; then
22268 NCURSES_LIB="-lncurses "
22269 NCURSES_HEADER_FOUND="1"
22270 if test "x${NCURSES_DIR}" != "x"; then
22271 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22272 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22273 saved_cppflags="${CPPFLAGS}"
22274 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22275 if test "xcurses.h" != "x" ; then
22276 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
22277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22278 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22279 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 ac_res=`eval echo '${'$as_ac_Header'}'`
22284 { echo "$as_me:$LINENO: result: $ac_res" >&5
22285 echo "${ECHO_T}$ac_res" >&6; }
22286 else
22287 # Is the header compilable?
22288 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22289 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 $ac_includes_default
22297 #include <${NCURSES_DIR}/include/curses.h>
22298 _ACEOF
22299 rm -f conftest.$ac_objext
22300 if { (ac_try="$ac_compile"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_compile") 2>conftest.er1
22307 ac_status=$?
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest.$ac_objext; then
22316 ac_header_compiler=yes
22317 else
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_header_compiler=no
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22326 echo "${ECHO_T}$ac_header_compiler" >&6; }
22328 # Is the header present?
22329 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22330 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22331 cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h. */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 #include <${NCURSES_DIR}/include/curses.h>
22338 _ACEOF
22339 if { (ac_try="$ac_cpp conftest.$ac_ext"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } >/dev/null && {
22352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22354 }; then
22355 ac_header_preproc=yes
22356 else
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22360 ac_header_preproc=no
22363 rm -f conftest.err conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22365 echo "${ECHO_T}$ac_header_preproc" >&6; }
22367 # So? What about this header?
22368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22369 yes:no: )
22370 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22371 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22373 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22374 ac_header_preproc=yes
22376 no:yes:* )
22377 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22378 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22380 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22382 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22384 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22386 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22388 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22389 ( cat <<\_ASBOX
22390 ## ------------------------------- ##
22391 ## Report this to www.asterisk.org ##
22392 ## ------------------------------- ##
22393 _ASBOX
22394 ) | sed "s/^/$as_me: WARNING: /" >&2
22396 esac
22397 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22398 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402 eval "$as_ac_Header=\$ac_header_preproc"
22404 ac_res=`eval echo '${'$as_ac_Header'}'`
22405 { echo "$as_me:$LINENO: result: $ac_res" >&5
22406 echo "${ECHO_T}$ac_res" >&6; }
22409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22410 NCURSES_HEADER_FOUND=1
22411 else
22412 NCURSES_HEADER_FOUND=0
22417 CPPFLAGS="${saved_cppflags}"
22418 else
22419 if test "xcurses.h" != "x" ; then
22420 if test "${ac_cv_header_curses_h+set}" = set; then
22421 { echo "$as_me:$LINENO: checking for curses.h" >&5
22422 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22423 if test "${ac_cv_header_curses_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22427 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22428 else
22429 # Is the header compilable?
22430 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22431 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h. */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 $ac_includes_default
22439 #include <curses.h>
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (ac_try="$ac_compile"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_compile") 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } && {
22455 test -z "$ac_c_werror_flag" ||
22456 test ! -s conftest.err
22457 } && test -s conftest.$ac_objext; then
22458 ac_header_compiler=yes
22459 else
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22463 ac_header_compiler=no
22466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22468 echo "${ECHO_T}$ac_header_compiler" >&6; }
22470 # Is the header present?
22471 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22472 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22473 cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h. */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include <curses.h>
22480 _ACEOF
22481 if { (ac_try="$ac_cpp conftest.$ac_ext"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22488 ac_status=$?
22489 grep -v '^ *+' conftest.er1 >conftest.err
22490 rm -f conftest.er1
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } >/dev/null && {
22494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 }; then
22497 ac_header_preproc=yes
22498 else
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_header_preproc=no
22505 rm -f conftest.err conftest.$ac_ext
22506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507 echo "${ECHO_T}$ac_header_preproc" >&6; }
22509 # So? What about this header?
22510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22511 yes:no: )
22512 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22513 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22515 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
22518 no:yes:* )
22519 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22520 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22522 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22524 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22526 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22528 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22529 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22530 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22531 ( cat <<\_ASBOX
22532 ## ------------------------------- ##
22533 ## Report this to www.asterisk.org ##
22534 ## ------------------------------- ##
22535 _ASBOX
22536 ) | sed "s/^/$as_me: WARNING: /" >&2
22538 esac
22539 { echo "$as_me:$LINENO: checking for curses.h" >&5
22540 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22541 if test "${ac_cv_header_curses_h+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 ac_cv_header_curses_h=$ac_header_preproc
22546 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22547 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22550 if test $ac_cv_header_curses_h = yes; then
22551 NCURSES_HEADER_FOUND=1
22552 else
22553 NCURSES_HEADER_FOUND=0
22559 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22560 if test -n "${NCURSES_MANDATORY}" ;
22561 then
22562 { echo "$as_me:$LINENO: ***" >&5
22563 echo "$as_me: ***" >&6;}
22564 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22565 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22566 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22567 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22568 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22569 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22570 exit 1
22572 NCURSES_LIB=""
22573 NCURSES_INCLUDE=""
22574 PBX_NCURSES=0
22575 else
22576 PBX_NCURSES=1
22578 cat >>confdefs.h <<_ACEOF
22579 #define HAVE_NCURSES 1
22580 _ACEOF
22583 elif test -n "${NCURSES_MANDATORY}";
22584 then
22585 { echo "$as_me:$LINENO: ***" >&5
22586 echo "$as_me: ***" >&6;}
22587 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22588 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22589 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22590 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22592 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22593 exit 1
22598 NETSNMP_CONFIG=No
22599 if test "${USE_NETSNMP}" != "no"; then
22600 if test "x${NETSNMP_DIR}" != "x"; then
22601 if test -n "$ac_tool_prefix"; then
22602 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22603 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22606 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608 else
22609 case $NETSNMP_CONFIG in
22610 [\\/]* | ?:[\\/]*)
22611 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22615 for as_dir in ${NETSNMP_DIR}/bin
22617 IFS=$as_save_IFS
22618 test -z "$as_dir" && as_dir=.
22619 for ac_exec_ext in '' $ac_executable_extensions; do
22620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22621 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22623 break 2
22625 done
22626 done
22627 IFS=$as_save_IFS
22630 esac
22632 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22633 if test -n "$NETSNMP_CONFIG"; then
22634 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22635 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22636 else
22637 { echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6; }
22643 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22644 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22645 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22646 set dummy net-snmp-config; ac_word=$2
22647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22649 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 case $ac_pt_NETSNMP_CONFIG in
22653 [\\/]* | ?:[\\/]*)
22654 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658 for as_dir in ${NETSNMP_DIR}/bin
22660 IFS=$as_save_IFS
22661 test -z "$as_dir" && as_dir=.
22662 for ac_exec_ext in '' $ac_executable_extensions; do
22663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22664 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 break 2
22668 done
22669 done
22670 IFS=$as_save_IFS
22673 esac
22675 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22676 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22677 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22678 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22679 else
22680 { echo "$as_me:$LINENO: result: no" >&5
22681 echo "${ECHO_T}no" >&6; }
22684 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22685 NETSNMP_CONFIG="No"
22686 else
22687 case $cross_compiling:$ac_tool_warned in
22688 yes:)
22689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22690 whose name does not start with the host triplet. If you think this
22691 configuration is useful to you, please write to autoconf@gnu.org." >&5
22692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22693 whose name does not start with the host triplet. If you think this
22694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22695 ac_tool_warned=yes ;;
22696 esac
22697 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22699 else
22700 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22703 if test x"${NETSNMP_CONFIG}" = xNo; then
22704 { echo "$as_me:$LINENO: ***" >&5
22705 echo "$as_me: ***" >&6;}
22706 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22707 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22708 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22709 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22712 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22713 echo "$as_me: *** including --without-netsnmp" >&6;}
22714 exit 1
22716 else
22717 if test -n "$ac_tool_prefix"; then
22718 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22719 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22722 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725 case $NETSNMP_CONFIG in
22726 [\\/]* | ?:[\\/]*)
22727 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22731 for as_dir in $PATH
22733 IFS=$as_save_IFS
22734 test -z "$as_dir" && as_dir=.
22735 for ac_exec_ext in '' $ac_executable_extensions; do
22736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22737 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22739 break 2
22741 done
22742 done
22743 IFS=$as_save_IFS
22746 esac
22748 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22749 if test -n "$NETSNMP_CONFIG"; then
22750 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22751 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22752 else
22753 { echo "$as_me:$LINENO: result: no" >&5
22754 echo "${ECHO_T}no" >&6; }
22759 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22760 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22761 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22762 set dummy net-snmp-config; ac_word=$2
22763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22765 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768 case $ac_pt_NETSNMP_CONFIG in
22769 [\\/]* | ?:[\\/]*)
22770 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22774 for as_dir in $PATH
22776 IFS=$as_save_IFS
22777 test -z "$as_dir" && as_dir=.
22778 for ac_exec_ext in '' $ac_executable_extensions; do
22779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22780 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22782 break 2
22784 done
22785 done
22786 IFS=$as_save_IFS
22789 esac
22791 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22792 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22793 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22794 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22795 else
22796 { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22800 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22801 NETSNMP_CONFIG="No"
22802 else
22803 case $cross_compiling:$ac_tool_warned in
22804 yes:)
22805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22806 whose name does not start with the host triplet. If you think this
22807 configuration is useful to you, please write to autoconf@gnu.org." >&5
22808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22809 whose name does not start with the host triplet. If you think this
22810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22811 ac_tool_warned=yes ;;
22812 esac
22813 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22815 else
22816 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22821 if test x"${NETSNMP_CONFIG}" != xNo; then
22822 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22824 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22825 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22826 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829 ac_check_lib_save_LIBS=$LIBS
22830 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char snmp_register_callback ();
22846 main ()
22848 return snmp_register_callback ();
22850 return 0;
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_link") 2>conftest.er1
22861 ac_status=$?
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest$ac_exeext &&
22870 $as_test_x conftest$ac_exeext; then
22871 ac_cv_lib_netsnmp_snmp_register_callback=yes
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_lib_netsnmp_snmp_register_callback=no
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880 conftest$ac_exeext conftest.$ac_ext
22881 LIBS=$ac_check_lib_save_LIBS
22883 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22884 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22885 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_NETSNMP 1
22889 _ACEOF
22894 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22895 NETSNMP_LIB="${NETSNMP_libs}"
22896 PBX_NETSNMP=1
22897 elif test -n "${NETSNMP_MANDATORY}";
22898 then
22899 { echo "$as_me:$LINENO: ***" >&5
22900 echo "$as_me: ***" >&6;}
22901 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22902 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22903 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22904 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22905 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22906 echo "$as_me: *** including --without-netsnmp" >&6;}
22907 exit 1
22909 elif test -n "${NETSNMP_MANDATORY}";
22910 then
22911 { echo "$as_me:$LINENO: ***" >&5
22912 echo "$as_me: ***" >&6;}
22913 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22914 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22915 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22916 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22917 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22918 echo "$as_me: *** including --without-netsnmp" >&6;}
22919 exit 1
22923 if test "${USE_NEWT}" != "no"; then
22924 pbxlibdir=""
22925 if test "x${NEWT_DIR}" != "x"; then
22926 if test -d ${NEWT_DIR}/lib; then
22927 pbxlibdir="-L${NEWT_DIR}/lib"
22928 else
22929 pbxlibdir="-L${NEWT_DIR}"
22932 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22933 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22934 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937 ac_check_lib_save_LIBS=$LIBS
22938 LIBS="-lnewt ${pbxlibdir} $LIBS"
22939 cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h. */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22946 /* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply. */
22949 #ifdef __cplusplus
22950 extern "C"
22951 #endif
22952 char newtBell ();
22954 main ()
22956 return newtBell ();
22958 return 0;
22960 _ACEOF
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (ac_try="$ac_link"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_link") 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest$ac_exeext &&
22978 $as_test_x conftest$ac_exeext; then
22979 ac_cv_lib_newt_newtBell=yes
22980 else
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_cv_lib_newt_newtBell=no
22987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22988 conftest$ac_exeext conftest.$ac_ext
22989 LIBS=$ac_check_lib_save_LIBS
22991 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22992 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22993 if test $ac_cv_lib_newt_newtBell = yes; then
22994 AST_NEWT_FOUND=yes
22995 else
22996 AST_NEWT_FOUND=no
23000 if test "${AST_NEWT_FOUND}" = "yes"; then
23001 NEWT_LIB="-lnewt "
23002 NEWT_HEADER_FOUND="1"
23003 if test "x${NEWT_DIR}" != "x"; then
23004 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23005 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23006 saved_cppflags="${CPPFLAGS}"
23007 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23008 if test "xnewt.h" != "x" ; then
23009 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23012 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 ac_res=`eval echo '${'$as_ac_Header'}'`
23017 { echo "$as_me:$LINENO: result: $ac_res" >&5
23018 echo "${ECHO_T}$ac_res" >&6; }
23019 else
23020 # Is the header compilable?
23021 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23022 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23023 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h. */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 #include <${NEWT_DIR}/include/newt.h>
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_header_compiler=yes
23050 else
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_header_compiler=no
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 echo "${ECHO_T}$ac_header_compiler" >&6; }
23061 # Is the header present?
23062 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23063 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h. */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <${NEWT_DIR}/include/newt.h>
23071 _ACEOF
23072 if { (ac_try="$ac_cpp conftest.$ac_ext"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23079 ac_status=$?
23080 grep -v '^ *+' conftest.er1 >conftest.err
23081 rm -f conftest.er1
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } >/dev/null && {
23085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23087 }; then
23088 ac_header_preproc=yes
23089 else
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_header_preproc=no
23096 rm -f conftest.err conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23098 echo "${ECHO_T}$ac_header_preproc" >&6; }
23100 # So? What about this header?
23101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23102 yes:no: )
23103 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23104 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23105 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23106 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23107 ac_header_preproc=yes
23109 no:yes:* )
23110 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23111 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23113 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23114 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23115 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23116 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23117 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23118 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23119 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23120 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23121 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23122 ( cat <<\_ASBOX
23123 ## ------------------------------- ##
23124 ## Report this to www.asterisk.org ##
23125 ## ------------------------------- ##
23126 _ASBOX
23127 ) | sed "s/^/$as_me: WARNING: /" >&2
23129 esac
23130 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23131 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135 eval "$as_ac_Header=\$ac_header_preproc"
23137 ac_res=`eval echo '${'$as_ac_Header'}'`
23138 { echo "$as_me:$LINENO: result: $ac_res" >&5
23139 echo "${ECHO_T}$ac_res" >&6; }
23142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23143 NEWT_HEADER_FOUND=1
23144 else
23145 NEWT_HEADER_FOUND=0
23150 CPPFLAGS="${saved_cppflags}"
23151 else
23152 if test "xnewt.h" != "x" ; then
23153 if test "${ac_cv_header_newt_h+set}" = set; then
23154 { echo "$as_me:$LINENO: checking for newt.h" >&5
23155 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23156 if test "${ac_cv_header_newt_h+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23160 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23161 else
23162 # Is the header compilable?
23163 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23164 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23165 cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h. */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23171 $ac_includes_default
23172 #include <newt.h>
23173 _ACEOF
23174 rm -f conftest.$ac_objext
23175 if { (ac_try="$ac_compile"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_header_compiler=yes
23192 else
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_header_compiler=no
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23201 echo "${ECHO_T}$ac_header_compiler" >&6; }
23203 # Is the header present?
23204 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23205 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <newt.h>
23213 _ACEOF
23214 if { (ac_try="$ac_cpp conftest.$ac_ext"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23221 ac_status=$?
23222 grep -v '^ *+' conftest.er1 >conftest.err
23223 rm -f conftest.er1
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } >/dev/null && {
23227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23228 test ! -s conftest.err
23229 }; then
23230 ac_header_preproc=yes
23231 else
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ac_header_preproc=no
23238 rm -f conftest.err conftest.$ac_ext
23239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240 echo "${ECHO_T}$ac_header_preproc" >&6; }
23242 # So? What about this header?
23243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23244 yes:no: )
23245 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23246 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23248 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23249 ac_header_preproc=yes
23251 no:yes:* )
23252 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23253 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23255 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23257 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23259 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23261 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23263 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23264 ( cat <<\_ASBOX
23265 ## ------------------------------- ##
23266 ## Report this to www.asterisk.org ##
23267 ## ------------------------------- ##
23268 _ASBOX
23269 ) | sed "s/^/$as_me: WARNING: /" >&2
23271 esac
23272 { echo "$as_me:$LINENO: checking for newt.h" >&5
23273 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23274 if test "${ac_cv_header_newt_h+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 else
23277 ac_cv_header_newt_h=$ac_header_preproc
23279 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23280 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23283 if test $ac_cv_header_newt_h = yes; then
23284 NEWT_HEADER_FOUND=1
23285 else
23286 NEWT_HEADER_FOUND=0
23292 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23293 if test -n "${NEWT_MANDATORY}" ;
23294 then
23295 { echo "$as_me:$LINENO: ***" >&5
23296 echo "$as_me: ***" >&6;}
23297 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23298 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23299 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23300 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23301 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23302 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23303 exit 1
23305 NEWT_LIB=""
23306 NEWT_INCLUDE=""
23307 PBX_NEWT=0
23308 else
23309 PBX_NEWT=1
23311 cat >>confdefs.h <<_ACEOF
23312 #define HAVE_NEWT 1
23313 _ACEOF
23316 elif test -n "${NEWT_MANDATORY}";
23317 then
23318 { echo "$as_me:$LINENO: ***" >&5
23319 echo "$as_me: ***" >&6;}
23320 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23321 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23322 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23323 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23324 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23325 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23326 exit 1
23332 if test "${USE_UNIXODBC}" != "no"; then
23333 pbxlibdir=""
23334 if test "x${UNIXODBC_DIR}" != "x"; then
23335 if test -d ${UNIXODBC_DIR}/lib; then
23336 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23337 else
23338 pbxlibdir="-L${UNIXODBC_DIR}"
23341 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23342 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23343 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345 else
23346 ac_check_lib_save_LIBS=$LIBS
23347 LIBS="-lodbc ${pbxlibdir} $LIBS"
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23358 #ifdef __cplusplus
23359 extern "C"
23360 #endif
23361 char SQLConnect ();
23363 main ()
23365 return SQLConnect ();
23367 return 0;
23369 _ACEOF
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>conftest.er1
23378 ac_status=$?
23379 grep -v '^ *+' conftest.er1 >conftest.err
23380 rm -f conftest.er1
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest$ac_exeext &&
23387 $as_test_x conftest$ac_exeext; then
23388 ac_cv_lib_odbc_SQLConnect=yes
23389 else
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ac_cv_lib_odbc_SQLConnect=no
23396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23397 conftest$ac_exeext conftest.$ac_ext
23398 LIBS=$ac_check_lib_save_LIBS
23400 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23401 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23402 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23403 AST_UNIXODBC_FOUND=yes
23404 else
23405 AST_UNIXODBC_FOUND=no
23409 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23410 UNIXODBC_LIB="-lodbc "
23411 UNIXODBC_HEADER_FOUND="1"
23412 if test "x${UNIXODBC_DIR}" != "x"; then
23413 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
23414 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
23415 saved_cppflags="${CPPFLAGS}"
23416 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23417 if test "xsql.h" != "x" ; then
23418 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23420 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23421 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 ac_res=`eval echo '${'$as_ac_Header'}'`
23426 { echo "$as_me:$LINENO: result: $ac_res" >&5
23427 echo "${ECHO_T}$ac_res" >&6; }
23428 else
23429 # Is the header compilable?
23430 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23431 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23432 cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h. */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 $ac_includes_default
23439 #include <${UNIXODBC_DIR}/include/sql.h>
23440 _ACEOF
23441 rm -f conftest.$ac_objext
23442 if { (ac_try="$ac_compile"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_compile") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest.$ac_objext; then
23458 ac_header_compiler=yes
23459 else
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_header_compiler=no
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23468 echo "${ECHO_T}$ac_header_compiler" >&6; }
23470 # Is the header present?
23471 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23472 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23473 cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h. */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 #include <${UNIXODBC_DIR}/include/sql.h>
23480 _ACEOF
23481 if { (ac_try="$ac_cpp conftest.$ac_ext"
23482 case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23488 ac_status=$?
23489 grep -v '^ *+' conftest.er1 >conftest.err
23490 rm -f conftest.er1
23491 cat conftest.err >&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } >/dev/null && {
23494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23495 test ! -s conftest.err
23496 }; then
23497 ac_header_preproc=yes
23498 else
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 ac_header_preproc=no
23505 rm -f conftest.err conftest.$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23507 echo "${ECHO_T}$ac_header_preproc" >&6; }
23509 # So? What about this header?
23510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23511 yes:no: )
23512 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23513 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23514 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23515 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23516 ac_header_preproc=yes
23518 no:yes:* )
23519 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23520 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23521 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23522 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23523 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23524 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23525 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23526 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23527 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23528 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23529 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23530 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23531 ( cat <<\_ASBOX
23532 ## ------------------------------- ##
23533 ## Report this to www.asterisk.org ##
23534 ## ------------------------------- ##
23535 _ASBOX
23536 ) | sed "s/^/$as_me: WARNING: /" >&2
23538 esac
23539 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23540 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23543 else
23544 eval "$as_ac_Header=\$ac_header_preproc"
23546 ac_res=`eval echo '${'$as_ac_Header'}'`
23547 { echo "$as_me:$LINENO: result: $ac_res" >&5
23548 echo "${ECHO_T}$ac_res" >&6; }
23551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23552 UNIXODBC_HEADER_FOUND=1
23553 else
23554 UNIXODBC_HEADER_FOUND=0
23559 CPPFLAGS="${saved_cppflags}"
23560 else
23561 if test "xsql.h" != "x" ; then
23562 if test "${ac_cv_header_sql_h+set}" = set; then
23563 { echo "$as_me:$LINENO: checking for sql.h" >&5
23564 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23565 if test "${ac_cv_header_sql_h+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23569 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23570 else
23571 # Is the header compilable?
23572 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23573 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 $ac_includes_default
23581 #include <sql.h>
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 ac_header_compiler=yes
23601 else
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_header_compiler=no
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23610 echo "${ECHO_T}$ac_header_compiler" >&6; }
23612 # Is the header present?
23613 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23614 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 #include <sql.h>
23622 _ACEOF
23623 if { (ac_try="$ac_cpp conftest.$ac_ext"
23624 case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23630 ac_status=$?
23631 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } >/dev/null && {
23636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 }; then
23639 ac_header_preproc=yes
23640 else
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23644 ac_header_preproc=no
23647 rm -f conftest.err conftest.$ac_ext
23648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23649 echo "${ECHO_T}$ac_header_preproc" >&6; }
23651 # So? What about this header?
23652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23653 yes:no: )
23654 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23655 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23656 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23657 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23658 ac_header_preproc=yes
23660 no:yes:* )
23661 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23662 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23663 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23664 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23665 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23666 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23667 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23668 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23669 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23670 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23671 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23672 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23673 ( cat <<\_ASBOX
23674 ## ------------------------------- ##
23675 ## Report this to www.asterisk.org ##
23676 ## ------------------------------- ##
23677 _ASBOX
23678 ) | sed "s/^/$as_me: WARNING: /" >&2
23680 esac
23681 { echo "$as_me:$LINENO: checking for sql.h" >&5
23682 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23683 if test "${ac_cv_header_sql_h+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686 ac_cv_header_sql_h=$ac_header_preproc
23688 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23689 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23692 if test $ac_cv_header_sql_h = yes; then
23693 UNIXODBC_HEADER_FOUND=1
23694 else
23695 UNIXODBC_HEADER_FOUND=0
23701 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23702 if test -n "${UNIXODBC_MANDATORY}" ;
23703 then
23704 { echo "$as_me:$LINENO: ***" >&5
23705 echo "$as_me: ***" >&6;}
23706 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23707 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23708 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23709 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23710 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23711 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23712 exit 1
23714 UNIXODBC_LIB=""
23715 UNIXODBC_INCLUDE=""
23716 PBX_UNIXODBC=0
23717 else
23718 PBX_UNIXODBC=1
23720 cat >>confdefs.h <<_ACEOF
23721 #define HAVE_UNIXODBC 1
23722 _ACEOF
23725 elif test -n "${UNIXODBC_MANDATORY}";
23726 then
23727 { echo "$as_me:$LINENO: ***" >&5
23728 echo "$as_me: ***" >&6;}
23729 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23730 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23731 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23732 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23733 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23734 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23735 exit 1
23741 if test "${USE_OGG}" != "no"; then
23742 pbxlibdir=""
23743 if test "x${OGG_DIR}" != "x"; then
23744 if test -d ${OGG_DIR}/lib; then
23745 pbxlibdir="-L${OGG_DIR}/lib"
23746 else
23747 pbxlibdir="-L${OGG_DIR}"
23750 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23751 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23752 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 else
23755 ac_check_lib_save_LIBS=$LIBS
23756 LIBS="-logg ${pbxlibdir} $LIBS"
23757 cat >conftest.$ac_ext <<_ACEOF
23758 /* confdefs.h. */
23759 _ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h. */
23764 /* Override any GCC internal prototype to avoid an error.
23765 Use char because int might match the return type of a GCC
23766 builtin and then its argument prototype would still apply. */
23767 #ifdef __cplusplus
23768 extern "C"
23769 #endif
23770 char ogg_sync_init ();
23772 main ()
23774 return ogg_sync_init ();
23776 return 0;
23778 _ACEOF
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (ac_try="$ac_link"
23781 case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_link") 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest$ac_exeext &&
23796 $as_test_x conftest$ac_exeext; then
23797 ac_cv_lib_ogg_ogg_sync_init=yes
23798 else
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_cv_lib_ogg_ogg_sync_init=no
23805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23806 conftest$ac_exeext conftest.$ac_ext
23807 LIBS=$ac_check_lib_save_LIBS
23809 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23810 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23811 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23812 AST_OGG_FOUND=yes
23813 else
23814 AST_OGG_FOUND=no
23818 if test "${AST_OGG_FOUND}" = "yes"; then
23819 OGG_LIB="-logg "
23820 OGG_HEADER_FOUND="1"
23821 if test "x${OGG_DIR}" != "x"; then
23822 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23823 OGG_INCLUDE="-I${OGG_DIR}/include"
23824 saved_cppflags="${CPPFLAGS}"
23825 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23826 if test "x" != "x" ; then
23827 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
23828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23829 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23830 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 ac_res=`eval echo '${'$as_ac_Header'}'`
23835 { echo "$as_me:$LINENO: result: $ac_res" >&5
23836 echo "${ECHO_T}$ac_res" >&6; }
23837 else
23838 # Is the header compilable?
23839 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23840 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h. */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 $ac_includes_default
23848 #include <${OGG_DIR}/include/>
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23855 esac
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_compile") 2>conftest.er1
23858 ac_status=$?
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest.$ac_objext; then
23867 ac_header_compiler=yes
23868 else
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 ac_header_compiler=no
23875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23877 echo "${ECHO_T}$ac_header_compiler" >&6; }
23879 # Is the header present?
23880 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23881 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <${OGG_DIR}/include/>
23889 _ACEOF
23890 if { (ac_try="$ac_cpp conftest.$ac_ext"
23891 case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23894 esac
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } >/dev/null && {
23903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23905 }; then
23906 ac_header_preproc=yes
23907 else
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 ac_header_preproc=no
23914 rm -f conftest.err conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23916 echo "${ECHO_T}$ac_header_preproc" >&6; }
23918 # So? What about this header?
23919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23920 yes:no: )
23921 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23922 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23923 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23924 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23925 ac_header_preproc=yes
23927 no:yes:* )
23928 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23929 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23930 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23931 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23932 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23933 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23934 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23935 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23936 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23937 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23938 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23939 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23940 ( cat <<\_ASBOX
23941 ## ------------------------------- ##
23942 ## Report this to www.asterisk.org ##
23943 ## ------------------------------- ##
23944 _ASBOX
23945 ) | sed "s/^/$as_me: WARNING: /" >&2
23947 esac
23948 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23949 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953 eval "$as_ac_Header=\$ac_header_preproc"
23955 ac_res=`eval echo '${'$as_ac_Header'}'`
23956 { echo "$as_me:$LINENO: result: $ac_res" >&5
23957 echo "${ECHO_T}$ac_res" >&6; }
23960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23961 OGG_HEADER_FOUND=1
23962 else
23963 OGG_HEADER_FOUND=0
23968 CPPFLAGS="${saved_cppflags}"
23969 else
23970 if test "x" != "x" ; then
23971 if test "${ac_cv_header_+set}" = set; then
23972 { echo "$as_me:$LINENO: checking for " >&5
23973 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23974 if test "${ac_cv_header_+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23978 echo "${ECHO_T}$ac_cv_header_" >&6; }
23979 else
23980 # Is the header compilable?
23981 { echo "$as_me:$LINENO: checking usability" >&5
23982 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23983 cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h. */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 #include <>
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24009 ac_header_compiler=yes
24010 else
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ac_header_compiler=no
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24019 echo "${ECHO_T}$ac_header_compiler" >&6; }
24021 # Is the header present?
24022 { echo "$as_me:$LINENO: checking presence" >&5
24023 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #include <>
24031 _ACEOF
24032 if { (ac_try="$ac_cpp conftest.$ac_ext"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24036 esac
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24039 ac_status=$?
24040 grep -v '^ *+' conftest.er1 >conftest.err
24041 rm -f conftest.er1
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } >/dev/null && {
24045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 }; then
24048 ac_header_preproc=yes
24049 else
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_header_preproc=no
24056 rm -f conftest.err conftest.$ac_ext
24057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24058 echo "${ECHO_T}$ac_header_preproc" >&6; }
24060 # So? What about this header?
24061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24062 yes:no: )
24063 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24064 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24065 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24066 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24067 ac_header_preproc=yes
24069 no:yes:* )
24070 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24071 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24072 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24073 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24074 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24075 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24077 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24078 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24079 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24080 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24081 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24082 ( cat <<\_ASBOX
24083 ## ------------------------------- ##
24084 ## Report this to www.asterisk.org ##
24085 ## ------------------------------- ##
24086 _ASBOX
24087 ) | sed "s/^/$as_me: WARNING: /" >&2
24089 esac
24090 { echo "$as_me:$LINENO: checking for " >&5
24091 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24092 if test "${ac_cv_header_+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095 ac_cv_header_=$ac_header_preproc
24097 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24098 echo "${ECHO_T}$ac_cv_header_" >&6; }
24101 if test $ac_cv_header_ = yes; then
24102 OGG_HEADER_FOUND=1
24103 else
24104 OGG_HEADER_FOUND=0
24110 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24111 if test -n "${OGG_MANDATORY}" ;
24112 then
24113 { echo "$as_me:$LINENO: ***" >&5
24114 echo "$as_me: ***" >&6;}
24115 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24116 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24117 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24118 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24120 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24121 exit 1
24123 OGG_LIB=""
24124 OGG_INCLUDE=""
24125 PBX_OGG=0
24126 else
24127 PBX_OGG=1
24129 cat >>confdefs.h <<_ACEOF
24130 #define HAVE_OGG 1
24131 _ACEOF
24134 elif test -n "${OGG_MANDATORY}";
24135 then
24136 { echo "$as_me:$LINENO: ***" >&5
24137 echo "$as_me: ***" >&6;}
24138 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24139 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24140 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24141 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24143 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24144 exit 1
24149 if test "${USE_OSS}" != "no"; then
24150 PBX_OSS=0
24151 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24152 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24153 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24154 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24158 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24159 else
24160 # Is the header compilable?
24161 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24162 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24163 cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h. */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24170 #include <linux/soundcard.h>
24171 _ACEOF
24172 rm -f conftest.$ac_objext
24173 if { (ac_try="$ac_compile"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24177 esac
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179 (eval "$ac_compile") 2>conftest.er1
24180 ac_status=$?
24181 grep -v '^ *+' conftest.er1 >conftest.err
24182 rm -f conftest.er1
24183 cat conftest.err >&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && {
24186 test -z "$ac_c_werror_flag" ||
24187 test ! -s conftest.err
24188 } && test -s conftest.$ac_objext; then
24189 ac_header_compiler=yes
24190 else
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24194 ac_header_compiler=no
24197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24199 echo "${ECHO_T}$ac_header_compiler" >&6; }
24201 # Is the header present?
24202 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24203 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24204 cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h. */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 #include <linux/soundcard.h>
24211 _ACEOF
24212 if { (ac_try="$ac_cpp conftest.$ac_ext"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24219 ac_status=$?
24220 grep -v '^ *+' conftest.er1 >conftest.err
24221 rm -f conftest.er1
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } >/dev/null && {
24225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24227 }; then
24228 ac_header_preproc=yes
24229 else
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_header_preproc=no
24236 rm -f conftest.err conftest.$ac_ext
24237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24238 echo "${ECHO_T}$ac_header_preproc" >&6; }
24240 # So? What about this header?
24241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24242 yes:no: )
24243 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24244 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24245 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24246 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24247 ac_header_preproc=yes
24249 no:yes:* )
24250 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24251 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24252 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24253 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24254 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24255 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24256 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24257 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24258 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24259 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24260 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24261 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24262 ( cat <<\_ASBOX
24263 ## ------------------------------- ##
24264 ## Report this to www.asterisk.org ##
24265 ## ------------------------------- ##
24266 _ASBOX
24267 ) | sed "s/^/$as_me: WARNING: /" >&2
24269 esac
24270 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24271 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24272 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 else
24275 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24281 if test $ac_cv_header_linux_soundcard_h = yes; then
24283 PBX_OSS=1
24285 cat >>confdefs.h <<_ACEOF
24286 #define HAVE_OSS 1
24287 _ACEOF
24293 if test "$PBX_OSS" = "0"; then
24294 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24295 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24296 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24297 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24298 echo $ECHO_N "(cached) $ECHO_C" >&6
24300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24301 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24302 else
24303 # Is the header compilable?
24304 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24305 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h. */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 $ac_includes_default
24313 #include <sys/soundcard.h>
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (ac_try="$ac_compile"
24317 case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24320 esac
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_compile") 2>conftest.er1
24323 ac_status=$?
24324 grep -v '^ *+' conftest.er1 >conftest.err
24325 rm -f conftest.er1
24326 cat conftest.err >&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } && {
24329 test -z "$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 } && test -s conftest.$ac_objext; then
24332 ac_header_compiler=yes
24333 else
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ac_header_compiler=no
24340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24342 echo "${ECHO_T}$ac_header_compiler" >&6; }
24344 # Is the header present?
24345 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24346 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24347 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h. */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/soundcard.h>
24354 _ACEOF
24355 if { (ac_try="$ac_cpp conftest.$ac_ext"
24356 case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24359 esac
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24362 ac_status=$?
24363 grep -v '^ *+' conftest.er1 >conftest.err
24364 rm -f conftest.er1
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } >/dev/null && {
24368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24369 test ! -s conftest.err
24370 }; then
24371 ac_header_preproc=yes
24372 else
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_header_preproc=no
24379 rm -f conftest.err conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24381 echo "${ECHO_T}$ac_header_preproc" >&6; }
24383 # So? What about this header?
24384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24385 yes:no: )
24386 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24387 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24389 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24390 ac_header_preproc=yes
24392 no:yes:* )
24393 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24394 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24395 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24396 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24397 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24398 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24400 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24402 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24404 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24405 ( cat <<\_ASBOX
24406 ## ------------------------------- ##
24407 ## Report this to www.asterisk.org ##
24408 ## ------------------------------- ##
24409 _ASBOX
24410 ) | sed "s/^/$as_me: WARNING: /" >&2
24412 esac
24413 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24414 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24415 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24420 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24421 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24424 if test $ac_cv_header_sys_soundcard_h = yes; then
24426 PBX_OSS=1
24428 cat >>confdefs.h <<_ACEOF
24429 #define HAVE_OSS 1
24430 _ACEOF
24437 if test "$PBX_OSS" = "0"; then
24439 if test "${USE_OSS}" != "no"; then
24440 pbxlibdir=""
24441 if test "x${OSS_DIR}" != "x"; then
24442 if test -d ${OSS_DIR}/lib; then
24443 pbxlibdir="-L${OSS_DIR}/lib"
24444 else
24445 pbxlibdir="-L${OSS_DIR}"
24448 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24449 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24450 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 else
24453 ac_check_lib_save_LIBS=$LIBS
24454 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24455 cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h. */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24462 /* Override any GCC internal prototype to avoid an error.
24463 Use char because int might match the return type of a GCC
24464 builtin and then its argument prototype would still apply. */
24465 #ifdef __cplusplus
24466 extern "C"
24467 #endif
24468 char oss_ioctl_mixer ();
24470 main ()
24472 return oss_ioctl_mixer ();
24474 return 0;
24476 _ACEOF
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (ac_try="$ac_link"
24479 case "(($ac_try" in
24480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24482 esac
24483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484 (eval "$ac_link") 2>conftest.er1
24485 ac_status=$?
24486 grep -v '^ *+' conftest.er1 >conftest.err
24487 rm -f conftest.er1
24488 cat conftest.err >&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } && {
24491 test -z "$ac_c_werror_flag" ||
24492 test ! -s conftest.err
24493 } && test -s conftest$ac_exeext &&
24494 $as_test_x conftest$ac_exeext; then
24495 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
24496 else
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
24503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24504 conftest$ac_exeext conftest.$ac_ext
24505 LIBS=$ac_check_lib_save_LIBS
24507 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24508 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24509 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24510 AST_OSS_FOUND=yes
24511 else
24512 AST_OSS_FOUND=no
24516 if test "${AST_OSS_FOUND}" = "yes"; then
24517 OSS_LIB="-lossaudio "
24518 OSS_HEADER_FOUND="1"
24519 if test "x${OSS_DIR}" != "x"; then
24520 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
24521 OSS_INCLUDE="-I${OSS_DIR}/include"
24522 saved_cppflags="${CPPFLAGS}"
24523 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
24524 if test "xsoundcard.h" != "x" ; then
24525 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24527 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24528 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 ac_res=`eval echo '${'$as_ac_Header'}'`
24533 { echo "$as_me:$LINENO: result: $ac_res" >&5
24534 echo "${ECHO_T}$ac_res" >&6; }
24535 else
24536 # Is the header compilable?
24537 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24538 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 #include <${OSS_DIR}/include/soundcard.h>
24547 _ACEOF
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && {
24562 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24565 ac_header_compiler=yes
24566 else
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_header_compiler=no
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24575 echo "${ECHO_T}$ac_header_compiler" >&6; }
24577 # Is the header present?
24578 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24579 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24580 cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h. */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 #include <${OSS_DIR}/include/soundcard.h>
24587 _ACEOF
24588 if { (ac_try="$ac_cpp conftest.$ac_ext"
24589 case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592 esac
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } >/dev/null && {
24601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 }; then
24604 ac_header_preproc=yes
24605 else
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_preproc=no
24612 rm -f conftest.err conftest.$ac_ext
24613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614 echo "${ECHO_T}$ac_header_preproc" >&6; }
24616 # So? What about this header?
24617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24618 yes:no: )
24619 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24620 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24622 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24623 ac_header_preproc=yes
24625 no:yes:* )
24626 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24627 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24629 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24631 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24633 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24635 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24637 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24638 ( cat <<\_ASBOX
24639 ## ------------------------------- ##
24640 ## Report this to www.asterisk.org ##
24641 ## ------------------------------- ##
24642 _ASBOX
24643 ) | sed "s/^/$as_me: WARNING: /" >&2
24645 esac
24646 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24647 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651 eval "$as_ac_Header=\$ac_header_preproc"
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654 { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24659 OSS_HEADER_FOUND=1
24660 else
24661 OSS_HEADER_FOUND=0
24666 CPPFLAGS="${saved_cppflags}"
24667 else
24668 if test "xsoundcard.h" != "x" ; then
24669 if test "${ac_cv_header_soundcard_h+set}" = set; then
24670 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24671 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24672 if test "${ac_cv_header_soundcard_h+set}" = set; then
24673 echo $ECHO_N "(cached) $ECHO_C" >&6
24675 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24676 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24677 else
24678 # Is the header compilable?
24679 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24680 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24681 cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h. */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 $ac_includes_default
24688 #include <soundcard.h>
24689 _ACEOF
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_compile") 2>conftest.er1
24698 ac_status=$?
24699 grep -v '^ *+' conftest.er1 >conftest.err
24700 rm -f conftest.er1
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest.$ac_objext; then
24707 ac_header_compiler=yes
24708 else
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 ac_header_compiler=no
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24717 echo "${ECHO_T}$ac_header_compiler" >&6; }
24719 # Is the header present?
24720 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24721 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24722 cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h. */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24728 #include <soundcard.h>
24729 _ACEOF
24730 if { (ac_try="$ac_cpp conftest.$ac_ext"
24731 case "(($ac_try" in
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733 *) ac_try_echo=$ac_try;;
24734 esac
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24737 ac_status=$?
24738 grep -v '^ *+' conftest.er1 >conftest.err
24739 rm -f conftest.er1
24740 cat conftest.err >&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } >/dev/null && {
24743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24744 test ! -s conftest.err
24745 }; then
24746 ac_header_preproc=yes
24747 else
24748 echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24751 ac_header_preproc=no
24754 rm -f conftest.err conftest.$ac_ext
24755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24756 echo "${ECHO_T}$ac_header_preproc" >&6; }
24758 # So? What about this header?
24759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24760 yes:no: )
24761 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24762 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24763 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24764 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24765 ac_header_preproc=yes
24767 no:yes:* )
24768 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24769 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24771 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24773 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24774 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24775 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24777 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24779 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24780 ( cat <<\_ASBOX
24781 ## ------------------------------- ##
24782 ## Report this to www.asterisk.org ##
24783 ## ------------------------------- ##
24784 _ASBOX
24785 ) | sed "s/^/$as_me: WARNING: /" >&2
24787 esac
24788 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24789 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24790 if test "${ac_cv_header_soundcard_h+set}" = set; then
24791 echo $ECHO_N "(cached) $ECHO_C" >&6
24792 else
24793 ac_cv_header_soundcard_h=$ac_header_preproc
24795 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24796 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24799 if test $ac_cv_header_soundcard_h = yes; then
24800 OSS_HEADER_FOUND=1
24801 else
24802 OSS_HEADER_FOUND=0
24808 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24809 if test -n "${OSS_MANDATORY}" ;
24810 then
24811 { echo "$as_me:$LINENO: ***" >&5
24812 echo "$as_me: ***" >&6;}
24813 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24814 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24815 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24816 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24817 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24818 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24819 exit 1
24821 OSS_LIB=""
24822 OSS_INCLUDE=""
24823 PBX_OSS=0
24824 else
24825 PBX_OSS=1
24827 cat >>confdefs.h <<_ACEOF
24828 #define HAVE_OSS 1
24829 _ACEOF
24832 elif test -n "${OSS_MANDATORY}";
24833 then
24834 { echo "$as_me:$LINENO: ***" >&5
24835 echo "$as_me: ***" >&6;}
24836 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24837 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24838 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24839 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24840 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24841 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24842 exit 1
24849 PG_CONFIG=No
24850 if test "${USE_PGSQL}" != "no"; then
24851 if test "x${PGSQL_DIR}" != "x"; then
24852 if test -n "$ac_tool_prefix"; then
24853 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24854 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24857 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24859 else
24860 case $PG_CONFIG in
24861 [\\/]* | ?:[\\/]*)
24862 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24866 for as_dir in ${PGSQL_DIR}/bin
24868 IFS=$as_save_IFS
24869 test -z "$as_dir" && as_dir=.
24870 for ac_exec_ext in '' $ac_executable_extensions; do
24871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24872 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24874 break 2
24876 done
24877 done
24878 IFS=$as_save_IFS
24881 esac
24883 PG_CONFIG=$ac_cv_path_PG_CONFIG
24884 if test -n "$PG_CONFIG"; then
24885 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24886 echo "${ECHO_T}$PG_CONFIG" >&6; }
24887 else
24888 { echo "$as_me:$LINENO: result: no" >&5
24889 echo "${ECHO_T}no" >&6; }
24894 if test -z "$ac_cv_path_PG_CONFIG"; then
24895 ac_pt_PG_CONFIG=$PG_CONFIG
24896 # Extract the first word of "pg_config", so it can be a program name with args.
24897 set dummy pg_config; ac_word=$2
24898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24900 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 else
24903 case $ac_pt_PG_CONFIG in
24904 [\\/]* | ?:[\\/]*)
24905 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24909 for as_dir in ${PGSQL_DIR}/bin
24911 IFS=$as_save_IFS
24912 test -z "$as_dir" && as_dir=.
24913 for ac_exec_ext in '' $ac_executable_extensions; do
24914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24915 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24917 break 2
24919 done
24920 done
24921 IFS=$as_save_IFS
24924 esac
24926 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24927 if test -n "$ac_pt_PG_CONFIG"; then
24928 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24929 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24930 else
24931 { echo "$as_me:$LINENO: result: no" >&5
24932 echo "${ECHO_T}no" >&6; }
24935 if test "x$ac_pt_PG_CONFIG" = x; then
24936 PG_CONFIG="No"
24937 else
24938 case $cross_compiling:$ac_tool_warned in
24939 yes:)
24940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24941 whose name does not start with the host triplet. If you think this
24942 configuration is useful to you, please write to autoconf@gnu.org." >&5
24943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24944 whose name does not start with the host triplet. If you think this
24945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24946 ac_tool_warned=yes ;;
24947 esac
24948 PG_CONFIG=$ac_pt_PG_CONFIG
24950 else
24951 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24954 if test x"${PG_CONFIG}" = xNo; then
24955 { echo "$as_me:$LINENO: ***" >&5
24956 echo "$as_me: ***" >&6;}
24957 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24958 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24959 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24960 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24961 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24962 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24963 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24964 echo "$as_me: *** including --without-postgres" >&6;}
24965 exit 1
24967 else
24968 if test -n "$ac_tool_prefix"; then
24969 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24970 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24973 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 else
24976 case $PG_CONFIG in
24977 [\\/]* | ?:[\\/]*)
24978 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24982 for as_dir in $PATH
24984 IFS=$as_save_IFS
24985 test -z "$as_dir" && as_dir=.
24986 for ac_exec_ext in '' $ac_executable_extensions; do
24987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24988 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24990 break 2
24992 done
24993 done
24994 IFS=$as_save_IFS
24997 esac
24999 PG_CONFIG=$ac_cv_path_PG_CONFIG
25000 if test -n "$PG_CONFIG"; then
25001 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25002 echo "${ECHO_T}$PG_CONFIG" >&6; }
25003 else
25004 { echo "$as_me:$LINENO: result: no" >&5
25005 echo "${ECHO_T}no" >&6; }
25010 if test -z "$ac_cv_path_PG_CONFIG"; then
25011 ac_pt_PG_CONFIG=$PG_CONFIG
25012 # Extract the first word of "pg_config", so it can be a program name with args.
25013 set dummy pg_config; ac_word=$2
25014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25016 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019 case $ac_pt_PG_CONFIG in
25020 [\\/]* | ?:[\\/]*)
25021 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25025 for as_dir in $PATH
25027 IFS=$as_save_IFS
25028 test -z "$as_dir" && as_dir=.
25029 for ac_exec_ext in '' $ac_executable_extensions; do
25030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25031 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25033 break 2
25035 done
25036 done
25037 IFS=$as_save_IFS
25040 esac
25042 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25043 if test -n "$ac_pt_PG_CONFIG"; then
25044 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25045 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25046 else
25047 { echo "$as_me:$LINENO: result: no" >&5
25048 echo "${ECHO_T}no" >&6; }
25051 if test "x$ac_pt_PG_CONFIG" = x; then
25052 PG_CONFIG="No"
25053 else
25054 case $cross_compiling:$ac_tool_warned in
25055 yes:)
25056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25057 whose name does not start with the host triplet. If you think this
25058 configuration is useful to you, please write to autoconf@gnu.org." >&5
25059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25060 whose name does not start with the host triplet. If you think this
25061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25062 ac_tool_warned=yes ;;
25063 esac
25064 PG_CONFIG=$ac_pt_PG_CONFIG
25066 else
25067 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25072 if test "${PG_CONFIG}" != No; then
25073 PGSQL_libdir=`${PG_CONFIG} --libdir`
25074 PGSQL_includedir=`${PG_CONFIG} --includedir`
25076 if test "x$?" != "x0" ; then
25077 if test -n "${PGSQL_MANDATORY}" ; then
25078 { echo "$as_me:$LINENO: ***" >&5
25079 echo "$as_me: ***" >&6;}
25080 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25081 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25082 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25083 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25084 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25085 echo "$as_me: *** including --without-postgres" >&6;}
25086 exit 1
25088 else
25089 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25090 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25091 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094 ac_check_lib_save_LIBS=$LIBS
25095 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
25096 cat >conftest.$ac_ext <<_ACEOF
25097 /* confdefs.h. */
25098 _ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25103 /* Override any GCC internal prototype to avoid an error.
25104 Use char because int might match the return type of a GCC
25105 builtin and then its argument prototype would still apply. */
25106 #ifdef __cplusplus
25107 extern "C"
25108 #endif
25109 char PQescapeStringConn ();
25111 main ()
25113 return PQescapeStringConn ();
25115 return 0;
25117 _ACEOF
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (ac_try="$ac_link"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_link") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest$ac_exeext &&
25135 $as_test_x conftest$ac_exeext; then
25136 ac_cv_lib_pq_PQescapeStringConn=yes
25137 else
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_lib_pq_PQescapeStringConn=no
25144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25145 conftest$ac_exeext conftest.$ac_ext
25146 LIBS=$ac_check_lib_save_LIBS
25148 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25149 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25150 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25152 cat >>confdefs.h <<_ACEOF
25153 #define HAVE_PGSQL 1
25154 _ACEOF
25159 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25160 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25161 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25162 PBX_PGSQL=1
25163 elif test -n "${PGSQL_MANDATORY}";
25164 then
25165 { echo "$as_me:$LINENO: ***" >&5
25166 echo "$as_me: ***" >&6;}
25167 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25168 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25169 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25170 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25171 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25172 echo "$as_me: *** including --without-postgres" >&6;}
25173 exit 1
25176 elif test -n "${PGSQL_MANDATORY}";
25177 then
25178 { echo "$as_me:$LINENO: ***" >&5
25179 echo "$as_me: ***" >&6;}
25180 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25181 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25182 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25183 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25184 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25185 echo "$as_me: *** including --without-postgres" >&6;}
25186 exit 1
25190 if test "${USE_POPT}" != "no"; then
25191 pbxlibdir=""
25192 if test "x${POPT_DIR}" != "x"; then
25193 if test -d ${POPT_DIR}/lib; then
25194 pbxlibdir="-L${POPT_DIR}/lib"
25195 else
25196 pbxlibdir="-L${POPT_DIR}"
25199 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25200 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25201 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203 else
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-lpopt ${pbxlibdir} $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h. */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25213 /* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25216 #ifdef __cplusplus
25217 extern "C"
25218 #endif
25219 char poptStrerror ();
25221 main ()
25223 return poptStrerror ();
25225 return 0;
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25233 esac
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235 (eval "$ac_link") 2>conftest.er1
25236 ac_status=$?
25237 grep -v '^ *+' conftest.er1 >conftest.err
25238 rm -f conftest.er1
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && {
25242 test -z "$ac_c_werror_flag" ||
25243 test ! -s conftest.err
25244 } && test -s conftest$ac_exeext &&
25245 $as_test_x conftest$ac_exeext; then
25246 ac_cv_lib_popt_poptStrerror=yes
25247 else
25248 echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251 ac_cv_lib_popt_poptStrerror=no
25254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25255 conftest$ac_exeext conftest.$ac_ext
25256 LIBS=$ac_check_lib_save_LIBS
25258 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25259 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25260 if test $ac_cv_lib_popt_poptStrerror = yes; then
25261 AST_POPT_FOUND=yes
25262 else
25263 AST_POPT_FOUND=no
25267 if test "${AST_POPT_FOUND}" = "yes"; then
25268 POPT_LIB="-lpopt "
25269 POPT_HEADER_FOUND="1"
25270 if test "x${POPT_DIR}" != "x"; then
25271 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
25272 POPT_INCLUDE="-I${POPT_DIR}/include"
25273 saved_cppflags="${CPPFLAGS}"
25274 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
25275 if test "xpopt.h" != "x" ; then
25276 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25278 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25279 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25283 ac_res=`eval echo '${'$as_ac_Header'}'`
25284 { echo "$as_me:$LINENO: result: $ac_res" >&5
25285 echo "${ECHO_T}$ac_res" >&6; }
25286 else
25287 # Is the header compilable?
25288 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25289 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h. */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25297 #include <${POPT_DIR}/include/popt.h>
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303 *) ac_try_echo=$ac_try;;
25304 esac
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306 (eval "$ac_compile") 2>conftest.er1
25307 ac_status=$?
25308 grep -v '^ *+' conftest.er1 >conftest.err
25309 rm -f conftest.er1
25310 cat conftest.err >&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } && {
25313 test -z "$ac_c_werror_flag" ||
25314 test ! -s conftest.err
25315 } && test -s conftest.$ac_objext; then
25316 ac_header_compiler=yes
25317 else
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_header_compiler=no
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25326 echo "${ECHO_T}$ac_header_compiler" >&6; }
25328 # Is the header present?
25329 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25330 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h. */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 #include <${POPT_DIR}/include/popt.h>
25338 _ACEOF
25339 if { (ac_try="$ac_cpp conftest.$ac_ext"
25340 case "(($ac_try" in
25341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342 *) ac_try_echo=$ac_try;;
25343 esac
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25346 ac_status=$?
25347 grep -v '^ *+' conftest.er1 >conftest.err
25348 rm -f conftest.er1
25349 cat conftest.err >&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } >/dev/null && {
25352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25354 }; then
25355 ac_header_preproc=yes
25356 else
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ac_header_preproc=no
25363 rm -f conftest.err conftest.$ac_ext
25364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25365 echo "${ECHO_T}$ac_header_preproc" >&6; }
25367 # So? What about this header?
25368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25369 yes:no: )
25370 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25371 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25372 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25373 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25374 ac_header_preproc=yes
25376 no:yes:* )
25377 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25378 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25379 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25380 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25381 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25382 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25383 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25384 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25386 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25388 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25389 ( cat <<\_ASBOX
25390 ## ------------------------------- ##
25391 ## Report this to www.asterisk.org ##
25392 ## ------------------------------- ##
25393 _ASBOX
25394 ) | sed "s/^/$as_me: WARNING: /" >&2
25396 esac
25397 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25398 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 else
25402 eval "$as_ac_Header=\$ac_header_preproc"
25404 ac_res=`eval echo '${'$as_ac_Header'}'`
25405 { echo "$as_me:$LINENO: result: $ac_res" >&5
25406 echo "${ECHO_T}$ac_res" >&6; }
25409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25410 POPT_HEADER_FOUND=1
25411 else
25412 POPT_HEADER_FOUND=0
25417 CPPFLAGS="${saved_cppflags}"
25418 else
25419 if test "xpopt.h" != "x" ; then
25420 if test "${ac_cv_header_popt_h+set}" = set; then
25421 { echo "$as_me:$LINENO: checking for popt.h" >&5
25422 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25423 if test "${ac_cv_header_popt_h+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25427 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25428 else
25429 # Is the header compilable?
25430 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25431 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h. */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <popt.h>
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25449 ac_status=$?
25450 grep -v '^ *+' conftest.er1 >conftest.err
25451 rm -f conftest.er1
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest.$ac_objext; then
25458 ac_header_compiler=yes
25459 else
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_header_compiler=no
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6; }
25470 # Is the header present?
25471 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25472 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h. */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <popt.h>
25480 _ACEOF
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } >/dev/null && {
25494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 }; then
25497 ac_header_preproc=yes
25498 else
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_header_preproc=no
25505 rm -f conftest.err conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6; }
25509 # So? What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25511 yes:no: )
25512 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25516 ac_header_preproc=yes
25518 no:yes:* )
25519 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25531 ( cat <<\_ASBOX
25532 ## ------------------------------- ##
25533 ## Report this to www.asterisk.org ##
25534 ## ------------------------------- ##
25535 _ASBOX
25536 ) | sed "s/^/$as_me: WARNING: /" >&2
25538 esac
25539 { echo "$as_me:$LINENO: checking for popt.h" >&5
25540 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25541 if test "${ac_cv_header_popt_h+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544 ac_cv_header_popt_h=$ac_header_preproc
25546 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25547 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25550 if test $ac_cv_header_popt_h = yes; then
25551 POPT_HEADER_FOUND=1
25552 else
25553 POPT_HEADER_FOUND=0
25559 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25560 if test -n "${POPT_MANDATORY}" ;
25561 then
25562 { echo "$as_me:$LINENO: ***" >&5
25563 echo "$as_me: ***" >&6;}
25564 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25565 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25566 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25567 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25568 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25569 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25570 exit 1
25572 POPT_LIB=""
25573 POPT_INCLUDE=""
25574 PBX_POPT=0
25575 else
25576 PBX_POPT=1
25578 cat >>confdefs.h <<_ACEOF
25579 #define HAVE_POPT 1
25580 _ACEOF
25583 elif test -n "${POPT_MANDATORY}";
25584 then
25585 { echo "$as_me:$LINENO: ***" >&5
25586 echo "$as_me: ***" >&6;}
25587 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25588 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25589 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25590 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25592 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25593 exit 1
25599 if test "${USE_PRI}" != "no"; then
25600 pbxlibdir=""
25601 if test "x${PRI_DIR}" != "x"; then
25602 if test -d ${PRI_DIR}/lib; then
25603 pbxlibdir="-L${PRI_DIR}/lib"
25604 else
25605 pbxlibdir="-L${PRI_DIR}"
25608 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25609 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25610 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25611 echo $ECHO_N "(cached) $ECHO_C" >&6
25612 else
25613 ac_check_lib_save_LIBS=$LIBS
25614 LIBS="-lpri ${pbxlibdir} $LIBS"
25615 cat >conftest.$ac_ext <<_ACEOF
25616 /* confdefs.h. */
25617 _ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply. */
25625 #ifdef __cplusplus
25626 extern "C"
25627 #endif
25628 char pri_keypad_facility ();
25630 main ()
25632 return pri_keypad_facility ();
25634 return 0;
25636 _ACEOF
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_link") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest$ac_exeext &&
25654 $as_test_x conftest$ac_exeext; then
25655 ac_cv_lib_pri_pri_keypad_facility=yes
25656 else
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 ac_cv_lib_pri_pri_keypad_facility=no
25663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25664 conftest$ac_exeext conftest.$ac_ext
25665 LIBS=$ac_check_lib_save_LIBS
25667 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25668 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25669 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25670 AST_PRI_FOUND=yes
25671 else
25672 AST_PRI_FOUND=no
25676 if test "${AST_PRI_FOUND}" = "yes"; then
25677 PRI_LIB="-lpri "
25678 PRI_HEADER_FOUND="1"
25679 if test "x${PRI_DIR}" != "x"; then
25680 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25681 PRI_INCLUDE="-I${PRI_DIR}/include"
25682 saved_cppflags="${CPPFLAGS}"
25683 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25684 if test "xlibpri.h" != "x" ; then
25685 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
25686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25687 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25688 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 ac_res=`eval echo '${'$as_ac_Header'}'`
25693 { echo "$as_me:$LINENO: result: $ac_res" >&5
25694 echo "${ECHO_T}$ac_res" >&6; }
25695 else
25696 # Is the header compilable?
25697 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25698 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25699 cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h. */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25705 $ac_includes_default
25706 #include <${PRI_DIR}/include/libpri.h>
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (ac_try="$ac_compile"
25710 case "(($ac_try" in
25711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712 *) ac_try_echo=$ac_try;;
25713 esac
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715 (eval "$ac_compile") 2>conftest.er1
25716 ac_status=$?
25717 grep -v '^ *+' conftest.er1 >conftest.err
25718 rm -f conftest.er1
25719 cat conftest.err >&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && {
25722 test -z "$ac_c_werror_flag" ||
25723 test ! -s conftest.err
25724 } && test -s conftest.$ac_objext; then
25725 ac_header_compiler=yes
25726 else
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ac_header_compiler=no
25733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25735 echo "${ECHO_T}$ac_header_compiler" >&6; }
25737 # Is the header present?
25738 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25739 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h. */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <${PRI_DIR}/include/libpri.h>
25747 _ACEOF
25748 if { (ac_try="$ac_cpp conftest.$ac_ext"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25755 ac_status=$?
25756 grep -v '^ *+' conftest.er1 >conftest.err
25757 rm -f conftest.er1
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } >/dev/null && {
25761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 }; then
25764 ac_header_preproc=yes
25765 else
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_header_preproc=no
25772 rm -f conftest.err conftest.$ac_ext
25773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25774 echo "${ECHO_T}$ac_header_preproc" >&6; }
25776 # So? What about this header?
25777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25778 yes:no: )
25779 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25780 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25781 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25782 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25783 ac_header_preproc=yes
25785 no:yes:* )
25786 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25787 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25788 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25789 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25791 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25793 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25795 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25797 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25798 ( cat <<\_ASBOX
25799 ## ------------------------------- ##
25800 ## Report this to www.asterisk.org ##
25801 ## ------------------------------- ##
25802 _ASBOX
25803 ) | sed "s/^/$as_me: WARNING: /" >&2
25805 esac
25806 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25807 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811 eval "$as_ac_Header=\$ac_header_preproc"
25813 ac_res=`eval echo '${'$as_ac_Header'}'`
25814 { echo "$as_me:$LINENO: result: $ac_res" >&5
25815 echo "${ECHO_T}$ac_res" >&6; }
25818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25819 PRI_HEADER_FOUND=1
25820 else
25821 PRI_HEADER_FOUND=0
25826 CPPFLAGS="${saved_cppflags}"
25827 else
25828 if test "xlibpri.h" != "x" ; then
25829 if test "${ac_cv_header_libpri_h+set}" = set; then
25830 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25831 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25832 if test "${ac_cv_header_libpri_h+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25836 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25837 else
25838 # Is the header compilable?
25839 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25840 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h. */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 $ac_includes_default
25848 #include <libpri.h>
25849 _ACEOF
25850 rm -f conftest.$ac_objext
25851 if { (ac_try="$ac_compile"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_compile") 2>conftest.er1
25858 ac_status=$?
25859 grep -v '^ *+' conftest.er1 >conftest.err
25860 rm -f conftest.er1
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest.$ac_objext; then
25867 ac_header_compiler=yes
25868 else
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25872 ac_header_compiler=no
25875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25877 echo "${ECHO_T}$ac_header_compiler" >&6; }
25879 # Is the header present?
25880 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25881 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25882 cat >conftest.$ac_ext <<_ACEOF
25883 /* confdefs.h. */
25884 _ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 #include <libpri.h>
25889 _ACEOF
25890 if { (ac_try="$ac_cpp conftest.$ac_ext"
25891 case "(($ac_try" in
25892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25894 esac
25895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25897 ac_status=$?
25898 grep -v '^ *+' conftest.er1 >conftest.err
25899 rm -f conftest.er1
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } >/dev/null && {
25903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25904 test ! -s conftest.err
25905 }; then
25906 ac_header_preproc=yes
25907 else
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 ac_header_preproc=no
25914 rm -f conftest.err conftest.$ac_ext
25915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25916 echo "${ECHO_T}$ac_header_preproc" >&6; }
25918 # So? What about this header?
25919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25920 yes:no: )
25921 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25922 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25923 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25924 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25925 ac_header_preproc=yes
25927 no:yes:* )
25928 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25929 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25930 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25931 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25933 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25934 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25935 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25936 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25937 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25939 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25940 ( cat <<\_ASBOX
25941 ## ------------------------------- ##
25942 ## Report this to www.asterisk.org ##
25943 ## ------------------------------- ##
25944 _ASBOX
25945 ) | sed "s/^/$as_me: WARNING: /" >&2
25947 esac
25948 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25949 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25950 if test "${ac_cv_header_libpri_h+set}" = set; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25952 else
25953 ac_cv_header_libpri_h=$ac_header_preproc
25955 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25956 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25959 if test $ac_cv_header_libpri_h = yes; then
25960 PRI_HEADER_FOUND=1
25961 else
25962 PRI_HEADER_FOUND=0
25968 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25969 if test -n "${PRI_MANDATORY}" ;
25970 then
25971 { echo "$as_me:$LINENO: ***" >&5
25972 echo "$as_me: ***" >&6;}
25973 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25974 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25975 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25976 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25977 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25978 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25979 exit 1
25981 PRI_LIB=""
25982 PRI_INCLUDE=""
25983 PBX_PRI=0
25984 else
25985 PBX_PRI=1
25987 cat >>confdefs.h <<_ACEOF
25988 #define HAVE_PRI 1
25989 _ACEOF
25992 elif test -n "${PRI_MANDATORY}";
25993 then
25994 { echo "$as_me:$LINENO: ***" >&5
25995 echo "$as_me: ***" >&6;}
25996 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25997 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25998 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25999 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26000 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26001 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26002 exit 1
26008 if test "${USE_PRI_VERSION}" != "no"; then
26009 pbxlibdir=""
26010 if test "x${PRI_VERSION_DIR}" != "x"; then
26011 if test -d ${PRI_VERSION_DIR}/lib; then
26012 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26013 else
26014 pbxlibdir="-L${PRI_VERSION_DIR}"
26017 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26018 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26019 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26020 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 else
26022 ac_check_lib_save_LIBS=$LIBS
26023 LIBS="-lpri ${pbxlibdir} $LIBS"
26024 cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h. */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h. */
26031 /* Override any GCC internal prototype to avoid an error.
26032 Use char because int might match the return type of a GCC
26033 builtin and then its argument prototype would still apply. */
26034 #ifdef __cplusplus
26035 extern "C"
26036 #endif
26037 char pri_get_version ();
26039 main ()
26041 return pri_get_version ();
26043 return 0;
26045 _ACEOF
26046 rm -f conftest.$ac_objext conftest$ac_exeext
26047 if { (ac_try="$ac_link"
26048 case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26051 esac
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_link") 2>conftest.er1
26054 ac_status=$?
26055 grep -v '^ *+' conftest.er1 >conftest.err
26056 rm -f conftest.er1
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } && {
26060 test -z "$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26062 } && test -s conftest$ac_exeext &&
26063 $as_test_x conftest$ac_exeext; then
26064 ac_cv_lib_pri_pri_get_version=yes
26065 else
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 ac_cv_lib_pri_pri_get_version=no
26072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26073 conftest$ac_exeext conftest.$ac_ext
26074 LIBS=$ac_check_lib_save_LIBS
26076 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26077 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26078 if test $ac_cv_lib_pri_pri_get_version = yes; then
26079 AST_PRI_VERSION_FOUND=yes
26080 else
26081 AST_PRI_VERSION_FOUND=no
26085 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26086 PRI_VERSION_LIB="-lpri "
26087 PRI_VERSION_HEADER_FOUND="1"
26088 if test "x${PRI_VERSION_DIR}" != "x"; then
26089 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
26090 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
26091 saved_cppflags="${CPPFLAGS}"
26092 CPPFLAGS="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26093 if test "xlibpri.h" != "x" ; then
26094 as_ac_Header=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26096 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26097 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099 echo $ECHO_N "(cached) $ECHO_C" >&6
26101 ac_res=`eval echo '${'$as_ac_Header'}'`
26102 { echo "$as_me:$LINENO: result: $ac_res" >&5
26103 echo "${ECHO_T}$ac_res" >&6; }
26104 else
26105 # Is the header compilable?
26106 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26107 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26108 cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h. */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26114 $ac_includes_default
26115 #include <${PRI_VERSION_DIR}/include/libpri.h>
26116 _ACEOF
26117 rm -f conftest.$ac_objext
26118 if { (ac_try="$ac_compile"
26119 case "(($ac_try" in
26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26122 esac
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_compile") 2>conftest.er1
26125 ac_status=$?
26126 grep -v '^ *+' conftest.er1 >conftest.err
26127 rm -f conftest.er1
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest.$ac_objext; then
26134 ac_header_compiler=yes
26135 else
26136 echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ac_header_compiler=no
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26144 echo "${ECHO_T}$ac_header_compiler" >&6; }
26146 # Is the header present?
26147 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26148 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h. */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 #include <${PRI_VERSION_DIR}/include/libpri.h>
26156 _ACEOF
26157 if { (ac_try="$ac_cpp conftest.$ac_ext"
26158 case "(($ac_try" in
26159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160 *) ac_try_echo=$ac_try;;
26161 esac
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26164 ac_status=$?
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } >/dev/null && {
26170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26172 }; then
26173 ac_header_preproc=yes
26174 else
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26178 ac_header_preproc=no
26181 rm -f conftest.err conftest.$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26183 echo "${ECHO_T}$ac_header_preproc" >&6; }
26185 # So? What about this header?
26186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26187 yes:no: )
26188 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26189 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26191 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26192 ac_header_preproc=yes
26194 no:yes:* )
26195 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26196 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26198 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26200 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26202 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26204 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26206 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26207 ( cat <<\_ASBOX
26208 ## ------------------------------- ##
26209 ## Report this to www.asterisk.org ##
26210 ## ------------------------------- ##
26211 _ASBOX
26212 ) | sed "s/^/$as_me: WARNING: /" >&2
26214 esac
26215 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26216 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220 eval "$as_ac_Header=\$ac_header_preproc"
26222 ac_res=`eval echo '${'$as_ac_Header'}'`
26223 { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26228 PRI_VERSION_HEADER_FOUND=1
26229 else
26230 PRI_VERSION_HEADER_FOUND=0
26235 CPPFLAGS="${saved_cppflags}"
26236 else
26237 if test "xlibpri.h" != "x" ; then
26238 if test "${ac_cv_header_libpri_h+set}" = set; then
26239 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26240 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26241 if test "${ac_cv_header_libpri_h+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26244 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26245 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26246 else
26247 # Is the header compilable?
26248 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26249 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26250 cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h. */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 $ac_includes_default
26257 #include <libpri.h>
26258 _ACEOF
26259 rm -f conftest.$ac_objext
26260 if { (ac_try="$ac_compile"
26261 case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26264 esac
26265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26267 ac_status=$?
26268 grep -v '^ *+' conftest.er1 >conftest.err
26269 rm -f conftest.er1
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
26276 ac_header_compiler=yes
26277 else
26278 echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26281 ac_header_compiler=no
26284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26286 echo "${ECHO_T}$ac_header_compiler" >&6; }
26288 # Is the header present?
26289 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26290 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h. */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 #include <libpri.h>
26298 _ACEOF
26299 if { (ac_try="$ac_cpp conftest.$ac_ext"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26306 ac_status=$?
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } >/dev/null && {
26312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 }; then
26315 ac_header_preproc=yes
26316 else
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_header_preproc=no
26323 rm -f conftest.err conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26325 echo "${ECHO_T}$ac_header_preproc" >&6; }
26327 # So? What about this header?
26328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26329 yes:no: )
26330 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26331 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26333 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26334 ac_header_preproc=yes
26336 no:yes:* )
26337 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26338 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26340 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26341 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26342 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26343 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26344 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26345 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26346 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26347 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26348 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26349 ( cat <<\_ASBOX
26350 ## ------------------------------- ##
26351 ## Report this to www.asterisk.org ##
26352 ## ------------------------------- ##
26353 _ASBOX
26354 ) | sed "s/^/$as_me: WARNING: /" >&2
26356 esac
26357 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26358 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26359 if test "${ac_cv_header_libpri_h+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 else
26362 ac_cv_header_libpri_h=$ac_header_preproc
26364 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26365 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26368 if test $ac_cv_header_libpri_h = yes; then
26369 PRI_VERSION_HEADER_FOUND=1
26370 else
26371 PRI_VERSION_HEADER_FOUND=0
26377 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26378 if test -n "${PRI_VERSION_MANDATORY}" ;
26379 then
26380 { echo "$as_me:$LINENO: ***" >&5
26381 echo "$as_me: ***" >&6;}
26382 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26383 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26384 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26385 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26386 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26387 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26388 exit 1
26390 PRI_VERSION_LIB=""
26391 PRI_VERSION_INCLUDE=""
26392 PBX_PRI_VERSION=0
26393 else
26394 PBX_PRI_VERSION=1
26396 cat >>confdefs.h <<_ACEOF
26397 #define HAVE_PRI_VERSION 1
26398 _ACEOF
26401 elif test -n "${PRI_VERSION_MANDATORY}";
26402 then
26403 { echo "$as_me:$LINENO: ***" >&5
26404 echo "$as_me: ***" >&6;}
26405 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26406 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26407 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26408 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26409 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26410 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26411 exit 1
26416 if test "${USE_PWLIB}" != "no"; then
26417 if test -n "${PWLIB_DIR}"; then
26418 PWLIBDIR="${PWLIB_DIR}"
26422 PWLIB_INCDIR=
26423 PWLIB_LIBDIR=
26424 ac_ext=cpp
26425 ac_cpp='$CXXCPP $CPPFLAGS'
26426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26430 if test "${PWLIBDIR:-unset}" != "unset" ; then
26431 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26433 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26434 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26438 ac_res=`eval echo '${'$as_ac_Header'}'`
26439 { echo "$as_me:$LINENO: result: $ac_res" >&5
26440 echo "${ECHO_T}$ac_res" >&6; }
26441 else
26442 # Is the header compilable?
26443 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26444 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h. */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451 $ac_includes_default
26452 #include <${PWLIBDIR}/version.h>
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (ac_try="$ac_compile"
26456 case "(($ac_try" in
26457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461 (eval "$ac_compile") 2>conftest.er1
26462 ac_status=$?
26463 grep -v '^ *+' conftest.er1 >conftest.err
26464 rm -f conftest.er1
26465 cat conftest.err >&5
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); } && {
26468 test -z "$ac_cxx_werror_flag" ||
26469 test ! -s conftest.err
26470 } && test -s conftest.$ac_objext; then
26471 ac_header_compiler=yes
26472 else
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ac_header_compiler=no
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26481 echo "${ECHO_T}$ac_header_compiler" >&6; }
26483 # Is the header present?
26484 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26485 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26486 cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h. */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26492 #include <${PWLIBDIR}/version.h>
26493 _ACEOF
26494 if { (ac_try="$ac_cpp conftest.$ac_ext"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26501 ac_status=$?
26502 grep -v '^ *+' conftest.er1 >conftest.err
26503 rm -f conftest.er1
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } >/dev/null && {
26507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26508 test ! -s conftest.err
26509 }; then
26510 ac_header_preproc=yes
26511 else
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_header_preproc=no
26518 rm -f conftest.err conftest.$ac_ext
26519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26520 echo "${ECHO_T}$ac_header_preproc" >&6; }
26522 # So? What about this header?
26523 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26524 yes:no: )
26525 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26526 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26528 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26529 ac_header_preproc=yes
26531 no:yes:* )
26532 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26533 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26535 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26537 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26538 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26539 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26540 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26541 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26543 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26544 ( cat <<\_ASBOX
26545 ## ------------------------------- ##
26546 ## Report this to www.asterisk.org ##
26547 ## ------------------------------- ##
26548 _ASBOX
26549 ) | sed "s/^/$as_me: WARNING: /" >&2
26551 esac
26552 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26553 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26556 else
26557 eval "$as_ac_Header=\$ac_header_preproc"
26559 ac_res=`eval echo '${'$as_ac_Header'}'`
26560 { echo "$as_me:$LINENO: result: $ac_res" >&5
26561 echo "${ECHO_T}$ac_res" >&6; }
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565 HAS_PWLIB=1
26570 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26571 if test "${OPENH323DIR:-unset}" != "unset"; then
26572 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26574 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26575 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26579 ac_res=`eval echo '${'$as_ac_Header'}'`
26580 { echo "$as_me:$LINENO: result: $ac_res" >&5
26581 echo "${ECHO_T}$ac_res" >&6; }
26582 else
26583 # Is the header compilable?
26584 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26585 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26586 cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h. */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 $ac_includes_default
26593 #include <${OPENH323DIR}/../pwlib/version.h>
26594 _ACEOF
26595 rm -f conftest.$ac_objext
26596 if { (ac_try="$ac_compile"
26597 case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_compile") 2>conftest.er1
26603 ac_status=$?
26604 grep -v '^ *+' conftest.er1 >conftest.err
26605 rm -f conftest.er1
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_cxx_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest.$ac_objext; then
26612 ac_header_compiler=yes
26613 else
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_header_compiler=no
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26622 echo "${ECHO_T}$ac_header_compiler" >&6; }
26624 # Is the header present?
26625 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26626 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26627 cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h. */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 #include <${OPENH323DIR}/../pwlib/version.h>
26634 _ACEOF
26635 if { (ac_try="$ac_cpp conftest.$ac_ext"
26636 case "(($ac_try" in
26637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638 *) ac_try_echo=$ac_try;;
26639 esac
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26642 ac_status=$?
26643 grep -v '^ *+' conftest.er1 >conftest.err
26644 rm -f conftest.er1
26645 cat conftest.err >&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } >/dev/null && {
26648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26649 test ! -s conftest.err
26650 }; then
26651 ac_header_preproc=yes
26652 else
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ac_header_preproc=no
26659 rm -f conftest.err conftest.$ac_ext
26660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26661 echo "${ECHO_T}$ac_header_preproc" >&6; }
26663 # So? What about this header?
26664 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26665 yes:no: )
26666 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26667 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26668 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26669 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26670 ac_header_preproc=yes
26672 no:yes:* )
26673 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26674 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26676 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26678 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26680 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26681 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26682 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26684 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26685 ( cat <<\_ASBOX
26686 ## ------------------------------- ##
26687 ## Report this to www.asterisk.org ##
26688 ## ------------------------------- ##
26689 _ASBOX
26690 ) | sed "s/^/$as_me: WARNING: /" >&2
26692 esac
26693 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26694 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26696 echo $ECHO_N "(cached) $ECHO_C" >&6
26697 else
26698 eval "$as_ac_Header=\$ac_header_preproc"
26700 ac_res=`eval echo '${'$as_ac_Header'}'`
26701 { echo "$as_me:$LINENO: result: $ac_res" >&5
26702 echo "${ECHO_T}$ac_res" >&6; }
26705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26706 HAS_PWLIB=1
26711 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26712 PWLIBDIR="${OPENH323DIR}/../pwlib"
26713 else
26714 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26716 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26717 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26721 ac_res=`eval echo '${'$as_ac_Header'}'`
26722 { echo "$as_me:$LINENO: result: $ac_res" >&5
26723 echo "${ECHO_T}$ac_res" >&6; }
26724 else
26725 # Is the header compilable?
26726 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26727 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h. */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26734 $ac_includes_default
26735 #include <${HOME}/pwlib/include/ptlib.h>
26736 _ACEOF
26737 rm -f conftest.$ac_objext
26738 if { (ac_try="$ac_compile"
26739 case "(($ac_try" in
26740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741 *) ac_try_echo=$ac_try;;
26742 esac
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744 (eval "$ac_compile") 2>conftest.er1
26745 ac_status=$?
26746 grep -v '^ *+' conftest.er1 >conftest.err
26747 rm -f conftest.er1
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } && {
26751 test -z "$ac_cxx_werror_flag" ||
26752 test ! -s conftest.err
26753 } && test -s conftest.$ac_objext; then
26754 ac_header_compiler=yes
26755 else
26756 echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26759 ac_header_compiler=no
26762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26764 echo "${ECHO_T}$ac_header_compiler" >&6; }
26766 # Is the header present?
26767 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26768 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26769 cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h. */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 #include <${HOME}/pwlib/include/ptlib.h>
26776 _ACEOF
26777 if { (ac_try="$ac_cpp conftest.$ac_ext"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null && {
26790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26791 test ! -s conftest.err
26792 }; then
26793 ac_header_preproc=yes
26794 else
26795 echo "$as_me: failed program was:" >&5
26796 sed 's/^/| /' conftest.$ac_ext >&5
26798 ac_header_preproc=no
26801 rm -f conftest.err conftest.$ac_ext
26802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6; }
26805 # So? What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26807 yes:no: )
26808 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc=yes
26814 no:yes:* )
26815 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26817 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26819 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26821 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26827 ( cat <<\_ASBOX
26828 ## ------------------------------- ##
26829 ## Report this to www.asterisk.org ##
26830 ## ------------------------------- ##
26831 _ASBOX
26832 ) | sed "s/^/$as_me: WARNING: /" >&2
26834 esac
26835 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26836 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 else
26840 eval "$as_ac_Header=\$ac_header_preproc"
26842 ac_res=`eval echo '${'$as_ac_Header'}'`
26843 { echo "$as_me:$LINENO: result: $ac_res" >&5
26844 echo "${ECHO_T}$ac_res" >&6; }
26847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26848 HAS_PWLIB=1
26852 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26853 PWLIBDIR="${HOME}/pwlib"
26854 else
26855 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26856 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26857 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26858 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26862 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26863 else
26864 # Is the header compilable?
26865 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26866 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h. */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873 $ac_includes_default
26874 #include </usr/local/include/ptlib.h>
26875 _ACEOF
26876 rm -f conftest.$ac_objext
26877 if { (ac_try="$ac_compile"
26878 case "(($ac_try" in
26879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26880 *) ac_try_echo=$ac_try;;
26881 esac
26882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26883 (eval "$ac_compile") 2>conftest.er1
26884 ac_status=$?
26885 grep -v '^ *+' conftest.er1 >conftest.err
26886 rm -f conftest.er1
26887 cat conftest.err >&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } && {
26890 test -z "$ac_cxx_werror_flag" ||
26891 test ! -s conftest.err
26892 } && test -s conftest.$ac_objext; then
26893 ac_header_compiler=yes
26894 else
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 ac_header_compiler=no
26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26903 echo "${ECHO_T}$ac_header_compiler" >&6; }
26905 # Is the header present?
26906 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26907 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26908 cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h. */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h. */
26914 #include </usr/local/include/ptlib.h>
26915 _ACEOF
26916 if { (ac_try="$ac_cpp conftest.$ac_ext"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26923 ac_status=$?
26924 grep -v '^ *+' conftest.er1 >conftest.err
26925 rm -f conftest.er1
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } >/dev/null && {
26929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26930 test ! -s conftest.err
26931 }; then
26932 ac_header_preproc=yes
26933 else
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 ac_header_preproc=no
26940 rm -f conftest.err conftest.$ac_ext
26941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26942 echo "${ECHO_T}$ac_header_preproc" >&6; }
26944 # So? What about this header?
26945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26946 yes:no: )
26947 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26948 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26949 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26950 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26951 ac_header_preproc=yes
26953 no:yes:* )
26954 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26955 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26956 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26957 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26959 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26961 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26963 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26965 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26966 ( cat <<\_ASBOX
26967 ## ------------------------------- ##
26968 ## Report this to www.asterisk.org ##
26969 ## ------------------------------- ##
26970 _ASBOX
26971 ) | sed "s/^/$as_me: WARNING: /" >&2
26973 esac
26974 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26975 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26976 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26981 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26982 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26985 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26986 HAS_PWLIB=1
26990 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26991 # Extract the first word of "ptlib-config", so it can be a program name with args.
26992 set dummy ptlib-config; ac_word=$2
26993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26995 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 else
26998 case $PTLIB_CONFIG in
26999 [\\/]* | ?:[\\/]*)
27000 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27004 for as_dir in /usr/local/bin
27006 IFS=$as_save_IFS
27007 test -z "$as_dir" && as_dir=.
27008 for ac_exec_ext in '' $ac_executable_extensions; do
27009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27010 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27012 break 2
27014 done
27015 done
27016 IFS=$as_save_IFS
27019 esac
27021 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27022 if test -n "$PTLIB_CONFIG"; then
27023 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27024 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27025 else
27026 { echo "$as_me:$LINENO: result: no" >&5
27027 echo "${ECHO_T}no" >&6; }
27031 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27032 # Extract the first word of "ptlib-config", so it can be a program name with args.
27033 set dummy ptlib-config; ac_word=$2
27034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27036 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27037 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 else
27039 case $PTLIB_CONFIG in
27040 [\\/]* | ?:[\\/]*)
27041 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27045 for as_dir in /usr/local/share/pwlib/make
27047 IFS=$as_save_IFS
27048 test -z "$as_dir" && as_dir=.
27049 for ac_exec_ext in '' $ac_executable_extensions; do
27050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27051 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27053 break 2
27055 done
27056 done
27057 IFS=$as_save_IFS
27060 esac
27062 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27063 if test -n "$PTLIB_CONFIG"; then
27064 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27065 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27066 else
27067 { echo "$as_me:$LINENO: result: no" >&5
27068 echo "${ECHO_T}no" >&6; }
27073 PWLIB_INCDIR="/usr/local/include"
27074 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27075 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27076 if test "x$LIB64" != "x"; then
27077 PWLIB_LIBDIR="/usr/local/lib64"
27078 else
27079 PWLIB_LIBDIR="/usr/local/lib"
27082 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27083 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27084 else
27085 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27086 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27087 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27088 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27092 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27093 else
27094 # Is the header compilable?
27095 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27096 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27097 cat >conftest.$ac_ext <<_ACEOF
27098 /* confdefs.h. */
27099 _ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h. */
27103 $ac_includes_default
27104 #include </usr/include/ptlib.h>
27105 _ACEOF
27106 rm -f conftest.$ac_objext
27107 if { (ac_try="$ac_compile"
27108 case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27111 esac
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_compile") 2>conftest.er1
27114 ac_status=$?
27115 grep -v '^ *+' conftest.er1 >conftest.err
27116 rm -f conftest.er1
27117 cat conftest.err >&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && {
27120 test -z "$ac_cxx_werror_flag" ||
27121 test ! -s conftest.err
27122 } && test -s conftest.$ac_objext; then
27123 ac_header_compiler=yes
27124 else
27125 echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ac_header_compiler=no
27131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27133 echo "${ECHO_T}$ac_header_compiler" >&6; }
27135 # Is the header present?
27136 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27137 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h. */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h. */
27144 #include </usr/include/ptlib.h>
27145 _ACEOF
27146 if { (ac_try="$ac_cpp conftest.$ac_ext"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27153 ac_status=$?
27154 grep -v '^ *+' conftest.er1 >conftest.err
27155 rm -f conftest.er1
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } >/dev/null && {
27159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27160 test ! -s conftest.err
27161 }; then
27162 ac_header_preproc=yes
27163 else
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27167 ac_header_preproc=no
27170 rm -f conftest.err conftest.$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27172 echo "${ECHO_T}$ac_header_preproc" >&6; }
27174 # So? What about this header?
27175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27176 yes:no: )
27177 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27178 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27179 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27180 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27181 ac_header_preproc=yes
27183 no:yes:* )
27184 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27185 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27186 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27187 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27188 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27189 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27191 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27193 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27195 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27196 ( cat <<\_ASBOX
27197 ## ------------------------------- ##
27198 ## Report this to www.asterisk.org ##
27199 ## ------------------------------- ##
27200 _ASBOX
27201 ) | sed "s/^/$as_me: WARNING: /" >&2
27203 esac
27204 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27205 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27206 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208 else
27209 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
27211 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27212 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27215 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27216 HAS_PWLIB=1
27220 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27221 # Extract the first word of "ptlib-config", so it can be a program name with args.
27222 set dummy ptlib-config; ac_word=$2
27223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27225 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228 case $PTLIB_CONFIG in
27229 [\\/]* | ?:[\\/]*)
27230 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27234 for as_dir in /usr/share/pwlib/make
27236 IFS=$as_save_IFS
27237 test -z "$as_dir" && as_dir=.
27238 for ac_exec_ext in '' $ac_executable_extensions; do
27239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27240 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27242 break 2
27244 done
27245 done
27246 IFS=$as_save_IFS
27249 esac
27251 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27252 if test -n "$PTLIB_CONFIG"; then
27253 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27254 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27255 else
27256 { echo "$as_me:$LINENO: result: no" >&5
27257 echo "${ECHO_T}no" >&6; }
27261 PWLIB_INCDIR="/usr/include"
27262 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27263 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27264 if test "x$LIB64" != "x"; then
27265 PWLIB_LIBDIR="/usr/lib64"
27266 else
27267 PWLIB_LIBDIR="/usr/lib"
27270 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27271 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27278 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27279 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27280 # exit
27283 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27284 if test "${PWLIBDIR:-unset}" = "unset" ; then
27285 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27286 PWLIBDIR=`$PTLIB_CONFIG --prefix`
27287 else
27288 echo "Cannot find ptlib-config - please install and try again"
27289 exit
27293 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27294 PWLIBDIR="/usr/share/pwlib"
27295 PWLIB_INCDIR="/usr/include"
27296 if test "x$LIB64" != "x"; then
27297 PWLIB_LIBDIR="/usr/lib64"
27298 else
27299 PWLIB_LIBDIR="/usr/lib"
27302 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27303 PWLIBDIR="/usr/local/share/pwlib"
27304 PWLIB_INCDIR="/usr/local/include"
27305 if test "x$LIB64" != "x"; then
27306 PWLIB_LIBDIR="/usr/local/lib64"
27307 else
27308 PWLIB_LIBDIR="/usr/local/lib"
27312 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27313 PWLIB_INCDIR="${PWLIBDIR}/include"
27315 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27316 PWLIB_LIBDIR="${PWLIBDIR}/lib"
27323 ac_ext=c
27324 ac_cpp='$CPP $CPPFLAGS'
27325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27331 if test "${HAS_PWLIB:-unset}" != "unset"; then
27332 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27333 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27334 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27335 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27336 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27337 let PWLIB_REQ=1*10000+9*100+2
27339 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27340 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27341 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27342 { echo "$as_me:$LINENO: result: no" >&5
27343 echo "${ECHO_T}no" >&6; }
27344 unset HAS_PWLIB
27345 else
27346 { echo "$as_me:$LINENO: result: yes" >&5
27347 echo "${ECHO_T}yes" >&6; }
27352 if test "${HAS_PWLIB:-unset}" != "unset"; then
27354 PWLIB_OSTYPE=
27355 case "$host_os" in
27356 linux*) PWLIB_OSTYPE=linux ;
27358 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
27360 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
27361 ENDLDLIBS="-lossaudio" ;
27363 netbsd* ) PWLIB_OSTYPE=NetBSD ;
27364 ENDLDLIBS="-lossaudio" ;
27366 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
27368 darwin* ) PWLIB_OSTYPE=Darwin ;
27370 beos*) PWLIB_OSTYPE=beos ;
27371 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
27373 cygwin*) PWLIB_OSTYPE=cygwin ;
27375 mingw*) PWLIB_OSTYPE=mingw ;
27376 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
27377 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27379 * ) PWLIB_OSTYPE="$host_os" ;
27380 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27381 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27383 esac
27385 PWLIB_MACHTYPE=
27386 case "$host_cpu" in
27387 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
27390 x86_64) PWLIB_MACHTYPE=x86_64 ;
27391 P_64BIT=1 ;
27392 LIB64=1 ;
27395 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
27396 P_64BIT=1 ;
27399 sparc ) PWLIB_MACHTYPE=sparc ;
27402 powerpc ) PWLIB_MACHTYPE=ppc ;
27405 ppc ) PWLIB_MACHTYPE=ppc ;
27408 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
27409 P_64BIT=1 ;
27410 LIB64=1 ;
27413 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
27414 P_64BIT=1 ;
27415 LIB64=1 ;
27418 ia64) PWLIB_MACHTYPE=ia64 ;
27419 P_64BIT=1 ;
27422 s390x) PWLIB_MACHTYPE=s390x ;
27423 P_64BIT=1 ;
27424 LIB64=1 ;
27427 s390) PWLIB_MACHTYPE=s390 ;
27430 * ) PWLIB_MACHTYPE="$host_cpu";
27431 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27432 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27433 esac
27435 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27440 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27443 if test "${HAS_PWLIB:-unset}" != "unset"; then
27444 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27445 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27447 saved_cppflags="${CPPFLAGS}"
27448 saved_libs="${LIBS}"
27449 if test "${PWLIB_LIB:-unset}" != "unset"; then
27450 LIBS="${LIBS} ${PWLIB_LIB} "
27451 else
27452 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27454 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27456 ac_ext=cpp
27457 ac_cpp='$CXXCPP $CPPFLAGS'
27458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27463 cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h. */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27469 #include "ptlib.h"
27471 main ()
27473 BOOL q = PTime::IsDaylightSavings();
27475 return 0;
27477 _ACEOF
27478 rm -f conftest.$ac_objext conftest$ac_exeext
27479 if { (ac_try="$ac_link"
27480 case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27483 esac
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_link") 2>conftest.er1
27486 ac_status=$?
27487 grep -v '^ *+' conftest.er1 >conftest.err
27488 rm -f conftest.er1
27489 cat conftest.err >&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } && {
27492 test -z "$ac_cxx_werror_flag" ||
27493 test ! -s conftest.err
27494 } && test -s conftest$ac_exeext &&
27495 $as_test_x conftest$ac_exeext; then
27496 { echo "$as_me:$LINENO: result: yes" >&5
27497 echo "${ECHO_T}yes" >&6; }
27498 ac_cv_lib_PWLIB="yes"
27500 else
27501 echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27504 { echo "$as_me:$LINENO: result: no" >&5
27505 echo "${ECHO_T}no" >&6; }
27506 ac_cv_lib_PWLIB="no"
27511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27512 conftest$ac_exeext conftest.$ac_ext
27514 ac_ext=c
27515 ac_cpp='$CPP $CPPFLAGS'
27516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27521 LIBS="${saved_libs}"
27522 CPPFLAGS="${saved_cppflags}"
27524 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27525 if test "${PWLIB_LIB:-undef}" = "undef"; then
27526 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27527 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27528 else
27529 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27532 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27533 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27535 PBX_PWLIB=1
27537 cat >>confdefs.h <<\_ACEOF
27538 #define HAVE_PWLIB 1
27539 _ACEOF
27547 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27548 { echo "$as_me:$LINENO: ***" >&5
27549 echo "$as_me: ***" >&6;}
27550 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27551 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27552 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27553 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27554 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27555 echo "$as_me: *** including --without-pwlib" >&6;}
27556 exit 1
27559 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27560 if test -n "${OPENH323_DIR}"; then
27561 OPENH323DIR="${OPENH323_DIR}"
27564 OPENH323_INCDIR=
27565 OPENH323_LIBDIR=
27566 ac_ext=cpp
27567 ac_cpp='$CXXCPP $CPPFLAGS'
27568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27572 if test "${OPENH323DIR:-unset}" != "unset" ; then
27573 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27575 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27576 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27580 ac_res=`eval echo '${'$as_ac_Header'}'`
27581 { echo "$as_me:$LINENO: result: $ac_res" >&5
27582 echo "${ECHO_T}$ac_res" >&6; }
27583 else
27584 # Is the header compilable?
27585 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27586 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27587 cat >conftest.$ac_ext <<_ACEOF
27588 /* confdefs.h. */
27589 _ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27593 $ac_includes_default
27594 #include <${OPENH323DIR}/version.h>
27595 _ACEOF
27596 rm -f conftest.$ac_objext
27597 if { (ac_try="$ac_compile"
27598 case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27601 esac
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_compile") 2>conftest.er1
27604 ac_status=$?
27605 grep -v '^ *+' conftest.er1 >conftest.err
27606 rm -f conftest.er1
27607 cat conftest.err >&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && {
27610 test -z "$ac_cxx_werror_flag" ||
27611 test ! -s conftest.err
27612 } && test -s conftest.$ac_objext; then
27613 ac_header_compiler=yes
27614 else
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 ac_header_compiler=no
27621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27623 echo "${ECHO_T}$ac_header_compiler" >&6; }
27625 # Is the header present?
27626 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27627 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27628 cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h. */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 #include <${OPENH323DIR}/version.h>
27635 _ACEOF
27636 if { (ac_try="$ac_cpp conftest.$ac_ext"
27637 case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27643 ac_status=$?
27644 grep -v '^ *+' conftest.er1 >conftest.err
27645 rm -f conftest.er1
27646 cat conftest.err >&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); } >/dev/null && {
27649 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27650 test ! -s conftest.err
27651 }; then
27652 ac_header_preproc=yes
27653 else
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27657 ac_header_preproc=no
27660 rm -f conftest.err conftest.$ac_ext
27661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27662 echo "${ECHO_T}$ac_header_preproc" >&6; }
27664 # So? What about this header?
27665 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27666 yes:no: )
27667 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27668 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27669 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27670 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27671 ac_header_preproc=yes
27673 no:yes:* )
27674 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27675 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27677 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27679 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27681 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27683 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27684 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27685 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27686 ( cat <<\_ASBOX
27687 ## ------------------------------- ##
27688 ## Report this to www.asterisk.org ##
27689 ## ------------------------------- ##
27690 _ASBOX
27691 ) | sed "s/^/$as_me: WARNING: /" >&2
27693 esac
27694 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27695 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27697 echo $ECHO_N "(cached) $ECHO_C" >&6
27698 else
27699 eval "$as_ac_Header=\$ac_header_preproc"
27701 ac_res=`eval echo '${'$as_ac_Header'}'`
27702 { echo "$as_me:$LINENO: result: $ac_res" >&5
27703 echo "${ECHO_T}$ac_res" >&6; }
27706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27707 HAS_OPENH323=1
27712 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27713 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27715 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27716 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 ac_res=`eval echo '${'$as_ac_Header'}'`
27721 { echo "$as_me:$LINENO: result: $ac_res" >&5
27722 echo "${ECHO_T}$ac_res" >&6; }
27723 else
27724 # Is the header compilable?
27725 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27726 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27727 cat >conftest.$ac_ext <<_ACEOF
27728 /* confdefs.h. */
27729 _ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27733 $ac_includes_default
27734 #include <${PWLIBDIR}/../openh323/version.h>
27735 _ACEOF
27736 rm -f conftest.$ac_objext
27737 if { (ac_try="$ac_compile"
27738 case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741 esac
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_compile") 2>conftest.er1
27744 ac_status=$?
27745 grep -v '^ *+' conftest.er1 >conftest.err
27746 rm -f conftest.er1
27747 cat conftest.err >&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } && {
27750 test -z "$ac_cxx_werror_flag" ||
27751 test ! -s conftest.err
27752 } && test -s conftest.$ac_objext; then
27753 ac_header_compiler=yes
27754 else
27755 echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27758 ac_header_compiler=no
27761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27763 echo "${ECHO_T}$ac_header_compiler" >&6; }
27765 # Is the header present?
27766 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27767 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27768 cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h. */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 #include <${PWLIBDIR}/../openh323/version.h>
27775 _ACEOF
27776 if { (ac_try="$ac_cpp conftest.$ac_ext"
27777 case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27780 esac
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27783 ac_status=$?
27784 grep -v '^ *+' conftest.er1 >conftest.err
27785 rm -f conftest.er1
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } >/dev/null && {
27789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27790 test ! -s conftest.err
27791 }; then
27792 ac_header_preproc=yes
27793 else
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_header_preproc=no
27800 rm -f conftest.err conftest.$ac_ext
27801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27802 echo "${ECHO_T}$ac_header_preproc" >&6; }
27804 # So? What about this header?
27805 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27806 yes:no: )
27807 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27808 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27809 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27810 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27811 ac_header_preproc=yes
27813 no:yes:* )
27814 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27815 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27816 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27817 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27819 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27821 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27822 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27823 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27825 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27826 ( cat <<\_ASBOX
27827 ## ------------------------------- ##
27828 ## Report this to www.asterisk.org ##
27829 ## ------------------------------- ##
27830 _ASBOX
27831 ) | sed "s/^/$as_me: WARNING: /" >&2
27833 esac
27834 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27835 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 else
27839 eval "$as_ac_Header=\$ac_header_preproc"
27841 ac_res=`eval echo '${'$as_ac_Header'}'`
27842 { echo "$as_me:$LINENO: result: $ac_res" >&5
27843 echo "${ECHO_T}$ac_res" >&6; }
27846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27847 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27851 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27852 OPENH323DIR="${PWLIBDIR}/../openh323"
27853 saved_cppflags="${CPPFLAGS}"
27854 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27855 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27856 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27857 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27860 else
27861 cat >conftest.$ac_ext <<_ACEOF
27862 /* confdefs.h. */
27863 _ACEOF
27864 cat confdefs.h >>conftest.$ac_ext
27865 cat >>conftest.$ac_ext <<_ACEOF
27866 /* end confdefs.h. */
27867 #include <ptlib.h>
27869 #include <${OPENH323DIR}/include/h323.h>
27870 _ACEOF
27871 rm -f conftest.$ac_objext
27872 if { (ac_try="$ac_compile"
27873 case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_compile") 2>conftest.er1
27879 ac_status=$?
27880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } && {
27885 test -z "$ac_cxx_werror_flag" ||
27886 test ! -s conftest.err
27887 } && test -s conftest.$ac_objext; then
27888 eval "$as_ac_Header=yes"
27889 else
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27893 eval "$as_ac_Header=no"
27896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27898 ac_res=`eval echo '${'$as_ac_Header'}'`
27899 { echo "$as_me:$LINENO: result: $ac_res" >&5
27900 echo "${ECHO_T}$ac_res" >&6; }
27901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27903 else
27904 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27908 CPPFLAGS="${saved_cppflags}"
27909 else
27910 saved_cppflags="${CPPFLAGS}"
27911 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27912 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27915 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 ac_res=`eval echo '${'$as_ac_Header'}'`
27920 { echo "$as_me:$LINENO: result: $ac_res" >&5
27921 echo "${ECHO_T}$ac_res" >&6; }
27922 else
27923 # Is the header compilable?
27924 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27925 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27926 cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h. */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27932 $ac_includes_default
27933 #include <${HOME}/openh323/include/h323.h>
27934 _ACEOF
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } && {
27949 test -z "$ac_cxx_werror_flag" ||
27950 test ! -s conftest.err
27951 } && test -s conftest.$ac_objext; then
27952 ac_header_compiler=yes
27953 else
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 ac_header_compiler=no
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27962 echo "${ECHO_T}$ac_header_compiler" >&6; }
27964 # Is the header present?
27965 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27966 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27967 cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h. */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 #include <${HOME}/openh323/include/h323.h>
27974 _ACEOF
27975 if { (ac_try="$ac_cpp conftest.$ac_ext"
27976 case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27982 ac_status=$?
27983 grep -v '^ *+' conftest.er1 >conftest.err
27984 rm -f conftest.er1
27985 cat conftest.err >&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } >/dev/null && {
27988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27989 test ! -s conftest.err
27990 }; then
27991 ac_header_preproc=yes
27992 else
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27996 ac_header_preproc=no
27999 rm -f conftest.err conftest.$ac_ext
28000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28001 echo "${ECHO_T}$ac_header_preproc" >&6; }
28003 # So? What about this header?
28004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28005 yes:no: )
28006 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28007 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28009 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28010 ac_header_preproc=yes
28012 no:yes:* )
28013 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28014 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28015 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28016 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28017 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28018 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28019 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28020 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28021 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28022 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28023 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28024 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28025 ( cat <<\_ASBOX
28026 ## ------------------------------- ##
28027 ## Report this to www.asterisk.org ##
28028 ## ------------------------------- ##
28029 _ASBOX
28030 ) | sed "s/^/$as_me: WARNING: /" >&2
28032 esac
28033 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28034 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038 eval "$as_ac_Header=\$ac_header_preproc"
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041 { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28046 HAS_OPENH323=1
28050 CPPFLAGS="${saved_cppflags}"
28051 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28052 OPENH323DIR="${HOME}/openh323"
28053 else
28054 saved_cppflags="${CPPFLAGS}"
28055 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28056 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28057 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28058 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28059 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28063 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28064 else
28065 # Is the header compilable?
28066 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28067 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28068 cat >conftest.$ac_ext <<_ACEOF
28069 /* confdefs.h. */
28070 _ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28074 $ac_includes_default
28075 #include </usr/local/include/openh323/h323.h>
28076 _ACEOF
28077 rm -f conftest.$ac_objext
28078 if { (ac_try="$ac_compile"
28079 case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082 esac
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_compile") 2>conftest.er1
28085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } && {
28091 test -z "$ac_cxx_werror_flag" ||
28092 test ! -s conftest.err
28093 } && test -s conftest.$ac_objext; then
28094 ac_header_compiler=yes
28095 else
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ac_header_compiler=no
28102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28104 echo "${ECHO_T}$ac_header_compiler" >&6; }
28106 # Is the header present?
28107 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28108 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28109 cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h. */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 #include </usr/local/include/openh323/h323.h>
28116 _ACEOF
28117 if { (ac_try="$ac_cpp conftest.$ac_ext"
28118 case "(($ac_try" in
28119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28121 esac
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28124 ac_status=$?
28125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } >/dev/null && {
28130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28131 test ! -s conftest.err
28132 }; then
28133 ac_header_preproc=yes
28134 else
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 ac_header_preproc=no
28141 rm -f conftest.err conftest.$ac_ext
28142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28143 echo "${ECHO_T}$ac_header_preproc" >&6; }
28145 # So? What about this header?
28146 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28147 yes:no: )
28148 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28149 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28150 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28151 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28152 ac_header_preproc=yes
28154 no:yes:* )
28155 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28156 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28157 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28158 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28159 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28160 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28162 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28163 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28164 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28165 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28166 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28167 ( cat <<\_ASBOX
28168 ## ------------------------------- ##
28169 ## Report this to www.asterisk.org ##
28170 ## ------------------------------- ##
28171 _ASBOX
28172 ) | sed "s/^/$as_me: WARNING: /" >&2
28174 esac
28175 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28176 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28177 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28179 else
28180 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
28182 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28183 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28186 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28187 HAS_OPENH323=1
28191 CPPFLAGS="${saved_cppflags}"
28192 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28193 OPENH323DIR="/usr/local/share/openh323"
28194 OPENH323_INCDIR="/usr/local/include/openh323"
28195 if test "x$LIB64" != "x"; then
28196 OPENH323_LIBDIR="/usr/local/lib64"
28197 else
28198 OPENH323_LIBDIR="/usr/local/lib"
28200 else
28201 saved_cppflags="${CPPFLAGS}"
28202 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28203 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28204 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28205 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28207 else
28208 cat >conftest.$ac_ext <<_ACEOF
28209 /* confdefs.h. */
28210 _ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h. */
28214 #include <ptlib.h>
28216 #include </usr/include/openh323/h323.h>
28217 _ACEOF
28218 rm -f conftest.$ac_objext
28219 if { (ac_try="$ac_compile"
28220 case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28223 esac
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_compile") 2>conftest.er1
28226 ac_status=$?
28227 grep -v '^ *+' conftest.er1 >conftest.err
28228 rm -f conftest.er1
28229 cat conftest.err >&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } && {
28232 test -z "$ac_cxx_werror_flag" ||
28233 test ! -s conftest.err
28234 } && test -s conftest.$ac_objext; then
28235 ac_cv_header__usr_include_openh323_h323_h=yes
28236 else
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 ac_cv_header__usr_include_openh323_h323_h=no
28243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28245 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28246 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28247 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28248 HAS_OPENH323=1
28252 CPPFLAGS="${saved_cppflags}"
28253 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28254 OPENH323DIR="/usr/share/openh323"
28255 OPENH323_INCDIR="/usr/include/openh323"
28256 if test "x$LIB64" != "x"; then
28257 OPENH323_LIBDIR="/usr/lib64"
28258 else
28259 OPENH323_LIBDIR="/usr/lib"
28267 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28268 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28269 OPENH323_INCDIR="${OPENH323DIR}/include"
28271 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28272 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28275 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28276 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28277 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28283 ac_ext=c
28284 ac_cpp='$CPP $CPPFLAGS'
28285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28291 if test "${HAS_OPENH323:-unset}" != "unset"; then
28292 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
28293 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
28294 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
28295 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
28296 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28297 let OPENH323_REQ=1*10000+17*100+3
28299 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28300 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28301 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28302 { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304 unset HAS_OPENH323
28305 else
28306 { echo "$as_me:$LINENO: result: yes" >&5
28307 echo "${ECHO_T}yes" >&6; }
28312 if test "${HAS_OPENH323:-unset}" != "unset"; then
28313 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28314 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28315 OPENH323_SUFFIX=
28316 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28317 for pfx in $prefixes; do
28318 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
28319 libfile=
28320 if test -n "$files"; then
28321 for f in $files; do
28322 if test -f $f -a ! -L $f; then
28323 libfile=`basename $f`
28324 break;
28326 done
28328 if test -n "$libfile"; then
28329 OPENH323_PREFIX=$pfx
28330 break;
28332 done
28333 if test "${libfile:-unset}" != "unset"; then
28334 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28336 case "${OPENH323_SUFFIX}" in
28338 OPENH323_BUILD="notrace";;
28340 OPENH323_BUILD="opt";;
28342 OPENH323_BUILD="debug";;
28344 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28345 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28346 if test "x$notrace" = "x"; then
28347 notrace="0"
28349 if test "$notrace" -ne 0; then
28350 OPENH323_BUILD="notrace"
28351 else
28352 OPENH323_BUILD="opt"
28354 OPENH323_LIB="-l${OPENH323_PREFIX}"
28355 else
28356 OPENH323_BUILD="notrace"
28359 esac
28360 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28361 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28367 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28369 if test "${HAS_OPENH323:-unset}" != "unset"; then
28370 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28371 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28373 saved_cppflags="${CPPFLAGS}"
28374 saved_libs="${LIBS}"
28375 if test "${OPENH323_LIB:-unset}" != "unset"; then
28376 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28377 else
28378 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28380 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28382 ac_ext=cpp
28383 ac_cpp='$CXXCPP $CPPFLAGS'
28384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28389 cat >conftest.$ac_ext <<_ACEOF
28390 /* confdefs.h. */
28391 _ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28395 #include "ptlib.h"
28396 #include "h323.h"
28397 #include "h323ep.h"
28399 main ()
28401 H323EndPoint ep = H323EndPoint();
28403 return 0;
28405 _ACEOF
28406 rm -f conftest.$ac_objext conftest$ac_exeext
28407 if { (ac_try="$ac_link"
28408 case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_link") 2>conftest.er1
28414 ac_status=$?
28415 grep -v '^ *+' conftest.er1 >conftest.err
28416 rm -f conftest.er1
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_cxx_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest$ac_exeext &&
28423 $as_test_x conftest$ac_exeext; then
28424 { echo "$as_me:$LINENO: result: yes" >&5
28425 echo "${ECHO_T}yes" >&6; }
28426 ac_cv_lib_OPENH323="yes"
28428 else
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 { echo "$as_me:$LINENO: result: no" >&5
28433 echo "${ECHO_T}no" >&6; }
28434 ac_cv_lib_OPENH323="no"
28439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28440 conftest$ac_exeext conftest.$ac_ext
28442 ac_ext=c
28443 ac_cpp='$CPP $CPPFLAGS'
28444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28449 LIBS="${saved_libs}"
28450 CPPFLAGS="${saved_cppflags}"
28452 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28453 if test "${OPENH323_LIB:-undef}" = "undef"; then
28454 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28455 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28456 else
28457 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28460 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28461 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28463 PBX_OPENH323=1
28465 cat >>confdefs.h <<\_ACEOF
28466 #define HAVE_OPENH323 1
28467 _ACEOF
28473 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28474 { echo "$as_me:$LINENO: ***" >&5
28475 echo "$as_me: ***" >&6;}
28476 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28477 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28480 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28481 echo "$as_me: *** including --without-h323" >&6;}
28482 exit 1
28486 if test "${USE_RADIUS}" != "no"; then
28487 pbxlibdir=""
28488 if test "x${RADIUS_DIR}" != "x"; then
28489 if test -d ${RADIUS_DIR}/lib; then
28490 pbxlibdir="-L${RADIUS_DIR}/lib"
28491 else
28492 pbxlibdir="-L${RADIUS_DIR}"
28495 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28496 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28497 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28499 else
28500 ac_check_lib_save_LIBS=$LIBS
28501 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28502 cat >conftest.$ac_ext <<_ACEOF
28503 /* confdefs.h. */
28504 _ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h. */
28509 /* Override any GCC internal prototype to avoid an error.
28510 Use char because int might match the return type of a GCC
28511 builtin and then its argument prototype would still apply. */
28512 #ifdef __cplusplus
28513 extern "C"
28514 #endif
28515 char rc_read_config ();
28517 main ()
28519 return rc_read_config ();
28521 return 0;
28523 _ACEOF
28524 rm -f conftest.$ac_objext conftest$ac_exeext
28525 if { (ac_try="$ac_link"
28526 case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_link") 2>conftest.er1
28532 ac_status=$?
28533 grep -v '^ *+' conftest.er1 >conftest.err
28534 rm -f conftest.er1
28535 cat conftest.err >&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && {
28538 test -z "$ac_c_werror_flag" ||
28539 test ! -s conftest.err
28540 } && test -s conftest$ac_exeext &&
28541 $as_test_x conftest$ac_exeext; then
28542 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28543 else
28544 echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28547 ac_cv_lib_radiusclient_ng_rc_read_config=no
28550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28551 conftest$ac_exeext conftest.$ac_ext
28552 LIBS=$ac_check_lib_save_LIBS
28554 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28555 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28556 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28557 AST_RADIUS_FOUND=yes
28558 else
28559 AST_RADIUS_FOUND=no
28563 if test "${AST_RADIUS_FOUND}" = "yes"; then
28564 RADIUS_LIB="-lradiusclient-ng "
28565 RADIUS_HEADER_FOUND="1"
28566 if test "x${RADIUS_DIR}" != "x"; then
28567 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28568 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28569 saved_cppflags="${CPPFLAGS}"
28570 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28571 if test "xradiusclient-ng.h" != "x" ; then
28572 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
28573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28574 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28575 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 ac_res=`eval echo '${'$as_ac_Header'}'`
28580 { echo "$as_me:$LINENO: result: $ac_res" >&5
28581 echo "${ECHO_T}$ac_res" >&6; }
28582 else
28583 # Is the header compilable?
28584 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28585 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28586 cat >conftest.$ac_ext <<_ACEOF
28587 /* confdefs.h. */
28588 _ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 $ac_includes_default
28593 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28594 _ACEOF
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
28603 ac_status=$?
28604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } && {
28609 test -z "$ac_c_werror_flag" ||
28610 test ! -s conftest.err
28611 } && test -s conftest.$ac_objext; then
28612 ac_header_compiler=yes
28613 else
28614 echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.$ac_ext >&5
28617 ac_header_compiler=no
28620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28622 echo "${ECHO_T}$ac_header_compiler" >&6; }
28624 # Is the header present?
28625 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28626 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28627 cat >conftest.$ac_ext <<_ACEOF
28628 /* confdefs.h. */
28629 _ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28633 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28634 _ACEOF
28635 if { (ac_try="$ac_cpp conftest.$ac_ext"
28636 case "(($ac_try" in
28637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638 *) ac_try_echo=$ac_try;;
28639 esac
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28642 ac_status=$?
28643 grep -v '^ *+' conftest.er1 >conftest.err
28644 rm -f conftest.er1
28645 cat conftest.err >&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } >/dev/null && {
28648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28649 test ! -s conftest.err
28650 }; then
28651 ac_header_preproc=yes
28652 else
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ac_header_preproc=no
28659 rm -f conftest.err conftest.$ac_ext
28660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28661 echo "${ECHO_T}$ac_header_preproc" >&6; }
28663 # So? What about this header?
28664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28665 yes:no: )
28666 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28667 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28669 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28670 ac_header_preproc=yes
28672 no:yes:* )
28673 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28674 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28675 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28676 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28677 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28678 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28679 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28680 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28682 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28684 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28685 ( cat <<\_ASBOX
28686 ## ------------------------------- ##
28687 ## Report this to www.asterisk.org ##
28688 ## ------------------------------- ##
28689 _ASBOX
28690 ) | sed "s/^/$as_me: WARNING: /" >&2
28692 esac
28693 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28694 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698 eval "$as_ac_Header=\$ac_header_preproc"
28700 ac_res=`eval echo '${'$as_ac_Header'}'`
28701 { echo "$as_me:$LINENO: result: $ac_res" >&5
28702 echo "${ECHO_T}$ac_res" >&6; }
28705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28706 RADIUS_HEADER_FOUND=1
28707 else
28708 RADIUS_HEADER_FOUND=0
28713 CPPFLAGS="${saved_cppflags}"
28714 else
28715 if test "xradiusclient-ng.h" != "x" ; then
28716 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28717 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28718 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28719 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28722 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28723 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28724 else
28725 # Is the header compilable?
28726 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28727 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28728 cat >conftest.$ac_ext <<_ACEOF
28729 /* confdefs.h. */
28730 _ACEOF
28731 cat confdefs.h >>conftest.$ac_ext
28732 cat >>conftest.$ac_ext <<_ACEOF
28733 /* end confdefs.h. */
28734 $ac_includes_default
28735 #include <radiusclient-ng.h>
28736 _ACEOF
28737 rm -f conftest.$ac_objext
28738 if { (ac_try="$ac_compile"
28739 case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
28745 ac_status=$?
28746 grep -v '^ *+' conftest.er1 >conftest.err
28747 rm -f conftest.er1
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } && {
28751 test -z "$ac_c_werror_flag" ||
28752 test ! -s conftest.err
28753 } && test -s conftest.$ac_objext; then
28754 ac_header_compiler=yes
28755 else
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ac_header_compiler=no
28762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28764 echo "${ECHO_T}$ac_header_compiler" >&6; }
28766 # Is the header present?
28767 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28768 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28769 cat >conftest.$ac_ext <<_ACEOF
28770 /* confdefs.h. */
28771 _ACEOF
28772 cat confdefs.h >>conftest.$ac_ext
28773 cat >>conftest.$ac_ext <<_ACEOF
28774 /* end confdefs.h. */
28775 #include <radiusclient-ng.h>
28776 _ACEOF
28777 if { (ac_try="$ac_cpp conftest.$ac_ext"
28778 case "(($ac_try" in
28779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780 *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28784 ac_status=$?
28785 grep -v '^ *+' conftest.er1 >conftest.err
28786 rm -f conftest.er1
28787 cat conftest.err >&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } >/dev/null && {
28790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28791 test ! -s conftest.err
28792 }; then
28793 ac_header_preproc=yes
28794 else
28795 echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28798 ac_header_preproc=no
28801 rm -f conftest.err conftest.$ac_ext
28802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28803 echo "${ECHO_T}$ac_header_preproc" >&6; }
28805 # So? What about this header?
28806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28807 yes:no: )
28808 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28809 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28811 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28812 ac_header_preproc=yes
28814 no:yes:* )
28815 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28816 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28818 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28820 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28821 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28822 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28824 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28826 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28827 ( cat <<\_ASBOX
28828 ## ------------------------------- ##
28829 ## Report this to www.asterisk.org ##
28830 ## ------------------------------- ##
28831 _ASBOX
28832 ) | sed "s/^/$as_me: WARNING: /" >&2
28834 esac
28835 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28836 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28837 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839 else
28840 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28842 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28843 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28846 if test $ac_cv_header_radiusclient_ng_h = yes; then
28847 RADIUS_HEADER_FOUND=1
28848 else
28849 RADIUS_HEADER_FOUND=0
28855 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28856 if test -n "${RADIUS_MANDATORY}" ;
28857 then
28858 { echo "$as_me:$LINENO: ***" >&5
28859 echo "$as_me: ***" >&6;}
28860 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28861 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28862 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28863 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28864 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28865 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28866 exit 1
28868 RADIUS_LIB=""
28869 RADIUS_INCLUDE=""
28870 PBX_RADIUS=0
28871 else
28872 PBX_RADIUS=1
28874 cat >>confdefs.h <<_ACEOF
28875 #define HAVE_RADIUS 1
28876 _ACEOF
28879 elif test -n "${RADIUS_MANDATORY}";
28880 then
28881 { echo "$as_me:$LINENO: ***" >&5
28882 echo "$as_me: ***" >&6;}
28883 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28884 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28885 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28886 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28888 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28889 exit 1
28895 if test "${USE_SPEEX}" != "no"; then
28896 pbxlibdir=""
28897 if test "x${SPEEX_DIR}" != "x"; then
28898 if test -d ${SPEEX_DIR}/lib; then
28899 pbxlibdir="-L${SPEEX_DIR}/lib"
28900 else
28901 pbxlibdir="-L${SPEEX_DIR}"
28904 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28905 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28906 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 else
28909 ac_check_lib_save_LIBS=$LIBS
28910 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28911 cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h. */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28918 /* Override any GCC internal prototype to avoid an error.
28919 Use char because int might match the return type of a GCC
28920 builtin and then its argument prototype would still apply. */
28921 #ifdef __cplusplus
28922 extern "C"
28923 #endif
28924 char speex_encode ();
28926 main ()
28928 return speex_encode ();
28930 return 0;
28932 _ACEOF
28933 rm -f conftest.$ac_objext conftest$ac_exeext
28934 if { (ac_try="$ac_link"
28935 case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28938 esac
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_link") 2>conftest.er1
28941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest$ac_exeext &&
28950 $as_test_x conftest$ac_exeext; then
28951 ac_cv_lib_speex_speex_encode=yes
28952 else
28953 echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.$ac_ext >&5
28956 ac_cv_lib_speex_speex_encode=no
28959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28960 conftest$ac_exeext conftest.$ac_ext
28961 LIBS=$ac_check_lib_save_LIBS
28963 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28964 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28965 if test $ac_cv_lib_speex_speex_encode = yes; then
28966 AST_SPEEX_FOUND=yes
28967 else
28968 AST_SPEEX_FOUND=no
28972 if test "${AST_SPEEX_FOUND}" = "yes"; then
28973 SPEEX_LIB="-lspeex -lm"
28974 SPEEX_HEADER_FOUND="1"
28975 if test "x${SPEEX_DIR}" != "x"; then
28976 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28977 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
28978 saved_cppflags="${CPPFLAGS}"
28979 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
28980 if test "xspeex/speex.h" != "x" ; then
28981 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28983 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28984 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 ac_res=`eval echo '${'$as_ac_Header'}'`
28989 { echo "$as_me:$LINENO: result: $ac_res" >&5
28990 echo "${ECHO_T}$ac_res" >&6; }
28991 else
28992 # Is the header compilable?
28993 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28994 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28995 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h. */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 $ac_includes_default
29002 #include <${SPEEX_DIR}/include/speex/speex.h>
29003 _ACEOF
29004 rm -f conftest.$ac_objext
29005 if { (ac_try="$ac_compile"
29006 case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_compile") 2>conftest.er1
29012 ac_status=$?
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } && {
29018 test -z "$ac_c_werror_flag" ||
29019 test ! -s conftest.err
29020 } && test -s conftest.$ac_objext; then
29021 ac_header_compiler=yes
29022 else
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_compiler=no
29029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29031 echo "${ECHO_T}$ac_header_compiler" >&6; }
29033 # Is the header present?
29034 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29035 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29036 cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h. */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 #include <${SPEEX_DIR}/include/speex/speex.h>
29043 _ACEOF
29044 if { (ac_try="$ac_cpp conftest.$ac_ext"
29045 case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29048 esac
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29051 ac_status=$?
29052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } >/dev/null && {
29057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29058 test ! -s conftest.err
29059 }; then
29060 ac_header_preproc=yes
29061 else
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29065 ac_header_preproc=no
29068 rm -f conftest.err conftest.$ac_ext
29069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29070 echo "${ECHO_T}$ac_header_preproc" >&6; }
29072 # So? What about this header?
29073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29074 yes:no: )
29075 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29076 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29078 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29079 ac_header_preproc=yes
29081 no:yes:* )
29082 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29083 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29085 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29086 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29087 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29088 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29089 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29090 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29091 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29092 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29093 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29094 ( cat <<\_ASBOX
29095 ## ------------------------------- ##
29096 ## Report this to www.asterisk.org ##
29097 ## ------------------------------- ##
29098 _ASBOX
29099 ) | sed "s/^/$as_me: WARNING: /" >&2
29101 esac
29102 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29103 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107 eval "$as_ac_Header=\$ac_header_preproc"
29109 ac_res=`eval echo '${'$as_ac_Header'}'`
29110 { echo "$as_me:$LINENO: result: $ac_res" >&5
29111 echo "${ECHO_T}$ac_res" >&6; }
29114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29115 SPEEX_HEADER_FOUND=1
29116 else
29117 SPEEX_HEADER_FOUND=0
29122 CPPFLAGS="${saved_cppflags}"
29123 else
29124 if test "xspeex/speex.h" != "x" ; then
29125 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29126 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29127 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29128 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29131 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29132 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29133 else
29134 # Is the header compilable?
29135 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29136 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29137 cat >conftest.$ac_ext <<_ACEOF
29138 /* confdefs.h. */
29139 _ACEOF
29140 cat confdefs.h >>conftest.$ac_ext
29141 cat >>conftest.$ac_ext <<_ACEOF
29142 /* end confdefs.h. */
29143 $ac_includes_default
29144 #include <speex/speex.h>
29145 _ACEOF
29146 rm -f conftest.$ac_objext
29147 if { (ac_try="$ac_compile"
29148 case "(($ac_try" in
29149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29151 esac
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_compile") 2>conftest.er1
29154 ac_status=$?
29155 grep -v '^ *+' conftest.er1 >conftest.err
29156 rm -f conftest.er1
29157 cat conftest.err >&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } && {
29160 test -z "$ac_c_werror_flag" ||
29161 test ! -s conftest.err
29162 } && test -s conftest.$ac_objext; then
29163 ac_header_compiler=yes
29164 else
29165 echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29168 ac_header_compiler=no
29171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29173 echo "${ECHO_T}$ac_header_compiler" >&6; }
29175 # Is the header present?
29176 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29177 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29178 cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h. */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184 #include <speex/speex.h>
29185 _ACEOF
29186 if { (ac_try="$ac_cpp conftest.$ac_ext"
29187 case "(($ac_try" in
29188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189 *) ac_try_echo=$ac_try;;
29190 esac
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29193 ac_status=$?
29194 grep -v '^ *+' conftest.er1 >conftest.err
29195 rm -f conftest.er1
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } >/dev/null && {
29199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29200 test ! -s conftest.err
29201 }; then
29202 ac_header_preproc=yes
29203 else
29204 echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29207 ac_header_preproc=no
29210 rm -f conftest.err conftest.$ac_ext
29211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29212 echo "${ECHO_T}$ac_header_preproc" >&6; }
29214 # So? What about this header?
29215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29216 yes:no: )
29217 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29218 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29220 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29221 ac_header_preproc=yes
29223 no:yes:* )
29224 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29225 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29226 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29227 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29228 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29229 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29230 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29231 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29233 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29235 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29236 ( cat <<\_ASBOX
29237 ## ------------------------------- ##
29238 ## Report this to www.asterisk.org ##
29239 ## ------------------------------- ##
29240 _ASBOX
29241 ) | sed "s/^/$as_me: WARNING: /" >&2
29243 esac
29244 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29245 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29246 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249 ac_cv_header_speex_speex_h=$ac_header_preproc
29251 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29252 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29255 if test $ac_cv_header_speex_speex_h = yes; then
29256 SPEEX_HEADER_FOUND=1
29257 else
29258 SPEEX_HEADER_FOUND=0
29264 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29265 if test -n "${SPEEX_MANDATORY}" ;
29266 then
29267 { echo "$as_me:$LINENO: ***" >&5
29268 echo "$as_me: ***" >&6;}
29269 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29270 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29271 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29272 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29273 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29274 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29275 exit 1
29277 SPEEX_LIB=""
29278 SPEEX_INCLUDE=""
29279 PBX_SPEEX=0
29280 else
29281 PBX_SPEEX=1
29283 cat >>confdefs.h <<_ACEOF
29284 #define HAVE_SPEEX 1
29285 _ACEOF
29288 elif test -n "${SPEEX_MANDATORY}";
29289 then
29290 { echo "$as_me:$LINENO: ***" >&5
29291 echo "$as_me: ***" >&6;}
29292 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29293 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29294 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29295 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29296 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29297 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29298 exit 1
29304 if test "${USE_SPEEXDSP}" != "no"; then
29305 pbxlibdir=""
29306 if test "x${SPEEXDSP_DIR}" != "x"; then
29307 if test -d ${SPEEXDSP_DIR}/lib; then
29308 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
29309 else
29310 pbxlibdir="-L${SPEEXDSP_DIR}"
29313 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29314 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29315 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29316 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 else
29318 ac_check_lib_save_LIBS=$LIBS
29319 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29320 cat >conftest.$ac_ext <<_ACEOF
29321 /* confdefs.h. */
29322 _ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h. */
29327 /* Override any GCC internal prototype to avoid an error.
29328 Use char because int might match the return type of a GCC
29329 builtin and then its argument prototype would still apply. */
29330 #ifdef __cplusplus
29331 extern "C"
29332 #endif
29333 char speex_preprocess_ctl ();
29335 main ()
29337 return speex_preprocess_ctl ();
29339 return 0;
29341 _ACEOF
29342 rm -f conftest.$ac_objext conftest$ac_exeext
29343 if { (ac_try="$ac_link"
29344 case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29347 esac
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_link") 2>conftest.er1
29350 ac_status=$?
29351 grep -v '^ *+' conftest.er1 >conftest.err
29352 rm -f conftest.er1
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } && {
29356 test -z "$ac_c_werror_flag" ||
29357 test ! -s conftest.err
29358 } && test -s conftest$ac_exeext &&
29359 $as_test_x conftest$ac_exeext; then
29360 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
29361 else
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
29368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29369 conftest$ac_exeext conftest.$ac_ext
29370 LIBS=$ac_check_lib_save_LIBS
29372 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29373 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29374 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29375 AST_SPEEXDSP_FOUND=yes
29376 else
29377 AST_SPEEXDSP_FOUND=no
29381 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29382 SPEEXDSP_LIB="-lspeexdsp -lm"
29383 SPEEXDSP_HEADER_FOUND="1"
29384 if test "x${SPEEXDSP_DIR}" != "x"; then
29385 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
29386 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
29387 saved_cppflags="${CPPFLAGS}"
29388 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29389 if test "xspeex/speex.h" != "x" ; then
29390 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
29391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29393 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29397 ac_res=`eval echo '${'$as_ac_Header'}'`
29398 { echo "$as_me:$LINENO: result: $ac_res" >&5
29399 echo "${ECHO_T}$ac_res" >&6; }
29400 else
29401 # Is the header compilable?
29402 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
29403 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29404 cat >conftest.$ac_ext <<_ACEOF
29405 /* confdefs.h. */
29406 _ACEOF
29407 cat confdefs.h >>conftest.$ac_ext
29408 cat >>conftest.$ac_ext <<_ACEOF
29409 /* end confdefs.h. */
29410 $ac_includes_default
29411 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29412 _ACEOF
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_compile") 2>conftest.er1
29421 ac_status=$?
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && {
29427 test -z "$ac_c_werror_flag" ||
29428 test ! -s conftest.err
29429 } && test -s conftest.$ac_objext; then
29430 ac_header_compiler=yes
29431 else
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_header_compiler=no
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29440 echo "${ECHO_T}$ac_header_compiler" >&6; }
29442 # Is the header present?
29443 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29444 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29445 cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h. */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29452 _ACEOF
29453 if { (ac_try="$ac_cpp conftest.$ac_ext"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29457 esac
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29460 ac_status=$?
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } >/dev/null && {
29466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29467 test ! -s conftest.err
29468 }; then
29469 ac_header_preproc=yes
29470 else
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_header_preproc=no
29477 rm -f conftest.err conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29479 echo "${ECHO_T}$ac_header_preproc" >&6; }
29481 # So? What about this header?
29482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29483 yes:no: )
29484 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29485 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29487 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29488 ac_header_preproc=yes
29490 no:yes:* )
29491 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29492 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29493 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29494 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29496 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29498 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29500 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29502 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29503 ( cat <<\_ASBOX
29504 ## ------------------------------- ##
29505 ## Report this to www.asterisk.org ##
29506 ## ------------------------------- ##
29507 _ASBOX
29508 ) | sed "s/^/$as_me: WARNING: /" >&2
29510 esac
29511 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29512 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29515 else
29516 eval "$as_ac_Header=\$ac_header_preproc"
29518 ac_res=`eval echo '${'$as_ac_Header'}'`
29519 { echo "$as_me:$LINENO: result: $ac_res" >&5
29520 echo "${ECHO_T}$ac_res" >&6; }
29523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29524 SPEEXDSP_HEADER_FOUND=1
29525 else
29526 SPEEXDSP_HEADER_FOUND=0
29531 CPPFLAGS="${saved_cppflags}"
29532 else
29533 if test "xspeex/speex.h" != "x" ; then
29534 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29535 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29536 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29537 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29541 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29542 else
29543 # Is the header compilable?
29544 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29545 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29546 cat >conftest.$ac_ext <<_ACEOF
29547 /* confdefs.h. */
29548 _ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h. */
29552 $ac_includes_default
29553 #include <speex/speex.h>
29554 _ACEOF
29555 rm -f conftest.$ac_objext
29556 if { (ac_try="$ac_compile"
29557 case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_compile") 2>conftest.er1
29563 ac_status=$?
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest.$ac_objext; then
29572 ac_header_compiler=yes
29573 else
29574 echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29577 ac_header_compiler=no
29580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29582 echo "${ECHO_T}$ac_header_compiler" >&6; }
29584 # Is the header present?
29585 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29586 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29587 cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h. */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29593 #include <speex/speex.h>
29594 _ACEOF
29595 if { (ac_try="$ac_cpp conftest.$ac_ext"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29599 esac
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29602 ac_status=$?
29603 grep -v '^ *+' conftest.er1 >conftest.err
29604 rm -f conftest.er1
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } >/dev/null && {
29608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29609 test ! -s conftest.err
29610 }; then
29611 ac_header_preproc=yes
29612 else
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 ac_header_preproc=no
29619 rm -f conftest.err conftest.$ac_ext
29620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29621 echo "${ECHO_T}$ac_header_preproc" >&6; }
29623 # So? What about this header?
29624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29625 yes:no: )
29626 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29627 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29629 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29630 ac_header_preproc=yes
29632 no:yes:* )
29633 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29634 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29636 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29638 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29640 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29641 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29642 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29644 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29645 ( cat <<\_ASBOX
29646 ## ------------------------------- ##
29647 ## Report this to www.asterisk.org ##
29648 ## ------------------------------- ##
29649 _ASBOX
29650 ) | sed "s/^/$as_me: WARNING: /" >&2
29652 esac
29653 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29654 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29655 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657 else
29658 ac_cv_header_speex_speex_h=$ac_header_preproc
29660 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29661 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29664 if test $ac_cv_header_speex_speex_h = yes; then
29665 SPEEXDSP_HEADER_FOUND=1
29666 else
29667 SPEEXDSP_HEADER_FOUND=0
29673 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
29674 if test -n "${SPEEXDSP_MANDATORY}" ;
29675 then
29676 { echo "$as_me:$LINENO: ***" >&5
29677 echo "$as_me: ***" >&6;}
29678 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
29679 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
29680 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
29681 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
29682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29683 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29684 exit 1
29686 SPEEXDSP_LIB=""
29687 SPEEXDSP_INCLUDE=""
29688 PBX_SPEEXDSP=0
29689 else
29690 PBX_SPEEXDSP=1
29692 cat >>confdefs.h <<_ACEOF
29693 #define HAVE_SPEEXDSP 1
29694 _ACEOF
29697 elif test -n "${SPEEXDSP_MANDATORY}";
29698 then
29699 { echo "$as_me:$LINENO: ***" >&5
29700 echo "$as_me: ***" >&6;}
29701 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
29702 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
29703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29706 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29707 exit 1
29713 if test "${USE_SQLITE}" != "no"; then
29714 pbxlibdir=""
29715 if test "x${SQLITE_DIR}" != "x"; then
29716 if test -d ${SQLITE_DIR}/lib; then
29717 pbxlibdir="-L${SQLITE_DIR}/lib"
29718 else
29719 pbxlibdir="-L${SQLITE_DIR}"
29722 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
29723 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727 ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h. */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29739 #ifdef __cplusplus
29740 extern "C"
29741 #endif
29742 char sqlite_exec ();
29744 main ()
29746 return sqlite_exec ();
29748 return 0;
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29759 ac_status=$?
29760 grep -v '^ *+' conftest.er1 >conftest.err
29761 rm -f conftest.er1
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_c_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest$ac_exeext &&
29768 $as_test_x conftest$ac_exeext; then
29769 ac_cv_lib_sqlite_sqlite_exec=yes
29770 else
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 ac_cv_lib_sqlite_sqlite_exec=no
29777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29778 conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
29782 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29783 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29784 AST_SQLITE_FOUND=yes
29785 else
29786 AST_SQLITE_FOUND=no
29790 if test "${AST_SQLITE_FOUND}" = "yes"; then
29791 SQLITE_LIB="-lsqlite "
29792 SQLITE_HEADER_FOUND="1"
29793 if test "x${SQLITE_DIR}" != "x"; then
29794 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
29795 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
29796 saved_cppflags="${CPPFLAGS}"
29797 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
29798 if test "xsqlite.h" != "x" ; then
29799 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
29800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29802 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 ac_res=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29809 else
29810 # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
29812 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h. */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h. */
29819 $ac_includes_default
29820 #include <${SQLITE_DIR}/include/sqlite.h>
29821 _ACEOF
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
29830 ac_status=$?
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } && {
29836 test -z "$ac_c_werror_flag" ||
29837 test ! -s conftest.err
29838 } && test -s conftest.$ac_objext; then
29839 ac_header_compiler=yes
29840 else
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29844 ac_header_compiler=no
29847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29849 echo "${ECHO_T}$ac_header_compiler" >&6; }
29851 # Is the header present?
29852 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
29853 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
29854 cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h. */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860 #include <${SQLITE_DIR}/include/sqlite.h>
29861 _ACEOF
29862 if { (ac_try="$ac_cpp conftest.$ac_ext"
29863 case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29866 esac
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29869 ac_status=$?
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } >/dev/null && {
29875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29876 test ! -s conftest.err
29877 }; then
29878 ac_header_preproc=yes
29879 else
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ac_header_preproc=no
29886 rm -f conftest.err conftest.$ac_ext
29887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29888 echo "${ECHO_T}$ac_header_preproc" >&6; }
29890 # So? What about this header?
29891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29892 yes:no: )
29893 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29894 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
29896 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
29897 ac_header_preproc=yes
29899 no:yes:* )
29900 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
29901 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
29902 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
29903 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
29904 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
29905 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
29906 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29907 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29908 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
29909 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
29910 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
29911 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
29912 ( cat <<\_ASBOX
29913 ## ------------------------------- ##
29914 ## Report this to www.asterisk.org ##
29915 ## ------------------------------- ##
29916 _ASBOX
29917 ) | sed "s/^/$as_me: WARNING: /" >&2
29919 esac
29920 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29921 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29924 else
29925 eval "$as_ac_Header=\$ac_header_preproc"
29927 ac_res=`eval echo '${'$as_ac_Header'}'`
29928 { echo "$as_me:$LINENO: result: $ac_res" >&5
29929 echo "${ECHO_T}$ac_res" >&6; }
29932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29933 SQLITE_HEADER_FOUND=1
29934 else
29935 SQLITE_HEADER_FOUND=0
29940 CPPFLAGS="${saved_cppflags}"
29941 else
29942 if test "xsqlite.h" != "x" ; then
29943 if test "${ac_cv_header_sqlite_h+set}" = set; then
29944 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29945 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29946 if test "${ac_cv_header_sqlite_h+set}" = set; then
29947 echo $ECHO_N "(cached) $ECHO_C" >&6
29949 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29950 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29951 else
29952 # Is the header compilable?
29953 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
29954 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
29955 cat >conftest.$ac_ext <<_ACEOF
29956 /* confdefs.h. */
29957 _ACEOF
29958 cat confdefs.h >>conftest.$ac_ext
29959 cat >>conftest.$ac_ext <<_ACEOF
29960 /* end confdefs.h. */
29961 $ac_includes_default
29962 #include <sqlite.h>
29963 _ACEOF
29964 rm -f conftest.$ac_objext
29965 if { (ac_try="$ac_compile"
29966 case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_compile") 2>conftest.er1
29972 ac_status=$?
29973 grep -v '^ *+' conftest.er1 >conftest.err
29974 rm -f conftest.er1
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } && {
29978 test -z "$ac_c_werror_flag" ||
29979 test ! -s conftest.err
29980 } && test -s conftest.$ac_objext; then
29981 ac_header_compiler=yes
29982 else
29983 echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29986 ac_header_compiler=no
29989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29991 echo "${ECHO_T}$ac_header_compiler" >&6; }
29993 # Is the header present?
29994 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
29995 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
29996 cat >conftest.$ac_ext <<_ACEOF
29997 /* confdefs.h. */
29998 _ACEOF
29999 cat confdefs.h >>conftest.$ac_ext
30000 cat >>conftest.$ac_ext <<_ACEOF
30001 /* end confdefs.h. */
30002 #include <sqlite.h>
30003 _ACEOF
30004 if { (ac_try="$ac_cpp conftest.$ac_ext"
30005 case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30008 esac
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30011 ac_status=$?
30012 grep -v '^ *+' conftest.er1 >conftest.err
30013 rm -f conftest.er1
30014 cat conftest.err >&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } >/dev/null && {
30017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30018 test ! -s conftest.err
30019 }; then
30020 ac_header_preproc=yes
30021 else
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30025 ac_header_preproc=no
30028 rm -f conftest.err conftest.$ac_ext
30029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30030 echo "${ECHO_T}$ac_header_preproc" >&6; }
30032 # So? What about this header?
30033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30034 yes:no: )
30035 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30036 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30037 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30038 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30039 ac_header_preproc=yes
30041 no:yes:* )
30042 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30043 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30044 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30045 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30046 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30047 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30048 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30049 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30050 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30051 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30052 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30053 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30054 ( cat <<\_ASBOX
30055 ## ------------------------------- ##
30056 ## Report this to www.asterisk.org ##
30057 ## ------------------------------- ##
30058 _ASBOX
30059 ) | sed "s/^/$as_me: WARNING: /" >&2
30061 esac
30062 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30063 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30064 if test "${ac_cv_header_sqlite_h+set}" = set; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30066 else
30067 ac_cv_header_sqlite_h=$ac_header_preproc
30069 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30070 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30073 if test $ac_cv_header_sqlite_h = yes; then
30074 SQLITE_HEADER_FOUND=1
30075 else
30076 SQLITE_HEADER_FOUND=0
30082 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30083 if test -n "${SQLITE_MANDATORY}" ;
30084 then
30085 { echo "$as_me:$LINENO: ***" >&5
30086 echo "$as_me: ***" >&6;}
30087 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30088 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30089 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30090 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30091 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30092 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30093 exit 1
30095 SQLITE_LIB=""
30096 SQLITE_INCLUDE=""
30097 PBX_SQLITE=0
30098 else
30099 PBX_SQLITE=1
30101 cat >>confdefs.h <<_ACEOF
30102 #define HAVE_SQLITE 1
30103 _ACEOF
30106 elif test -n "${SQLITE_MANDATORY}";
30107 then
30108 { echo "$as_me:$LINENO: ***" >&5
30109 echo "$as_me: ***" >&6;}
30110 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30111 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30112 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30113 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30114 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30115 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30116 exit 1
30122 if test "${USE_OPENSSL}" != "no"; then
30123 pbxlibdir=""
30124 if test "x${OPENSSL_DIR}" != "x"; then
30125 if test -d ${OPENSSL_DIR}/lib; then
30126 pbxlibdir="-L${OPENSSL_DIR}/lib"
30127 else
30128 pbxlibdir="-L${OPENSSL_DIR}"
30131 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30132 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30133 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 else
30136 ac_check_lib_save_LIBS=$LIBS
30137 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
30138 cat >conftest.$ac_ext <<_ACEOF
30139 /* confdefs.h. */
30140 _ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30145 /* Override any GCC internal prototype to avoid an error.
30146 Use char because int might match the return type of a GCC
30147 builtin and then its argument prototype would still apply. */
30148 #ifdef __cplusplus
30149 extern "C"
30150 #endif
30151 char ssl2_connect ();
30153 main ()
30155 return ssl2_connect ();
30157 return 0;
30159 _ACEOF
30160 rm -f conftest.$ac_objext conftest$ac_exeext
30161 if { (ac_try="$ac_link"
30162 case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_link") 2>conftest.er1
30168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } && {
30174 test -z "$ac_c_werror_flag" ||
30175 test ! -s conftest.err
30176 } && test -s conftest$ac_exeext &&
30177 $as_test_x conftest$ac_exeext; then
30178 ac_cv_lib_ssl_ssl2_connect=yes
30179 else
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183 ac_cv_lib_ssl_ssl2_connect=no
30186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30187 conftest$ac_exeext conftest.$ac_ext
30188 LIBS=$ac_check_lib_save_LIBS
30190 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30191 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30192 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30193 AST_OPENSSL_FOUND=yes
30194 else
30195 AST_OPENSSL_FOUND=no
30199 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30200 OPENSSL_LIB="-lssl -lcrypto"
30201 OPENSSL_HEADER_FOUND="1"
30202 if test "x${OPENSSL_DIR}" != "x"; then
30203 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
30204 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
30205 saved_cppflags="${CPPFLAGS}"
30206 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30207 if test "xopenssl/ssl.h" != "x" ; then
30208 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
30209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30210 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30211 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30215 ac_res=`eval echo '${'$as_ac_Header'}'`
30216 { echo "$as_me:$LINENO: result: $ac_res" >&5
30217 echo "${ECHO_T}$ac_res" >&6; }
30218 else
30219 # Is the header compilable?
30220 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30221 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30222 cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h. */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h. */
30228 $ac_includes_default
30229 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30230 _ACEOF
30231 rm -f conftest.$ac_objext
30232 if { (ac_try="$ac_compile"
30233 case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_compile") 2>conftest.er1
30239 ac_status=$?
30240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } && {
30245 test -z "$ac_c_werror_flag" ||
30246 test ! -s conftest.err
30247 } && test -s conftest.$ac_objext; then
30248 ac_header_compiler=yes
30249 else
30250 echo "$as_me: failed program was:" >&5
30251 sed 's/^/| /' conftest.$ac_ext >&5
30253 ac_header_compiler=no
30256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30258 echo "${ECHO_T}$ac_header_compiler" >&6; }
30260 # Is the header present?
30261 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30262 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30263 cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h. */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30270 _ACEOF
30271 if { (ac_try="$ac_cpp conftest.$ac_ext"
30272 case "(($ac_try" in
30273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30275 esac
30276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30278 ac_status=$?
30279 grep -v '^ *+' conftest.er1 >conftest.err
30280 rm -f conftest.er1
30281 cat conftest.err >&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } >/dev/null && {
30284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30285 test ! -s conftest.err
30286 }; then
30287 ac_header_preproc=yes
30288 else
30289 echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30292 ac_header_preproc=no
30295 rm -f conftest.err conftest.$ac_ext
30296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30297 echo "${ECHO_T}$ac_header_preproc" >&6; }
30299 # So? What about this header?
30300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30301 yes:no: )
30302 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30303 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30304 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30305 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30306 ac_header_preproc=yes
30308 no:yes:* )
30309 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30310 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30312 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30313 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30314 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30315 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30316 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30317 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30318 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30319 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30320 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30321 ( cat <<\_ASBOX
30322 ## ------------------------------- ##
30323 ## Report this to www.asterisk.org ##
30324 ## ------------------------------- ##
30325 _ASBOX
30326 ) | sed "s/^/$as_me: WARNING: /" >&2
30328 esac
30329 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30330 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30333 else
30334 eval "$as_ac_Header=\$ac_header_preproc"
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30342 OPENSSL_HEADER_FOUND=1
30343 else
30344 OPENSSL_HEADER_FOUND=0
30349 CPPFLAGS="${saved_cppflags}"
30350 else
30351 if test "xopenssl/ssl.h" != "x" ; then
30352 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30353 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30354 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30355 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30356 echo $ECHO_N "(cached) $ECHO_C" >&6
30358 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30359 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30360 else
30361 # Is the header compilable?
30362 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30363 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30364 cat >conftest.$ac_ext <<_ACEOF
30365 /* confdefs.h. */
30366 _ACEOF
30367 cat confdefs.h >>conftest.$ac_ext
30368 cat >>conftest.$ac_ext <<_ACEOF
30369 /* end confdefs.h. */
30370 $ac_includes_default
30371 #include <openssl/ssl.h>
30372 _ACEOF
30373 rm -f conftest.$ac_objext
30374 if { (ac_try="$ac_compile"
30375 case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378 esac
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_compile") 2>conftest.er1
30381 ac_status=$?
30382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } && {
30387 test -z "$ac_c_werror_flag" ||
30388 test ! -s conftest.err
30389 } && test -s conftest.$ac_objext; then
30390 ac_header_compiler=yes
30391 else
30392 echo "$as_me: failed program was:" >&5
30393 sed 's/^/| /' conftest.$ac_ext >&5
30395 ac_header_compiler=no
30398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30400 echo "${ECHO_T}$ac_header_compiler" >&6; }
30402 # Is the header present?
30403 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
30404 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
30405 cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h. */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30411 #include <openssl/ssl.h>
30412 _ACEOF
30413 if { (ac_try="$ac_cpp conftest.$ac_ext"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30420 ac_status=$?
30421 grep -v '^ *+' conftest.er1 >conftest.err
30422 rm -f conftest.er1
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } >/dev/null && {
30426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30427 test ! -s conftest.err
30428 }; then
30429 ac_header_preproc=yes
30430 else
30431 echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30434 ac_header_preproc=no
30437 rm -f conftest.err conftest.$ac_ext
30438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30439 echo "${ECHO_T}$ac_header_preproc" >&6; }
30441 # So? What about this header?
30442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30443 yes:no: )
30444 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30445 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30447 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30448 ac_header_preproc=yes
30450 no:yes:* )
30451 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30452 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30454 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30455 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30456 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30458 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30460 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30462 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30463 ( cat <<\_ASBOX
30464 ## ------------------------------- ##
30465 ## Report this to www.asterisk.org ##
30466 ## ------------------------------- ##
30467 _ASBOX
30468 ) | sed "s/^/$as_me: WARNING: /" >&2
30470 esac
30471 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30472 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30473 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30475 else
30476 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30478 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30479 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30482 if test $ac_cv_header_openssl_ssl_h = yes; then
30483 OPENSSL_HEADER_FOUND=1
30484 else
30485 OPENSSL_HEADER_FOUND=0
30491 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30492 if test -n "${OPENSSL_MANDATORY}" ;
30493 then
30494 { echo "$as_me:$LINENO: ***" >&5
30495 echo "$as_me: ***" >&6;}
30496 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30497 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30498 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30499 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30501 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30502 exit 1
30504 OPENSSL_LIB=""
30505 OPENSSL_INCLUDE=""
30506 PBX_OPENSSL=0
30507 else
30508 PBX_OPENSSL=1
30510 cat >>confdefs.h <<_ACEOF
30511 #define HAVE_OPENSSL 1
30512 _ACEOF
30515 elif test -n "${OPENSSL_MANDATORY}";
30516 then
30517 { echo "$as_me:$LINENO: ***" >&5
30518 echo "$as_me: ***" >&6;}
30519 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30520 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30521 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30522 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30523 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30524 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30525 exit 1
30529 if test "$PBX_OPENSSL" = "1";
30530 then
30532 if test "${USE_OSPTK}" != "no"; then
30533 pbxlibdir=""
30534 if test "x${OSPTK_DIR}" != "x"; then
30535 if test -d ${OSPTK_DIR}/lib; then
30536 pbxlibdir="-L${OSPTK_DIR}/lib"
30537 else
30538 pbxlibdir="-L${OSPTK_DIR}"
30541 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30542 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30545 else
30546 ac_check_lib_save_LIBS=$LIBS
30547 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30548 cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h. */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 char OSPPCryptoDecrypt ();
30563 main ()
30565 return OSPPCryptoDecrypt ();
30567 return 0;
30569 _ACEOF
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_link") 2>conftest.er1
30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest$ac_exeext &&
30587 $as_test_x conftest$ac_exeext; then
30588 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
30589 else
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597 conftest$ac_exeext conftest.$ac_ext
30598 LIBS=$ac_check_lib_save_LIBS
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30601 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30602 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30603 AST_OSPTK_FOUND=yes
30604 else
30605 AST_OSPTK_FOUND=no
30609 if test "${AST_OSPTK_FOUND}" = "yes"; then
30610 OSPTK_LIB="-losptk -lcrypto -lssl"
30611 OSPTK_HEADER_FOUND="1"
30612 if test "x${OSPTK_DIR}" != "x"; then
30613 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
30614 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
30615 saved_cppflags="${CPPFLAGS}"
30616 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
30617 if test "xosp/osp.h" != "x" ; then
30618 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
30619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30620 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30621 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30623 echo $ECHO_N "(cached) $ECHO_C" >&6
30625 ac_res=`eval echo '${'$as_ac_Header'}'`
30626 { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30628 else
30629 # Is the header compilable?
30630 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
30631 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
30632 cat >conftest.$ac_ext <<_ACEOF
30633 /* confdefs.h. */
30634 _ACEOF
30635 cat confdefs.h >>conftest.$ac_ext
30636 cat >>conftest.$ac_ext <<_ACEOF
30637 /* end confdefs.h. */
30638 $ac_includes_default
30639 #include <${OSPTK_DIR}/include/osp/osp.h>
30640 _ACEOF
30641 rm -f conftest.$ac_objext
30642 if { (ac_try="$ac_compile"
30643 case "(($ac_try" in
30644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30646 esac
30647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_compile") 2>conftest.er1
30649 ac_status=$?
30650 grep -v '^ *+' conftest.er1 >conftest.err
30651 rm -f conftest.er1
30652 cat conftest.err >&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); } && {
30655 test -z "$ac_c_werror_flag" ||
30656 test ! -s conftest.err
30657 } && test -s conftest.$ac_objext; then
30658 ac_header_compiler=yes
30659 else
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 ac_header_compiler=no
30666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30668 echo "${ECHO_T}$ac_header_compiler" >&6; }
30670 # Is the header present?
30671 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
30672 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
30673 cat >conftest.$ac_ext <<_ACEOF
30674 /* confdefs.h. */
30675 _ACEOF
30676 cat confdefs.h >>conftest.$ac_ext
30677 cat >>conftest.$ac_ext <<_ACEOF
30678 /* end confdefs.h. */
30679 #include <${OSPTK_DIR}/include/osp/osp.h>
30680 _ACEOF
30681 if { (ac_try="$ac_cpp conftest.$ac_ext"
30682 case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30688 ac_status=$?
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } >/dev/null && {
30694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30695 test ! -s conftest.err
30696 }; then
30697 ac_header_preproc=yes
30698 else
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30702 ac_header_preproc=no
30705 rm -f conftest.err conftest.$ac_ext
30706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30707 echo "${ECHO_T}$ac_header_preproc" >&6; }
30709 # So? What about this header?
30710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30711 yes:no: )
30712 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30713 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
30715 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
30716 ac_header_preproc=yes
30718 no:yes:* )
30719 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
30720 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
30721 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
30722 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
30724 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
30725 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30726 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30727 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
30728 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
30729 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
30730 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
30731 ( cat <<\_ASBOX
30732 ## ------------------------------- ##
30733 ## Report this to www.asterisk.org ##
30734 ## ------------------------------- ##
30735 _ASBOX
30736 ) | sed "s/^/$as_me: WARNING: /" >&2
30738 esac
30739 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30740 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743 else
30744 eval "$as_ac_Header=\$ac_header_preproc"
30746 ac_res=`eval echo '${'$as_ac_Header'}'`
30747 { echo "$as_me:$LINENO: result: $ac_res" >&5
30748 echo "${ECHO_T}$ac_res" >&6; }
30751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30752 OSPTK_HEADER_FOUND=1
30753 else
30754 OSPTK_HEADER_FOUND=0
30759 CPPFLAGS="${saved_cppflags}"
30760 else
30761 if test "xosp/osp.h" != "x" ; then
30762 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30763 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30764 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30765 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30768 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30769 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30770 else
30771 # Is the header compilable?
30772 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
30773 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
30774 cat >conftest.$ac_ext <<_ACEOF
30775 /* confdefs.h. */
30776 _ACEOF
30777 cat confdefs.h >>conftest.$ac_ext
30778 cat >>conftest.$ac_ext <<_ACEOF
30779 /* end confdefs.h. */
30780 $ac_includes_default
30781 #include <osp/osp.h>
30782 _ACEOF
30783 rm -f conftest.$ac_objext
30784 if { (ac_try="$ac_compile"
30785 case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_compile") 2>conftest.er1
30791 ac_status=$?
30792 grep -v '^ *+' conftest.er1 >conftest.err
30793 rm -f conftest.er1
30794 cat conftest.err >&5
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); } && {
30797 test -z "$ac_c_werror_flag" ||
30798 test ! -s conftest.err
30799 } && test -s conftest.$ac_objext; then
30800 ac_header_compiler=yes
30801 else
30802 echo "$as_me: failed program was:" >&5
30803 sed 's/^/| /' conftest.$ac_ext >&5
30805 ac_header_compiler=no
30808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30810 echo "${ECHO_T}$ac_header_compiler" >&6; }
30812 # Is the header present?
30813 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
30814 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
30815 cat >conftest.$ac_ext <<_ACEOF
30816 /* confdefs.h. */
30817 _ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30821 #include <osp/osp.h>
30822 _ACEOF
30823 if { (ac_try="$ac_cpp conftest.$ac_ext"
30824 case "(($ac_try" in
30825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826 *) ac_try_echo=$ac_try;;
30827 esac
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30830 ac_status=$?
30831 grep -v '^ *+' conftest.er1 >conftest.err
30832 rm -f conftest.er1
30833 cat conftest.err >&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } >/dev/null && {
30836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30837 test ! -s conftest.err
30838 }; then
30839 ac_header_preproc=yes
30840 else
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 ac_header_preproc=no
30847 rm -f conftest.err conftest.$ac_ext
30848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30849 echo "${ECHO_T}$ac_header_preproc" >&6; }
30851 # So? What about this header?
30852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30853 yes:no: )
30854 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30855 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
30857 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
30858 ac_header_preproc=yes
30860 no:yes:* )
30861 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
30862 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
30863 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
30864 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
30865 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
30866 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
30867 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30868 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30869 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
30870 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
30871 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
30872 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
30873 ( cat <<\_ASBOX
30874 ## ------------------------------- ##
30875 ## Report this to www.asterisk.org ##
30876 ## ------------------------------- ##
30877 _ASBOX
30878 ) | sed "s/^/$as_me: WARNING: /" >&2
30880 esac
30881 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30882 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30883 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885 else
30886 ac_cv_header_osp_osp_h=$ac_header_preproc
30888 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30889 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30892 if test $ac_cv_header_osp_osp_h = yes; then
30893 OSPTK_HEADER_FOUND=1
30894 else
30895 OSPTK_HEADER_FOUND=0
30901 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
30902 if test -n "${OSPTK_MANDATORY}" ;
30903 then
30904 { echo "$as_me:$LINENO: ***" >&5
30905 echo "$as_me: ***" >&6;}
30906 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
30907 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
30908 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
30909 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
30910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30911 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30912 exit 1
30914 OSPTK_LIB=""
30915 OSPTK_INCLUDE=""
30916 PBX_OSPTK=0
30917 else
30918 PBX_OSPTK=1
30920 cat >>confdefs.h <<_ACEOF
30921 #define HAVE_OSPTK 1
30922 _ACEOF
30925 elif test -n "${OSPTK_MANDATORY}";
30926 then
30927 { echo "$as_me:$LINENO: ***" >&5
30928 echo "$as_me: ***" >&6;}
30929 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
30930 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
30931 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30932 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30933 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30934 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30935 exit 1
30942 if test "${USE_FREETDS}" != "no"; then
30943 pbxlibdir=""
30944 if test "x${FREETDS_DIR}" != "x"; then
30945 if test -d ${FREETDS_DIR}/lib; then
30946 pbxlibdir="-L${FREETDS_DIR}/lib"
30947 else
30948 pbxlibdir="-L${FREETDS_DIR}"
30951 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
30952 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
30953 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30955 else
30956 ac_check_lib_save_LIBS=$LIBS
30957 LIBS="-ltds ${pbxlibdir} $LIBS"
30958 cat >conftest.$ac_ext <<_ACEOF
30959 /* confdefs.h. */
30960 _ACEOF
30961 cat confdefs.h >>conftest.$ac_ext
30962 cat >>conftest.$ac_ext <<_ACEOF
30963 /* end confdefs.h. */
30965 /* Override any GCC internal prototype to avoid an error.
30966 Use char because int might match the return type of a GCC
30967 builtin and then its argument prototype would still apply. */
30968 #ifdef __cplusplus
30969 extern "C"
30970 #endif
30971 char tds_version ();
30973 main ()
30975 return tds_version ();
30977 return 0;
30979 _ACEOF
30980 rm -f conftest.$ac_objext conftest$ac_exeext
30981 if { (ac_try="$ac_link"
30982 case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985 esac
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_link") 2>conftest.er1
30988 ac_status=$?
30989 grep -v '^ *+' conftest.er1 >conftest.err
30990 rm -f conftest.er1
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } && {
30994 test -z "$ac_c_werror_flag" ||
30995 test ! -s conftest.err
30996 } && test -s conftest$ac_exeext &&
30997 $as_test_x conftest$ac_exeext; then
30998 ac_cv_lib_tds_tds_version=yes
30999 else
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ac_cv_lib_tds_tds_version=no
31006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31007 conftest$ac_exeext conftest.$ac_ext
31008 LIBS=$ac_check_lib_save_LIBS
31010 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31011 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31012 if test $ac_cv_lib_tds_tds_version = yes; then
31013 AST_FREETDS_FOUND=yes
31014 else
31015 AST_FREETDS_FOUND=no
31019 if test "${AST_FREETDS_FOUND}" = "yes"; then
31020 FREETDS_LIB="-ltds "
31021 FREETDS_HEADER_FOUND="1"
31022 if test "x${FREETDS_DIR}" != "x"; then
31023 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
31024 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
31025 saved_cppflags="${CPPFLAGS}"
31026 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
31027 if test "xtds.h" != "x" ; then
31028 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
31029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31030 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31031 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31035 ac_res=`eval echo '${'$as_ac_Header'}'`
31036 { echo "$as_me:$LINENO: result: $ac_res" >&5
31037 echo "${ECHO_T}$ac_res" >&6; }
31038 else
31039 # Is the header compilable?
31040 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31041 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31042 cat >conftest.$ac_ext <<_ACEOF
31043 /* confdefs.h. */
31044 _ACEOF
31045 cat confdefs.h >>conftest.$ac_ext
31046 cat >>conftest.$ac_ext <<_ACEOF
31047 /* end confdefs.h. */
31048 $ac_includes_default
31049 #include <${FREETDS_DIR}/include/tds.h>
31050 _ACEOF
31051 rm -f conftest.$ac_objext
31052 if { (ac_try="$ac_compile"
31053 case "(($ac_try" in
31054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31056 esac
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_compile") 2>conftest.er1
31059 ac_status=$?
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } && {
31065 test -z "$ac_c_werror_flag" ||
31066 test ! -s conftest.err
31067 } && test -s conftest.$ac_objext; then
31068 ac_header_compiler=yes
31069 else
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 ac_header_compiler=no
31076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31078 echo "${ECHO_T}$ac_header_compiler" >&6; }
31080 # Is the header present?
31081 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31082 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31083 cat >conftest.$ac_ext <<_ACEOF
31084 /* confdefs.h. */
31085 _ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h. */
31089 #include <${FREETDS_DIR}/include/tds.h>
31090 _ACEOF
31091 if { (ac_try="$ac_cpp conftest.$ac_ext"
31092 case "(($ac_try" in
31093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094 *) ac_try_echo=$ac_try;;
31095 esac
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31098 ac_status=$?
31099 grep -v '^ *+' conftest.er1 >conftest.err
31100 rm -f conftest.er1
31101 cat conftest.err >&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); } >/dev/null && {
31104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31105 test ! -s conftest.err
31106 }; then
31107 ac_header_preproc=yes
31108 else
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ac_header_preproc=no
31115 rm -f conftest.err conftest.$ac_ext
31116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31117 echo "${ECHO_T}$ac_header_preproc" >&6; }
31119 # So? What about this header?
31120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31121 yes:no: )
31122 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31123 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31124 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31125 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31126 ac_header_preproc=yes
31128 no:yes:* )
31129 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31130 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31131 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31132 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31134 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31135 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31136 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31137 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31138 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31139 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31140 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31141 ( cat <<\_ASBOX
31142 ## ------------------------------- ##
31143 ## Report this to www.asterisk.org ##
31144 ## ------------------------------- ##
31145 _ASBOX
31146 ) | sed "s/^/$as_me: WARNING: /" >&2
31148 esac
31149 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31150 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154 eval "$as_ac_Header=\$ac_header_preproc"
31156 ac_res=`eval echo '${'$as_ac_Header'}'`
31157 { echo "$as_me:$LINENO: result: $ac_res" >&5
31158 echo "${ECHO_T}$ac_res" >&6; }
31161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31162 FREETDS_HEADER_FOUND=1
31163 else
31164 FREETDS_HEADER_FOUND=0
31169 CPPFLAGS="${saved_cppflags}"
31170 else
31171 if test "xtds.h" != "x" ; then
31172 if test "${ac_cv_header_tds_h+set}" = set; then
31173 { echo "$as_me:$LINENO: checking for tds.h" >&5
31174 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31175 if test "${ac_cv_header_tds_h+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31179 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31180 else
31181 # Is the header compilable?
31182 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31183 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31184 cat >conftest.$ac_ext <<_ACEOF
31185 /* confdefs.h. */
31186 _ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h. */
31190 $ac_includes_default
31191 #include <tds.h>
31192 _ACEOF
31193 rm -f conftest.$ac_objext
31194 if { (ac_try="$ac_compile"
31195 case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31198 esac
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_compile") 2>conftest.er1
31201 ac_status=$?
31202 grep -v '^ *+' conftest.er1 >conftest.err
31203 rm -f conftest.er1
31204 cat conftest.err >&5
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); } && {
31207 test -z "$ac_c_werror_flag" ||
31208 test ! -s conftest.err
31209 } && test -s conftest.$ac_objext; then
31210 ac_header_compiler=yes
31211 else
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31215 ac_header_compiler=no
31218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31220 echo "${ECHO_T}$ac_header_compiler" >&6; }
31222 # Is the header present?
31223 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31224 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31225 cat >conftest.$ac_ext <<_ACEOF
31226 /* confdefs.h. */
31227 _ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31231 #include <tds.h>
31232 _ACEOF
31233 if { (ac_try="$ac_cpp conftest.$ac_ext"
31234 case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237 esac
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31240 ac_status=$?
31241 grep -v '^ *+' conftest.er1 >conftest.err
31242 rm -f conftest.er1
31243 cat conftest.err >&5
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); } >/dev/null && {
31246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31247 test ! -s conftest.err
31248 }; then
31249 ac_header_preproc=yes
31250 else
31251 echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31254 ac_header_preproc=no
31257 rm -f conftest.err conftest.$ac_ext
31258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31259 echo "${ECHO_T}$ac_header_preproc" >&6; }
31261 # So? What about this header?
31262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31263 yes:no: )
31264 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31265 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31266 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31267 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31268 ac_header_preproc=yes
31270 no:yes:* )
31271 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31272 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31274 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31276 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31277 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31278 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31279 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31280 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31281 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31282 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31283 ( cat <<\_ASBOX
31284 ## ------------------------------- ##
31285 ## Report this to www.asterisk.org ##
31286 ## ------------------------------- ##
31287 _ASBOX
31288 ) | sed "s/^/$as_me: WARNING: /" >&2
31290 esac
31291 { echo "$as_me:$LINENO: checking for tds.h" >&5
31292 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31293 if test "${ac_cv_header_tds_h+set}" = set; then
31294 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 else
31296 ac_cv_header_tds_h=$ac_header_preproc
31298 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31299 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31302 if test $ac_cv_header_tds_h = yes; then
31303 FREETDS_HEADER_FOUND=1
31304 else
31305 FREETDS_HEADER_FOUND=0
31311 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31312 if test -n "${FREETDS_MANDATORY}" ;
31313 then
31314 { echo "$as_me:$LINENO: ***" >&5
31315 echo "$as_me: ***" >&6;}
31316 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31317 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31318 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31319 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31321 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31322 exit 1
31324 FREETDS_LIB=""
31325 FREETDS_INCLUDE=""
31326 PBX_FREETDS=0
31327 else
31328 PBX_FREETDS=1
31330 cat >>confdefs.h <<_ACEOF
31331 #define HAVE_FREETDS 1
31332 _ACEOF
31335 elif test -n "${FREETDS_MANDATORY}";
31336 then
31337 { echo "$as_me:$LINENO: ***" >&5
31338 echo "$as_me: ***" >&6;}
31339 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31340 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31341 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31342 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31343 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31344 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31345 exit 1
31349 if test "${PBX_FREETDS}" != "0";
31350 then
31351 if test "${FREETDS_DIR}x" = "x";
31352 then
31353 for tds_dir in /usr /usr/local;
31355 if test -f "${tds_dir}/include/tdsver.h";
31356 then
31357 FREETDS_DIR="${tds_dir}"
31359 done
31361 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
31362 *0.64*)
31363 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
31365 *0.63*)
31366 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
31368 *0.62*)
31369 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
31372 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31374 esac
31378 if test "${USE_TERMCAP}" != "no"; then
31379 pbxlibdir=""
31380 if test "x${TERMCAP_DIR}" != "x"; then
31381 if test -d ${TERMCAP_DIR}/lib; then
31382 pbxlibdir="-L${TERMCAP_DIR}/lib"
31383 else
31384 pbxlibdir="-L${TERMCAP_DIR}"
31387 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31388 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31389 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 else
31392 ac_check_lib_save_LIBS=$LIBS
31393 LIBS="-ltermcap ${pbxlibdir} $LIBS"
31394 cat >conftest.$ac_ext <<_ACEOF
31395 /* confdefs.h. */
31396 _ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h. */
31401 /* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
31404 #ifdef __cplusplus
31405 extern "C"
31406 #endif
31407 char tgetent ();
31409 main ()
31411 return tgetent ();
31413 return 0;
31415 _ACEOF
31416 rm -f conftest.$ac_objext conftest$ac_exeext
31417 if { (ac_try="$ac_link"
31418 case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31421 esac
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_link") 2>conftest.er1
31424 ac_status=$?
31425 grep -v '^ *+' conftest.er1 >conftest.err
31426 rm -f conftest.er1
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } && {
31430 test -z "$ac_c_werror_flag" ||
31431 test ! -s conftest.err
31432 } && test -s conftest$ac_exeext &&
31433 $as_test_x conftest$ac_exeext; then
31434 ac_cv_lib_termcap_tgetent=yes
31435 else
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31439 ac_cv_lib_termcap_tgetent=no
31442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31443 conftest$ac_exeext conftest.$ac_ext
31444 LIBS=$ac_check_lib_save_LIBS
31446 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31447 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31448 if test $ac_cv_lib_termcap_tgetent = yes; then
31449 AST_TERMCAP_FOUND=yes
31450 else
31451 AST_TERMCAP_FOUND=no
31455 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31456 TERMCAP_LIB="-ltermcap "
31457 TERMCAP_HEADER_FOUND="1"
31458 if test "x${TERMCAP_DIR}" != "x"; then
31459 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31460 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
31461 saved_cppflags="${CPPFLAGS}"
31462 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31463 if test "x" != "x" ; then
31464 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
31465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31466 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31467 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 ac_res=`eval echo '${'$as_ac_Header'}'`
31472 { echo "$as_me:$LINENO: result: $ac_res" >&5
31473 echo "${ECHO_T}$ac_res" >&6; }
31474 else
31475 # Is the header compilable?
31476 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31477 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31478 cat >conftest.$ac_ext <<_ACEOF
31479 /* confdefs.h. */
31480 _ACEOF
31481 cat confdefs.h >>conftest.$ac_ext
31482 cat >>conftest.$ac_ext <<_ACEOF
31483 /* end confdefs.h. */
31484 $ac_includes_default
31485 #include <${TERMCAP_DIR}/include/>
31486 _ACEOF
31487 rm -f conftest.$ac_objext
31488 if { (ac_try="$ac_compile"
31489 case "(($ac_try" in
31490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31492 esac
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_compile") 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest.$ac_objext; then
31504 ac_header_compiler=yes
31505 else
31506 echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31509 ac_header_compiler=no
31512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31514 echo "${ECHO_T}$ac_header_compiler" >&6; }
31516 # Is the header present?
31517 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31518 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31519 cat >conftest.$ac_ext <<_ACEOF
31520 /* confdefs.h. */
31521 _ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31525 #include <${TERMCAP_DIR}/include/>
31526 _ACEOF
31527 if { (ac_try="$ac_cpp conftest.$ac_ext"
31528 case "(($ac_try" in
31529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31530 *) ac_try_echo=$ac_try;;
31531 esac
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31534 ac_status=$?
31535 grep -v '^ *+' conftest.er1 >conftest.err
31536 rm -f conftest.er1
31537 cat conftest.err >&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); } >/dev/null && {
31540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31541 test ! -s conftest.err
31542 }; then
31543 ac_header_preproc=yes
31544 else
31545 echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31548 ac_header_preproc=no
31551 rm -f conftest.err conftest.$ac_ext
31552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31553 echo "${ECHO_T}$ac_header_preproc" >&6; }
31555 # So? What about this header?
31556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31557 yes:no: )
31558 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31559 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31560 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31561 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31562 ac_header_preproc=yes
31564 no:yes:* )
31565 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31566 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31567 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31568 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31570 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31571 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31572 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31573 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31574 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31575 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31576 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31577 ( cat <<\_ASBOX
31578 ## ------------------------------- ##
31579 ## Report this to www.asterisk.org ##
31580 ## ------------------------------- ##
31581 _ASBOX
31582 ) | sed "s/^/$as_me: WARNING: /" >&2
31584 esac
31585 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31586 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31589 else
31590 eval "$as_ac_Header=\$ac_header_preproc"
31592 ac_res=`eval echo '${'$as_ac_Header'}'`
31593 { echo "$as_me:$LINENO: result: $ac_res" >&5
31594 echo "${ECHO_T}$ac_res" >&6; }
31597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598 TERMCAP_HEADER_FOUND=1
31599 else
31600 TERMCAP_HEADER_FOUND=0
31605 CPPFLAGS="${saved_cppflags}"
31606 else
31607 if test "x" != "x" ; then
31608 if test "${ac_cv_header_+set}" = set; then
31609 { echo "$as_me:$LINENO: checking for " >&5
31610 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31611 if test "${ac_cv_header_+set}" = set; then
31612 echo $ECHO_N "(cached) $ECHO_C" >&6
31614 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31615 echo "${ECHO_T}$ac_cv_header_" >&6; }
31616 else
31617 # Is the header compilable?
31618 { echo "$as_me:$LINENO: checking usability" >&5
31619 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31620 cat >conftest.$ac_ext <<_ACEOF
31621 /* confdefs.h. */
31622 _ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h. */
31626 $ac_includes_default
31627 #include <>
31628 _ACEOF
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31634 esac
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636 (eval "$ac_compile") 2>conftest.er1
31637 ac_status=$?
31638 grep -v '^ *+' conftest.er1 >conftest.err
31639 rm -f conftest.er1
31640 cat conftest.err >&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } && {
31643 test -z "$ac_c_werror_flag" ||
31644 test ! -s conftest.err
31645 } && test -s conftest.$ac_objext; then
31646 ac_header_compiler=yes
31647 else
31648 echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31651 ac_header_compiler=no
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31656 echo "${ECHO_T}$ac_header_compiler" >&6; }
31658 # Is the header present?
31659 { echo "$as_me:$LINENO: checking presence" >&5
31660 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h. */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 #include <>
31668 _ACEOF
31669 if { (ac_try="$ac_cpp conftest.$ac_ext"
31670 case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31676 ac_status=$?
31677 grep -v '^ *+' conftest.er1 >conftest.err
31678 rm -f conftest.er1
31679 cat conftest.err >&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); } >/dev/null && {
31682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31683 test ! -s conftest.err
31684 }; then
31685 ac_header_preproc=yes
31686 else
31687 echo "$as_me: failed program was:" >&5
31688 sed 's/^/| /' conftest.$ac_ext >&5
31690 ac_header_preproc=no
31693 rm -f conftest.err conftest.$ac_ext
31694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31695 echo "${ECHO_T}$ac_header_preproc" >&6; }
31697 # So? What about this header?
31698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31699 yes:no: )
31700 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31701 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31702 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31703 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31704 ac_header_preproc=yes
31706 no:yes:* )
31707 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31708 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31709 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31710 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31711 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31712 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31713 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31714 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31715 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31716 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31717 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31718 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31719 ( cat <<\_ASBOX
31720 ## ------------------------------- ##
31721 ## Report this to www.asterisk.org ##
31722 ## ------------------------------- ##
31723 _ASBOX
31724 ) | sed "s/^/$as_me: WARNING: /" >&2
31726 esac
31727 { echo "$as_me:$LINENO: checking for " >&5
31728 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31729 if test "${ac_cv_header_+set}" = set; then
31730 echo $ECHO_N "(cached) $ECHO_C" >&6
31731 else
31732 ac_cv_header_=$ac_header_preproc
31734 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31735 echo "${ECHO_T}$ac_cv_header_" >&6; }
31738 if test $ac_cv_header_ = yes; then
31739 TERMCAP_HEADER_FOUND=1
31740 else
31741 TERMCAP_HEADER_FOUND=0
31747 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
31748 if test -n "${TERMCAP_MANDATORY}" ;
31749 then
31750 { echo "$as_me:$LINENO: ***" >&5
31751 echo "$as_me: ***" >&6;}
31752 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
31753 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
31754 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
31755 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
31756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31757 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31758 exit 1
31760 TERMCAP_LIB=""
31761 TERMCAP_INCLUDE=""
31762 PBX_TERMCAP=0
31763 else
31764 PBX_TERMCAP=1
31766 cat >>confdefs.h <<_ACEOF
31767 #define HAVE_TERMCAP 1
31768 _ACEOF
31771 elif test -n "${TERMCAP_MANDATORY}";
31772 then
31773 { echo "$as_me:$LINENO: ***" >&5
31774 echo "$as_me: ***" >&6;}
31775 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
31776 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
31777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31780 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31781 exit 1
31787 if test "${USE_TINFO}" != "no"; then
31788 pbxlibdir=""
31789 if test "x${TINFO_DIR}" != "x"; then
31790 if test -d ${TINFO_DIR}/lib; then
31791 pbxlibdir="-L${TINFO_DIR}/lib"
31792 else
31793 pbxlibdir="-L${TINFO_DIR}"
31796 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31797 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31798 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31800 else
31801 ac_check_lib_save_LIBS=$LIBS
31802 LIBS="-ltinfo ${pbxlibdir} $LIBS"
31803 cat >conftest.$ac_ext <<_ACEOF
31804 /* confdefs.h. */
31805 _ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31810 /* Override any GCC internal prototype to avoid an error.
31811 Use char because int might match the return type of a GCC
31812 builtin and then its argument prototype would still apply. */
31813 #ifdef __cplusplus
31814 extern "C"
31815 #endif
31816 char tgetent ();
31818 main ()
31820 return tgetent ();
31822 return 0;
31824 _ACEOF
31825 rm -f conftest.$ac_objext conftest$ac_exeext
31826 if { (ac_try="$ac_link"
31827 case "(($ac_try" in
31828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31830 esac
31831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31832 (eval "$ac_link") 2>conftest.er1
31833 ac_status=$?
31834 grep -v '^ *+' conftest.er1 >conftest.err
31835 rm -f conftest.er1
31836 cat conftest.err >&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } && {
31839 test -z "$ac_c_werror_flag" ||
31840 test ! -s conftest.err
31841 } && test -s conftest$ac_exeext &&
31842 $as_test_x conftest$ac_exeext; then
31843 ac_cv_lib_tinfo_tgetent=yes
31844 else
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_cv_lib_tinfo_tgetent=no
31851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31852 conftest$ac_exeext conftest.$ac_ext
31853 LIBS=$ac_check_lib_save_LIBS
31855 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31856 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31857 if test $ac_cv_lib_tinfo_tgetent = yes; then
31858 AST_TINFO_FOUND=yes
31859 else
31860 AST_TINFO_FOUND=no
31864 if test "${AST_TINFO_FOUND}" = "yes"; then
31865 TINFO_LIB="-ltinfo "
31866 TINFO_HEADER_FOUND="1"
31867 if test "x${TINFO_DIR}" != "x"; then
31868 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31869 TINFO_INCLUDE="-I${TINFO_DIR}/include"
31870 saved_cppflags="${CPPFLAGS}"
31871 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
31872 if test "x" != "x" ; then
31873 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
31874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31875 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31876 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31878 echo $ECHO_N "(cached) $ECHO_C" >&6
31880 ac_res=`eval echo '${'$as_ac_Header'}'`
31881 { echo "$as_me:$LINENO: result: $ac_res" >&5
31882 echo "${ECHO_T}$ac_res" >&6; }
31883 else
31884 # Is the header compilable?
31885 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
31886 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
31887 cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h. */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31893 $ac_includes_default
31894 #include <${TINFO_DIR}/include/>
31895 _ACEOF
31896 rm -f conftest.$ac_objext
31897 if { (ac_try="$ac_compile"
31898 case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31901 esac
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_compile") 2>conftest.er1
31904 ac_status=$?
31905 grep -v '^ *+' conftest.er1 >conftest.err
31906 rm -f conftest.er1
31907 cat conftest.err >&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); } && {
31910 test -z "$ac_c_werror_flag" ||
31911 test ! -s conftest.err
31912 } && test -s conftest.$ac_objext; then
31913 ac_header_compiler=yes
31914 else
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 ac_header_compiler=no
31921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31923 echo "${ECHO_T}$ac_header_compiler" >&6; }
31925 # Is the header present?
31926 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
31927 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
31928 cat >conftest.$ac_ext <<_ACEOF
31929 /* confdefs.h. */
31930 _ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 #include <${TINFO_DIR}/include/>
31935 _ACEOF
31936 if { (ac_try="$ac_cpp conftest.$ac_ext"
31937 case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31943 ac_status=$?
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } >/dev/null && {
31949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31950 test ! -s conftest.err
31951 }; then
31952 ac_header_preproc=yes
31953 else
31954 echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31957 ac_header_preproc=no
31960 rm -f conftest.err conftest.$ac_ext
31961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31962 echo "${ECHO_T}$ac_header_preproc" >&6; }
31964 # So? What about this header?
31965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31966 yes:no: )
31967 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31968 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31969 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
31970 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
31971 ac_header_preproc=yes
31973 no:yes:* )
31974 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
31975 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
31976 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
31977 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
31978 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
31979 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
31980 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31981 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31982 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
31983 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31984 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
31985 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31986 ( cat <<\_ASBOX
31987 ## ------------------------------- ##
31988 ## Report this to www.asterisk.org ##
31989 ## ------------------------------- ##
31990 _ASBOX
31991 ) | sed "s/^/$as_me: WARNING: /" >&2
31993 esac
31994 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31995 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31998 else
31999 eval "$as_ac_Header=\$ac_header_preproc"
32001 ac_res=`eval echo '${'$as_ac_Header'}'`
32002 { echo "$as_me:$LINENO: result: $ac_res" >&5
32003 echo "${ECHO_T}$ac_res" >&6; }
32006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32007 TINFO_HEADER_FOUND=1
32008 else
32009 TINFO_HEADER_FOUND=0
32014 CPPFLAGS="${saved_cppflags}"
32015 else
32016 if test "x" != "x" ; then
32017 if test "${ac_cv_header_+set}" = set; then
32018 { echo "$as_me:$LINENO: checking for " >&5
32019 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32020 if test "${ac_cv_header_+set}" = set; then
32021 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32024 echo "${ECHO_T}$ac_cv_header_" >&6; }
32025 else
32026 # Is the header compilable?
32027 { echo "$as_me:$LINENO: checking usability" >&5
32028 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32029 cat >conftest.$ac_ext <<_ACEOF
32030 /* confdefs.h. */
32031 _ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 $ac_includes_default
32036 #include <>
32037 _ACEOF
32038 rm -f conftest.$ac_objext
32039 if { (ac_try="$ac_compile"
32040 case "(($ac_try" in
32041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042 *) ac_try_echo=$ac_try;;
32043 esac
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_compile") 2>conftest.er1
32046 ac_status=$?
32047 grep -v '^ *+' conftest.er1 >conftest.err
32048 rm -f conftest.er1
32049 cat conftest.err >&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } && {
32052 test -z "$ac_c_werror_flag" ||
32053 test ! -s conftest.err
32054 } && test -s conftest.$ac_objext; then
32055 ac_header_compiler=yes
32056 else
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32060 ac_header_compiler=no
32063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32065 echo "${ECHO_T}$ac_header_compiler" >&6; }
32067 # Is the header present?
32068 { echo "$as_me:$LINENO: checking presence" >&5
32069 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32070 cat >conftest.$ac_ext <<_ACEOF
32071 /* confdefs.h. */
32072 _ACEOF
32073 cat confdefs.h >>conftest.$ac_ext
32074 cat >>conftest.$ac_ext <<_ACEOF
32075 /* end confdefs.h. */
32076 #include <>
32077 _ACEOF
32078 if { (ac_try="$ac_cpp conftest.$ac_ext"
32079 case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32085 ac_status=$?
32086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } >/dev/null && {
32091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32092 test ! -s conftest.err
32093 }; then
32094 ac_header_preproc=yes
32095 else
32096 echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.$ac_ext >&5
32099 ac_header_preproc=no
32102 rm -f conftest.err conftest.$ac_ext
32103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32104 echo "${ECHO_T}$ac_header_preproc" >&6; }
32106 # So? What about this header?
32107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32108 yes:no: )
32109 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32110 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32111 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32112 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32113 ac_header_preproc=yes
32115 no:yes:* )
32116 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32117 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32118 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32119 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32120 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32121 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32122 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32123 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32124 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32125 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32126 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32127 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32128 ( cat <<\_ASBOX
32129 ## ------------------------------- ##
32130 ## Report this to www.asterisk.org ##
32131 ## ------------------------------- ##
32132 _ASBOX
32133 ) | sed "s/^/$as_me: WARNING: /" >&2
32135 esac
32136 { echo "$as_me:$LINENO: checking for " >&5
32137 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32138 if test "${ac_cv_header_+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140 else
32141 ac_cv_header_=$ac_header_preproc
32143 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32144 echo "${ECHO_T}$ac_cv_header_" >&6; }
32147 if test $ac_cv_header_ = yes; then
32148 TINFO_HEADER_FOUND=1
32149 else
32150 TINFO_HEADER_FOUND=0
32156 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32157 if test -n "${TINFO_MANDATORY}" ;
32158 then
32159 { echo "$as_me:$LINENO: ***" >&5
32160 echo "$as_me: ***" >&6;}
32161 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32162 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32163 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32164 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32166 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32167 exit 1
32169 TINFO_LIB=""
32170 TINFO_INCLUDE=""
32171 PBX_TINFO=0
32172 else
32173 PBX_TINFO=1
32175 cat >>confdefs.h <<_ACEOF
32176 #define HAVE_TINFO 1
32177 _ACEOF
32180 elif test -n "${TINFO_MANDATORY}";
32181 then
32182 { echo "$as_me:$LINENO: ***" >&5
32183 echo "$as_me: ***" >&6;}
32184 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32185 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32186 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32187 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32188 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32189 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32190 exit 1
32195 if test "${host_os}" != "linux-gnu" ; then
32196 tonezone_extra="-lm"
32200 if test "${USE_TONEZONE}" != "no"; then
32201 pbxlibdir=""
32202 if test "x${TONEZONE_DIR}" != "x"; then
32203 if test -d ${TONEZONE_DIR}/lib; then
32204 pbxlibdir="-L${TONEZONE_DIR}/lib"
32205 else
32206 pbxlibdir="-L${TONEZONE_DIR}"
32209 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32210 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32211 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32213 else
32214 ac_check_lib_save_LIBS=$LIBS
32215 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32216 cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h. */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 /* Override any GCC internal prototype to avoid an error.
32224 Use char because int might match the return type of a GCC
32225 builtin and then its argument prototype would still apply. */
32226 #ifdef __cplusplus
32227 extern "C"
32228 #endif
32229 char tone_zone_find ();
32231 main ()
32233 return tone_zone_find ();
32235 return 0;
32237 _ACEOF
32238 rm -f conftest.$ac_objext conftest$ac_exeext
32239 if { (ac_try="$ac_link"
32240 case "(($ac_try" in
32241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242 *) ac_try_echo=$ac_try;;
32243 esac
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_link") 2>conftest.er1
32246 ac_status=$?
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } && {
32252 test -z "$ac_c_werror_flag" ||
32253 test ! -s conftest.err
32254 } && test -s conftest$ac_exeext &&
32255 $as_test_x conftest$ac_exeext; then
32256 ac_cv_lib_tonezone_tone_zone_find=yes
32257 else
32258 echo "$as_me: failed program was:" >&5
32259 sed 's/^/| /' conftest.$ac_ext >&5
32261 ac_cv_lib_tonezone_tone_zone_find=no
32264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32265 conftest$ac_exeext conftest.$ac_ext
32266 LIBS=$ac_check_lib_save_LIBS
32268 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32269 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32270 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32271 AST_TONEZONE_FOUND=yes
32272 else
32273 AST_TONEZONE_FOUND=no
32277 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32278 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
32279 TONEZONE_HEADER_FOUND="1"
32280 if test "x${TONEZONE_DIR}" != "x"; then
32281 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
32282 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
32283 saved_cppflags="${CPPFLAGS}"
32284 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32285 if test "xzaptel/tonezone.h" != "x" ; then
32286 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
32287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32288 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32289 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 ac_res=`eval echo '${'$as_ac_Header'}'`
32294 { echo "$as_me:$LINENO: result: $ac_res" >&5
32295 echo "${ECHO_T}$ac_res" >&6; }
32296 else
32297 # Is the header compilable?
32298 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32299 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32300 cat >conftest.$ac_ext <<_ACEOF
32301 /* confdefs.h. */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 $ac_includes_default
32307 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32308 _ACEOF
32309 rm -f conftest.$ac_objext
32310 if { (ac_try="$ac_compile"
32311 case "(($ac_try" in
32312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32314 esac
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_compile") 2>conftest.er1
32317 ac_status=$?
32318 grep -v '^ *+' conftest.er1 >conftest.err
32319 rm -f conftest.er1
32320 cat conftest.err >&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); } && {
32323 test -z "$ac_c_werror_flag" ||
32324 test ! -s conftest.err
32325 } && test -s conftest.$ac_objext; then
32326 ac_header_compiler=yes
32327 else
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32331 ac_header_compiler=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32336 echo "${ECHO_T}$ac_header_compiler" >&6; }
32338 # Is the header present?
32339 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32340 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32341 cat >conftest.$ac_ext <<_ACEOF
32342 /* confdefs.h. */
32343 _ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h. */
32347 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32348 _ACEOF
32349 if { (ac_try="$ac_cpp conftest.$ac_ext"
32350 case "(($ac_try" in
32351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352 *) ac_try_echo=$ac_try;;
32353 esac
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32356 ac_status=$?
32357 grep -v '^ *+' conftest.er1 >conftest.err
32358 rm -f conftest.er1
32359 cat conftest.err >&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } >/dev/null && {
32362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32363 test ! -s conftest.err
32364 }; then
32365 ac_header_preproc=yes
32366 else
32367 echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.$ac_ext >&5
32370 ac_header_preproc=no
32373 rm -f conftest.err conftest.$ac_ext
32374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32375 echo "${ECHO_T}$ac_header_preproc" >&6; }
32377 # So? What about this header?
32378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32379 yes:no: )
32380 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32381 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32382 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32383 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32384 ac_header_preproc=yes
32386 no:yes:* )
32387 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32388 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32389 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32390 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32391 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32392 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32393 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32394 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32396 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32397 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32398 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32399 ( cat <<\_ASBOX
32400 ## ------------------------------- ##
32401 ## Report this to www.asterisk.org ##
32402 ## ------------------------------- ##
32403 _ASBOX
32404 ) | sed "s/^/$as_me: WARNING: /" >&2
32406 esac
32407 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32408 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32411 else
32412 eval "$as_ac_Header=\$ac_header_preproc"
32414 ac_res=`eval echo '${'$as_ac_Header'}'`
32415 { echo "$as_me:$LINENO: result: $ac_res" >&5
32416 echo "${ECHO_T}$ac_res" >&6; }
32419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32420 TONEZONE_HEADER_FOUND=1
32421 else
32422 TONEZONE_HEADER_FOUND=0
32427 CPPFLAGS="${saved_cppflags}"
32428 else
32429 if test "xzaptel/tonezone.h" != "x" ; then
32430 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32431 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32432 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32433 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32436 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32437 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32438 else
32439 # Is the header compilable?
32440 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
32441 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
32442 cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h. */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32448 $ac_includes_default
32449 #include <zaptel/tonezone.h>
32450 _ACEOF
32451 rm -f conftest.$ac_objext
32452 if { (ac_try="$ac_compile"
32453 case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456 esac
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32459 ac_status=$?
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } && {
32465 test -z "$ac_c_werror_flag" ||
32466 test ! -s conftest.err
32467 } && test -s conftest.$ac_objext; then
32468 ac_header_compiler=yes
32469 else
32470 echo "$as_me: failed program was:" >&5
32471 sed 's/^/| /' conftest.$ac_ext >&5
32473 ac_header_compiler=no
32476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32478 echo "${ECHO_T}$ac_header_compiler" >&6; }
32480 # Is the header present?
32481 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32482 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32483 cat >conftest.$ac_ext <<_ACEOF
32484 /* confdefs.h. */
32485 _ACEOF
32486 cat confdefs.h >>conftest.$ac_ext
32487 cat >>conftest.$ac_ext <<_ACEOF
32488 /* end confdefs.h. */
32489 #include <zaptel/tonezone.h>
32490 _ACEOF
32491 if { (ac_try="$ac_cpp conftest.$ac_ext"
32492 case "(($ac_try" in
32493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32494 *) ac_try_echo=$ac_try;;
32495 esac
32496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32498 ac_status=$?
32499 grep -v '^ *+' conftest.er1 >conftest.err
32500 rm -f conftest.er1
32501 cat conftest.err >&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } >/dev/null && {
32504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32505 test ! -s conftest.err
32506 }; then
32507 ac_header_preproc=yes
32508 else
32509 echo "$as_me: failed program was:" >&5
32510 sed 's/^/| /' conftest.$ac_ext >&5
32512 ac_header_preproc=no
32515 rm -f conftest.err conftest.$ac_ext
32516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32517 echo "${ECHO_T}$ac_header_preproc" >&6; }
32519 # So? What about this header?
32520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32521 yes:no: )
32522 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32523 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32524 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32525 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32526 ac_header_preproc=yes
32528 no:yes:* )
32529 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32530 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32531 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32532 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32533 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32534 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32535 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32536 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32537 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32538 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32539 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32540 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32541 ( cat <<\_ASBOX
32542 ## ------------------------------- ##
32543 ## Report this to www.asterisk.org ##
32544 ## ------------------------------- ##
32545 _ASBOX
32546 ) | sed "s/^/$as_me: WARNING: /" >&2
32548 esac
32549 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32550 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32551 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32552 echo $ECHO_N "(cached) $ECHO_C" >&6
32553 else
32554 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32556 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32557 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32560 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32561 TONEZONE_HEADER_FOUND=1
32562 else
32563 TONEZONE_HEADER_FOUND=0
32569 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32570 if test -n "${TONEZONE_MANDATORY}" ;
32571 then
32572 { echo "$as_me:$LINENO: ***" >&5
32573 echo "$as_me: ***" >&6;}
32574 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32575 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32576 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32577 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32578 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32579 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32580 exit 1
32582 TONEZONE_LIB=""
32583 TONEZONE_INCLUDE=""
32584 PBX_TONEZONE=0
32585 else
32586 PBX_TONEZONE=1
32588 cat >>confdefs.h <<_ACEOF
32589 #define HAVE_TONEZONE 1
32590 _ACEOF
32593 elif test -n "${TONEZONE_MANDATORY}";
32594 then
32595 { echo "$as_me:$LINENO: ***" >&5
32596 echo "$as_me: ***" >&6;}
32597 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
32598 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
32599 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32600 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32601 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32602 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32603 exit 1
32609 if test "${USE_USB}" != "no"; then
32610 pbxlibdir=""
32611 if test "x${USB_DIR}" != "x"; then
32612 if test -d ${USB_DIR}/lib; then
32613 pbxlibdir="-L${USB_DIR}/lib"
32614 else
32615 pbxlibdir="-L${USB_DIR}"
32618 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
32619 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
32620 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623 ac_check_lib_save_LIBS=$LIBS
32624 LIBS="-lusb ${pbxlibdir} $LIBS"
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. */
32632 /* Override any GCC internal prototype to avoid an error.
32633 Use char because int might match the return type of a GCC
32634 builtin and then its argument prototype would still apply. */
32635 #ifdef __cplusplus
32636 extern "C"
32637 #endif
32638 char usb_init ();
32640 main ()
32642 return usb_init ();
32644 return 0;
32646 _ACEOF
32647 rm -f conftest.$ac_objext conftest$ac_exeext
32648 if { (ac_try="$ac_link"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32652 esac
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_link") 2>conftest.er1
32655 ac_status=$?
32656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && {
32661 test -z "$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32663 } && test -s conftest$ac_exeext &&
32664 $as_test_x conftest$ac_exeext; then
32665 ac_cv_lib_usb_usb_init=yes
32666 else
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_cv_lib_usb_usb_init=no
32673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32674 conftest$ac_exeext conftest.$ac_ext
32675 LIBS=$ac_check_lib_save_LIBS
32677 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
32678 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32679 if test $ac_cv_lib_usb_usb_init = yes; then
32680 AST_USB_FOUND=yes
32681 else
32682 AST_USB_FOUND=no
32686 if test "${AST_USB_FOUND}" = "yes"; then
32687 USB_LIB="-lusb "
32688 USB_HEADER_FOUND="1"
32689 if test "x${USB_DIR}" != "x"; then
32690 USB_LIB="${pbxlibdir} ${USB_LIB}"
32691 USB_INCLUDE="-I${USB_DIR}/include"
32692 saved_cppflags="${CPPFLAGS}"
32693 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
32694 if test "xusb.h" != "x" ; then
32695 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
32696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32697 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32698 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32702 ac_res=`eval echo '${'$as_ac_Header'}'`
32703 { echo "$as_me:$LINENO: result: $ac_res" >&5
32704 echo "${ECHO_T}$ac_res" >&6; }
32705 else
32706 # Is the header compilable?
32707 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
32708 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
32709 cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h. */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h. */
32715 $ac_includes_default
32716 #include <${USB_DIR}/include/usb.h>
32717 _ACEOF
32718 rm -f conftest.$ac_objext
32719 if { (ac_try="$ac_compile"
32720 case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_compile") 2>conftest.er1
32726 ac_status=$?
32727 grep -v '^ *+' conftest.er1 >conftest.err
32728 rm -f conftest.er1
32729 cat conftest.err >&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } && {
32732 test -z "$ac_c_werror_flag" ||
32733 test ! -s conftest.err
32734 } && test -s conftest.$ac_objext; then
32735 ac_header_compiler=yes
32736 else
32737 echo "$as_me: failed program was:" >&5
32738 sed 's/^/| /' conftest.$ac_ext >&5
32740 ac_header_compiler=no
32743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32745 echo "${ECHO_T}$ac_header_compiler" >&6; }
32747 # Is the header present?
32748 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
32749 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
32750 cat >conftest.$ac_ext <<_ACEOF
32751 /* confdefs.h. */
32752 _ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 #include <${USB_DIR}/include/usb.h>
32757 _ACEOF
32758 if { (ac_try="$ac_cpp conftest.$ac_ext"
32759 case "(($ac_try" in
32760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761 *) ac_try_echo=$ac_try;;
32762 esac
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32765 ac_status=$?
32766 grep -v '^ *+' conftest.er1 >conftest.err
32767 rm -f conftest.er1
32768 cat conftest.err >&5
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } >/dev/null && {
32771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32772 test ! -s conftest.err
32773 }; then
32774 ac_header_preproc=yes
32775 else
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32779 ac_header_preproc=no
32782 rm -f conftest.err conftest.$ac_ext
32783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32784 echo "${ECHO_T}$ac_header_preproc" >&6; }
32786 # So? What about this header?
32787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32788 yes:no: )
32789 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32790 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
32792 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
32793 ac_header_preproc=yes
32795 no:yes:* )
32796 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
32797 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
32798 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
32799 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
32800 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
32801 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
32802 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
32803 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32804 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
32805 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
32806 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
32807 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
32808 ( cat <<\_ASBOX
32809 ## ------------------------------- ##
32810 ## Report this to www.asterisk.org ##
32811 ## ------------------------------- ##
32812 _ASBOX
32813 ) | sed "s/^/$as_me: WARNING: /" >&2
32815 esac
32816 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32817 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32819 echo $ECHO_N "(cached) $ECHO_C" >&6
32820 else
32821 eval "$as_ac_Header=\$ac_header_preproc"
32823 ac_res=`eval echo '${'$as_ac_Header'}'`
32824 { echo "$as_me:$LINENO: result: $ac_res" >&5
32825 echo "${ECHO_T}$ac_res" >&6; }
32828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32829 USB_HEADER_FOUND=1
32830 else
32831 USB_HEADER_FOUND=0
32836 CPPFLAGS="${saved_cppflags}"
32837 else
32838 if test "xusb.h" != "x" ; then
32839 if test "${ac_cv_header_usb_h+set}" = set; then
32840 { echo "$as_me:$LINENO: checking for usb.h" >&5
32841 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32842 if test "${ac_cv_header_usb_h+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32846 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32847 else
32848 # Is the header compilable?
32849 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32850 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32851 cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h. */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 $ac_includes_default
32858 #include <usb.h>
32859 _ACEOF
32860 rm -f conftest.$ac_objext
32861 if { (ac_try="$ac_compile"
32862 case "(($ac_try" in
32863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864 *) ac_try_echo=$ac_try;;
32865 esac
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_compile") 2>conftest.er1
32868 ac_status=$?
32869 grep -v '^ *+' conftest.er1 >conftest.err
32870 rm -f conftest.er1
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } && {
32874 test -z "$ac_c_werror_flag" ||
32875 test ! -s conftest.err
32876 } && test -s conftest.$ac_objext; then
32877 ac_header_compiler=yes
32878 else
32879 echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32882 ac_header_compiler=no
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32887 echo "${ECHO_T}$ac_header_compiler" >&6; }
32889 # Is the header present?
32890 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32891 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32892 cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h. */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h. */
32898 #include <usb.h>
32899 _ACEOF
32900 if { (ac_try="$ac_cpp conftest.$ac_ext"
32901 case "(($ac_try" in
32902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903 *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32907 ac_status=$?
32908 grep -v '^ *+' conftest.er1 >conftest.err
32909 rm -f conftest.er1
32910 cat conftest.err >&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } >/dev/null && {
32913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32914 test ! -s conftest.err
32915 }; then
32916 ac_header_preproc=yes
32917 else
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32921 ac_header_preproc=no
32924 rm -f conftest.err conftest.$ac_ext
32925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32926 echo "${ECHO_T}$ac_header_preproc" >&6; }
32928 # So? What about this header?
32929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32930 yes:no: )
32931 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32932 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32933 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32934 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32935 ac_header_preproc=yes
32937 no:yes:* )
32938 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32939 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32940 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32941 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32942 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32943 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32944 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32945 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32946 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32947 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32948 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32949 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32950 ( cat <<\_ASBOX
32951 ## ------------------------------- ##
32952 ## Report this to www.asterisk.org ##
32953 ## ------------------------------- ##
32954 _ASBOX
32955 ) | sed "s/^/$as_me: WARNING: /" >&2
32957 esac
32958 { echo "$as_me:$LINENO: checking for usb.h" >&5
32959 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32960 if test "${ac_cv_header_usb_h+set}" = set; then
32961 echo $ECHO_N "(cached) $ECHO_C" >&6
32962 else
32963 ac_cv_header_usb_h=$ac_header_preproc
32965 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32966 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32969 if test $ac_cv_header_usb_h = yes; then
32970 USB_HEADER_FOUND=1
32971 else
32972 USB_HEADER_FOUND=0
32978 if test "x${USB_HEADER_FOUND}" = "x0" ; then
32979 if test -n "${USB_MANDATORY}" ;
32980 then
32981 { echo "$as_me:$LINENO: ***" >&5
32982 echo "$as_me: ***" >&6;}
32983 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
32984 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
32985 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
32986 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
32987 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32988 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32989 exit 1
32991 USB_LIB=""
32992 USB_INCLUDE=""
32993 PBX_USB=0
32994 else
32995 PBX_USB=1
32997 cat >>confdefs.h <<_ACEOF
32998 #define HAVE_USB 1
32999 _ACEOF
33002 elif test -n "${USB_MANDATORY}";
33003 then
33004 { echo "$as_me:$LINENO: ***" >&5
33005 echo "$as_me: ***" >&6;}
33006 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33007 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33008 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33009 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33010 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33011 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33012 exit 1
33018 if test "${USE_VORBIS}" != "no"; then
33019 pbxlibdir=""
33020 if test "x${VORBIS_DIR}" != "x"; then
33021 if test -d ${VORBIS_DIR}/lib; then
33022 pbxlibdir="-L${VORBIS_DIR}/lib"
33023 else
33024 pbxlibdir="-L${VORBIS_DIR}"
33027 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33028 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33029 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33030 echo $ECHO_N "(cached) $ECHO_C" >&6
33031 else
33032 ac_check_lib_save_LIBS=$LIBS
33033 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33034 cat >conftest.$ac_ext <<_ACEOF
33035 /* confdefs.h. */
33036 _ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h. */
33041 /* Override any GCC internal prototype to avoid an error.
33042 Use char because int might match the return type of a GCC
33043 builtin and then its argument prototype would still apply. */
33044 #ifdef __cplusplus
33045 extern "C"
33046 #endif
33047 char vorbis_info_init ();
33049 main ()
33051 return vorbis_info_init ();
33053 return 0;
33055 _ACEOF
33056 rm -f conftest.$ac_objext conftest$ac_exeext
33057 if { (ac_try="$ac_link"
33058 case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061 esac
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_link") 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest$ac_exeext &&
33073 $as_test_x conftest$ac_exeext; then
33074 ac_cv_lib_vorbis_vorbis_info_init=yes
33075 else
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 ac_cv_lib_vorbis_vorbis_info_init=no
33082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33083 conftest$ac_exeext conftest.$ac_ext
33084 LIBS=$ac_check_lib_save_LIBS
33086 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33087 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33088 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33089 AST_VORBIS_FOUND=yes
33090 else
33091 AST_VORBIS_FOUND=no
33095 if test "${AST_VORBIS_FOUND}" = "yes"; then
33096 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
33097 VORBIS_HEADER_FOUND="1"
33098 if test "x${VORBIS_DIR}" != "x"; then
33099 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
33100 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
33101 saved_cppflags="${CPPFLAGS}"
33102 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
33103 if test "xvorbis/codec.h" != "x" ; then
33104 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
33105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33106 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33107 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33111 ac_res=`eval echo '${'$as_ac_Header'}'`
33112 { echo "$as_me:$LINENO: result: $ac_res" >&5
33113 echo "${ECHO_T}$ac_res" >&6; }
33114 else
33115 # Is the header compilable?
33116 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33117 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33118 cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h. */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 $ac_includes_default
33125 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33126 _ACEOF
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33132 esac
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33135 ac_status=$?
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } && {
33141 test -z "$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33143 } && test -s conftest.$ac_objext; then
33144 ac_header_compiler=yes
33145 else
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33149 ac_header_compiler=no
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33154 echo "${ECHO_T}$ac_header_compiler" >&6; }
33156 # Is the header present?
33157 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33158 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33159 cat >conftest.$ac_ext <<_ACEOF
33160 /* confdefs.h. */
33161 _ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33165 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33166 _ACEOF
33167 if { (ac_try="$ac_cpp conftest.$ac_ext"
33168 case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33174 ac_status=$?
33175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } >/dev/null && {
33180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33181 test ! -s conftest.err
33182 }; then
33183 ac_header_preproc=yes
33184 else
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33188 ac_header_preproc=no
33191 rm -f conftest.err conftest.$ac_ext
33192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33193 echo "${ECHO_T}$ac_header_preproc" >&6; }
33195 # So? What about this header?
33196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33197 yes:no: )
33198 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33199 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33200 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33201 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33202 ac_header_preproc=yes
33204 no:yes:* )
33205 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33206 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33207 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33208 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33209 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33210 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33211 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33212 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33213 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33214 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33215 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33216 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33217 ( cat <<\_ASBOX
33218 ## ------------------------------- ##
33219 ## Report this to www.asterisk.org ##
33220 ## ------------------------------- ##
33221 _ASBOX
33222 ) | sed "s/^/$as_me: WARNING: /" >&2
33224 esac
33225 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33226 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33228 echo $ECHO_N "(cached) $ECHO_C" >&6
33229 else
33230 eval "$as_ac_Header=\$ac_header_preproc"
33232 ac_res=`eval echo '${'$as_ac_Header'}'`
33233 { echo "$as_me:$LINENO: result: $ac_res" >&5
33234 echo "${ECHO_T}$ac_res" >&6; }
33237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33238 VORBIS_HEADER_FOUND=1
33239 else
33240 VORBIS_HEADER_FOUND=0
33245 CPPFLAGS="${saved_cppflags}"
33246 else
33247 if test "xvorbis/codec.h" != "x" ; then
33248 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33249 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33250 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33251 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33255 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33256 else
33257 # Is the header compilable?
33258 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33259 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33260 cat >conftest.$ac_ext <<_ACEOF
33261 /* confdefs.h. */
33262 _ACEOF
33263 cat confdefs.h >>conftest.$ac_ext
33264 cat >>conftest.$ac_ext <<_ACEOF
33265 /* end confdefs.h. */
33266 $ac_includes_default
33267 #include <vorbis/codec.h>
33268 _ACEOF
33269 rm -f conftest.$ac_objext
33270 if { (ac_try="$ac_compile"
33271 case "(($ac_try" in
33272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273 *) ac_try_echo=$ac_try;;
33274 esac
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276 (eval "$ac_compile") 2>conftest.er1
33277 ac_status=$?
33278 grep -v '^ *+' conftest.er1 >conftest.err
33279 rm -f conftest.er1
33280 cat conftest.err >&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } && {
33283 test -z "$ac_c_werror_flag" ||
33284 test ! -s conftest.err
33285 } && test -s conftest.$ac_objext; then
33286 ac_header_compiler=yes
33287 else
33288 echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33291 ac_header_compiler=no
33294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33296 echo "${ECHO_T}$ac_header_compiler" >&6; }
33298 # Is the header present?
33299 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33300 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33301 cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h. */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 #include <vorbis/codec.h>
33308 _ACEOF
33309 if { (ac_try="$ac_cpp conftest.$ac_ext"
33310 case "(($ac_try" in
33311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312 *) ac_try_echo=$ac_try;;
33313 esac
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33316 ac_status=$?
33317 grep -v '^ *+' conftest.er1 >conftest.err
33318 rm -f conftest.er1
33319 cat conftest.err >&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } >/dev/null && {
33322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33323 test ! -s conftest.err
33324 }; then
33325 ac_header_preproc=yes
33326 else
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_header_preproc=no
33333 rm -f conftest.err conftest.$ac_ext
33334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33335 echo "${ECHO_T}$ac_header_preproc" >&6; }
33337 # So? What about this header?
33338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33339 yes:no: )
33340 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33341 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33342 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33343 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33344 ac_header_preproc=yes
33346 no:yes:* )
33347 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33348 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33349 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33350 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33351 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33352 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33353 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33354 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33355 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33356 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33357 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33358 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33359 ( cat <<\_ASBOX
33360 ## ------------------------------- ##
33361 ## Report this to www.asterisk.org ##
33362 ## ------------------------------- ##
33363 _ASBOX
33364 ) | sed "s/^/$as_me: WARNING: /" >&2
33366 esac
33367 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33368 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33369 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33370 echo $ECHO_N "(cached) $ECHO_C" >&6
33371 else
33372 ac_cv_header_vorbis_codec_h=$ac_header_preproc
33374 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33375 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33378 if test $ac_cv_header_vorbis_codec_h = yes; then
33379 VORBIS_HEADER_FOUND=1
33380 else
33381 VORBIS_HEADER_FOUND=0
33387 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33388 if test -n "${VORBIS_MANDATORY}" ;
33389 then
33390 { echo "$as_me:$LINENO: ***" >&5
33391 echo "$as_me: ***" >&6;}
33392 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33393 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
33394 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
33395 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
33396 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33397 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33398 exit 1
33400 VORBIS_LIB=""
33401 VORBIS_INCLUDE=""
33402 PBX_VORBIS=0
33403 else
33404 PBX_VORBIS=1
33406 cat >>confdefs.h <<_ACEOF
33407 #define HAVE_VORBIS 1
33408 _ACEOF
33411 elif test -n "${VORBIS_MANDATORY}";
33412 then
33413 { echo "$as_me:$LINENO: ***" >&5
33414 echo "$as_me: ***" >&6;}
33415 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
33416 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
33417 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33418 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33419 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33420 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33421 exit 1
33426 ac_ext=cpp
33427 ac_cpp='$CXXCPP $CPPFLAGS'
33428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33433 if test "${USE_VPB}" != "no"; then
33434 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
33435 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
33436 saved_libs="${LIBS}"
33437 saved_cppflags="${CPPFLAGS}"
33438 if test "x${VPB_DIR}" != "x"; then
33439 if test -d ${VPB_DIR}/lib; then
33440 vpblibdir=${VPB_DIR}/lib
33441 else
33442 vpblibdir=${VPB_DIR}
33444 LIBS="${LIBS} -L${vpblibdir}"
33445 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
33447 LIBS="${LIBS} -lvpb -lpthread"
33448 cat >conftest.$ac_ext <<_ACEOF
33450 /* confdefs.h. */
33451 _ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h. */
33455 #include <vpbapi.h>
33457 main ()
33459 int q = vpb_open(0,0);
33461 return 0;
33464 _ACEOF
33465 rm -f conftest.$ac_objext conftest$ac_exeext
33466 if { (ac_try="$ac_link"
33467 case "(($ac_try" in
33468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33470 esac
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_link") 2>conftest.er1
33473 ac_status=$?
33474 grep -v '^ *+' conftest.er1 >conftest.err
33475 rm -f conftest.er1
33476 cat conftest.err >&5
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } && {
33479 test -z "$ac_cxx_werror_flag" ||
33480 test ! -s conftest.err
33481 } && test -s conftest$ac_exeext &&
33482 $as_test_x conftest$ac_exeext; then
33483 { echo "$as_me:$LINENO: result: yes" >&5
33484 echo "${ECHO_T}yes" >&6; }
33485 ac_cv_lib_vpb_vpb_open="yes"
33487 else
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 { echo "$as_me:$LINENO: result: no" >&5
33492 echo "${ECHO_T}no" >&6; }
33493 ac_cv_lib_vpb_vpb_open="no"
33498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33499 conftest$ac_exeext conftest.$ac_ext
33500 LIBS="${saved_libs}"
33501 CPPFLAGS="${saved_cppflags}"
33502 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33503 VPB_LIB="-lvpb"
33504 if test "${VPB_DIR}" != ""; then
33505 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33506 VPB_INCLUDE="-I${VPB_DIR}/include"
33508 PBX_VPB=1
33510 cat >>confdefs.h <<\_ACEOF
33511 #define HAVE_VPB 1
33512 _ACEOF
33514 elif test -n "${VPB_MANDATORY}"; then
33515 { echo "$as_me:$LINENO: ***" >&5
33516 echo "$as_me: ***" >&6;}
33517 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33518 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33519 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33520 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33521 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33522 echo "$as_me: *** including --without-vpb." >&6;}
33523 exit 1
33527 ac_ext=c
33528 ac_cpp='$CPP $CPPFLAGS'
33529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33535 if test "${USE_ZLIB}" != "no"; then
33536 pbxlibdir=""
33537 if test "x${ZLIB_DIR}" != "x"; then
33538 if test -d ${ZLIB_DIR}/lib; then
33539 pbxlibdir="-L${ZLIB_DIR}/lib"
33540 else
33541 pbxlibdir="-L${ZLIB_DIR}"
33544 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33545 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33546 if test "${ac_cv_lib_z_compress+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549 ac_check_lib_save_LIBS=$LIBS
33550 LIBS="-lz ${pbxlibdir} $LIBS"
33551 cat >conftest.$ac_ext <<_ACEOF
33552 /* confdefs.h. */
33553 _ACEOF
33554 cat confdefs.h >>conftest.$ac_ext
33555 cat >>conftest.$ac_ext <<_ACEOF
33556 /* end confdefs.h. */
33558 /* Override any GCC internal prototype to avoid an error.
33559 Use char because int might match the return type of a GCC
33560 builtin and then its argument prototype would still apply. */
33561 #ifdef __cplusplus
33562 extern "C"
33563 #endif
33564 char compress ();
33566 main ()
33568 return compress ();
33570 return 0;
33572 _ACEOF
33573 rm -f conftest.$ac_objext conftest$ac_exeext
33574 if { (ac_try="$ac_link"
33575 case "(($ac_try" in
33576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33577 *) ac_try_echo=$ac_try;;
33578 esac
33579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33580 (eval "$ac_link") 2>conftest.er1
33581 ac_status=$?
33582 grep -v '^ *+' conftest.er1 >conftest.err
33583 rm -f conftest.er1
33584 cat conftest.err >&5
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); } && {
33587 test -z "$ac_c_werror_flag" ||
33588 test ! -s conftest.err
33589 } && test -s conftest$ac_exeext &&
33590 $as_test_x conftest$ac_exeext; then
33591 ac_cv_lib_z_compress=yes
33592 else
33593 echo "$as_me: failed program was:" >&5
33594 sed 's/^/| /' conftest.$ac_ext >&5
33596 ac_cv_lib_z_compress=no
33599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33600 conftest$ac_exeext conftest.$ac_ext
33601 LIBS=$ac_check_lib_save_LIBS
33603 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
33604 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33605 if test $ac_cv_lib_z_compress = yes; then
33606 AST_ZLIB_FOUND=yes
33607 else
33608 AST_ZLIB_FOUND=no
33612 if test "${AST_ZLIB_FOUND}" = "yes"; then
33613 ZLIB_LIB="-lz "
33614 ZLIB_HEADER_FOUND="1"
33615 if test "x${ZLIB_DIR}" != "x"; then
33616 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
33617 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
33618 saved_cppflags="${CPPFLAGS}"
33619 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
33620 if test "xzlib.h" != "x" ; then
33621 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
33622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33623 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33624 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 ac_res=`eval echo '${'$as_ac_Header'}'`
33629 { echo "$as_me:$LINENO: result: $ac_res" >&5
33630 echo "${ECHO_T}$ac_res" >&6; }
33631 else
33632 # Is the header compilable?
33633 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
33634 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
33635 cat >conftest.$ac_ext <<_ACEOF
33636 /* confdefs.h. */
33637 _ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33641 $ac_includes_default
33642 #include <${ZLIB_DIR}/include/zlib.h>
33643 _ACEOF
33644 rm -f conftest.$ac_objext
33645 if { (ac_try="$ac_compile"
33646 case "(($ac_try" in
33647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33648 *) ac_try_echo=$ac_try;;
33649 esac
33650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33651 (eval "$ac_compile") 2>conftest.er1
33652 ac_status=$?
33653 grep -v '^ *+' conftest.er1 >conftest.err
33654 rm -f conftest.er1
33655 cat conftest.err >&5
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); } && {
33658 test -z "$ac_c_werror_flag" ||
33659 test ! -s conftest.err
33660 } && test -s conftest.$ac_objext; then
33661 ac_header_compiler=yes
33662 else
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 ac_header_compiler=no
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33671 echo "${ECHO_T}$ac_header_compiler" >&6; }
33673 # Is the header present?
33674 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
33675 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
33676 cat >conftest.$ac_ext <<_ACEOF
33677 /* confdefs.h. */
33678 _ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h. */
33682 #include <${ZLIB_DIR}/include/zlib.h>
33683 _ACEOF
33684 if { (ac_try="$ac_cpp conftest.$ac_ext"
33685 case "(($ac_try" in
33686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33687 *) ac_try_echo=$ac_try;;
33688 esac
33689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33691 ac_status=$?
33692 grep -v '^ *+' conftest.er1 >conftest.err
33693 rm -f conftest.er1
33694 cat conftest.err >&5
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); } >/dev/null && {
33697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33698 test ! -s conftest.err
33699 }; then
33700 ac_header_preproc=yes
33701 else
33702 echo "$as_me: failed program was:" >&5
33703 sed 's/^/| /' conftest.$ac_ext >&5
33705 ac_header_preproc=no
33708 rm -f conftest.err conftest.$ac_ext
33709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33710 echo "${ECHO_T}$ac_header_preproc" >&6; }
33712 # So? What about this header?
33713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33714 yes:no: )
33715 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33716 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33717 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
33718 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
33719 ac_header_preproc=yes
33721 no:yes:* )
33722 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
33723 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
33724 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
33725 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
33726 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
33727 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
33728 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33729 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33730 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
33731 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
33732 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
33733 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
33734 ( cat <<\_ASBOX
33735 ## ------------------------------- ##
33736 ## Report this to www.asterisk.org ##
33737 ## ------------------------------- ##
33738 _ASBOX
33739 ) | sed "s/^/$as_me: WARNING: /" >&2
33741 esac
33742 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33743 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33746 else
33747 eval "$as_ac_Header=\$ac_header_preproc"
33749 ac_res=`eval echo '${'$as_ac_Header'}'`
33750 { echo "$as_me:$LINENO: result: $ac_res" >&5
33751 echo "${ECHO_T}$ac_res" >&6; }
33754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33755 ZLIB_HEADER_FOUND=1
33756 else
33757 ZLIB_HEADER_FOUND=0
33762 CPPFLAGS="${saved_cppflags}"
33763 else
33764 if test "xzlib.h" != "x" ; then
33765 if test "${ac_cv_header_zlib_h+set}" = set; then
33766 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33767 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33768 if test "${ac_cv_header_zlib_h+set}" = set; then
33769 echo $ECHO_N "(cached) $ECHO_C" >&6
33771 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33772 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33773 else
33774 # Is the header compilable?
33775 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33776 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33777 cat >conftest.$ac_ext <<_ACEOF
33778 /* confdefs.h. */
33779 _ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h. */
33783 $ac_includes_default
33784 #include <zlib.h>
33785 _ACEOF
33786 rm -f conftest.$ac_objext
33787 if { (ac_try="$ac_compile"
33788 case "(($ac_try" in
33789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790 *) ac_try_echo=$ac_try;;
33791 esac
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793 (eval "$ac_compile") 2>conftest.er1
33794 ac_status=$?
33795 grep -v '^ *+' conftest.er1 >conftest.err
33796 rm -f conftest.er1
33797 cat conftest.err >&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && {
33800 test -z "$ac_c_werror_flag" ||
33801 test ! -s conftest.err
33802 } && test -s conftest.$ac_objext; then
33803 ac_header_compiler=yes
33804 else
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_header_compiler=no
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33813 echo "${ECHO_T}$ac_header_compiler" >&6; }
33815 # Is the header present?
33816 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33817 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33818 cat >conftest.$ac_ext <<_ACEOF
33819 /* confdefs.h. */
33820 _ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h. */
33824 #include <zlib.h>
33825 _ACEOF
33826 if { (ac_try="$ac_cpp conftest.$ac_ext"
33827 case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33830 esac
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33833 ac_status=$?
33834 grep -v '^ *+' conftest.er1 >conftest.err
33835 rm -f conftest.er1
33836 cat conftest.err >&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } >/dev/null && {
33839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33840 test ! -s conftest.err
33841 }; then
33842 ac_header_preproc=yes
33843 else
33844 echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.$ac_ext >&5
33847 ac_header_preproc=no
33850 rm -f conftest.err conftest.$ac_ext
33851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33852 echo "${ECHO_T}$ac_header_preproc" >&6; }
33854 # So? What about this header?
33855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33856 yes:no: )
33857 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33858 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33860 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33861 ac_header_preproc=yes
33863 no:yes:* )
33864 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33865 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33866 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33867 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33868 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33869 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33870 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33871 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33872 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33873 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33874 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33875 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33876 ( cat <<\_ASBOX
33877 ## ------------------------------- ##
33878 ## Report this to www.asterisk.org ##
33879 ## ------------------------------- ##
33880 _ASBOX
33881 ) | sed "s/^/$as_me: WARNING: /" >&2
33883 esac
33884 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33885 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33886 if test "${ac_cv_header_zlib_h+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889 ac_cv_header_zlib_h=$ac_header_preproc
33891 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33892 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33895 if test $ac_cv_header_zlib_h = yes; then
33896 ZLIB_HEADER_FOUND=1
33897 else
33898 ZLIB_HEADER_FOUND=0
33904 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
33905 if test -n "${ZLIB_MANDATORY}" ;
33906 then
33907 { echo "$as_me:$LINENO: ***" >&5
33908 echo "$as_me: ***" >&6;}
33909 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
33910 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
33911 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
33912 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
33913 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33914 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33915 exit 1
33917 ZLIB_LIB=""
33918 ZLIB_INCLUDE=""
33919 PBX_ZLIB=0
33920 else
33921 PBX_ZLIB=1
33923 cat >>confdefs.h <<_ACEOF
33924 #define HAVE_ZLIB 1
33925 _ACEOF
33928 elif test -n "${ZLIB_MANDATORY}";
33929 then
33930 { echo "$as_me:$LINENO: ***" >&5
33931 echo "$as_me: ***" >&6;}
33932 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
33933 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
33934 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33935 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33936 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33937 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33938 exit 1
33943 if test "${USE_ZAPTEL}" != "no"; then
33944 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
33945 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
33946 saved_cppflags="${CPPFLAGS}"
33947 if test "x${ZAPTEL_DIR}" != "x"; then
33948 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33950 cat >conftest.$ac_ext <<_ACEOF
33952 /* confdefs.h. */
33953 _ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33957 #include <zaptel/zaptel.h>
33959 main ()
33961 int foo = ZT_DIAL_OP_CANCEL;
33963 return 0;
33966 _ACEOF
33967 rm -f conftest.$ac_objext
33968 if { (ac_try="$ac_compile"
33969 case "(($ac_try" in
33970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33971 *) ac_try_echo=$ac_try;;
33972 esac
33973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33974 (eval "$ac_compile") 2>conftest.er1
33975 ac_status=$?
33976 grep -v '^ *+' conftest.er1 >conftest.err
33977 rm -f conftest.er1
33978 cat conftest.err >&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); } && {
33981 test -z "$ac_c_werror_flag" ||
33982 test ! -s conftest.err
33983 } && test -s conftest.$ac_objext; then
33984 { echo "$as_me:$LINENO: result: yes" >&5
33985 echo "${ECHO_T}yes" >&6; }
33986 ac_cv_zaptel_h="yes"
33988 else
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 { echo "$as_me:$LINENO: result: no" >&5
33993 echo "${ECHO_T}no" >&6; }
33994 ac_cv_zaptel_h="no"
33999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34000 CPPFLAGS="${saved_cppflags}"
34001 if test "${ac_cv_zaptel_h}" = "yes"; then
34002 if test "${ZAPTEL_DIR}" != ""; then
34003 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
34005 PBX_ZAPTEL=1
34007 cat >>confdefs.h <<\_ACEOF
34008 #define HAVE_ZAPTEL 1
34009 _ACEOF
34011 elif test -n "${ZAPTEL_MANDATORY}";
34012 then
34013 { echo "$as_me:$LINENO: ***" >&5
34014 echo "$as_me: ***" >&6;}
34015 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34016 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34017 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34018 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34019 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34020 echo "$as_me: *** including --without-zaptel." >&6;}
34021 exit 1
34025 if test "${PBX_ZAPTEL}" = 1; then
34026 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34027 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34028 saved_cppflags="${CPPFLAGS}"
34029 if test "x${ZAPTEL_DIR}" != "x"; then
34030 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34032 cat >conftest.$ac_ext <<_ACEOF
34034 /* confdefs.h. */
34035 _ACEOF
34036 cat confdefs.h >>conftest.$ac_ext
34037 cat >>conftest.$ac_ext <<_ACEOF
34038 /* end confdefs.h. */
34039 #include <zaptel/zaptel.h>
34041 main ()
34043 int foo = ZT_EVENT_REMOVED;
34045 return 0;
34048 _ACEOF
34049 rm -f conftest.$ac_objext
34050 if { (ac_try="$ac_compile"
34051 case "(($ac_try" in
34052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34053 *) ac_try_echo=$ac_try;;
34054 esac
34055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34056 (eval "$ac_compile") 2>conftest.er1
34057 ac_status=$?
34058 grep -v '^ *+' conftest.er1 >conftest.err
34059 rm -f conftest.er1
34060 cat conftest.err >&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); } && {
34063 test -z "$ac_c_werror_flag" ||
34064 test ! -s conftest.err
34065 } && test -s conftest.$ac_objext; then
34066 { echo "$as_me:$LINENO: result: yes" >&5
34067 echo "${ECHO_T}yes" >&6; }
34068 ac_cv_zaptel_vldtmf="yes"
34070 else
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34074 { echo "$as_me:$LINENO: result: no" >&5
34075 echo "${ECHO_T}no" >&6; }
34076 ac_cv_zaptel_vldtmf="no"
34081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34082 CPPFLAGS="${saved_cppflags}"
34083 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34084 PBX_ZAPTEL_VLDTMF=1
34086 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34087 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34088 saved_cppflags="${CPPFLAGS}"
34089 if test "x${ZAPTEL_DIR}" != "x"; then
34090 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34092 cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h. */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34099 #include <zaptel/zaptel.h>
34101 main ()
34103 int foo = ZT_TCOP_ALLOCATE;
34105 return 0;
34108 _ACEOF
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34114 esac
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_compile") 2>conftest.er1
34117 ac_status=$?
34118 grep -v '^ *+' conftest.er1 >conftest.err
34119 rm -f conftest.er1
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } && {
34123 test -z "$ac_c_werror_flag" ||
34124 test ! -s conftest.err
34125 } && test -s conftest.$ac_objext; then
34126 { echo "$as_me:$LINENO: result: yes" >&5
34127 echo "${ECHO_T}yes" >&6; }
34128 ac_cv_zaptel_transcode="yes"
34130 else
34131 echo "$as_me: failed program was:" >&5
34132 sed 's/^/| /' conftest.$ac_ext >&5
34134 { echo "$as_me:$LINENO: result: no" >&5
34135 echo "${ECHO_T}no" >&6; }
34136 ac_cv_zaptel_transcode="no"
34141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34142 CPPFLAGS="${saved_cppflags}"
34143 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34144 PBX_ZAPTEL_TRANSCODE=1
34150 EDITLINE_LIB=""
34151 if test "x$TERMCAP_LIB" != "x" ; then
34152 EDITLINE_LIB="$TERMCAP_LIB"
34153 elif test "x$TINFO_LIB" != "x" ; then
34154 EDITLINE_LIB="$TINFO_LIB"
34155 elif test "x$CURSES_LIB" != "x" ; then
34156 EDITLINE_LIB="$CURSES_LIB"
34157 elif test "x$NCURSES_LIB" != "x" ; then
34158 EDITLINE_LIB="$NCURSES_LIB"
34159 else
34160 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34161 echo "$as_me: error: *** termcap support not found" >&2;}
34162 { (exit 1); exit 1; }; }
34166 if test "${ac_cv_header_h323_h+set}" = set; then
34167 { echo "$as_me:$LINENO: checking for h323.h" >&5
34168 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34169 if test "${ac_cv_header_h323_h+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34172 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34173 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34174 else
34175 # Is the header compilable?
34176 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34177 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34178 cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h. */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34184 $ac_includes_default
34185 #include <h323.h>
34186 _ACEOF
34187 rm -f conftest.$ac_objext
34188 if { (ac_try="$ac_compile"
34189 case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34192 esac
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_compile") 2>conftest.er1
34195 ac_status=$?
34196 grep -v '^ *+' conftest.er1 >conftest.err
34197 rm -f conftest.er1
34198 cat conftest.err >&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } && {
34201 test -z "$ac_c_werror_flag" ||
34202 test ! -s conftest.err
34203 } && test -s conftest.$ac_objext; then
34204 ac_header_compiler=yes
34205 else
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34209 ac_header_compiler=no
34212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34214 echo "${ECHO_T}$ac_header_compiler" >&6; }
34216 # Is the header present?
34217 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34218 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34219 cat >conftest.$ac_ext <<_ACEOF
34220 /* confdefs.h. */
34221 _ACEOF
34222 cat confdefs.h >>conftest.$ac_ext
34223 cat >>conftest.$ac_ext <<_ACEOF
34224 /* end confdefs.h. */
34225 #include <h323.h>
34226 _ACEOF
34227 if { (ac_try="$ac_cpp conftest.$ac_ext"
34228 case "(($ac_try" in
34229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230 *) ac_try_echo=$ac_try;;
34231 esac
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34234 ac_status=$?
34235 grep -v '^ *+' conftest.er1 >conftest.err
34236 rm -f conftest.er1
34237 cat conftest.err >&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); } >/dev/null && {
34240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34241 test ! -s conftest.err
34242 }; then
34243 ac_header_preproc=yes
34244 else
34245 echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34248 ac_header_preproc=no
34251 rm -f conftest.err conftest.$ac_ext
34252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34253 echo "${ECHO_T}$ac_header_preproc" >&6; }
34255 # So? What about this header?
34256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34257 yes:no: )
34258 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34259 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34260 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34261 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34262 ac_header_preproc=yes
34264 no:yes:* )
34265 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34266 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34267 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34268 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34270 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34272 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34273 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34274 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34275 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34276 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34277 ( cat <<\_ASBOX
34278 ## ------------------------------- ##
34279 ## Report this to www.asterisk.org ##
34280 ## ------------------------------- ##
34281 _ASBOX
34282 ) | sed "s/^/$as_me: WARNING: /" >&2
34284 esac
34285 { echo "$as_me:$LINENO: checking for h323.h" >&5
34286 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34287 if test "${ac_cv_header_h323_h+set}" = set; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290 ac_cv_header_h323_h=$ac_header_preproc
34292 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34293 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34296 if test $ac_cv_header_h323_h = yes; then
34297 PBX_H323=1
34298 else
34299 PBX_H323=0
34305 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34306 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34307 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34308 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34309 echo $ECHO_N "(cached) $ECHO_C" >&6
34311 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34312 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34313 else
34314 # Is the header compilable?
34315 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34316 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34317 cat >conftest.$ac_ext <<_ACEOF
34318 /* confdefs.h. */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323 $ac_includes_default
34324 #include <linux/compiler.h>
34325 _ACEOF
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34330 *) ac_try_echo=$ac_try;;
34331 esac
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333 (eval "$ac_compile") 2>conftest.er1
34334 ac_status=$?
34335 grep -v '^ *+' conftest.er1 >conftest.err
34336 rm -f conftest.er1
34337 cat conftest.err >&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); } && {
34340 test -z "$ac_c_werror_flag" ||
34341 test ! -s conftest.err
34342 } && test -s conftest.$ac_objext; then
34343 ac_header_compiler=yes
34344 else
34345 echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34348 ac_header_compiler=no
34351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34353 echo "${ECHO_T}$ac_header_compiler" >&6; }
34355 # Is the header present?
34356 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34357 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34358 cat >conftest.$ac_ext <<_ACEOF
34359 /* confdefs.h. */
34360 _ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h. */
34364 #include <linux/compiler.h>
34365 _ACEOF
34366 if { (ac_try="$ac_cpp conftest.$ac_ext"
34367 case "(($ac_try" in
34368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34369 *) ac_try_echo=$ac_try;;
34370 esac
34371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34373 ac_status=$?
34374 grep -v '^ *+' conftest.er1 >conftest.err
34375 rm -f conftest.er1
34376 cat conftest.err >&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } >/dev/null && {
34379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34380 test ! -s conftest.err
34381 }; then
34382 ac_header_preproc=yes
34383 else
34384 echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34387 ac_header_preproc=no
34390 rm -f conftest.err conftest.$ac_ext
34391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34392 echo "${ECHO_T}$ac_header_preproc" >&6; }
34394 # So? What about this header?
34395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34396 yes:no: )
34397 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
34398 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34399 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
34400 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
34401 ac_header_preproc=yes
34403 no:yes:* )
34404 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
34405 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
34406 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
34407 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
34408 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
34409 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
34410 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
34411 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
34412 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
34413 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
34414 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
34415 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
34416 ( cat <<\_ASBOX
34417 ## ------------------------------- ##
34418 ## Report this to www.asterisk.org ##
34419 ## ------------------------------- ##
34420 _ASBOX
34421 ) | sed "s/^/$as_me: WARNING: /" >&2
34423 esac
34424 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34425 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34426 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 else
34429 ac_cv_header_linux_compiler_h=$ac_header_preproc
34431 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34432 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34435 if test $ac_cv_header_linux_compiler_h = yes; then
34437 cat >>confdefs.h <<_ACEOF
34438 #define HAVE_LINUX_COMPILER_H 1
34439 _ACEOF
34445 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34446 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34447 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34449 else
34450 cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h. */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34457 #include <linux/version.h>
34458 #ifdef HAVE_LINUX_COMPILER_H
34459 #include <linux/compiler.h>
34460 #endif
34463 #include <linux/ixjuser.h>
34464 _ACEOF
34465 rm -f conftest.$ac_objext
34466 if { (ac_try="$ac_compile"
34467 case "(($ac_try" in
34468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469 *) ac_try_echo=$ac_try;;
34470 esac
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_compile") 2>conftest.er1
34473 ac_status=$?
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } && {
34479 test -z "$ac_c_werror_flag" ||
34480 test ! -s conftest.err
34481 } && test -s conftest.$ac_objext; then
34482 ac_cv_header_linux_ixjuser_h=yes
34483 else
34484 echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34487 ac_cv_header_linux_ixjuser_h=no
34490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34492 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34493 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34494 if test $ac_cv_header_linux_ixjuser_h = yes; then
34495 PBX_IXJUSER=1
34496 else
34497 PBX_IXJUSER=0
34503 if test "${cross_compiling}" = "no";
34504 then
34505 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34506 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34507 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34509 else
34510 test "$cross_compiling" = yes &&
34511 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34512 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34513 { (exit 1); exit 1; }; }
34514 if test -r "/sbin/launchd"; then
34515 ac_cv_file__sbin_launchd=yes
34516 else
34517 ac_cv_file__sbin_launchd=no
34520 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34521 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34522 if test $ac_cv_file__sbin_launchd = yes; then
34524 cat >>confdefs.h <<\_ACEOF
34525 #define HAVE_SBIN_LAUNCHD 1
34526 _ACEOF
34532 PBX_GTK=0
34533 if test -n "$ac_tool_prefix"; then
34534 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34535 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34538 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34539 echo $ECHO_N "(cached) $ECHO_C" >&6
34540 else
34541 if test -n "$GTKCONFIG"; then
34542 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34543 else
34544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34545 for as_dir in $PATH
34547 IFS=$as_save_IFS
34548 test -z "$as_dir" && as_dir=.
34549 for ac_exec_ext in '' $ac_executable_extensions; do
34550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34551 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
34552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34553 break 2
34555 done
34556 done
34557 IFS=$as_save_IFS
34561 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34562 if test -n "$GTKCONFIG"; then
34563 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34564 echo "${ECHO_T}$GTKCONFIG" >&6; }
34565 else
34566 { echo "$as_me:$LINENO: result: no" >&5
34567 echo "${ECHO_T}no" >&6; }
34572 if test -z "$ac_cv_prog_GTKCONFIG"; then
34573 ac_ct_GTKCONFIG=$GTKCONFIG
34574 # Extract the first word of "gtk-config", so it can be a program name with args.
34575 set dummy gtk-config; ac_word=$2
34576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34578 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34580 else
34581 if test -n "$ac_ct_GTKCONFIG"; then
34582 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
34583 else
34584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34585 for as_dir in $PATH
34587 IFS=$as_save_IFS
34588 test -z "$as_dir" && as_dir=.
34589 for ac_exec_ext in '' $ac_executable_extensions; do
34590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34591 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
34592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34593 break 2
34595 done
34596 done
34597 IFS=$as_save_IFS
34601 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
34602 if test -n "$ac_ct_GTKCONFIG"; then
34603 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
34604 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34605 else
34606 { echo "$as_me:$LINENO: result: no" >&5
34607 echo "${ECHO_T}no" >&6; }
34610 if test "x$ac_ct_GTKCONFIG" = x; then
34611 GTKCONFIG="No"
34612 else
34613 case $cross_compiling:$ac_tool_warned in
34614 yes:)
34615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34616 whose name does not start with the host triplet. If you think this
34617 configuration is useful to you, please write to autoconf@gnu.org." >&5
34618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34619 whose name does not start with the host triplet. If you think this
34620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34621 ac_tool_warned=yes ;;
34622 esac
34623 GTKCONFIG=$ac_ct_GTKCONFIG
34625 else
34626 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
34629 if test ! "x${GTKCONFIG}" = xNo; then
34630 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
34631 GTK_LIB=$(${GTKCONFIG} --libs gthread)
34632 PBX_GTK=1
34634 cat >>confdefs.h <<\_ACEOF
34635 #define HAVE_GTK 1
34636 _ACEOF
34643 PBX_GTK2=0
34644 if test -n "$ac_tool_prefix"; then
34645 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34646 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34649 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34650 echo $ECHO_N "(cached) $ECHO_C" >&6
34651 else
34652 if test -n "$PKGCONFIG"; then
34653 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
34654 else
34655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34656 for as_dir in $PATH
34658 IFS=$as_save_IFS
34659 test -z "$as_dir" && as_dir=.
34660 for ac_exec_ext in '' $ac_executable_extensions; do
34661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34662 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
34663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34664 break 2
34666 done
34667 done
34668 IFS=$as_save_IFS
34672 PKGCONFIG=$ac_cv_prog_PKGCONFIG
34673 if test -n "$PKGCONFIG"; then
34674 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
34675 echo "${ECHO_T}$PKGCONFIG" >&6; }
34676 else
34677 { echo "$as_me:$LINENO: result: no" >&5
34678 echo "${ECHO_T}no" >&6; }
34683 if test -z "$ac_cv_prog_PKGCONFIG"; then
34684 ac_ct_PKGCONFIG=$PKGCONFIG
34685 # Extract the first word of "pkg-config", so it can be a program name with args.
34686 set dummy pkg-config; ac_word=$2
34687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34689 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692 if test -n "$ac_ct_PKGCONFIG"; then
34693 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
34694 else
34695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34696 for as_dir in $PATH
34698 IFS=$as_save_IFS
34699 test -z "$as_dir" && as_dir=.
34700 for ac_exec_ext in '' $ac_executable_extensions; do
34701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34702 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
34703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34704 break 2
34706 done
34707 done
34708 IFS=$as_save_IFS
34712 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
34713 if test -n "$ac_ct_PKGCONFIG"; then
34714 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
34715 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34716 else
34717 { echo "$as_me:$LINENO: result: no" >&5
34718 echo "${ECHO_T}no" >&6; }
34721 if test "x$ac_ct_PKGCONFIG" = x; then
34722 PKGCONFIG="No"
34723 else
34724 case $cross_compiling:$ac_tool_warned in
34725 yes:)
34726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34727 whose name does not start with the host triplet. If you think this
34728 configuration is useful to you, please write to autoconf@gnu.org." >&5
34729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34730 whose name does not start with the host triplet. If you think this
34731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34732 ac_tool_warned=yes ;;
34733 esac
34734 PKGCONFIG=$ac_ct_PKGCONFIG
34736 else
34737 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
34740 if test ! "x${PKGCONFIG}" = xNo; then
34741 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
34742 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
34743 PBX_GTK2=1
34745 cat >>confdefs.h <<\_ACEOF
34746 #define HAVE_GTK2 1
34747 _ACEOF
34754 if test "${USE_CURL}" != "no"; then
34755 if test -n "$ac_tool_prefix"; then
34756 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
34757 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
34758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34760 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34761 echo $ECHO_N "(cached) $ECHO_C" >&6
34762 else
34763 case $CURL_CONFIG in
34764 [\\/]* | ?:[\\/]*)
34765 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
34768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34769 for as_dir in $PATH
34771 IFS=$as_save_IFS
34772 test -z "$as_dir" && as_dir=.
34773 for ac_exec_ext in '' $ac_executable_extensions; do
34774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34775 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34777 break 2
34779 done
34780 done
34781 IFS=$as_save_IFS
34784 esac
34786 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
34787 if test -n "$CURL_CONFIG"; then
34788 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
34789 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34790 else
34791 { echo "$as_me:$LINENO: result: no" >&5
34792 echo "${ECHO_T}no" >&6; }
34797 if test -z "$ac_cv_path_CURL_CONFIG"; then
34798 ac_pt_CURL_CONFIG=$CURL_CONFIG
34799 # Extract the first word of "curl-config", so it can be a program name with args.
34800 set dummy curl-config; ac_word=$2
34801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34803 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34804 echo $ECHO_N "(cached) $ECHO_C" >&6
34805 else
34806 case $ac_pt_CURL_CONFIG in
34807 [\\/]* | ?:[\\/]*)
34808 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34812 for as_dir in $PATH
34814 IFS=$as_save_IFS
34815 test -z "$as_dir" && as_dir=.
34816 for ac_exec_ext in '' $ac_executable_extensions; do
34817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34818 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34820 break 2
34822 done
34823 done
34824 IFS=$as_save_IFS
34827 esac
34829 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
34830 if test -n "$ac_pt_CURL_CONFIG"; then
34831 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
34832 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34833 else
34834 { echo "$as_me:$LINENO: result: no" >&5
34835 echo "${ECHO_T}no" >&6; }
34838 if test "x$ac_pt_CURL_CONFIG" = x; then
34839 CURL_CONFIG="No"
34840 else
34841 case $cross_compiling:$ac_tool_warned in
34842 yes:)
34843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34844 whose name does not start with the host triplet. If you think this
34845 configuration is useful to you, please write to autoconf@gnu.org." >&5
34846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34847 whose name does not start with the host triplet. If you think this
34848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34849 ac_tool_warned=yes ;;
34850 esac
34851 CURL_CONFIG=$ac_pt_CURL_CONFIG
34853 else
34854 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
34857 if test ! x"${CURL_CONFIG}" = xNo; then
34858 # check for version
34859 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
34860 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
34861 CURL_LIB=$(${CURL_CONFIG} --libs)
34863 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
34864 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
34865 saved_cppflags="${CPPFLAGS}"
34866 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
34867 cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h. */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 #include <curl/curl.h>
34875 main ()
34877 curl_version();
34879 return 0;
34882 _ACEOF
34883 rm -f conftest.$ac_objext
34884 if { (ac_try="$ac_compile"
34885 case "(($ac_try" in
34886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34887 *) ac_try_echo=$ac_try;;
34888 esac
34889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34890 (eval "$ac_compile") 2>conftest.er1
34891 ac_status=$?
34892 grep -v '^ *+' conftest.er1 >conftest.err
34893 rm -f conftest.er1
34894 cat conftest.err >&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); } && {
34897 test -z "$ac_c_werror_flag" ||
34898 test ! -s conftest.err
34899 } && test -s conftest.$ac_objext; then
34901 { echo "$as_me:$LINENO: result: yes" >&5
34902 echo "${ECHO_T}yes" >&6; }
34903 ac_cv_curl_h="yes"
34905 else
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34910 { echo "$as_me:$LINENO: result: no" >&5
34911 echo "${ECHO_T}no" >&6; }
34912 ac_cv_curl_h="no"
34917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34918 CPPFLAGS="${saved_cppflags}"
34919 if test "${ac_cv_curl_h}" = "yes"; then
34920 PBX_CURL=1
34922 cat >>confdefs.h <<\_ACEOF
34923 #define HAVE_CURL 1
34924 _ACEOF
34931 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
34933 cat >confcache <<\_ACEOF
34934 # This file is a shell script that caches the results of configure
34935 # tests run on this system so they can be shared between configure
34936 # scripts and configure runs, see configure's option --config-cache.
34937 # It is not useful on other systems. If it contains results you don't
34938 # want to keep, you may remove or edit it.
34940 # config.status only pays attention to the cache file if you give it
34941 # the --recheck option to rerun configure.
34943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34945 # following values.
34947 _ACEOF
34949 # The following way of writing the cache mishandles newlines in values,
34950 # but we know of no workaround that is simple, portable, and efficient.
34951 # So, we kill variables containing newlines.
34952 # Ultrix sh set writes to stderr and can't be redirected directly,
34953 # and sets the high bit in the cache file unless we assign to the vars.
34955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34956 eval ac_val=\$$ac_var
34957 case $ac_val in #(
34958 *${as_nl}*)
34959 case $ac_var in #(
34960 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34961 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34962 esac
34963 case $ac_var in #(
34964 _ | IFS | as_nl) ;; #(
34965 *) $as_unset $ac_var ;;
34966 esac ;;
34967 esac
34968 done
34970 (set) 2>&1 |
34971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34972 *${as_nl}ac_space=\ *)
34973 # `set' does not quote correctly, so add quotes (double-quote
34974 # substitution turns \\\\ into \\, and sed turns \\ into \).
34975 sed -n \
34976 "s/'/'\\\\''/g;
34977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34978 ;; #(
34980 # `set' quotes correctly as required by POSIX, so do not add quotes.
34981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34983 esac |
34984 sort
34986 sed '
34987 /^ac_cv_env_/b end
34988 t clear
34989 :clear
34990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34991 t end
34992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34993 :end' >>confcache
34994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34995 if test -w "$cache_file"; then
34996 test "x$cache_file" != "x/dev/null" &&
34997 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34998 echo "$as_me: updating cache $cache_file" >&6;}
34999 cat confcache >$cache_file
35000 else
35001 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35002 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35005 rm -f confcache
35007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35008 # Let make expand exec_prefix.
35009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35011 DEFS=-DHAVE_CONFIG_H
35013 ac_libobjs=
35014 ac_ltlibobjs=
35015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35016 # 1. Remove the extension, and $U if already installed.
35017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35018 ac_i=`echo "$ac_i" | sed "$ac_script"`
35019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35020 # will be set to the directory where LIBOBJS objects are built.
35021 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35022 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35023 done
35024 LIBOBJS=$ac_libobjs
35026 LTLIBOBJS=$ac_ltlibobjs
35030 : ${CONFIG_STATUS=./config.status}
35031 ac_clean_files_save=$ac_clean_files
35032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35033 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35034 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35035 cat >$CONFIG_STATUS <<_ACEOF
35036 #! $SHELL
35037 # Generated by $as_me.
35038 # Run this file to recreate the current configuration.
35039 # Compiler output produced by configure, useful for debugging
35040 # configure, is in config.log if it exists.
35042 debug=false
35043 ac_cs_recheck=false
35044 ac_cs_silent=false
35045 SHELL=\${CONFIG_SHELL-$SHELL}
35046 _ACEOF
35048 cat >>$CONFIG_STATUS <<\_ACEOF
35049 ## --------------------- ##
35050 ## M4sh Initialization. ##
35051 ## --------------------- ##
35053 # Be more Bourne compatible
35054 DUALCASE=1; export DUALCASE # for MKS sh
35055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35056 emulate sh
35057 NULLCMD=:
35058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35059 # is contrary to our usage. Disable this feature.
35060 alias -g '${1+"$@"}'='"$@"'
35061 setopt NO_GLOB_SUBST
35062 else
35063 case `(set -o) 2>/dev/null` in
35064 *posix*) set -o posix ;;
35065 esac
35072 # PATH needs CR
35073 # Avoid depending upon Character Ranges.
35074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35077 as_cr_digits='0123456789'
35078 as_cr_alnum=$as_cr_Letters$as_cr_digits
35080 # The user is always right.
35081 if test "${PATH_SEPARATOR+set}" != set; then
35082 echo "#! /bin/sh" >conf$$.sh
35083 echo "exit 0" >>conf$$.sh
35084 chmod +x conf$$.sh
35085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35086 PATH_SEPARATOR=';'
35087 else
35088 PATH_SEPARATOR=:
35090 rm -f conf$$.sh
35093 # Support unset when possible.
35094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35095 as_unset=unset
35096 else
35097 as_unset=false
35101 # IFS
35102 # We need space, tab and new line, in precisely that order. Quoting is
35103 # there to prevent editors from complaining about space-tab.
35104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35105 # splitting by setting IFS to empty value.)
35106 as_nl='
35108 IFS=" "" $as_nl"
35110 # Find who we are. Look in the path if we contain no directory separator.
35111 case $0 in
35112 *[\\/]* ) as_myself=$0 ;;
35113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35114 for as_dir in $PATH
35116 IFS=$as_save_IFS
35117 test -z "$as_dir" && as_dir=.
35118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35119 done
35120 IFS=$as_save_IFS
35123 esac
35124 # We did not find ourselves, most probably we were run as `sh COMMAND'
35125 # in which case we are not to be found in the path.
35126 if test "x$as_myself" = x; then
35127 as_myself=$0
35129 if test ! -f "$as_myself"; then
35130 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35131 { (exit 1); exit 1; }
35134 # Work around bugs in pre-3.0 UWIN ksh.
35135 for as_var in ENV MAIL MAILPATH
35136 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35137 done
35138 PS1='$ '
35139 PS2='> '
35140 PS4='+ '
35142 # NLS nuisances.
35143 for as_var in \
35144 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35145 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35146 LC_TELEPHONE LC_TIME
35148 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35149 eval $as_var=C; export $as_var
35150 else
35151 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35153 done
35155 # Required to use basename.
35156 if expr a : '\(a\)' >/dev/null 2>&1 &&
35157 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35158 as_expr=expr
35159 else
35160 as_expr=false
35163 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35164 as_basename=basename
35165 else
35166 as_basename=false
35170 # Name of the executable.
35171 as_me=`$as_basename -- "$0" ||
35172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35173 X"$0" : 'X\(//\)$' \| \
35174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35175 echo X/"$0" |
35176 sed '/^.*\/\([^/][^/]*\)\/*$/{
35177 s//\1/
35180 /^X\/\(\/\/\)$/{
35181 s//\1/
35184 /^X\/\(\/\).*/{
35185 s//\1/
35188 s/.*/./; q'`
35190 # CDPATH.
35191 $as_unset CDPATH
35195 as_lineno_1=$LINENO
35196 as_lineno_2=$LINENO
35197 test "x$as_lineno_1" != "x$as_lineno_2" &&
35198 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35200 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35201 # uniformly replaced by the line number. The first 'sed' inserts a
35202 # line-number line after each line using $LINENO; the second 'sed'
35203 # does the real work. The second script uses 'N' to pair each
35204 # line-number line with the line containing $LINENO, and appends
35205 # trailing '-' during substitution so that $LINENO is not a special
35206 # case at line end.
35207 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35208 # scripts with optimization help from Paolo Bonzini. Blame Lee
35209 # E. McMahon (1931-1989) for sed's syntax. :-)
35210 sed -n '
35212 /[$]LINENO/=
35213 ' <$as_myself |
35214 sed '
35215 s/[$]LINENO.*/&-/
35216 t lineno
35218 :lineno
35220 :loop
35221 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35222 t loop
35223 s/-\n.*//
35224 ' >$as_me.lineno &&
35225 chmod +x "$as_me.lineno" ||
35226 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35227 { (exit 1); exit 1; }; }
35229 # Don't try to exec as it changes $[0], causing all sort of problems
35230 # (the dirname of $[0] is not the place where we might find the
35231 # original and so on. Autoconf is especially sensitive to this).
35232 . "./$as_me.lineno"
35233 # Exit status is that of the last command.
35234 exit
35238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35239 as_dirname=dirname
35240 else
35241 as_dirname=false
35244 ECHO_C= ECHO_N= ECHO_T=
35245 case `echo -n x` in
35246 -n*)
35247 case `echo 'x\c'` in
35248 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35249 *) ECHO_C='\c';;
35250 esac;;
35252 ECHO_N='-n';;
35253 esac
35255 if expr a : '\(a\)' >/dev/null 2>&1 &&
35256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35257 as_expr=expr
35258 else
35259 as_expr=false
35262 rm -f conf$$ conf$$.exe conf$$.file
35263 if test -d conf$$.dir; then
35264 rm -f conf$$.dir/conf$$.file
35265 else
35266 rm -f conf$$.dir
35267 mkdir conf$$.dir
35269 echo >conf$$.file
35270 if ln -s conf$$.file conf$$ 2>/dev/null; then
35271 as_ln_s='ln -s'
35272 # ... but there are two gotchas:
35273 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35274 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35275 # In both cases, we have to default to `cp -p'.
35276 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35277 as_ln_s='cp -p'
35278 elif ln conf$$.file conf$$ 2>/dev/null; then
35279 as_ln_s=ln
35280 else
35281 as_ln_s='cp -p'
35283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35284 rmdir conf$$.dir 2>/dev/null
35286 if mkdir -p . 2>/dev/null; then
35287 as_mkdir_p=:
35288 else
35289 test -d ./-p && rmdir ./-p
35290 as_mkdir_p=false
35293 if test -x / >/dev/null 2>&1; then
35294 as_test_x='test -x'
35295 else
35296 if ls -dL / >/dev/null 2>&1; then
35297 as_ls_L_option=L
35298 else
35299 as_ls_L_option=
35301 as_test_x='
35302 eval sh -c '\''
35303 if test -d "$1"; then
35304 test -d "$1/.";
35305 else
35306 case $1 in
35307 -*)set "./$1";;
35308 esac;
35309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35310 ???[sx]*):;;*)false;;esac;fi
35311 '\'' sh
35314 as_executable_p=$as_test_x
35316 # Sed expression to map a string onto a valid CPP name.
35317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35319 # Sed expression to map a string onto a valid variable name.
35320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35323 exec 6>&1
35325 # Save the log message, to keep $[0] and so on meaningful, and to
35326 # report actual input values of CONFIG_FILES etc. instead of their
35327 # values after options handling.
35328 ac_log="
35329 This file was extended by asterisk $as_me 1.4, which was
35330 generated by GNU Autoconf 2.61. Invocation command line was
35332 CONFIG_FILES = $CONFIG_FILES
35333 CONFIG_HEADERS = $CONFIG_HEADERS
35334 CONFIG_LINKS = $CONFIG_LINKS
35335 CONFIG_COMMANDS = $CONFIG_COMMANDS
35336 $ $0 $@
35338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35341 _ACEOF
35343 cat >>$CONFIG_STATUS <<_ACEOF
35344 # Files that config.status was made for.
35345 config_files="$ac_config_files"
35346 config_headers="$ac_config_headers"
35348 _ACEOF
35350 cat >>$CONFIG_STATUS <<\_ACEOF
35351 ac_cs_usage="\
35352 \`$as_me' instantiates files from templates according to the
35353 current configuration.
35355 Usage: $0 [OPTIONS] [FILE]...
35357 -h, --help print this help, then exit
35358 -V, --version print version number and configuration settings, then exit
35359 -q, --quiet do not print progress messages
35360 -d, --debug don't remove temporary files
35361 --recheck update $as_me by reconfiguring in the same conditions
35362 --file=FILE[:TEMPLATE]
35363 instantiate the configuration file FILE
35364 --header=FILE[:TEMPLATE]
35365 instantiate the configuration header FILE
35367 Configuration files:
35368 $config_files
35370 Configuration headers:
35371 $config_headers
35373 Report bugs to <bug-autoconf@gnu.org>."
35375 _ACEOF
35376 cat >>$CONFIG_STATUS <<_ACEOF
35377 ac_cs_version="\\
35378 asterisk config.status 1.4
35379 configured by $0, generated by GNU Autoconf 2.61,
35380 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35382 Copyright (C) 2006 Free Software Foundation, Inc.
35383 This config.status script is free software; the Free Software Foundation
35384 gives unlimited permission to copy, distribute and modify it."
35386 ac_pwd='$ac_pwd'
35387 srcdir='$srcdir'
35388 INSTALL='$INSTALL'
35389 _ACEOF
35391 cat >>$CONFIG_STATUS <<\_ACEOF
35392 # If no file are specified by the user, then we need to provide default
35393 # value. By we need to know if files were specified by the user.
35394 ac_need_defaults=:
35395 while test $# != 0
35397 case $1 in
35398 --*=*)
35399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35401 ac_shift=:
35404 ac_option=$1
35405 ac_optarg=$2
35406 ac_shift=shift
35408 esac
35410 case $ac_option in
35411 # Handling of the options.
35412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35413 ac_cs_recheck=: ;;
35414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35415 echo "$ac_cs_version"; exit ;;
35416 --debug | --debu | --deb | --de | --d | -d )
35417 debug=: ;;
35418 --file | --fil | --fi | --f )
35419 $ac_shift
35420 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35421 ac_need_defaults=false;;
35422 --header | --heade | --head | --hea )
35423 $ac_shift
35424 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35425 ac_need_defaults=false;;
35426 --he | --h)
35427 # Conflict between --help and --header
35428 { echo "$as_me: error: ambiguous option: $1
35429 Try \`$0 --help' for more information." >&2
35430 { (exit 1); exit 1; }; };;
35431 --help | --hel | -h )
35432 echo "$ac_cs_usage"; exit ;;
35433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35435 ac_cs_silent=: ;;
35437 # This is an error.
35438 -*) { echo "$as_me: error: unrecognized option: $1
35439 Try \`$0 --help' for more information." >&2
35440 { (exit 1); exit 1; }; } ;;
35442 *) ac_config_targets="$ac_config_targets $1"
35443 ac_need_defaults=false ;;
35445 esac
35446 shift
35447 done
35449 ac_configure_extra_args=
35451 if $ac_cs_silent; then
35452 exec 6>/dev/null
35453 ac_configure_extra_args="$ac_configure_extra_args --silent"
35456 _ACEOF
35457 cat >>$CONFIG_STATUS <<_ACEOF
35458 if \$ac_cs_recheck; then
35459 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35460 CONFIG_SHELL=$SHELL
35461 export CONFIG_SHELL
35462 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35465 _ACEOF
35466 cat >>$CONFIG_STATUS <<\_ACEOF
35467 exec 5>>config.log
35469 echo
35470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35471 ## Running $as_me. ##
35472 _ASBOX
35473 echo "$ac_log"
35474 } >&5
35476 _ACEOF
35477 cat >>$CONFIG_STATUS <<_ACEOF
35478 _ACEOF
35480 cat >>$CONFIG_STATUS <<\_ACEOF
35482 # Handling of arguments.
35483 for ac_config_target in $ac_config_targets
35485 case $ac_config_target in
35486 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35487 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
35488 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
35489 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
35491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35493 { (exit 1); exit 1; }; };;
35494 esac
35495 done
35498 # If the user did not use the arguments to specify the items to instantiate,
35499 # then the envvar interface is used. Set only those that are not.
35500 # We use the long form for the default assignment because of an extremely
35501 # bizarre bug on SunOS 4.1.3.
35502 if $ac_need_defaults; then
35503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35507 # Have a temporary directory for convenience. Make it in the build tree
35508 # simply because there is no reason against having it here, and in addition,
35509 # creating and moving files from /tmp can sometimes cause problems.
35510 # Hook for its removal unless debugging.
35511 # Note that there is a small window in which the directory will not be cleaned:
35512 # after its creation but before its name has been assigned to `$tmp'.
35513 $debug ||
35515 tmp=
35516 trap 'exit_status=$?
35517 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35519 trap '{ (exit 1); exit 1; }' 1 2 13 15
35521 # Create a (secure) tmp directory for tmp files.
35524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35525 test -n "$tmp" && test -d "$tmp"
35526 } ||
35528 tmp=./conf$$-$RANDOM
35529 (umask 077 && mkdir "$tmp")
35530 } ||
35532 echo "$me: cannot create a temporary directory in ." >&2
35533 { (exit 1); exit 1; }
35537 # Set up the sed scripts for CONFIG_FILES section.
35540 # No need to generate the scripts if there are no CONFIG_FILES.
35541 # This happens for instance when ./config.status config.h
35542 if test -n "$CONFIG_FILES"; then
35544 _ACEOF
35548 ac_delim='%!_!# '
35549 for ac_last_try in false false false false false :; do
35550 cat >conf$$subs.sed <<_ACEOF
35551 SHELL!$SHELL$ac_delim
35552 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35553 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35554 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35555 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35556 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35557 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35558 exec_prefix!$exec_prefix$ac_delim
35559 prefix!$prefix$ac_delim
35560 program_transform_name!$program_transform_name$ac_delim
35561 bindir!$bindir$ac_delim
35562 sbindir!$sbindir$ac_delim
35563 libexecdir!$libexecdir$ac_delim
35564 datarootdir!$datarootdir$ac_delim
35565 datadir!$datadir$ac_delim
35566 sysconfdir!$sysconfdir$ac_delim
35567 sharedstatedir!$sharedstatedir$ac_delim
35568 localstatedir!$localstatedir$ac_delim
35569 includedir!$includedir$ac_delim
35570 oldincludedir!$oldincludedir$ac_delim
35571 docdir!$docdir$ac_delim
35572 infodir!$infodir$ac_delim
35573 htmldir!$htmldir$ac_delim
35574 dvidir!$dvidir$ac_delim
35575 pdfdir!$pdfdir$ac_delim
35576 psdir!$psdir$ac_delim
35577 libdir!$libdir$ac_delim
35578 localedir!$localedir$ac_delim
35579 mandir!$mandir$ac_delim
35580 DEFS!$DEFS$ac_delim
35581 ECHO_C!$ECHO_C$ac_delim
35582 ECHO_N!$ECHO_N$ac_delim
35583 ECHO_T!$ECHO_T$ac_delim
35584 LIBS!$LIBS$ac_delim
35585 build_alias!$build_alias$ac_delim
35586 host_alias!$host_alias$ac_delim
35587 target_alias!$target_alias$ac_delim
35588 build!$build$ac_delim
35589 build_cpu!$build_cpu$ac_delim
35590 build_vendor!$build_vendor$ac_delim
35591 build_os!$build_os$ac_delim
35592 host!$host$ac_delim
35593 host_cpu!$host_cpu$ac_delim
35594 host_vendor!$host_vendor$ac_delim
35595 host_os!$host_os$ac_delim
35596 CC!$CC$ac_delim
35597 CFLAGS!$CFLAGS$ac_delim
35598 LDFLAGS!$LDFLAGS$ac_delim
35599 CPPFLAGS!$CPPFLAGS$ac_delim
35600 ac_ct_CC!$ac_ct_CC$ac_delim
35601 EXEEXT!$EXEEXT$ac_delim
35602 OBJEXT!$OBJEXT$ac_delim
35603 CPP!$CPP$ac_delim
35604 GREP!$GREP$ac_delim
35605 EGREP!$EGREP$ac_delim
35606 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35607 BUILD_CPU!$BUILD_CPU$ac_delim
35608 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35609 BUILD_OS!$BUILD_OS$ac_delim
35610 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35611 HOST_CPU!$HOST_CPU$ac_delim
35612 HOST_VENDOR!$HOST_VENDOR$ac_delim
35613 HOST_OS!$HOST_OS$ac_delim
35614 OSARCH!$OSARCH$ac_delim
35615 UNAME!$UNAME$ac_delim
35616 PBX_OSREV!$PBX_OSREV$ac_delim
35617 CXX!$CXX$ac_delim
35618 LD!$LD$ac_delim
35619 RANLIB!$RANLIB$ac_delim
35620 CXXFLAGS!$CXXFLAGS$ac_delim
35621 ac_ct_CXX!$ac_ct_CXX$ac_delim
35622 CXXCPP!$CXXCPP$ac_delim
35623 SED!$SED$ac_delim
35624 AWK!$AWK$ac_delim
35625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35627 INSTALL_DATA!$INSTALL_DATA$ac_delim
35628 LN_S!$LN_S$ac_delim
35629 GNU_MAKE!$GNU_MAKE$ac_delim
35630 STRIP!$STRIP$ac_delim
35631 AR!$AR$ac_delim
35632 GNU_LD!$GNU_LD$ac_delim
35633 FIND!$FIND$ac_delim
35634 COMPRESS!$COMPRESS$ac_delim
35635 BASENAME!$BASENAME$ac_delim
35636 ID!$ID$ac_delim
35637 DIRNAME!$DIRNAME$ac_delim
35638 LN!$LN$ac_delim
35639 DOT!$DOT$ac_delim
35640 WGET!$WGET$ac_delim
35641 FETCH!$FETCH$ac_delim
35642 DOWNLOAD!$DOWNLOAD$ac_delim
35643 SOXMIX!$SOXMIX$ac_delim
35644 acx_pthread_config!$acx_pthread_config$ac_delim
35645 PTHREAD_CC!$PTHREAD_CC$ac_delim
35646 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35647 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35648 _ACEOF
35650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35651 break
35652 elif $ac_last_try; then
35653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35655 { (exit 1); exit 1; }; }
35656 else
35657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35659 done
35661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35662 if test -n "$ac_eof"; then
35663 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35664 ac_eof=`expr $ac_eof + 1`
35667 cat >>$CONFIG_STATUS <<_ACEOF
35668 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35670 _ACEOF
35671 sed '
35672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35673 s/^/s,@/; s/!/@,|#_!!_#|/
35676 s/'"$ac_delim"'$/,g/; t
35677 s/$/\\/; p
35678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35679 ' >>$CONFIG_STATUS <conf$$subs.sed
35680 rm -f conf$$subs.sed
35681 cat >>$CONFIG_STATUS <<_ACEOF
35682 CEOF$ac_eof
35683 _ACEOF
35686 ac_delim='%!_!# '
35687 for ac_last_try in false false false false false :; do
35688 cat >conf$$subs.sed <<_ACEOF
35689 AST_DEVMODE!$AST_DEVMODE$ac_delim
35690 ALSA_LIB!$ALSA_LIB$ac_delim
35691 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35692 ALSA_DIR!$ALSA_DIR$ac_delim
35693 PBX_ALSA!$PBX_ALSA$ac_delim
35694 CURL_LIB!$CURL_LIB$ac_delim
35695 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35696 CURL_DIR!$CURL_DIR$ac_delim
35697 PBX_CURL!$PBX_CURL$ac_delim
35698 CAP_LIB!$CAP_LIB$ac_delim
35699 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35700 CAP_DIR!$CAP_DIR$ac_delim
35701 PBX_CAP!$PBX_CAP$ac_delim
35702 CURSES_LIB!$CURSES_LIB$ac_delim
35703 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35704 CURSES_DIR!$CURSES_DIR$ac_delim
35705 PBX_CURSES!$PBX_CURSES$ac_delim
35706 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35707 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35708 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35709 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35710 GSM_LIB!$GSM_LIB$ac_delim
35711 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35712 GSM_DIR!$GSM_DIR$ac_delim
35713 PBX_GSM!$PBX_GSM$ac_delim
35714 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35715 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35716 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35717 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35718 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35719 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35720 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35721 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35722 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35723 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35724 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35725 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35726 KDE_LIB!$KDE_LIB$ac_delim
35727 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35728 KDE_DIR!$KDE_DIR$ac_delim
35729 PBX_KDE!$PBX_KDE$ac_delim
35730 LTDL_LIB!$LTDL_LIB$ac_delim
35731 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35732 LTDL_DIR!$LTDL_DIR$ac_delim
35733 PBX_LTDL!$PBX_LTDL$ac_delim
35734 MISDN_LIB!$MISDN_LIB$ac_delim
35735 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35736 MISDN_DIR!$MISDN_DIR$ac_delim
35737 PBX_MISDN!$PBX_MISDN$ac_delim
35738 NBS_LIB!$NBS_LIB$ac_delim
35739 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35740 NBS_DIR!$NBS_DIR$ac_delim
35741 PBX_NBS!$PBX_NBS$ac_delim
35742 NCURSES_LIB!$NCURSES_LIB$ac_delim
35743 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35744 NCURSES_DIR!$NCURSES_DIR$ac_delim
35745 PBX_NCURSES!$PBX_NCURSES$ac_delim
35746 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35747 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35748 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35749 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35750 NEWT_LIB!$NEWT_LIB$ac_delim
35751 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35752 NEWT_DIR!$NEWT_DIR$ac_delim
35753 PBX_NEWT!$PBX_NEWT$ac_delim
35754 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35755 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35756 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35757 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35758 OGG_LIB!$OGG_LIB$ac_delim
35759 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35760 OGG_DIR!$OGG_DIR$ac_delim
35761 PBX_OGG!$PBX_OGG$ac_delim
35762 OSPTK_LIB!$OSPTK_LIB$ac_delim
35763 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35764 OSPTK_DIR!$OSPTK_DIR$ac_delim
35765 PBX_OSPTK!$PBX_OSPTK$ac_delim
35766 OSS_LIB!$OSS_LIB$ac_delim
35767 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35768 OSS_DIR!$OSS_DIR$ac_delim
35769 PBX_OSS!$PBX_OSS$ac_delim
35770 POPT_LIB!$POPT_LIB$ac_delim
35771 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35772 POPT_DIR!$POPT_DIR$ac_delim
35773 PBX_POPT!$PBX_POPT$ac_delim
35774 PGSQL_LIB!$PGSQL_LIB$ac_delim
35775 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35776 PGSQL_DIR!$PGSQL_DIR$ac_delim
35777 PBX_PGSQL!$PBX_PGSQL$ac_delim
35778 PRI_LIB!$PRI_LIB$ac_delim
35779 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35780 PRI_DIR!$PRI_DIR$ac_delim
35781 PBX_PRI!$PBX_PRI$ac_delim
35782 PWLIB_LIB!$PWLIB_LIB$ac_delim
35783 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35784 PWLIB_DIR!$PWLIB_DIR$ac_delim
35785 PBX_PWLIB!$PBX_PWLIB$ac_delim
35786 _ACEOF
35788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35789 break
35790 elif $ac_last_try; then
35791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35793 { (exit 1); exit 1; }; }
35794 else
35795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35797 done
35799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35800 if test -n "$ac_eof"; then
35801 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35802 ac_eof=`expr $ac_eof + 1`
35805 cat >>$CONFIG_STATUS <<_ACEOF
35806 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35808 _ACEOF
35809 sed '
35810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35811 s/^/s,@/; s/!/@,|#_!!_#|/
35814 s/'"$ac_delim"'$/,g/; t
35815 s/$/\\/; p
35816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35817 ' >>$CONFIG_STATUS <conf$$subs.sed
35818 rm -f conf$$subs.sed
35819 cat >>$CONFIG_STATUS <<_ACEOF
35820 CEOF$ac_eof
35821 _ACEOF
35824 ac_delim='%!_!# '
35825 for ac_last_try in false false false false false :; do
35826 cat >conf$$subs.sed <<_ACEOF
35827 OPENH323_LIB!$OPENH323_LIB$ac_delim
35828 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35829 OPENH323_DIR!$OPENH323_DIR$ac_delim
35830 PBX_OPENH323!$PBX_OPENH323$ac_delim
35831 RADIUS_LIB!$RADIUS_LIB$ac_delim
35832 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35833 RADIUS_DIR!$RADIUS_DIR$ac_delim
35834 PBX_RADIUS!$PBX_RADIUS$ac_delim
35835 SPEEX_LIB!$SPEEX_LIB$ac_delim
35836 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35837 SPEEX_DIR!$SPEEX_DIR$ac_delim
35838 PBX_SPEEX!$PBX_SPEEX$ac_delim
35839 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35840 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35841 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35842 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35843 SQLITE_LIB!$SQLITE_LIB$ac_delim
35844 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35845 SQLITE_DIR!$SQLITE_DIR$ac_delim
35846 PBX_SQLITE!$PBX_SQLITE$ac_delim
35847 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35848 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35849 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35850 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35851 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35852 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35853 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35854 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35855 FREETDS_LIB!$FREETDS_LIB$ac_delim
35856 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35857 FREETDS_DIR!$FREETDS_DIR$ac_delim
35858 PBX_FREETDS!$PBX_FREETDS$ac_delim
35859 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35860 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35861 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35862 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35863 TINFO_LIB!$TINFO_LIB$ac_delim
35864 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35865 TINFO_DIR!$TINFO_DIR$ac_delim
35866 PBX_TINFO!$PBX_TINFO$ac_delim
35867 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35868 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35869 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35870 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35871 USB_LIB!$USB_LIB$ac_delim
35872 USB_INCLUDE!$USB_INCLUDE$ac_delim
35873 USB_DIR!$USB_DIR$ac_delim
35874 PBX_USB!$PBX_USB$ac_delim
35875 VORBIS_LIB!$VORBIS_LIB$ac_delim
35876 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35877 VORBIS_DIR!$VORBIS_DIR$ac_delim
35878 PBX_VORBIS!$PBX_VORBIS$ac_delim
35879 VPB_LIB!$VPB_LIB$ac_delim
35880 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35881 VPB_DIR!$VPB_DIR$ac_delim
35882 PBX_VPB!$PBX_VPB$ac_delim
35883 ZLIB_LIB!$ZLIB_LIB$ac_delim
35884 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35885 ZLIB_DIR!$ZLIB_DIR$ac_delim
35886 PBX_ZLIB!$PBX_ZLIB$ac_delim
35887 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35888 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35889 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35890 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35891 ALLOCA!$ALLOCA$ac_delim
35892 LIBOBJS!$LIBOBJS$ac_delim
35893 POW_LIB!$POW_LIB$ac_delim
35894 GC_CFLAGS!$GC_CFLAGS$ac_delim
35895 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35896 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35897 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35898 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35899 KDEINIT!$KDEINIT$ac_delim
35900 KDEDIR!$KDEDIR$ac_delim
35901 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35902 PG_CONFIG!$PG_CONFIG$ac_delim
35903 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35904 PWLIBDIR!$PWLIBDIR$ac_delim
35905 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35906 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35907 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35908 OPENH323DIR!$OPENH323DIR$ac_delim
35909 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35910 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35911 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35912 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35913 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35914 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35915 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35916 PBX_H323!$PBX_H323$ac_delim
35917 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35918 GTKCONFIG!$GTKCONFIG$ac_delim
35919 PBX_GTK!$PBX_GTK$ac_delim
35920 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35921 GTK_LIB!$GTK_LIB$ac_delim
35922 PKGCONFIG!$PKGCONFIG$ac_delim
35923 PBX_GTK2!$PBX_GTK2$ac_delim
35924 _ACEOF
35926 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35927 break
35928 elif $ac_last_try; then
35929 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35930 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35931 { (exit 1); exit 1; }; }
35932 else
35933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35935 done
35937 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35938 if test -n "$ac_eof"; then
35939 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35940 ac_eof=`expr $ac_eof + 1`
35943 cat >>$CONFIG_STATUS <<_ACEOF
35944 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35946 _ACEOF
35947 sed '
35948 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35949 s/^/s,@/; s/!/@,|#_!!_#|/
35952 s/'"$ac_delim"'$/,g/; t
35953 s/$/\\/; p
35954 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35955 ' >>$CONFIG_STATUS <conf$$subs.sed
35956 rm -f conf$$subs.sed
35957 cat >>$CONFIG_STATUS <<_ACEOF
35958 CEOF$ac_eof
35959 _ACEOF
35962 ac_delim='%!_!# '
35963 for ac_last_try in false false false false false :; do
35964 cat >conf$$subs.sed <<_ACEOF
35965 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35966 GTK2_LIB!$GTK2_LIB$ac_delim
35967 CURL_CONFIG!$CURL_CONFIG$ac_delim
35968 LTLIBOBJS!$LTLIBOBJS$ac_delim
35969 _ACEOF
35971 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35972 break
35973 elif $ac_last_try; then
35974 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35975 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35976 { (exit 1); exit 1; }; }
35977 else
35978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35980 done
35982 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35983 if test -n "$ac_eof"; then
35984 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35985 ac_eof=`expr $ac_eof + 1`
35988 cat >>$CONFIG_STATUS <<_ACEOF
35989 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35991 _ACEOF
35992 sed '
35993 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35994 s/^/s,@/; s/!/@,|#_!!_#|/
35997 s/'"$ac_delim"'$/,g/; t
35998 s/$/\\/; p
35999 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36000 ' >>$CONFIG_STATUS <conf$$subs.sed
36001 rm -f conf$$subs.sed
36002 cat >>$CONFIG_STATUS <<_ACEOF
36003 :end
36004 s/|#_!!_#|//g
36005 CEOF$ac_eof
36006 _ACEOF
36009 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36010 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36011 # trailing colons and then remove the whole line if VPATH becomes empty
36012 # (actually we leave an empty line to preserve line numbers).
36013 if test "x$srcdir" = x.; then
36014 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36015 s/:*\$(srcdir):*/:/
36016 s/:*\${srcdir}:*/:/
36017 s/:*@srcdir@:*/:/
36018 s/^\([^=]*=[ ]*\):*/\1/
36019 s/:*$//
36020 s/^[^=]*=[ ]*$//
36024 cat >>$CONFIG_STATUS <<\_ACEOF
36025 fi # test -n "$CONFIG_FILES"
36028 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36030 case $ac_tag in
36031 :[FHLC]) ac_mode=$ac_tag; continue;;
36032 esac
36033 case $ac_mode$ac_tag in
36034 :[FHL]*:*);;
36035 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36036 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36037 { (exit 1); exit 1; }; };;
36038 :[FH]-) ac_tag=-:-;;
36039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36040 esac
36041 ac_save_IFS=$IFS
36042 IFS=:
36043 set x $ac_tag
36044 IFS=$ac_save_IFS
36045 shift
36046 ac_file=$1
36047 shift
36049 case $ac_mode in
36050 :L) ac_source=$1;;
36051 :[FH])
36052 ac_file_inputs=
36053 for ac_f
36055 case $ac_f in
36056 -) ac_f="$tmp/stdin";;
36057 *) # Look for the file first in the build tree, then in the source tree
36058 # (if the path is not absolute). The absolute path cannot be DOS-style,
36059 # because $ac_f cannot contain `:'.
36060 test -f "$ac_f" ||
36061 case $ac_f in
36062 [\\/$]*) false;;
36063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36064 esac ||
36065 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36066 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36067 { (exit 1); exit 1; }; };;
36068 esac
36069 ac_file_inputs="$ac_file_inputs $ac_f"
36070 done
36072 # Let's still pretend it is `configure' which instantiates (i.e., don't
36073 # use $as_me), people would be surprised to read:
36074 # /* config.h. Generated by config.status. */
36075 configure_input="Generated from "`IFS=:
36076 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36077 if test x"$ac_file" != x-; then
36078 configure_input="$ac_file. $configure_input"
36079 { echo "$as_me:$LINENO: creating $ac_file" >&5
36080 echo "$as_me: creating $ac_file" >&6;}
36083 case $ac_tag in
36084 *:-:* | *:-) cat >"$tmp/stdin";;
36085 esac
36087 esac
36089 ac_dir=`$as_dirname -- "$ac_file" ||
36090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36091 X"$ac_file" : 'X\(//\)[^/]' \| \
36092 X"$ac_file" : 'X\(//\)$' \| \
36093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36094 echo X"$ac_file" |
36095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36096 s//\1/
36099 /^X\(\/\/\)[^/].*/{
36100 s//\1/
36103 /^X\(\/\/\)$/{
36104 s//\1/
36107 /^X\(\/\).*/{
36108 s//\1/
36111 s/.*/./; q'`
36112 { as_dir="$ac_dir"
36113 case $as_dir in #(
36114 -*) as_dir=./$as_dir;;
36115 esac
36116 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36117 as_dirs=
36118 while :; do
36119 case $as_dir in #(
36120 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36121 *) as_qdir=$as_dir;;
36122 esac
36123 as_dirs="'$as_qdir' $as_dirs"
36124 as_dir=`$as_dirname -- "$as_dir" ||
36125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36126 X"$as_dir" : 'X\(//\)[^/]' \| \
36127 X"$as_dir" : 'X\(//\)$' \| \
36128 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36129 echo X"$as_dir" |
36130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36131 s//\1/
36134 /^X\(\/\/\)[^/].*/{
36135 s//\1/
36138 /^X\(\/\/\)$/{
36139 s//\1/
36142 /^X\(\/\).*/{
36143 s//\1/
36146 s/.*/./; q'`
36147 test -d "$as_dir" && break
36148 done
36149 test -z "$as_dirs" || eval "mkdir $as_dirs"
36150 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36151 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36152 { (exit 1); exit 1; }; }; }
36153 ac_builddir=.
36155 case "$ac_dir" in
36156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36159 # A ".." for each directory in $ac_dir_suffix.
36160 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36161 case $ac_top_builddir_sub in
36162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36164 esac ;;
36165 esac
36166 ac_abs_top_builddir=$ac_pwd
36167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36168 # for backward compatibility:
36169 ac_top_builddir=$ac_top_build_prefix
36171 case $srcdir in
36172 .) # We are building in place.
36173 ac_srcdir=.
36174 ac_top_srcdir=$ac_top_builddir_sub
36175 ac_abs_top_srcdir=$ac_pwd ;;
36176 [\\/]* | ?:[\\/]* ) # Absolute name.
36177 ac_srcdir=$srcdir$ac_dir_suffix;
36178 ac_top_srcdir=$srcdir
36179 ac_abs_top_srcdir=$srcdir ;;
36180 *) # Relative name.
36181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36182 ac_top_srcdir=$ac_top_build_prefix$srcdir
36183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36184 esac
36185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36188 case $ac_mode in
36191 # CONFIG_FILE
36194 case $INSTALL in
36195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36197 esac
36198 _ACEOF
36200 cat >>$CONFIG_STATUS <<\_ACEOF
36201 # If the template does not know about datarootdir, expand it.
36202 # FIXME: This hack should be removed a few years after 2.60.
36203 ac_datarootdir_hack=; ac_datarootdir_seen=
36205 case `sed -n '/datarootdir/ {
36209 /@datadir@/p
36210 /@docdir@/p
36211 /@infodir@/p
36212 /@localedir@/p
36213 /@mandir@/p
36214 ' $ac_file_inputs` in
36215 *datarootdir*) ac_datarootdir_seen=yes;;
36216 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36217 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36218 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36219 _ACEOF
36220 cat >>$CONFIG_STATUS <<_ACEOF
36221 ac_datarootdir_hack='
36222 s&@datadir@&$datadir&g
36223 s&@docdir@&$docdir&g
36224 s&@infodir@&$infodir&g
36225 s&@localedir@&$localedir&g
36226 s&@mandir@&$mandir&g
36227 s&\\\${datarootdir}&$datarootdir&g' ;;
36228 esac
36229 _ACEOF
36231 # Neutralize VPATH when `$srcdir' = `.'.
36232 # Shell code in configure.ac might set extrasub.
36233 # FIXME: do we really want to maintain this feature?
36234 cat >>$CONFIG_STATUS <<_ACEOF
36235 sed "$ac_vpsub
36236 $extrasub
36237 _ACEOF
36238 cat >>$CONFIG_STATUS <<\_ACEOF
36240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36241 s&@configure_input@&$configure_input&;t t
36242 s&@top_builddir@&$ac_top_builddir_sub&;t t
36243 s&@srcdir@&$ac_srcdir&;t t
36244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36245 s&@top_srcdir@&$ac_top_srcdir&;t t
36246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36247 s&@builddir@&$ac_builddir&;t t
36248 s&@abs_builddir@&$ac_abs_builddir&;t t
36249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36250 s&@INSTALL@&$ac_INSTALL&;t t
36251 $ac_datarootdir_hack
36252 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
36254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36257 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36258 which seems to be undefined. Please make sure it is defined." >&5
36259 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36260 which seems to be undefined. Please make sure it is defined." >&2;}
36262 rm -f "$tmp/stdin"
36263 case $ac_file in
36264 -) cat "$tmp/out"; rm -f "$tmp/out";;
36265 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36266 esac
36270 # CONFIG_HEADER
36272 _ACEOF
36274 # Transform confdefs.h into a sed script `conftest.defines', that
36275 # substitutes the proper values into config.h.in to produce config.h.
36276 rm -f conftest.defines conftest.tail
36277 # First, append a space to every undef/define line, to ease matching.
36278 echo 's/$/ /' >conftest.defines
36279 # Then, protect against being on the right side of a sed subst, or in
36280 # an unquoted here document, in config.status. If some macros were
36281 # called several times there might be several #defines for the same
36282 # symbol, which is useless. But do not sort them, since the last
36283 # AC_DEFINE must be honored.
36284 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36285 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36286 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36287 # PARAMS is the parameter list in the macro definition--in most cases, it's
36288 # just an empty string.
36289 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36290 ac_dB='\\)[ (].*,\\1define\\2'
36291 ac_dC=' '
36292 ac_dD=' ,'
36294 uniq confdefs.h |
36295 sed -n '
36296 t rset
36297 :rset
36298 s/^[ ]*#[ ]*define[ ][ ]*//
36299 t ok
36302 s/[\\&,]/\\&/g
36303 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36304 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36305 ' >>conftest.defines
36307 # Remove the space that was appended to ease matching.
36308 # Then replace #undef with comments. This is necessary, for
36309 # example, in the case of _POSIX_SOURCE, which is predefined and required
36310 # on some systems where configure will not decide to define it.
36311 # (The regexp can be short, since the line contains either #define or #undef.)
36312 echo 's/ $//
36313 s,^[ #]*u.*,/* & */,' >>conftest.defines
36315 # Break up conftest.defines:
36316 ac_max_sed_lines=50
36318 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36319 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36320 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36321 # et cetera.
36322 ac_in='$ac_file_inputs'
36323 ac_out='"$tmp/out1"'
36324 ac_nxt='"$tmp/out2"'
36326 while :
36328 # Write a here document:
36329 cat >>$CONFIG_STATUS <<_ACEOF
36330 # First, check the format of the line:
36331 cat >"\$tmp/defines.sed" <<\\CEOF
36332 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36333 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36335 :def
36336 _ACEOF
36337 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36338 echo 'CEOF
36339 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36340 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36341 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36342 grep . conftest.tail >/dev/null || break
36343 rm -f conftest.defines
36344 mv conftest.tail conftest.defines
36345 done
36346 rm -f conftest.defines conftest.tail
36348 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36349 cat >>$CONFIG_STATUS <<\_ACEOF
36350 if test x"$ac_file" != x-; then
36351 echo "/* $configure_input */" >"$tmp/config.h"
36352 cat "$ac_result" >>"$tmp/config.h"
36353 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36354 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36355 echo "$as_me: $ac_file is unchanged" >&6;}
36356 else
36357 rm -f $ac_file
36358 mv "$tmp/config.h" $ac_file
36360 else
36361 echo "/* $configure_input */"
36362 cat "$ac_result"
36364 rm -f "$tmp/out12"
36368 esac
36370 done # for ac_tag
36373 { (exit 0); exit 0; }
36374 _ACEOF
36375 chmod +x $CONFIG_STATUS
36376 ac_clean_files=$ac_clean_files_save
36379 # configure is writing to config.log, and then calls config.status.
36380 # config.status does its own redirection, appending to config.log.
36381 # Unfortunately, on DOS this fails, as config.log is still kept open
36382 # by configure, so config.status won't be able to write to it; its
36383 # output is simply discarded. So we exec the FD to /dev/null,
36384 # effectively closing config.log, so it can be properly (re)opened and
36385 # appended to by config.status. When coming back to configure, we
36386 # need to make the FD available again.
36387 if test "$no_create" != yes; then
36388 ac_cs_success=:
36389 ac_config_status_args=
36390 test "$silent" = yes &&
36391 ac_config_status_args="$ac_config_status_args --quiet"
36392 exec 5>/dev/null
36393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36394 exec 5>>config.log
36395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36396 # would make configure fail if this is the last instruction.
36397 $ac_cs_success || { (exit 1); exit 1; }
36401 if test "x${silent}" != "xyes" ; then
36402 echo
36403 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
36404 echo " .\$7\$7.. .7\$\$7:. "
36405 echo " .\$\$:. ,\$7.7 "
36406 echo " .\$7. 7\$\$\$\$ .\$\$77 "
36407 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
36408 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
36409 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
36410 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
36411 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
36412 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
36413 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
36414 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
36415 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
36416 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
36417 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
36418 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
36419 echo " \$\$\$\$\$ \$\$\$ "
36420 echo " \$\$\$\$7. \$\$ (TM) "
36421 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
36422 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
36423 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
36424 echo
36427 { echo "$as_me:$LINENO: Package configured for: " >&5
36428 echo "$as_me: Package configured for: " >&6;}
36429 { echo "$as_me:$LINENO: OS type : $host_os" >&5
36430 echo "$as_me: OS type : $host_os" >&6;}
36431 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
36432 echo "$as_me: Host CPU : $host_cpu" >&6;}
36433 if test "${cross_compiling}" = "yes"; then
36434 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
36435 echo "$as_me: Cross Compilation = YES" >&6;}