Merged revisions 114822 via svnmerge from
[asterisk-bristuff.git] / configure
blob485125c9ce94f9f90f7c411ed37a5a30b1e0fcd4
1 #! /bin/sh
2 # From configure.ac Revision: 107461 .
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 <stdio.h>
12094 main ()
12096 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12098 return 0;
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (ac_try="$ac_link"
12103 case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_link") 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } && {
12115 test -z "$ac_c_werror_flag" ||
12116 test ! -s conftest.err
12117 } && test -s conftest$ac_exeext &&
12118 $as_test_x conftest$ac_exeext; then
12119 ac_cv_sys_largefile_source=no; break
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12128 conftest$ac_exeext conftest.$ac_ext
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #define _LARGEFILE_SOURCE 1
12136 #include <stdio.h>
12138 main ()
12140 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12142 return 0;
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_link") 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest$ac_exeext &&
12162 $as_test_x conftest$ac_exeext; then
12163 ac_cv_sys_largefile_source=1; break
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172 conftest$ac_exeext conftest.$ac_ext
12173 ac_cv_sys_largefile_source=unknown
12174 break
12175 done
12177 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12178 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12179 case $ac_cv_sys_largefile_source in #(
12180 no | unknown) ;;
12182 cat >>confdefs.h <<_ACEOF
12183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12184 _ACEOF
12186 esac
12187 rm -f conftest*
12189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12190 # in glibc 2.1.3, but that breaks too many other things.
12191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12192 if test $ac_cv_sys_largefile_source != unknown; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define HAVE_FSEEKO 1
12196 _ACEOF
12200 if test $ac_cv_c_compiler_gnu = yes; then
12201 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12202 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12203 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206 ac_pattern="Autoconf.*'x'"
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 #include <sgtty.h>
12214 Autoconf TIOCGETP
12215 _ACEOF
12216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12217 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12218 ac_cv_prog_gcc_traditional=yes
12219 else
12220 ac_cv_prog_gcc_traditional=no
12222 rm -f conftest*
12225 if test $ac_cv_prog_gcc_traditional = no; then
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <termio.h>
12233 Autoconf TCGETA
12234 _ACEOF
12235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12236 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12237 ac_cv_prog_gcc_traditional=yes
12239 rm -f conftest*
12243 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12244 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12245 if test $ac_cv_prog_gcc_traditional = yes; then
12246 CC="$CC -traditional"
12250 # XXX: these are commented out until we determine whether it matters if our malloc()
12251 # acts exactly like glibc's or not
12252 # AC_FUNC_MALLOC
12253 # AC_FUNC_REALLOC
12254 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12255 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12256 if test "${ac_cv_func_memcmp_working+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 if test "$cross_compiling" = yes; then
12260 ac_cv_func_memcmp_working=no
12261 else
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 $ac_includes_default
12270 main ()
12273 /* Some versions of memcmp are not 8-bit clean. */
12274 char c0 = '\100', c1 = '\200', c2 = '\201';
12275 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12276 return 1;
12278 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12279 or more and with at least one buffer not starting on a 4-byte boundary.
12280 William Lewis provided this test program. */
12282 char foo[21];
12283 char bar[21];
12284 int i;
12285 for (i = 0; i < 4; i++)
12287 char *a = foo + i;
12288 char *b = bar + i;
12289 strcpy (a, "--------01111111");
12290 strcpy (b, "--------10000000");
12291 if (memcmp (a, b, 16) >= 0)
12292 return 1;
12294 return 0;
12298 return 0;
12300 _ACEOF
12301 rm -f conftest$ac_exeext
12302 if { (ac_try="$ac_link"
12303 case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306 esac
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_link") 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_func_memcmp_working=yes
12322 else
12323 echo "$as_me: program exited with status $ac_status" >&5
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ( exit $ac_status )
12328 ac_cv_func_memcmp_working=no
12330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12335 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12336 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12337 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12338 *" memcmp.$ac_objext "* ) ;;
12339 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12341 esac
12346 for ac_header in stdlib.h unistd.h
12348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 ac_res=`eval echo '${'$as_ac_Header'}'`
12356 { echo "$as_me:$LINENO: result: $ac_res" >&5
12357 echo "${ECHO_T}$ac_res" >&6; }
12358 else
12359 # Is the header compilable?
12360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12369 #include <$ac_header>
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest.$ac_objext; then
12388 ac_header_compiler=yes
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_header_compiler=no
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12398 echo "${ECHO_T}$ac_header_compiler" >&6; }
12400 # Is the header present?
12401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 #include <$ac_header>
12410 _ACEOF
12411 if { (ac_try="$ac_cpp conftest.$ac_ext"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } >/dev/null && {
12424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 }; then
12427 ac_header_preproc=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_header_preproc=no
12435 rm -f conftest.err conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12437 echo "${ECHO_T}$ac_header_preproc" >&6; }
12439 # So? What about this header?
12440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12441 yes:no: )
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12446 ac_header_preproc=yes
12448 no:yes:* )
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12461 ( cat <<\_ASBOX
12462 ## ------------------------------- ##
12463 ## Report this to www.asterisk.org ##
12464 ## ------------------------------- ##
12465 _ASBOX
12466 ) | sed "s/^/$as_me: WARNING: /" >&2
12468 esac
12469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474 eval "$as_ac_Header=\$ac_header_preproc"
12476 ac_res=`eval echo '${'$as_ac_Header'}'`
12477 { echo "$as_me:$LINENO: result: $ac_res" >&5
12478 echo "${ECHO_T}$ac_res" >&6; }
12481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12484 _ACEOF
12488 done
12491 for ac_func in getpagesize
12493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12507 #define $ac_func innocuous_$ac_func
12509 /* System header to define __stub macros and hopefully few prototypes,
12510 which can conflict with char $ac_func (); below.
12511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12512 <limits.h> exists even on freestanding compilers. */
12514 #ifdef __STDC__
12515 # include <limits.h>
12516 #else
12517 # include <assert.h>
12518 #endif
12520 #undef $ac_func
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char $ac_func ();
12529 /* The GNU C library defines this for functions which it implements
12530 to always fail with ENOSYS. Some functions are actually named
12531 something starting with __ and the normal name is an alias. */
12532 #if defined __stub_$ac_func || defined __stub___$ac_func
12533 choke me
12534 #endif
12537 main ()
12539 return $ac_func ();
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest$ac_exeext &&
12561 $as_test_x conftest$ac_exeext; then
12562 eval "$as_ac_var=yes"
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 eval "$as_ac_var=no"
12570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12573 ac_res=`eval echo '${'$as_ac_var'}'`
12574 { echo "$as_me:$LINENO: result: $ac_res" >&5
12575 echo "${ECHO_T}$ac_res" >&6; }
12576 if test `eval echo '${'$as_ac_var'}'` = yes; then
12577 cat >>confdefs.h <<_ACEOF
12578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12579 _ACEOF
12582 done
12584 { echo "$as_me:$LINENO: checking for working mmap" >&5
12585 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12586 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 if test "$cross_compiling" = yes; then
12590 ac_cv_func_mmap_fixed_mapped=no
12591 else
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12599 /* malloc might have been renamed as rpl_malloc. */
12600 #undef malloc
12602 /* Thanks to Mike Haertel and Jim Avera for this test.
12603 Here is a matrix of mmap possibilities:
12604 mmap private not fixed
12605 mmap private fixed at somewhere currently unmapped
12606 mmap private fixed at somewhere already mapped
12607 mmap shared not fixed
12608 mmap shared fixed at somewhere currently unmapped
12609 mmap shared fixed at somewhere already mapped
12610 For private mappings, we should verify that changes cannot be read()
12611 back from the file, nor mmap's back from the file at a different
12612 address. (There have been systems where private was not correctly
12613 implemented like the infamous i386 svr4.0, and systems where the
12614 VM page cache was not coherent with the file system buffer cache
12615 like early versions of FreeBSD and possibly contemporary NetBSD.)
12616 For shared mappings, we should conversely verify that changes get
12617 propagated back to all the places they're supposed to be.
12619 Grep wants private fixed already mapped.
12620 The main things grep needs to know about mmap are:
12621 * does it exist and is it safe to write into the mmap'd area
12622 * how to use it (BSD variants) */
12624 #include <fcntl.h>
12625 #include <sys/mman.h>
12627 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12628 char *malloc ();
12629 #endif
12631 /* This mess was copied from the GNU getpagesize.h. */
12632 #ifndef HAVE_GETPAGESIZE
12633 /* Assume that all systems that can run configure have sys/param.h. */
12634 # ifndef HAVE_SYS_PARAM_H
12635 # define HAVE_SYS_PARAM_H 1
12636 # endif
12638 # ifdef _SC_PAGESIZE
12639 # define getpagesize() sysconf(_SC_PAGESIZE)
12640 # else /* no _SC_PAGESIZE */
12641 # ifdef HAVE_SYS_PARAM_H
12642 # include <sys/param.h>
12643 # ifdef EXEC_PAGESIZE
12644 # define getpagesize() EXEC_PAGESIZE
12645 # else /* no EXEC_PAGESIZE */
12646 # ifdef NBPG
12647 # define getpagesize() NBPG * CLSIZE
12648 # ifndef CLSIZE
12649 # define CLSIZE 1
12650 # endif /* no CLSIZE */
12651 # else /* no NBPG */
12652 # ifdef NBPC
12653 # define getpagesize() NBPC
12654 # else /* no NBPC */
12655 # ifdef PAGESIZE
12656 # define getpagesize() PAGESIZE
12657 # endif /* PAGESIZE */
12658 # endif /* no NBPC */
12659 # endif /* no NBPG */
12660 # endif /* no EXEC_PAGESIZE */
12661 # else /* no HAVE_SYS_PARAM_H */
12662 # define getpagesize() 8192 /* punt totally */
12663 # endif /* no HAVE_SYS_PARAM_H */
12664 # endif /* no _SC_PAGESIZE */
12666 #endif /* no HAVE_GETPAGESIZE */
12669 main ()
12671 char *data, *data2, *data3;
12672 int i, pagesize;
12673 int fd;
12675 pagesize = getpagesize ();
12677 /* First, make a file with some known garbage in it. */
12678 data = (char *) malloc (pagesize);
12679 if (!data)
12680 return 1;
12681 for (i = 0; i < pagesize; ++i)
12682 *(data + i) = rand ();
12683 umask (0);
12684 fd = creat ("conftest.mmap", 0600);
12685 if (fd < 0)
12686 return 1;
12687 if (write (fd, data, pagesize) != pagesize)
12688 return 1;
12689 close (fd);
12691 /* Next, try to mmap the file at a fixed address which already has
12692 something else allocated at it. If we can, also make sure that
12693 we see the same garbage. */
12694 fd = open ("conftest.mmap", O_RDWR);
12695 if (fd < 0)
12696 return 1;
12697 data2 = (char *) malloc (2 * pagesize);
12698 if (!data2)
12699 return 1;
12700 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12701 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12702 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12703 return 1;
12704 for (i = 0; i < pagesize; ++i)
12705 if (*(data + i) != *(data2 + i))
12706 return 1;
12708 /* Finally, make sure that changes to the mapped area do not
12709 percolate back to the file as seen by read(). (This is a bug on
12710 some variants of i386 svr4.0.) */
12711 for (i = 0; i < pagesize; ++i)
12712 *(data2 + i) = *(data2 + i) + 1;
12713 data3 = (char *) malloc (pagesize);
12714 if (!data3)
12715 return 1;
12716 if (read (fd, data3, pagesize) != pagesize)
12717 return 1;
12718 for (i = 0; i < pagesize; ++i)
12719 if (*(data + i) != *(data3 + i))
12720 return 1;
12721 close (fd);
12722 return 0;
12724 _ACEOF
12725 rm -f conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_func_mmap_fixed_mapped=yes
12746 else
12747 echo "$as_me: program exited with status $ac_status" >&5
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ( exit $ac_status )
12752 ac_cv_func_mmap_fixed_mapped=no
12754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12760 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12761 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_MMAP 1
12765 _ACEOF
12768 rm -f conftest.mmap
12772 for ac_header in sys/select.h sys/socket.h
12774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 ac_res=`eval echo '${'$as_ac_Header'}'`
12782 { echo "$as_me:$LINENO: result: $ac_res" >&5
12783 echo "${ECHO_T}$ac_res" >&6; }
12784 else
12785 # Is the header compilable?
12786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 $ac_includes_default
12795 #include <$ac_header>
12796 _ACEOF
12797 rm -f conftest.$ac_objext
12798 if { (ac_try="$ac_compile"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
12814 ac_header_compiler=yes
12815 else
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_header_compiler=no
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12824 echo "${ECHO_T}$ac_header_compiler" >&6; }
12826 # Is the header present?
12827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <$ac_header>
12836 _ACEOF
12837 if { (ac_try="$ac_cpp conftest.$ac_ext"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } >/dev/null && {
12850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 }; then
12853 ac_header_preproc=yes
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_header_preproc=no
12861 rm -f conftest.err conftest.$ac_ext
12862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12863 echo "${ECHO_T}$ac_header_preproc" >&6; }
12865 # So? What about this header?
12866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12867 yes:no: )
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12872 ac_header_preproc=yes
12874 no:yes:* )
12875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12887 ( cat <<\_ASBOX
12888 ## ------------------------------- ##
12889 ## Report this to www.asterisk.org ##
12890 ## ------------------------------- ##
12891 _ASBOX
12892 ) | sed "s/^/$as_me: WARNING: /" >&2
12894 esac
12895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900 eval "$as_ac_Header=\$ac_header_preproc"
12902 ac_res=`eval echo '${'$as_ac_Header'}'`
12903 { echo "$as_me:$LINENO: result: $ac_res" >&5
12904 echo "${ECHO_T}$ac_res" >&6; }
12907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12910 _ACEOF
12914 done
12916 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12917 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12918 if test "${ac_cv_func_select_args+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12922 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12923 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12931 #ifdef HAVE_SYS_SELECT_H
12932 # include <sys/select.h>
12933 #endif
12934 #ifdef HAVE_SYS_SOCKET_H
12935 # include <sys/socket.h>
12936 #endif
12939 main ()
12941 extern int select ($ac_arg1,
12942 $ac_arg234, $ac_arg234, $ac_arg234,
12943 $ac_arg5);
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext
12949 if { (ac_try="$ac_compile"
12950 case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_compile") 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } && {
12962 test -z "$ac_c_werror_flag" ||
12963 test ! -s conftest.err
12964 } && test -s conftest.$ac_objext; then
12965 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12966 else
12967 echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 done
12975 done
12976 done
12977 # Provide a safe default value.
12978 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12981 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12982 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12983 ac_save_IFS=$IFS; IFS=','
12984 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12985 IFS=$ac_save_IFS
12986 shift
12988 cat >>confdefs.h <<_ACEOF
12989 #define SELECT_TYPE_ARG1 $1
12990 _ACEOF
12993 cat >>confdefs.h <<_ACEOF
12994 #define SELECT_TYPE_ARG234 ($2)
12995 _ACEOF
12998 cat >>confdefs.h <<_ACEOF
12999 #define SELECT_TYPE_ARG5 ($3)
13000 _ACEOF
13002 rm -f conftest*
13004 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13005 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13006 if test "$ac_cv_prog_cc_c89" != no; then
13007 { echo "$as_me:$LINENO: result: yes" >&5
13008 echo "${ECHO_T}yes" >&6; }
13010 cat >>confdefs.h <<\_ACEOF
13011 #define PROTOTYPES 1
13012 _ACEOF
13015 cat >>confdefs.h <<\_ACEOF
13016 #define __PROTOTYPES 1
13017 _ACEOF
13019 else
13020 { echo "$as_me:$LINENO: result: no" >&5
13021 echo "${ECHO_T}no" >&6; }
13024 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13025 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13026 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029 ac_cv_func_setvbuf_reversed=no
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 #include <stdio.h>
13037 # ifdef PROTOTYPES
13038 int (setvbuf) (FILE *, int, char *, size_t);
13039 # endif
13041 main ()
13043 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13045 return 0;
13047 _ACEOF
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (ac_try="$ac_link"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_link") 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext &&
13065 $as_test_x conftest$ac_exeext; then
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <stdio.h>
13073 # ifdef PROTOTYPES
13074 int (setvbuf) (FILE *, int, char *, size_t);
13075 # endif
13077 main ()
13079 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13081 return 0;
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_link") 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest$ac_exeext &&
13101 $as_test_x conftest$ac_exeext; then
13102 # It compiles and links either way, so it must not be declared
13103 # with a prototype and most likely this is a K&R C compiler.
13104 # Try running it.
13105 if test "$cross_compiling" = yes; then
13106 : # Assume setvbuf is not reversed when cross-compiling.
13107 else
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 $ac_includes_default
13116 main ()
13118 /* This call has the arguments reversed.
13119 A reversed system may check and see that the address of buf
13120 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13121 char buf;
13122 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13123 return 1;
13124 putchar ('\r');
13125 return 0; /* Non-reversed systems SEGV here. */
13127 return 0;
13129 _ACEOF
13130 rm -f conftest$ac_exeext
13131 if { (ac_try="$ac_link"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_link") 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_cv_func_setvbuf_reversed=yes
13151 else
13152 echo "$as_me: program exited with status $ac_status" >&5
13153 echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13161 ac_cv_func_setvbuf_reversed=yes
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13170 conftest$ac_exeext conftest.$ac_ext
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13182 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13183 if test $ac_cv_func_setvbuf_reversed = yes; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define SETVBUF_REVERSED 1
13187 _ACEOF
13191 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13192 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13193 if test "${ac_cv_type_signal+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 #include <sys/types.h>
13203 #include <signal.h>
13206 main ()
13208 return *(signal (0, 0)) (0) == 1;
13210 return 0;
13212 _ACEOF
13213 rm -f conftest.$ac_objext
13214 if { (ac_try="$ac_compile"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218 esac
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_compile") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest.$ac_objext; then
13230 ac_cv_type_signal=int
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_cv_type_signal=void
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13241 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13243 cat >>confdefs.h <<_ACEOF
13244 #define RETSIGTYPE $ac_cv_type_signal
13245 _ACEOF
13248 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13249 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13250 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 rm -f conftest.sym conftest.file
13254 echo >conftest.file
13255 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13256 if test "$cross_compiling" = yes; then
13257 ac_cv_func_lstat_dereferences_slashed_symlink=no
13258 else
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h. */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13267 main ()
13269 struct stat sbuf;
13270 /* Linux will dereference the symlink and fail.
13271 That is better in the sense that it means we will not
13272 have to compile and use the lstat wrapper. */
13273 return lstat ("conftest.sym/", &sbuf) == 0;
13275 return 0;
13277 _ACEOF
13278 rm -f conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13299 else
13300 echo "$as_me: program exited with status $ac_status" >&5
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ( exit $ac_status )
13305 ac_cv_func_lstat_dereferences_slashed_symlink=no
13307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13311 else
13312 # If the `ln -s' command failed, then we probably don't even
13313 # have an lstat function.
13314 ac_cv_func_lstat_dereferences_slashed_symlink=no
13316 rm -f conftest.sym conftest.file
13319 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13320 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13322 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13324 cat >>confdefs.h <<_ACEOF
13325 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13326 _ACEOF
13329 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13330 case " $LIBOBJS " in
13331 *" lstat.$ac_objext "* ) ;;
13332 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13334 esac
13338 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13339 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13340 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343 if test "$cross_compiling" = yes; then
13344 ac_cv_func_stat_empty_string_bug=yes
13345 else
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 $ac_includes_default
13354 main ()
13356 struct stat sbuf;
13357 return stat ("", &sbuf) == 0;
13359 return 0;
13361 _ACEOF
13362 rm -f conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_link") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13373 { (case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_try") 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_func_stat_empty_string_bug=no
13383 else
13384 echo "$as_me: program exited with status $ac_status" >&5
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 ( exit $ac_status )
13389 ac_cv_func_stat_empty_string_bug=yes
13391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13397 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13398 if test $ac_cv_func_stat_empty_string_bug = yes; then
13399 case " $LIBOBJS " in
13400 *" stat.$ac_objext "* ) ;;
13401 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13403 esac
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_STAT_EMPTY_STRING_BUG 1
13408 _ACEOF
13412 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13413 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13414 if test "${ac_cv_func_strcoll_works+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 if test "$cross_compiling" = yes; then
13418 ac_cv_func_strcoll_works=no
13419 else
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13428 main ()
13430 return (strcoll ("abc", "def") >= 0 ||
13431 strcoll ("ABC", "DEF") >= 0 ||
13432 strcoll ("123", "456") >= 0)
13434 return 0;
13436 _ACEOF
13437 rm -f conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_func_strcoll_works=yes
13458 else
13459 echo "$as_me: program exited with status $ac_status" >&5
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ( exit $ac_status )
13464 ac_cv_func_strcoll_works=no
13466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13471 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13472 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13473 if test $ac_cv_func_strcoll_works = yes; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_STRCOLL 1
13477 _ACEOF
13482 for ac_func in strftime
13484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13498 #define $ac_func innocuous_$ac_func
13500 /* System header to define __stub macros and hopefully few prototypes,
13501 which can conflict with char $ac_func (); below.
13502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503 <limits.h> exists even on freestanding compilers. */
13505 #ifdef __STDC__
13506 # include <limits.h>
13507 #else
13508 # include <assert.h>
13509 #endif
13511 #undef $ac_func
13513 /* Override any GCC internal prototype to avoid an error.
13514 Use char because int might match the return type of a GCC
13515 builtin and then its argument prototype would still apply. */
13516 #ifdef __cplusplus
13517 extern "C"
13518 #endif
13519 char $ac_func ();
13520 /* The GNU C library defines this for functions which it implements
13521 to always fail with ENOSYS. Some functions are actually named
13522 something starting with __ and the normal name is an alias. */
13523 #if defined __stub_$ac_func || defined __stub___$ac_func
13524 choke me
13525 #endif
13528 main ()
13530 return $ac_func ();
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest$ac_exeext &&
13552 $as_test_x conftest$ac_exeext; then
13553 eval "$as_ac_var=yes"
13554 else
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 eval "$as_ac_var=no"
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 ac_res=`eval echo '${'$as_ac_var'}'`
13565 { echo "$as_me:$LINENO: result: $ac_res" >&5
13566 echo "${ECHO_T}$ac_res" >&6; }
13567 if test `eval echo '${'$as_ac_var'}'` = yes; then
13568 cat >>confdefs.h <<_ACEOF
13569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13570 _ACEOF
13572 else
13573 # strftime is in -lintl on SCO UNIX.
13574 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13575 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13576 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lintl $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char strftime ();
13596 main ()
13598 return strftime ();
13600 return 0;
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608 esac
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_link") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest$ac_exeext &&
13620 $as_test_x conftest$ac_exeext; then
13621 ac_cv_lib_intl_strftime=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_cv_lib_intl_strftime=no
13629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13630 conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13633 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13634 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13635 if test $ac_cv_lib_intl_strftime = yes; then
13636 cat >>confdefs.h <<\_ACEOF
13637 #define HAVE_STRFTIME 1
13638 _ACEOF
13640 LIBS="-lintl $LIBS"
13644 done
13646 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13647 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13648 if test "${ac_cv_func_strnlen_working+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651 if test "$cross_compiling" = yes; then
13652 ac_cv_func_strnlen_working=no
13653 else
13654 cat >conftest.$ac_ext <<_ACEOF
13655 /* confdefs.h. */
13656 _ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h. */
13660 $ac_includes_default
13662 main ()
13665 #define S "foobar"
13666 #define S_LEN (sizeof S - 1)
13668 /* At least one implementation is buggy: that of AIX 4.3 would
13669 give strnlen (S, 1) == 3. */
13671 int i;
13672 for (i = 0; i < S_LEN + 1; ++i)
13674 int expected = i <= S_LEN ? i : S_LEN;
13675 if (strnlen (S, i) != expected)
13676 return 1;
13678 return 0;
13681 return 0;
13683 _ACEOF
13684 rm -f conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13695 { (case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_try") 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_func_strnlen_working=yes
13705 else
13706 echo "$as_me: program exited with status $ac_status" >&5
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ( exit $ac_status )
13711 ac_cv_func_strnlen_working=no
13713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13719 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13720 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13721 *" strnlen.$ac_objext "* ) ;;
13722 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13724 esac
13727 { echo "$as_me:$LINENO: checking for working strtod" >&5
13728 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13729 if test "${ac_cv_func_strtod+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 if test "$cross_compiling" = yes; then
13733 ac_cv_func_strtod=no
13734 else
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h. */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 $ac_includes_default
13743 #ifndef strtod
13744 double strtod ();
13745 #endif
13747 main()
13750 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13751 char *string = " +69";
13752 char *term;
13753 double value;
13754 value = strtod (string, &term);
13755 if (value != 69 || term != (string + 4))
13756 return 1;
13760 /* Under Solaris 2.4, strtod returns the wrong value for the
13761 terminating character under some conditions. */
13762 char *string = "NaN";
13763 char *term;
13764 strtod (string, &term);
13765 if (term != string && *(term - 1) == 0)
13766 return 1;
13768 return 0;
13771 _ACEOF
13772 rm -f conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777 esac
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_link") 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_func_strtod=yes
13793 else
13794 echo "$as_me: program exited with status $ac_status" >&5
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13798 ( exit $ac_status )
13799 ac_cv_func_strtod=no
13801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13807 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13808 if test $ac_cv_func_strtod = no; then
13809 case " $LIBOBJS " in
13810 *" strtod.$ac_objext "* ) ;;
13811 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13813 esac
13815 { echo "$as_me:$LINENO: checking for pow" >&5
13816 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13817 if test "${ac_cv_func_pow+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13828 #define pow innocuous_pow
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char pow (); below.
13832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13833 <limits.h> exists even on freestanding compilers. */
13835 #ifdef __STDC__
13836 # include <limits.h>
13837 #else
13838 # include <assert.h>
13839 #endif
13841 #undef pow
13843 /* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
13846 #ifdef __cplusplus
13847 extern "C"
13848 #endif
13849 char pow ();
13850 /* The GNU C library defines this for functions which it implements
13851 to always fail with ENOSYS. Some functions are actually named
13852 something starting with __ and the normal name is an alias. */
13853 #if defined __stub_pow || defined __stub___pow
13854 choke me
13855 #endif
13858 main ()
13860 return pow ();
13862 return 0;
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext &&
13882 $as_test_x conftest$ac_exeext; then
13883 ac_cv_func_pow=yes
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_cv_func_pow=no
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892 conftest$ac_exeext conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13895 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13897 if test $ac_cv_func_pow = no; then
13898 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13899 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13900 if test "${ac_cv_lib_m_pow+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-lm $LIBS"
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char pow ();
13920 main ()
13922 return pow ();
13924 return 0;
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (ac_try="$ac_link"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_m_pow=yes
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_m_pow=no
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13958 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13959 if test $ac_cv_lib_m_pow = yes; then
13960 POW_LIB=-lm
13961 else
13962 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13963 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13974 for ac_header in $ac_header_list
13976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 ac_res=`eval echo '${'$as_ac_Header'}'`
13984 { echo "$as_me:$LINENO: result: $ac_res" >&5
13985 echo "${ECHO_T}$ac_res" >&6; }
13986 else
13987 # Is the header compilable?
13988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13990 cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h. */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13997 #include <$ac_header>
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (ac_try="$ac_compile"
14001 case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_compile") 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest.$ac_objext; then
14016 ac_header_compiler=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_compiler=no
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14026 echo "${ECHO_T}$ac_header_compiler" >&6; }
14028 # Is the header present?
14029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 #include <$ac_header>
14038 _ACEOF
14039 if { (ac_try="$ac_cpp conftest.$ac_ext"
14040 case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14043 esac
14044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } >/dev/null && {
14052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14054 }; then
14055 ac_header_preproc=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_header_preproc=no
14063 rm -f conftest.err conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065 echo "${ECHO_T}$ac_header_preproc" >&6; }
14067 # So? What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14069 yes:no: )
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074 ac_header_preproc=yes
14076 no:yes:* )
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089 ( cat <<\_ASBOX
14090 ## ------------------------------- ##
14091 ## Report this to www.asterisk.org ##
14092 ## ------------------------------- ##
14093 _ASBOX
14094 ) | sed "s/^/$as_me: WARNING: /" >&2
14096 esac
14097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102 eval "$as_ac_Header=\$ac_header_preproc"
14104 ac_res=`eval echo '${'$as_ac_Header'}'`
14105 { echo "$as_me:$LINENO: result: $ac_res" >&5
14106 echo "${ECHO_T}$ac_res" >&6; }
14109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14110 cat >>confdefs.h <<_ACEOF
14111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14112 _ACEOF
14116 done
14126 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14127 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14128 if test "${ac_cv_func_utime_null+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 rm -f conftest.data; >conftest.data
14132 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14133 if test "$cross_compiling" = yes; then
14134 ac_cv_func_utime_null=no
14135 else
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 $ac_includes_default
14143 #ifdef HAVE_UTIME_H
14144 # include <utime.h>
14145 #endif
14147 main ()
14149 struct stat s, t;
14150 return ! (stat ("conftest.data", &s) == 0
14151 && utime ("conftest.data", 0) == 0
14152 && stat ("conftest.data", &t) == 0
14153 && t.st_mtime >= s.st_mtime
14154 && t.st_mtime - s.st_mtime < 120);
14156 return 0;
14158 _ACEOF
14159 rm -f conftest$ac_exeext
14160 if { (ac_try="$ac_link"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_link") 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_func_utime_null=yes
14180 else
14181 echo "$as_me: program exited with status $ac_status" >&5
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ( exit $ac_status )
14186 ac_cv_func_utime_null=no
14188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14194 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14195 if test $ac_cv_func_utime_null = yes; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_UTIME_NULL 1
14199 _ACEOF
14202 rm -f conftest.data
14205 for ac_func in vprintf
14207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14221 #define $ac_func innocuous_$ac_func
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char $ac_func (); below.
14225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14226 <limits.h> exists even on freestanding compilers. */
14228 #ifdef __STDC__
14229 # include <limits.h>
14230 #else
14231 # include <assert.h>
14232 #endif
14234 #undef $ac_func
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 char $ac_func ();
14243 /* The GNU C library defines this for functions which it implements
14244 to always fail with ENOSYS. Some functions are actually named
14245 something starting with __ and the normal name is an alias. */
14246 #if defined __stub_$ac_func || defined __stub___$ac_func
14247 choke me
14248 #endif
14251 main ()
14253 return $ac_func ();
14255 return 0;
14257 _ACEOF
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (ac_try="$ac_link"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_link") 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && {
14272 test -z "$ac_c_werror_flag" ||
14273 test ! -s conftest.err
14274 } && test -s conftest$ac_exeext &&
14275 $as_test_x conftest$ac_exeext; then
14276 eval "$as_ac_var=yes"
14277 else
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 eval "$as_ac_var=no"
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14287 ac_res=`eval echo '${'$as_ac_var'}'`
14288 { echo "$as_me:$LINENO: result: $ac_res" >&5
14289 echo "${ECHO_T}$ac_res" >&6; }
14290 if test `eval echo '${'$as_ac_var'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14293 _ACEOF
14295 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14296 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14297 if test "${ac_cv_func__doprnt+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14308 #define _doprnt innocuous__doprnt
14310 /* System header to define __stub macros and hopefully few prototypes,
14311 which can conflict with char _doprnt (); below.
14312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14313 <limits.h> exists even on freestanding compilers. */
14315 #ifdef __STDC__
14316 # include <limits.h>
14317 #else
14318 # include <assert.h>
14319 #endif
14321 #undef _doprnt
14323 /* Override any GCC internal prototype to avoid an error.
14324 Use char because int might match the return type of a GCC
14325 builtin and then its argument prototype would still apply. */
14326 #ifdef __cplusplus
14327 extern "C"
14328 #endif
14329 char _doprnt ();
14330 /* The GNU C library defines this for functions which it implements
14331 to always fail with ENOSYS. Some functions are actually named
14332 something starting with __ and the normal name is an alias. */
14333 #if defined __stub__doprnt || defined __stub____doprnt
14334 choke me
14335 #endif
14338 main ()
14340 return _doprnt ();
14342 return 0;
14344 _ACEOF
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (ac_try="$ac_link"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_link") 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest$ac_exeext &&
14362 $as_test_x conftest$ac_exeext; then
14363 ac_cv_func__doprnt=yes
14364 else
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_cv_func__doprnt=no
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372 conftest$ac_exeext conftest.$ac_ext
14374 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14375 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14376 if test $ac_cv_func__doprnt = yes; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_DOPRNT 1
14380 _ACEOF
14385 done
14437 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
14439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14453 #define $ac_func innocuous_$ac_func
14455 /* System header to define __stub macros and hopefully few prototypes,
14456 which can conflict with char $ac_func (); below.
14457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14458 <limits.h> exists even on freestanding compilers. */
14460 #ifdef __STDC__
14461 # include <limits.h>
14462 #else
14463 # include <assert.h>
14464 #endif
14466 #undef $ac_func
14468 /* Override any GCC internal prototype to avoid an error.
14469 Use char because int might match the return type of a GCC
14470 builtin and then its argument prototype would still apply. */
14471 #ifdef __cplusplus
14472 extern "C"
14473 #endif
14474 char $ac_func ();
14475 /* The GNU C library defines this for functions which it implements
14476 to always fail with ENOSYS. Some functions are actually named
14477 something starting with __ and the normal name is an alias. */
14478 #if defined __stub_$ac_func || defined __stub___$ac_func
14479 choke me
14480 #endif
14483 main ()
14485 return $ac_func ();
14487 return 0;
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14508 eval "$as_ac_var=yes"
14509 else
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 eval "$as_ac_var=no"
14516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14517 conftest$ac_exeext conftest.$ac_ext
14519 ac_res=`eval echo '${'$as_ac_var'}'`
14520 { echo "$as_me:$LINENO: result: $ac_res" >&5
14521 echo "${ECHO_T}$ac_res" >&6; }
14522 if test `eval echo '${'$as_ac_var'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14525 _ACEOF
14528 done
14531 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14532 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14533 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14534 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_func_search_save_LIBS=$LIBS
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 /* Override any GCC internal prototype to avoid an error.
14546 Use char because int might match the return type of a GCC
14547 builtin and then its argument prototype would still apply. */
14548 #ifdef __cplusplus
14549 extern "C"
14550 #endif
14551 char gethostbyname_r ();
14553 main ()
14555 return gethostbyname_r ();
14557 return 0;
14559 _ACEOF
14560 for ac_lib in '' socket nsl; do
14561 if test -z "$ac_lib"; then
14562 ac_res="none required"
14563 else
14564 ac_res=-l$ac_lib
14565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
14585 ac_cv_search_gethostbyname_r=$ac_res
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext
14595 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14596 break
14598 done
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14601 else
14602 ac_cv_search_gethostbyname_r=no
14604 rm conftest.$ac_ext
14605 LIBS=$ac_func_search_save_LIBS
14607 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14608 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14609 ac_res=$ac_cv_search_gethostbyname_r
14610 if test "$ac_res" != no; then
14611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14616 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14617 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <stdlib.h>
14625 #include <netdb.h>
14627 main ()
14629 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14631 return 0;
14633 _ACEOF
14634 rm -f conftest.$ac_objext conftest$ac_exeext
14635 if { (ac_try="$ac_link"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_link") 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext &&
14651 $as_test_x conftest$ac_exeext; then
14652 { echo "$as_me:$LINENO: result: yes" >&5
14653 echo "${ECHO_T}yes" >&6; }
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_GETHOSTBYNAME_R_6 1
14657 _ACEOF
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 { echo "$as_me:$LINENO: result: no" >&5
14664 echo "${ECHO_T}no" >&6; }
14668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14671 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14672 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <stdlib.h>
14680 #include <netdb.h>
14682 main ()
14684 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14686 return 0;
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707 { echo "$as_me:$LINENO: result: yes" >&5
14708 echo "${ECHO_T}yes" >&6; }
14710 cat >>confdefs.h <<\_ACEOF
14711 #define HAVE_GETHOSTBYNAME_R_5 1
14712 _ACEOF
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 { echo "$as_me:$LINENO: result: no" >&5
14719 echo "${ECHO_T}no" >&6; }
14723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14724 conftest$ac_exeext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14727 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <pthread.h>
14736 main ()
14738 int foo = PTHREAD_RWLOCK_INITIALIZER;
14740 return 0;
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (ac_try="$ac_link"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_link") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest$ac_exeext &&
14760 $as_test_x conftest$ac_exeext; then
14761 { echo "$as_me:$LINENO: result: yes" >&5
14762 echo "${ECHO_T}yes" >&6; }
14764 cat >>confdefs.h <<\_ACEOF
14765 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14766 _ACEOF
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 { echo "$as_me:$LINENO: result: no" >&5
14773 echo "${ECHO_T}no" >&6; }
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14780 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14781 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <pthread.h>
14790 main ()
14792 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14794 return 0;
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest$ac_exeext &&
14814 $as_test_x conftest$ac_exeext; then
14815 { echo "$as_me:$LINENO: result: yes" >&5
14816 echo "${ECHO_T}yes" >&6; }
14818 cat >>confdefs.h <<\_ACEOF
14819 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14820 _ACEOF
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 { echo "$as_me:$LINENO: result: no" >&5
14827 echo "${ECHO_T}no" >&6; }
14831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14832 conftest$ac_exeext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14835 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14844 main ()
14846 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14848 return 0;
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_link") 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && {
14865 test -z "$ac_c_werror_flag" ||
14866 test ! -s conftest.err
14867 } && test -s conftest$ac_exeext &&
14868 $as_test_x conftest$ac_exeext; then
14869 { echo "$as_me:$LINENO: result: yes" >&5
14870 echo "${ECHO_T}yes" >&6; }
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_GCC_ATOMICS 1
14874 _ACEOF
14876 else
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 { echo "$as_me:$LINENO: result: no" >&5
14881 echo "${ECHO_T}no" >&6; }
14885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14886 conftest$ac_exeext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14890 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h. */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 static int __attribute__((pure)) test(void) {}
14899 main ()
14903 return 0;
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } && {
14920 test -z "$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 } && test -s conftest.$ac_objext; then
14923 { echo "$as_me:$LINENO: result: yes" >&5
14924 echo "${ECHO_T}yes" >&6; }
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_ATTRIBUTE_pure 1
14928 _ACEOF
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 { echo "$as_me:$LINENO: result: no" >&5
14935 echo "${ECHO_T}no" >&6; }
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14942 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 static int __attribute__((malloc)) test(void) {}
14951 main ()
14955 return 0;
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 { echo "$as_me:$LINENO: result: yes" >&5
14976 echo "${ECHO_T}yes" >&6; }
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_ATTRIBUTE_malloc 1
14980 _ACEOF
14982 else
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 { echo "$as_me:$LINENO: result: no" >&5
14987 echo "${ECHO_T}no" >&6; }
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14994 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 static int __attribute__((const)) test(void) {}
15003 main ()
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 { echo "$as_me:$LINENO: result: yes" >&5
15028 echo "${ECHO_T}yes" >&6; }
15030 cat >>confdefs.h <<_ACEOF
15031 #define HAVE_ATTRIBUTE_const 1
15032 _ACEOF
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 { echo "$as_me:$LINENO: result: no" >&5
15039 echo "${ECHO_T}no" >&6; }
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15046 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 static int __attribute__((unused)) test(void) {}
15055 main ()
15059 return 0;
15061 _ACEOF
15062 rm -f conftest.$ac_objext
15063 if { (ac_try="$ac_compile"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_compile") 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest.$ac_objext; then
15079 { echo "$as_me:$LINENO: result: yes" >&5
15080 echo "${ECHO_T}yes" >&6; }
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_ATTRIBUTE_unused 1
15084 _ACEOF
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 { echo "$as_me:$LINENO: result: no" >&5
15091 echo "${ECHO_T}no" >&6; }
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15098 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 static int __attribute__((always_inline)) test(void) {}
15107 main ()
15111 return 0;
15113 _ACEOF
15114 rm -f conftest.$ac_objext
15115 if { (ac_try="$ac_compile"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15119 esac
15120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_compile") 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && {
15128 test -z "$ac_c_werror_flag" ||
15129 test ! -s conftest.err
15130 } && test -s conftest.$ac_objext; then
15131 { echo "$as_me:$LINENO: result: yes" >&5
15132 echo "${ECHO_T}yes" >&6; }
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_ATTRIBUTE_always_inline 1
15136 _ACEOF
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 { echo "$as_me:$LINENO: result: no" >&5
15143 echo "${ECHO_T}no" >&6; }
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15150 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 static int __attribute__((deprecated)) test(void) {}
15159 main ()
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_compile") 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } && {
15180 test -z "$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15182 } && test -s conftest.$ac_objext; then
15183 { echo "$as_me:$LINENO: result: yes" >&5
15184 echo "${ECHO_T}yes" >&6; }
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_ATTRIBUTE_deprecated 1
15188 _ACEOF
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 { echo "$as_me:$LINENO: result: no" >&5
15195 echo "${ECHO_T}no" >&6; }
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15202 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15203 saved_CFLAGS="${CFLAGS}"
15204 CFLAGS="${CFLAGS} -ffunction-sections"
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15213 main ()
15215 int x = 1;
15217 return 0;
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_compile") 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest.$ac_objext; then
15237 { echo "$as_me:$LINENO: result: yes" >&5
15238 echo "${ECHO_T}yes" >&6; }
15239 saved_LDFLAGS="${LDFLAGS}"
15240 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15241 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15242 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15251 main ()
15253 int x = 1;
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (ac_try="$ac_link"
15260 case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_link") 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest$ac_exeext &&
15275 $as_test_x conftest$ac_exeext; then
15276 { echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6; }
15278 GC_CFLAGS="-ffunction-sections"
15279 GC_LDFLAGS="-Wl,--gc-sections"
15280 else
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 { echo "$as_me:$LINENO: result: no" >&5
15285 echo "${ECHO_T}no" >&6; }
15289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290 conftest$ac_exeext conftest.$ac_ext
15291 LDFLAGS="${saved_LDFLAGS}"
15292 else
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 { echo "$as_me:$LINENO: result: no" >&5
15297 echo "${ECHO_T}no" >&6; }
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 CFLAGS="${saved_CFLAGS}"
15306 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15307 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15308 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15309 { echo "$as_me:$LINENO: result: yes" >&5
15310 echo "${ECHO_T}yes" >&6; }
15311 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15312 else
15313 { echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6; }
15315 AST_DECLARATION_AFTER_STATEMENT=
15319 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15320 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15321 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15322 { echo "$as_me:$LINENO: result: yes" >&5
15323 echo "${ECHO_T}yes" >&6; }
15324 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15325 else
15326 { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15328 AST_NO_STRICT_OVERFLOW=
15332 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15333 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <resolv.h>
15342 main ()
15344 int foo = res_ninit(NULL);
15346 return 0;
15348 _ACEOF
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext &&
15366 $as_test_x conftest$ac_exeext; then
15367 { echo "$as_me:$LINENO: result: yes" >&5
15368 echo "${ECHO_T}yes" >&6; }
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_RES_NINIT 1
15372 _ACEOF
15374 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15375 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <resolv.h>
15384 main ()
15386 int foo = res_ndestroy(NULL);
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 { echo "$as_me:$LINENO: result: yes" >&5
15410 echo "${ECHO_T}yes" >&6; }
15412 cat >>confdefs.h <<\_ACEOF
15413 #define HAVE_RES_NDESTROY 1
15414 _ACEOF
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 { echo "$as_me:$LINENO: result: no" >&5
15421 echo "${ECHO_T}no" >&6; }
15425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15426 conftest$ac_exeext conftest.$ac_ext
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 { echo "$as_me:$LINENO: result: no" >&5
15432 echo "${ECHO_T}no" >&6; }
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437 conftest$ac_exeext conftest.$ac_ext
15439 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15440 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <dlfcn.h>
15449 main ()
15451 int foo = RTLD_NOLOAD;
15453 return 0;
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (ac_try="$ac_link"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_link") 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } && {
15470 test -z "$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15472 } && test -s conftest$ac_exeext &&
15473 $as_test_x conftest$ac_exeext; then
15474 { echo "$as_me:$LINENO: result: yes" >&5
15475 echo "${ECHO_T}yes" >&6; }
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_RTLD_NOLOAD 1
15479 _ACEOF
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 { echo "$as_me:$LINENO: result: no" >&5
15486 echo "${ECHO_T}no" >&6; }
15490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491 conftest$ac_exeext conftest.$ac_ext
15493 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15494 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h. */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <netinet/in.h>
15503 main ()
15505 int foo = IP_MTU_DISCOVER;
15507 return 0;
15509 _ACEOF
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest$ac_exeext &&
15527 $as_test_x conftest$ac_exeext; then
15528 { echo "$as_me:$LINENO: result: yes" >&5
15529 echo "${ECHO_T}yes" >&6; }
15531 cat >>confdefs.h <<\_ACEOF
15532 #define HAVE_IP_MTU_DISCOVER 1
15533 _ACEOF
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 { echo "$as_me:$LINENO: result: no" >&5
15540 echo "${ECHO_T}no" >&6; }
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15547 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15548 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15549 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15550 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15554 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15555 else
15556 # Is the header compilable?
15557 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15558 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 $ac_includes_default
15566 #include <libkern/OSAtomic.h>
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest.$ac_objext; then
15585 ac_header_compiler=yes
15586 else
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 ac_header_compiler=no
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15595 echo "${ECHO_T}$ac_header_compiler" >&6; }
15597 # Is the header present?
15598 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15599 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <libkern/OSAtomic.h>
15607 _ACEOF
15608 if { (ac_try="$ac_cpp conftest.$ac_ext"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } >/dev/null && {
15621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 }; then
15624 ac_header_preproc=yes
15625 else
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_header_preproc=no
15632 rm -f conftest.err conftest.$ac_ext
15633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15634 echo "${ECHO_T}$ac_header_preproc" >&6; }
15636 # So? What about this header?
15637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15638 yes:no: )
15639 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15640 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15641 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15642 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15643 ac_header_preproc=yes
15645 no:yes:* )
15646 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15647 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15649 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15651 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15653 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15655 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15657 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15658 ( cat <<\_ASBOX
15659 ## ------------------------------- ##
15660 ## Report this to www.asterisk.org ##
15661 ## ------------------------------- ##
15662 _ASBOX
15663 ) | sed "s/^/$as_me: WARNING: /" >&2
15665 esac
15666 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15667 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15668 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15673 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15674 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15677 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_OSX_ATOMICS 1
15681 _ACEOF
15687 { echo "$as_me:$LINENO: checking for int" >&5
15688 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15689 if test "${ac_cv_type_int+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15699 typedef int ac__type_new_;
15701 main ()
15703 if ((ac__type_new_ *) 0)
15704 return 0;
15705 if (sizeof (ac__type_new_))
15706 return 0;
15708 return 0;
15710 _ACEOF
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
15728 ac_cv_type_int=yes
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_cv_type_int=no
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15739 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15741 # The cast to long int works around a bug in the HP C Compiler
15742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15744 # This bug is HP SR number 8606223364.
15745 { echo "$as_me:$LINENO: checking size of int" >&5
15746 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15747 if test "${ac_cv_sizeof_int+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750 if test "$cross_compiling" = yes; then
15751 # Depending upon the size, compute the lo and hi bounds.
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 typedef int ac__type_sizeof_;
15761 main ()
15763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15764 test_array [0] = 0
15767 return 0;
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_compile") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } && {
15784 test -z "$ac_c_werror_flag" ||
15785 test ! -s conftest.err
15786 } && test -s conftest.$ac_objext; then
15787 ac_lo=0 ac_mid=0
15788 while :; do
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 typedef int ac__type_sizeof_;
15798 main ()
15800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15801 test_array [0] = 0
15804 return 0;
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_hi=$ac_mid; break
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_lo=`expr $ac_mid + 1`
15830 if test $ac_lo -le $ac_mid; then
15831 ac_lo= ac_hi=
15832 break
15834 ac_mid=`expr 2 '*' $ac_mid + 1`
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 done
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15850 typedef int ac__type_sizeof_;
15852 main ()
15854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15855 test_array [0] = 0
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_hi=-1 ac_mid=-1
15879 while :; do
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h. */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 $ac_includes_default
15887 typedef int ac__type_sizeof_;
15889 main ()
15891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15892 test_array [0] = 0
15895 return 0;
15897 _ACEOF
15898 rm -f conftest.$ac_objext
15899 if { (ac_try="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_compile") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest.$ac_objext; then
15915 ac_lo=$ac_mid; break
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_hi=`expr '(' $ac_mid ')' - 1`
15921 if test $ac_mid -le $ac_hi; then
15922 ac_lo= ac_hi=
15923 break
15925 ac_mid=`expr 2 '*' $ac_mid`
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 done
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_lo= ac_hi=
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 # Binary search between lo and hi bounds.
15942 while test "x$ac_lo" != "x$ac_hi"; do
15943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h. */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 $ac_includes_default
15951 typedef int ac__type_sizeof_;
15953 main ()
15955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15956 test_array [0] = 0
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15979 ac_hi=$ac_mid
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_lo=`expr '(' $ac_mid ')' + 1`
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 done
15989 case $ac_lo in
15990 ?*) ac_cv_sizeof_int=$ac_lo;;
15991 '') if test "$ac_cv_type_int" = yes; then
15992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15993 See \`config.log' for more details." >&5
15994 echo "$as_me: error: cannot compute sizeof (int)
15995 See \`config.log' for more details." >&2;}
15996 { (exit 77); exit 77; }; }
15997 else
15998 ac_cv_sizeof_int=0
15999 fi ;;
16000 esac
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $ac_includes_default
16009 typedef int ac__type_sizeof_;
16010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16012 #include <stdio.h>
16013 #include <stdlib.h>
16015 main ()
16018 FILE *f = fopen ("conftest.val", "w");
16019 if (! f)
16020 return 1;
16021 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16023 long int i = longval ();
16024 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16025 return 1;
16026 fprintf (f, "%ld\n", i);
16028 else
16030 unsigned long int i = ulongval ();
16031 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16032 return 1;
16033 fprintf (f, "%lu\n", i);
16035 return ferror (f) || fclose (f) != 0;
16038 return 0;
16040 _ACEOF
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_sizeof_int=`cat conftest.val`
16062 else
16063 echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ( exit $ac_status )
16068 if test "$ac_cv_type_int" = yes; then
16069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16070 See \`config.log' for more details." >&5
16071 echo "$as_me: error: cannot compute sizeof (int)
16072 See \`config.log' for more details." >&2;}
16073 { (exit 77); exit 77; }; }
16074 else
16075 ac_cv_sizeof_int=0
16078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16080 rm -f conftest.val
16082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16083 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16087 cat >>confdefs.h <<_ACEOF
16088 #define SIZEOF_INT $ac_cv_sizeof_int
16089 _ACEOF
16093 # do the package library checks now
16096 if test "${USE_ALSA}" != "no"; then
16097 pbxlibdir=""
16098 if test "x${ALSA_DIR}" != "x"; then
16099 if test -d ${ALSA_DIR}/lib; then
16100 pbxlibdir="-L${ALSA_DIR}/lib"
16101 else
16102 pbxlibdir="-L${ALSA_DIR}"
16105 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16106 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16107 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 ac_check_lib_save_LIBS=$LIBS
16111 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h. */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char snd_spcm_init ();
16127 main ()
16129 return snd_spcm_init ();
16131 return 0;
16133 _ACEOF
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (ac_try="$ac_link"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16139 esac
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_link") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext &&
16151 $as_test_x conftest$ac_exeext; then
16152 ac_cv_lib_asound_snd_spcm_init=yes
16153 else
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_cv_lib_asound_snd_spcm_init=no
16160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16161 conftest$ac_exeext conftest.$ac_ext
16162 LIBS=$ac_check_lib_save_LIBS
16164 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16165 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16166 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16167 AST_ALSA_FOUND=yes
16168 else
16169 AST_ALSA_FOUND=no
16173 if test "${AST_ALSA_FOUND}" = "yes"; then
16174 ALSA_LIB="-lasound -lm -ldl"
16175 ALSA_HEADER_FOUND="1"
16176 if test "x${ALSA_DIR}" != "x"; then
16177 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16178 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16179 saved_cppflags="${CPPFLAGS}"
16180 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16181 if test "xalsa/asoundlib.h" != "x" ; then
16182 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16185 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 ac_res=`eval echo '${'$as_ac_Header'}'`
16190 { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16192 else
16193 # Is the header compilable?
16194 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16195 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (ac_try="$ac_compile"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_compiler=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16236 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16244 _ACEOF
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev/null && {
16258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 }; then
16261 ac_header_preproc=yes
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_preproc=no
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 yes:no: )
16276 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16282 no:yes:* )
16283 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16295 ( cat <<\_ASBOX
16296 ## ------------------------------- ##
16297 ## Report this to www.asterisk.org ##
16298 ## ------------------------------- ##
16299 _ASBOX
16300 ) | sed "s/^/$as_me: WARNING: /" >&2
16302 esac
16303 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16304 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308 eval "$as_ac_Header=\$ac_header_preproc"
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16316 ALSA_HEADER_FOUND=1
16317 else
16318 ALSA_HEADER_FOUND=0
16323 CPPFLAGS="${saved_cppflags}"
16324 else
16325 if test "xalsa/asoundlib.h" != "x" ; then
16326 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16327 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16328 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16329 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16333 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16334 else
16335 # Is the header compilable?
16336 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16337 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 #include <alsa/asoundlib.h>
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (ac_try="$ac_compile"
16349 case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } && {
16361 test -z "$ac_c_werror_flag" ||
16362 test ! -s conftest.err
16363 } && test -s conftest.$ac_objext; then
16364 ac_header_compiler=yes
16365 else
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_header_compiler=no
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16374 echo "${ECHO_T}$ac_header_compiler" >&6; }
16376 # Is the header present?
16377 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16378 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 #include <alsa/asoundlib.h>
16386 _ACEOF
16387 if { (ac_try="$ac_cpp conftest.$ac_ext"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } >/dev/null && {
16400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 }; then
16403 ac_header_preproc=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_header_preproc=no
16411 rm -f conftest.err conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16413 echo "${ECHO_T}$ac_header_preproc" >&6; }
16415 # So? What about this header?
16416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16417 yes:no: )
16418 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16419 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16421 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16422 ac_header_preproc=yes
16424 no:yes:* )
16425 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16426 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16428 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16430 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16432 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16434 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16436 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16437 ( cat <<\_ASBOX
16438 ## ------------------------------- ##
16439 ## Report this to www.asterisk.org ##
16440 ## ------------------------------- ##
16441 _ASBOX
16442 ) | sed "s/^/$as_me: WARNING: /" >&2
16444 esac
16445 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16446 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16447 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16452 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16453 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16456 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16457 ALSA_HEADER_FOUND=1
16458 else
16459 ALSA_HEADER_FOUND=0
16465 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16466 if test -n "${ALSA_MANDATORY}" ;
16467 then
16468 { echo "$as_me:$LINENO: ***" >&5
16469 echo "$as_me: ***" >&6;}
16470 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16471 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16472 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16473 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16474 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16475 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16476 exit 1
16478 ALSA_LIB=""
16479 ALSA_INCLUDE=""
16480 PBX_ALSA=0
16481 else
16482 PBX_ALSA=1
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_ALSA 1
16486 _ACEOF
16489 elif test -n "${ALSA_MANDATORY}";
16490 then
16491 { echo "$as_me:$LINENO: ***" >&5
16492 echo "$as_me: ***" >&6;}
16493 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16494 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16495 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16496 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16497 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16498 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16499 exit 1
16505 if test "${USE_CURSES}" != "no"; then
16506 pbxlibdir=""
16507 if test "x${CURSES_DIR}" != "x"; then
16508 if test -d ${CURSES_DIR}/lib; then
16509 pbxlibdir="-L${CURSES_DIR}/lib"
16510 else
16511 pbxlibdir="-L${CURSES_DIR}"
16514 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16515 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16516 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519 ac_check_lib_save_LIBS=$LIBS
16520 LIBS="-lcurses ${pbxlibdir} $LIBS"
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 char initscr ();
16536 main ()
16538 return initscr ();
16540 return 0;
16542 _ACEOF
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (ac_try="$ac_link"
16545 case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548 esac
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_link") 2>conftest.er1
16551 ac_status=$?
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest$ac_exeext &&
16560 $as_test_x conftest$ac_exeext; then
16561 ac_cv_lib_curses_initscr=yes
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_lib_curses_initscr=no
16569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16570 conftest$ac_exeext conftest.$ac_ext
16571 LIBS=$ac_check_lib_save_LIBS
16573 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16574 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16575 if test $ac_cv_lib_curses_initscr = yes; then
16576 AST_CURSES_FOUND=yes
16577 else
16578 AST_CURSES_FOUND=no
16582 if test "${AST_CURSES_FOUND}" = "yes"; then
16583 CURSES_LIB="-lcurses "
16584 CURSES_HEADER_FOUND="1"
16585 if test "x${CURSES_DIR}" != "x"; then
16586 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16587 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16588 saved_cppflags="${CPPFLAGS}"
16589 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16590 if test "xcurses.h" != "x" ; then
16591 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16593 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16594 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 ac_res=`eval echo '${'$as_ac_Header'}'`
16599 { echo "$as_me:$LINENO: result: $ac_res" >&5
16600 echo "${ECHO_T}$ac_res" >&6; }
16601 else
16602 # Is the header compilable?
16603 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16604 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16612 #include <${CURSES_DIR}/include/curses.h>
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest.$ac_objext; then
16631 ac_header_compiler=yes
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 ac_header_compiler=no
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641 echo "${ECHO_T}$ac_header_compiler" >&6; }
16643 # Is the header present?
16644 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16645 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 #include <${CURSES_DIR}/include/curses.h>
16653 _ACEOF
16654 if { (ac_try="$ac_cpp conftest.$ac_ext"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev/null && {
16667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 }; then
16670 ac_header_preproc=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_header_preproc=no
16678 rm -f conftest.err conftest.$ac_ext
16679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16680 echo "${ECHO_T}$ac_header_preproc" >&6; }
16682 # So? What about this header?
16683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16684 yes:no: )
16685 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16686 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16688 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16689 ac_header_preproc=yes
16691 no:yes:* )
16692 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16693 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16695 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16697 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16699 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16701 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16703 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16704 ( cat <<\_ASBOX
16705 ## ------------------------------- ##
16706 ## Report this to www.asterisk.org ##
16707 ## ------------------------------- ##
16708 _ASBOX
16709 ) | sed "s/^/$as_me: WARNING: /" >&2
16711 esac
16712 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16713 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 eval "$as_ac_Header=\$ac_header_preproc"
16719 ac_res=`eval echo '${'$as_ac_Header'}'`
16720 { echo "$as_me:$LINENO: result: $ac_res" >&5
16721 echo "${ECHO_T}$ac_res" >&6; }
16724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16725 CURSES_HEADER_FOUND=1
16726 else
16727 CURSES_HEADER_FOUND=0
16732 CPPFLAGS="${saved_cppflags}"
16733 else
16734 if test "xcurses.h" != "x" ; then
16735 if test "${ac_cv_header_curses_h+set}" = set; then
16736 { echo "$as_me:$LINENO: checking for curses.h" >&5
16737 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16738 if test "${ac_cv_header_curses_h+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16742 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16743 else
16744 # Is the header compilable?
16745 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16746 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h. */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 $ac_includes_default
16754 #include <curses.h>
16755 _ACEOF
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.$ac_objext; then
16773 ac_header_compiler=yes
16774 else
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_header_compiler=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6; }
16785 # Is the header present?
16786 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16787 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <curses.h>
16795 _ACEOF
16796 if { (ac_try="$ac_cpp conftest.$ac_ext"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev/null && {
16809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 }; then
16812 ac_header_preproc=yes
16813 else
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ac_header_preproc=no
16820 rm -f conftest.err conftest.$ac_ext
16821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16822 echo "${ECHO_T}$ac_header_preproc" >&6; }
16824 # So? What about this header?
16825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16826 yes:no: )
16827 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16828 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16830 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16831 ac_header_preproc=yes
16833 no:yes:* )
16834 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16835 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16837 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16839 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16841 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16843 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16845 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16846 ( cat <<\_ASBOX
16847 ## ------------------------------- ##
16848 ## Report this to www.asterisk.org ##
16849 ## ------------------------------- ##
16850 _ASBOX
16851 ) | sed "s/^/$as_me: WARNING: /" >&2
16853 esac
16854 { echo "$as_me:$LINENO: checking for curses.h" >&5
16855 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16856 if test "${ac_cv_header_curses_h+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 ac_cv_header_curses_h=$ac_header_preproc
16861 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16865 if test $ac_cv_header_curses_h = yes; then
16866 CURSES_HEADER_FOUND=1
16867 else
16868 CURSES_HEADER_FOUND=0
16874 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16875 if test -n "${CURSES_MANDATORY}" ;
16876 then
16877 { echo "$as_me:$LINENO: ***" >&5
16878 echo "$as_me: ***" >&6;}
16879 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16880 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16881 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16882 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16884 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16885 exit 1
16887 CURSES_LIB=""
16888 CURSES_INCLUDE=""
16889 PBX_CURSES=0
16890 else
16891 PBX_CURSES=1
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_CURSES 1
16895 _ACEOF
16898 elif test -n "${CURSES_MANDATORY}";
16899 then
16900 { echo "$as_me:$LINENO: ***" >&5
16901 echo "$as_me: ***" >&6;}
16902 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16903 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16906 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16907 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16908 exit 1
16913 if test "x${host_os}" = "xlinux-gnu" ; then
16915 if test "${USE_CAP}" != "no"; then
16916 pbxlibdir=""
16917 if test "x${CAP_DIR}" != "x"; then
16918 if test -d ${CAP_DIR}/lib; then
16919 pbxlibdir="-L${CAP_DIR}/lib"
16920 else
16921 pbxlibdir="-L${CAP_DIR}"
16924 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16925 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16926 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929 ac_check_lib_save_LIBS=$LIBS
16930 LIBS="-lcap ${pbxlibdir} $LIBS"
16931 cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h. */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16938 /* Override any GCC internal prototype to avoid an error.
16939 Use char because int might match the return type of a GCC
16940 builtin and then its argument prototype would still apply. */
16941 #ifdef __cplusplus
16942 extern "C"
16943 #endif
16944 char cap_from_text ();
16946 main ()
16948 return cap_from_text ();
16950 return 0;
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext &&
16970 $as_test_x conftest$ac_exeext; then
16971 ac_cv_lib_cap_cap_from_text=yes
16972 else
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ac_cv_lib_cap_cap_from_text=no
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980 conftest$ac_exeext conftest.$ac_ext
16981 LIBS=$ac_check_lib_save_LIBS
16983 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16984 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16985 if test $ac_cv_lib_cap_cap_from_text = yes; then
16986 AST_CAP_FOUND=yes
16987 else
16988 AST_CAP_FOUND=no
16992 if test "${AST_CAP_FOUND}" = "yes"; then
16993 CAP_LIB="-lcap "
16994 CAP_HEADER_FOUND="1"
16995 if test "x${CAP_DIR}" != "x"; then
16996 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
16997 CAP_INCLUDE="-I${CAP_DIR}/include"
16998 saved_cppflags="${CPPFLAGS}"
16999 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
17000 if test "xsys/capability.h" != "x" ; then
17001 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17004 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 else
17012 # Is the header compilable?
17013 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17014 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 #include <${CAP_DIR}/include/sys/capability.h>
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest.$ac_objext; then
17041 ac_header_compiler=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_header_compiler=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17051 echo "${ECHO_T}$ac_header_compiler" >&6; }
17053 # Is the header present?
17054 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17055 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 #include <${CAP_DIR}/include/sys/capability.h>
17063 _ACEOF
17064 if { (ac_try="$ac_cpp conftest.$ac_ext"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev/null && {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 }; then
17080 ac_header_preproc=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_header_preproc=no
17088 rm -f conftest.err conftest.$ac_ext
17089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17101 no:yes:* )
17102 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17114 ( cat <<\_ASBOX
17115 ## ------------------------------- ##
17116 ## Report this to www.asterisk.org ##
17117 ## ------------------------------- ##
17118 _ASBOX
17119 ) | sed "s/^/$as_me: WARNING: /" >&2
17121 esac
17122 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17123 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 eval "$as_ac_Header=\$ac_header_preproc"
17129 ac_res=`eval echo '${'$as_ac_Header'}'`
17130 { echo "$as_me:$LINENO: result: $ac_res" >&5
17131 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17135 CAP_HEADER_FOUND=1
17136 else
17137 CAP_HEADER_FOUND=0
17142 CPPFLAGS="${saved_cppflags}"
17143 else
17144 if test "xsys/capability.h" != "x" ; then
17145 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17146 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17147 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17148 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17152 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17153 else
17154 # Is the header compilable?
17155 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17156 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17164 #include <sys/capability.h>
17165 _ACEOF
17166 rm -f conftest.$ac_objext
17167 if { (ac_try="$ac_compile"
17168 case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_compile") 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } && {
17180 test -z "$ac_c_werror_flag" ||
17181 test ! -s conftest.err
17182 } && test -s conftest.$ac_objext; then
17183 ac_header_compiler=yes
17184 else
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_header_compiler=no
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17193 echo "${ECHO_T}$ac_header_compiler" >&6; }
17195 # Is the header present?
17196 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17197 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17198 cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h. */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <sys/capability.h>
17205 _ACEOF
17206 if { (ac_try="$ac_cpp conftest.$ac_ext"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17213 ac_status=$?
17214 grep -v '^ *+' conftest.er1 >conftest.err
17215 rm -f conftest.er1
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } >/dev/null && {
17219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 }; then
17222 ac_header_preproc=yes
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 ac_header_preproc=no
17230 rm -f conftest.err conftest.$ac_ext
17231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 echo "${ECHO_T}$ac_header_preproc" >&6; }
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17236 yes:no: )
17237 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17238 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17240 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17241 ac_header_preproc=yes
17243 no:yes:* )
17244 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17245 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17247 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17249 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17251 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17253 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17255 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17256 ( cat <<\_ASBOX
17257 ## ------------------------------- ##
17258 ## Report this to www.asterisk.org ##
17259 ## ------------------------------- ##
17260 _ASBOX
17261 ) | sed "s/^/$as_me: WARNING: /" >&2
17263 esac
17264 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17265 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17266 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 ac_cv_header_sys_capability_h=$ac_header_preproc
17271 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17275 if test $ac_cv_header_sys_capability_h = yes; then
17276 CAP_HEADER_FOUND=1
17277 else
17278 CAP_HEADER_FOUND=0
17284 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17285 if test -n "${CAP_MANDATORY}" ;
17286 then
17287 { echo "$as_me:$LINENO: ***" >&5
17288 echo "$as_me: ***" >&6;}
17289 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17290 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17291 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17292 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17293 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17294 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17295 exit 1
17297 CAP_LIB=""
17298 CAP_INCLUDE=""
17299 PBX_CAP=0
17300 else
17301 PBX_CAP=1
17303 cat >>confdefs.h <<_ACEOF
17304 #define HAVE_CAP 1
17305 _ACEOF
17308 elif test -n "${CAP_MANDATORY}";
17309 then
17310 { echo "$as_me:$LINENO: ***" >&5
17311 echo "$as_me: ***" >&6;}
17312 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17313 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17314 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17315 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17316 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17317 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17318 exit 1
17325 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17326 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17327 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17328 saved_cppflags="${CPPFLAGS}"
17329 if test "x${GETIFADDRS_DIR}" != "x"; then
17330 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17332 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 #include <ifaddrs.h>
17342 main ()
17344 struct ifaddrs *p; getifaddrs(&p);
17347 return 0;
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (ac_try="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_compile") 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && {
17364 test -z "$ac_c_werror_flag" ||
17365 test ! -s conftest.err
17366 } && test -s conftest.$ac_objext; then
17367 { echo "$as_me:$LINENO: result: yes" >&5
17368 echo "${ECHO_T}yes" >&6; }
17369 PBX_GETIFADDRS=1
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_GETIFADDRS 1
17373 _ACEOF
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_GETIFADDRS_VERSION
17378 _ACEOF
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 { echo "$as_me:$LINENO: result: no" >&5
17386 echo "${ECHO_T}no" >&6; }
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 CPPFLAGS="${saved_cppflags}"
17395 GSM_INTERNAL="yes"
17397 GSM_SYSTEM="yes"
17398 if test "${USE_GSM}" != "no"; then
17399 if test "${GSM_DIR}" = "internal"; then
17400 GSM_SYSTEM="no"
17401 elif test "${GSM_DIR}" != ""; then
17402 GSM_INTERNAL="no"
17404 if test "${GSM_SYSTEM}" = "yes"; then
17405 gsmlibdir=""
17406 if test "x${GSM_DIR}" != "x"; then
17407 if test -d ${GSM_DIR}/lib; then
17408 gsmlibdir="-L${GSM_DIR}/lib"
17409 else
17410 gsmlibdir="-L${GSM_DIR}"
17413 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17414 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17415 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-lgsm ${gsmlibdir} $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char gsm_create ();
17435 main ()
17437 return gsm_create ();
17439 return 0;
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17460 ac_cv_lib_gsm_gsm_create=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_cv_lib_gsm_gsm_create=no
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469 conftest$ac_exeext conftest.$ac_ext
17470 LIBS=$ac_check_lib_save_LIBS
17472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17473 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17474 if test $ac_cv_lib_gsm_gsm_create = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define HAVE_GSM 1
17478 _ACEOF
17482 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17483 if test "x${GSM_DIR}" != "x" ; then
17484 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17486 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17487 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 ac_res=`eval echo '${'$as_ac_Header'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17494 else
17495 # Is the header compilable?
17496 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17497 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <${GSM_DIR}/include/gsm.h>
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_header_compiler=yes
17525 else
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_header_compiler=no
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6; }
17536 # Is the header present?
17537 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17538 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <${GSM_DIR}/include/gsm.h>
17546 _ACEOF
17547 if { (ac_try="$ac_cpp conftest.$ac_ext"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } >/dev/null && {
17560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 }; then
17563 ac_header_preproc=yes
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_header_preproc=no
17571 rm -f conftest.err conftest.$ac_ext
17572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17573 echo "${ECHO_T}$ac_header_preproc" >&6; }
17575 # So? What about this header?
17576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17577 yes:no: )
17578 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17579 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17581 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17582 ac_header_preproc=yes
17584 no:yes:* )
17585 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17586 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17587 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17588 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17589 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17590 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17591 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17592 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17594 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17596 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17597 ( cat <<\_ASBOX
17598 ## ------------------------------- ##
17599 ## Report this to www.asterisk.org ##
17600 ## ------------------------------- ##
17601 _ASBOX
17602 ) | sed "s/^/$as_me: WARNING: /" >&2
17604 esac
17605 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17606 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610 eval "$as_ac_Header=\$ac_header_preproc"
17612 ac_res=`eval echo '${'$as_ac_Header'}'`
17613 { echo "$as_me:$LINENO: result: $ac_res" >&5
17614 echo "${ECHO_T}$ac_res" >&6; }
17617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17618 GSM_HEADER_FOUND=1
17619 else
17620 GSM_HEADER_FOUND=0
17624 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17627 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 ac_res=`eval echo '${'$as_ac_Header'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633 echo "${ECHO_T}$ac_res" >&6; }
17634 else
17635 # Is the header compilable?
17636 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17637 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h. */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17645 #include <${GSM_DIR}/include/gsm/gsm.h>
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_compile") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && {
17661 test -z "$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 } && test -s conftest.$ac_objext; then
17664 ac_header_compiler=yes
17665 else
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_compiler=no
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17674 echo "${ECHO_T}$ac_header_compiler" >&6; }
17676 # Is the header present?
17677 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17678 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17679 cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 #include <${GSM_DIR}/include/gsm/gsm.h>
17686 _ACEOF
17687 if { (ac_try="$ac_cpp conftest.$ac_ext"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704 else
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 ac_header_preproc=no
17711 rm -f conftest.err conftest.$ac_ext
17712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 echo "${ECHO_T}$ac_header_preproc" >&6; }
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17719 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17721 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17724 no:yes:* )
17725 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17726 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17728 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17729 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17730 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17732 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17734 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17736 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17737 ( cat <<\_ASBOX
17738 ## ------------------------------- ##
17739 ## Report this to www.asterisk.org ##
17740 ## ------------------------------- ##
17741 _ASBOX
17742 ) | sed "s/^/$as_me: WARNING: /" >&2
17744 esac
17745 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17746 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 eval "$as_ac_Header=\$ac_header_preproc"
17752 ac_res=`eval echo '${'$as_ac_Header'}'`
17753 { echo "$as_me:$LINENO: result: $ac_res" >&5
17754 echo "${ECHO_T}$ac_res" >&6; }
17757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17758 GSM_GSM_HEADER_FOUND=1
17759 else
17760 GSM_GSM_HEADER_FOUND=0
17764 else
17765 if test "${ac_cv_header_gsm_h+set}" = set; then
17766 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17767 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17768 if test "${ac_cv_header_gsm_h+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17772 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17773 else
17774 # Is the header compilable?
17775 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17776 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 $ac_includes_default
17784 #include <gsm.h>
17785 _ACEOF
17786 rm -f conftest.$ac_objext
17787 if { (ac_try="$ac_compile"
17788 case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17791 esac
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_compile") 2>conftest.er1
17794 ac_status=$?
17795 grep -v '^ *+' conftest.er1 >conftest.err
17796 rm -f conftest.er1
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && {
17800 test -z "$ac_c_werror_flag" ||
17801 test ! -s conftest.err
17802 } && test -s conftest.$ac_objext; then
17803 ac_header_compiler=yes
17804 else
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 ac_header_compiler=no
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17813 echo "${ECHO_T}$ac_header_compiler" >&6; }
17815 # Is the header present?
17816 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17817 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 #include <gsm.h>
17825 _ACEOF
17826 if { (ac_try="$ac_cpp conftest.$ac_ext"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } >/dev/null && {
17839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 }; then
17842 ac_header_preproc=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_header_preproc=no
17850 rm -f conftest.err conftest.$ac_ext
17851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17852 echo "${ECHO_T}$ac_header_preproc" >&6; }
17854 # So? What about this header?
17855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17856 yes:no: )
17857 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17858 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17860 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17861 ac_header_preproc=yes
17863 no:yes:* )
17864 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17865 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17867 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17869 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17871 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17873 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17875 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17876 ( cat <<\_ASBOX
17877 ## ------------------------------- ##
17878 ## Report this to www.asterisk.org ##
17879 ## ------------------------------- ##
17880 _ASBOX
17881 ) | sed "s/^/$as_me: WARNING: /" >&2
17883 esac
17884 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17885 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17886 if test "${ac_cv_header_gsm_h+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889 ac_cv_header_gsm_h=$ac_header_preproc
17891 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17892 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17895 if test $ac_cv_header_gsm_h = yes; then
17896 GSM_HEADER_FOUND=1
17897 else
17898 GSM_HEADER_FOUND=0
17902 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17903 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17904 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17905 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17909 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17910 else
17911 # Is the header compilable?
17912 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17913 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 $ac_includes_default
17921 #include <gsm/gsm.h>
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_header_compiler=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_header_compiler=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6; }
17952 # Is the header present?
17953 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17954 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <gsm/gsm.h>
17962 _ACEOF
17963 if { (ac_try="$ac_cpp conftest.$ac_ext"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } >/dev/null && {
17976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 }; then
17979 ac_header_preproc=yes
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_header_preproc=no
17987 rm -f conftest.err conftest.$ac_ext
17988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6; }
17991 # So? What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17993 yes:no: )
17994 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17998 ac_header_preproc=yes
18000 no:yes:* )
18001 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18013 ( cat <<\_ASBOX
18014 ## ------------------------------- ##
18015 ## Report this to www.asterisk.org ##
18016 ## ------------------------------- ##
18017 _ASBOX
18018 ) | sed "s/^/$as_me: WARNING: /" >&2
18020 esac
18021 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18022 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18023 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 ac_cv_header_gsm_gsm_h=$ac_header_preproc
18028 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18029 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18032 if test $ac_cv_header_gsm_gsm_h = yes; then
18033 GSM_GSM_HEADER_FOUND=1
18034 else
18035 GSM_GSM_HEADER_FOUND=0
18040 if test "${GSM_HEADER_FOUND}" = "0" ; then
18041 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18042 if test "x${GSM_MANDATORY}" = "xyes" ; then
18043 { echo "$as_me:$LINENO: ***" >&5
18044 echo "$as_me: ***" >&6;}
18045 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18046 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18047 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18048 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18049 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18050 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18051 exit 1
18055 GSM_OK=0
18056 if test "${GSM_HEADER_FOUND}" = "1" ; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_GSM_HEADER 1
18060 _ACEOF
18062 GSM_OK=1
18063 else
18064 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define HAVE_GSM_GSM_HEADER 1
18068 _ACEOF
18070 GSM_OK=1
18073 if test "${GSM_OK}" = "1" ; then
18074 GSM_LIB="-lgsm"
18075 if test "x${GSM_DIR}" != "x"; then
18076 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
18077 GSM_INCLUDE="-I${GSM_DIR}/include"
18079 PBX_GSM=1
18080 GSM_INTERNAL="no"
18084 if test "${GSM_INTERNAL}" = "yes"; then
18085 PBX_GSM=1
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_GSM_HEADER 1
18089 _ACEOF
18095 if test "${USE_IKSEMEL}" != "no"; then
18096 pbxlibdir=""
18097 if test "x${IKSEMEL_DIR}" != "x"; then
18098 if test -d ${IKSEMEL_DIR}/lib; then
18099 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18100 else
18101 pbxlibdir="-L${IKSEMEL_DIR}"
18104 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18105 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18106 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 ac_check_lib_save_LIBS=$LIBS
18110 LIBS="-liksemel ${pbxlibdir} $LIBS"
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any GCC internal prototype to avoid an error.
18119 Use char because int might match the return type of a GCC
18120 builtin and then its argument prototype would still apply. */
18121 #ifdef __cplusplus
18122 extern "C"
18123 #endif
18124 char iks_start_sasl ();
18126 main ()
18128 return iks_start_sasl ();
18130 return 0;
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 ac_cv_lib_iksemel_iks_start_sasl=yes
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_lib_iksemel_iks_start_sasl=no
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18164 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18165 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18166 AST_IKSEMEL_FOUND=yes
18167 else
18168 AST_IKSEMEL_FOUND=no
18172 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18173 IKSEMEL_LIB="-liksemel "
18174 IKSEMEL_HEADER_FOUND="1"
18175 if test "x${IKSEMEL_DIR}" != "x"; then
18176 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18177 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18178 saved_cppflags="${CPPFLAGS}"
18179 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18180 if test "xiksemel.h" != "x" ; then
18181 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
18182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18183 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18184 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_res=`eval echo '${'$as_ac_Header'}'`
18189 { echo "$as_me:$LINENO: result: $ac_res" >&5
18190 echo "${ECHO_T}$ac_res" >&6; }
18191 else
18192 # Is the header compilable?
18193 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18194 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 $ac_includes_default
18202 #include <${IKSEMEL_DIR}/include/iksemel.h>
18203 _ACEOF
18204 rm -f conftest.$ac_objext
18205 if { (ac_try="$ac_compile"
18206 case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_compile") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest.$ac_objext; then
18221 ac_header_compiler=yes
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_header_compiler=no
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6; }
18233 # Is the header present?
18234 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18235 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 #include <${IKSEMEL_DIR}/include/iksemel.h>
18243 _ACEOF
18244 if { (ac_try="$ac_cpp conftest.$ac_ext"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18251 ac_status=$?
18252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } >/dev/null && {
18257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 }; then
18260 ac_header_preproc=yes
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_header_preproc=no
18268 rm -f conftest.err conftest.$ac_ext
18269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6; }
18272 # So? What about this header?
18273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18274 yes:no: )
18275 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18278 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18279 ac_header_preproc=yes
18281 no:yes:* )
18282 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18283 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18285 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18287 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18289 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18293 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18294 ( cat <<\_ASBOX
18295 ## ------------------------------- ##
18296 ## Report this to www.asterisk.org ##
18297 ## ------------------------------- ##
18298 _ASBOX
18299 ) | sed "s/^/$as_me: WARNING: /" >&2
18301 esac
18302 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18303 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 eval "$as_ac_Header=\$ac_header_preproc"
18309 ac_res=`eval echo '${'$as_ac_Header'}'`
18310 { echo "$as_me:$LINENO: result: $ac_res" >&5
18311 echo "${ECHO_T}$ac_res" >&6; }
18314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18315 IKSEMEL_HEADER_FOUND=1
18316 else
18317 IKSEMEL_HEADER_FOUND=0
18322 CPPFLAGS="${saved_cppflags}"
18323 else
18324 if test "xiksemel.h" != "x" ; then
18325 if test "${ac_cv_header_iksemel_h+set}" = set; then
18326 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18327 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18328 if test "${ac_cv_header_iksemel_h+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18332 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18333 else
18334 # Is the header compilable?
18335 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18336 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 $ac_includes_default
18344 #include <iksemel.h>
18345 _ACEOF
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.$ac_objext; then
18363 ac_header_compiler=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_header_compiler=no
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18373 echo "${ECHO_T}$ac_header_compiler" >&6; }
18375 # Is the header present?
18376 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18377 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #include <iksemel.h>
18385 _ACEOF
18386 if { (ac_try="$ac_cpp conftest.$ac_ext"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } >/dev/null && {
18399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 }; then
18402 ac_header_preproc=yes
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6; }
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18416 yes:no: )
18417 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18423 no:yes:* )
18424 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18436 ( cat <<\_ASBOX
18437 ## ------------------------------- ##
18438 ## Report this to www.asterisk.org ##
18439 ## ------------------------------- ##
18440 _ASBOX
18441 ) | sed "s/^/$as_me: WARNING: /" >&2
18443 esac
18444 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18445 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18446 if test "${ac_cv_header_iksemel_h+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449 ac_cv_header_iksemel_h=$ac_header_preproc
18451 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18452 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18455 if test $ac_cv_header_iksemel_h = yes; then
18456 IKSEMEL_HEADER_FOUND=1
18457 else
18458 IKSEMEL_HEADER_FOUND=0
18464 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18465 if test -n "${IKSEMEL_MANDATORY}" ;
18466 then
18467 { echo "$as_me:$LINENO: ***" >&5
18468 echo "$as_me: ***" >&6;}
18469 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18470 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18471 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18472 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18473 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18474 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18475 exit 1
18477 IKSEMEL_LIB=""
18478 IKSEMEL_INCLUDE=""
18479 PBX_IKSEMEL=0
18480 else
18481 PBX_IKSEMEL=1
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_IKSEMEL 1
18485 _ACEOF
18488 elif test -n "${IKSEMEL_MANDATORY}";
18489 then
18490 { echo "$as_me:$LINENO: ***" >&5
18491 echo "$as_me: ***" >&6;}
18492 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18493 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18494 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18495 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18497 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18498 exit 1
18503 if test "${PBX_IKSEMEL}" = 1; then
18505 if test "${USE_GNUTLS}" != "no"; then
18506 pbxlibdir=""
18507 if test "x${GNUTLS_DIR}" != "x"; then
18508 if test -d ${GNUTLS_DIR}/lib; then
18509 pbxlibdir="-L${GNUTLS_DIR}/lib"
18510 else
18511 pbxlibdir="-L${GNUTLS_DIR}"
18514 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18515 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18516 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519 ac_check_lib_save_LIBS=$LIBS
18520 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 /* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 char gnutls_bye ();
18536 main ()
18538 return gnutls_bye ();
18540 return 0;
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest$ac_exeext &&
18560 $as_test_x conftest$ac_exeext; then
18561 ac_cv_lib_gnutls_gnutls_bye=yes
18562 else
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_lib_gnutls_gnutls_bye=no
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18573 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18574 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18575 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18576 AST_GNUTLS_FOUND=yes
18577 else
18578 AST_GNUTLS_FOUND=no
18582 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18583 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18584 GNUTLS_HEADER_FOUND="1"
18585 if test "x${GNUTLS_DIR}" != "x"; then
18586 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18587 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18588 saved_cppflags="${CPPFLAGS}"
18589 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18590 if test "xgnutls/gnutls.h" != "x" ; then
18591 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18593 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18594 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_res=`eval echo '${'$as_ac_Header'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 else
18602 # Is the header compilable?
18603 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18604 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 $ac_includes_default
18612 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18613 _ACEOF
18614 rm -f conftest.$ac_objext
18615 if { (ac_try="$ac_compile"
18616 case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18619 esac
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_compile") 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest.$ac_objext; then
18631 ac_header_compiler=yes
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_header_compiler=no
18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18641 echo "${ECHO_T}$ac_header_compiler" >&6; }
18643 # Is the header present?
18644 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18645 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h. */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18653 _ACEOF
18654 if { (ac_try="$ac_cpp conftest.$ac_ext"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } >/dev/null && {
18667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 }; then
18670 ac_header_preproc=yes
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_header_preproc=no
18678 rm -f conftest.err conftest.$ac_ext
18679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18680 echo "${ECHO_T}$ac_header_preproc" >&6; }
18682 # So? What about this header?
18683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18684 yes:no: )
18685 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18686 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18688 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18689 ac_header_preproc=yes
18691 no:yes:* )
18692 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18693 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18695 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18697 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18699 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18700 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18701 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18703 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18704 ( cat <<\_ASBOX
18705 ## ------------------------------- ##
18706 ## Report this to www.asterisk.org ##
18707 ## ------------------------------- ##
18708 _ASBOX
18709 ) | sed "s/^/$as_me: WARNING: /" >&2
18711 esac
18712 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18713 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717 eval "$as_ac_Header=\$ac_header_preproc"
18719 ac_res=`eval echo '${'$as_ac_Header'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18725 GNUTLS_HEADER_FOUND=1
18726 else
18727 GNUTLS_HEADER_FOUND=0
18732 CPPFLAGS="${saved_cppflags}"
18733 else
18734 if test "xgnutls/gnutls.h" != "x" ; then
18735 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18736 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18737 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18738 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18742 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18743 else
18744 # Is the header compilable?
18745 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18746 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h. */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18754 #include <gnutls/gnutls.h>
18755 _ACEOF
18756 rm -f conftest.$ac_objext
18757 if { (ac_try="$ac_compile"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_compile") 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } && {
18770 test -z "$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 } && test -s conftest.$ac_objext; then
18773 ac_header_compiler=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_header_compiler=no
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18783 echo "${ECHO_T}$ac_header_compiler" >&6; }
18785 # Is the header present?
18786 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18787 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <gnutls/gnutls.h>
18795 _ACEOF
18796 if { (ac_try="$ac_cpp conftest.$ac_ext"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } >/dev/null && {
18809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 }; then
18812 ac_header_preproc=yes
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_header_preproc=no
18820 rm -f conftest.err conftest.$ac_ext
18821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18822 echo "${ECHO_T}$ac_header_preproc" >&6; }
18824 # So? What about this header?
18825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18826 yes:no: )
18827 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18828 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18830 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18831 ac_header_preproc=yes
18833 no:yes:* )
18834 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18835 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18836 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18837 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18838 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18839 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18841 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18843 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18845 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18846 ( cat <<\_ASBOX
18847 ## ------------------------------- ##
18848 ## Report this to www.asterisk.org ##
18849 ## ------------------------------- ##
18850 _ASBOX
18851 ) | sed "s/^/$as_me: WARNING: /" >&2
18853 esac
18854 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18855 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18856 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18861 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18862 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18865 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18866 GNUTLS_HEADER_FOUND=1
18867 else
18868 GNUTLS_HEADER_FOUND=0
18874 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18875 if test -n "${GNUTLS_MANDATORY}" ;
18876 then
18877 { echo "$as_me:$LINENO: ***" >&5
18878 echo "$as_me: ***" >&6;}
18879 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18880 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18881 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18882 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18884 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18885 exit 1
18887 GNUTLS_LIB=""
18888 GNUTLS_INCLUDE=""
18889 PBX_GNUTLS=0
18890 else
18891 PBX_GNUTLS=1
18893 cat >>confdefs.h <<_ACEOF
18894 #define HAVE_GNUTLS 1
18895 _ACEOF
18898 elif test -n "${GNUTLS_MANDATORY}";
18899 then
18900 { echo "$as_me:$LINENO: ***" >&5
18901 echo "$as_me: ***" >&6;}
18902 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18903 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18906 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18907 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18908 exit 1
18914 if test "${USE_IMAP_TK}" != "no"; then
18915 saved_cppflags="${CPPFLAGS}"
18916 saved_libs="${LIBS}"
18917 switch_to_system_on_failure="no"
18918 if test "${IMAP_TK_DIR}" = ""; then
18919 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18920 switch_to_system_on_failure="yes"
18922 if test "${IMAP_TK_DIR}" != "system"; then
18923 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18924 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18925 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18926 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18928 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18929 imap_include="-I${IMAP_TK_DIR}/c-client"
18930 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18931 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h. */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 #include "c-client.h"
18939 void mm_searched (MAILSTREAM *stream,unsigned long number)
18942 void mm_exists (MAILSTREAM *stream,unsigned long number)
18945 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18948 void mm_flags (MAILSTREAM *stream,unsigned long number)
18951 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18954 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18957 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18960 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18963 void mm_log (char *string,long errflg)
18966 void mm_dlog (char *string)
18969 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18972 void mm_critical (MAILSTREAM *stream)
18975 void mm_nocritical (MAILSTREAM *stream)
18978 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18981 void mm_fatal (char *string)
18985 main ()
18988 MAILSTREAM *foo = mail_open(NULL, "", 0);
18992 return 0;
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext &&
19012 $as_test_x conftest$ac_exeext; then
19013 ac_cv_imap_tk="yes"
19014 else
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_imap_tk="no"
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 if test "${ac_cv_imap_tk}" = "yes"; then
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 #include "c-client.h"
19032 void mm_searched (MAILSTREAM *stream,unsigned long number)
19035 void mm_exists (MAILSTREAM *stream,unsigned long number)
19038 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19041 void mm_flags (MAILSTREAM *stream,unsigned long number)
19044 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19047 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19050 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19053 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19056 void mm_log (char *string,long errflg)
19059 void mm_dlog (char *string)
19062 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19065 void mm_critical (MAILSTREAM *stream)
19068 void mm_nocritical (MAILSTREAM *stream)
19071 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19074 void mm_fatal (char *string)
19078 main ()
19081 long check = mail_expunge_full(NULL, "", 0);
19085 return 0;
19087 _ACEOF
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (ac_try="$ac_link"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_link") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest$ac_exeext &&
19105 $as_test_x conftest$ac_exeext; then
19106 ac_cv_imap_tk2006="yes"
19107 else
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_cv_imap_tk2006="no"
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19118 CPPFLAGS="${saved_cppflags}"
19119 LIBS="${saved_libs}"
19120 if test "${ac_cv_imap_tk}" = "no"; then
19121 { echo "$as_me:$LINENO: result: no" >&5
19122 echo "${ECHO_T}no" >&6; }
19123 if test "${switch_to_system_on_failure}" = "yes"; then
19124 IMAP_TK_DIR="system"
19125 else #This means they specified a directory. Search for a package installation there too
19126 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19127 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19128 CPPFLAGS="${saved_cppflags}"
19129 LIBS="${saved_libs}"
19130 imap_include="-I${IMAP_TK_DIR}/include"
19131 imap_ldflags="-L${IMAP_TK_DIR}/lib"
19132 imap_libs="-lc-client"
19133 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19134 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include "c-client.h"
19142 void mm_searched (MAILSTREAM *stream,unsigned long number)
19145 void mm_exists (MAILSTREAM *stream,unsigned long number)
19148 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19151 void mm_flags (MAILSTREAM *stream,unsigned long number)
19154 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19157 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19160 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19163 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19166 void mm_log (char *string,long errflg)
19169 void mm_dlog (char *string)
19172 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19175 void mm_critical (MAILSTREAM *stream)
19178 void mm_nocritical (MAILSTREAM *stream)
19181 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19184 void mm_fatal (char *string)
19188 main ()
19191 MAILSTREAM *foo = mail_open(NULL, "", 0);
19195 return 0;
19197 _ACEOF
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (ac_try="$ac_link"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_link") 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest$ac_exeext &&
19215 $as_test_x conftest$ac_exeext; then
19216 ac_cv_imap_tk="yes"
19217 else
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 ac_cv_imap_tk="no"
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226 conftest$ac_exeext conftest.$ac_ext
19227 if test "${ac_cv_imap_tk}" = "yes"; then
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h. */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include "c-client.h"
19235 void mm_searched (MAILSTREAM *stream,unsigned long number)
19238 void mm_exists (MAILSTREAM *stream,unsigned long number)
19241 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19244 void mm_flags (MAILSTREAM *stream,unsigned long number)
19247 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19250 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19253 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19256 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19259 void mm_log (char *string,long errflg)
19262 void mm_dlog (char *string)
19265 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19268 void mm_critical (MAILSTREAM *stream)
19271 void mm_nocritical (MAILSTREAM *stream)
19274 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19277 void mm_fatal (char *string)
19281 main ()
19284 long check = mail_expunge_full(NULL, "", 0);
19288 return 0;
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest$ac_exeext &&
19308 $as_test_x conftest$ac_exeext; then
19309 ac_cv_imap_tk2006="yes"
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_imap_tk2006="no"
19318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19319 conftest$ac_exeext conftest.$ac_ext
19324 if test "${IMAP_TK_DIR}" = "system"; then
19325 #We will enter here if user specified "system" or if any of above checks failed
19326 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19327 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19328 CPPFLAGS="${saved_cppflags}"
19329 LIBS="${saved_libs}"
19330 imap_ldflags=""
19331 imap_libs="-lc-client"
19332 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19333 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19334 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h. */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 #include <stdio.h>
19342 #include <imap/c-client.h>
19343 void mm_searched (MAILSTREAM *stream,unsigned long number)
19346 void mm_exists (MAILSTREAM *stream,unsigned long number)
19349 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19352 void mm_flags (MAILSTREAM *stream,unsigned long number)
19355 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19358 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19361 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19364 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19367 void mm_log (char *string,long errflg)
19370 void mm_dlog (char *string)
19373 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19376 void mm_critical (MAILSTREAM *stream)
19379 void mm_nocritical (MAILSTREAM *stream)
19382 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19385 void mm_fatal (char *string)
19389 main ()
19392 MAILSTREAM *foo = mail_open(NULL, "", 0);
19396 return 0;
19398 _ACEOF
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_link") 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && {
19413 test -z "$ac_c_werror_flag" ||
19414 test ! -s conftest.err
19415 } && test -s conftest$ac_exeext &&
19416 $as_test_x conftest$ac_exeext; then
19417 ac_cv_imap_tk="yes"
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_cv_imap_tk="no"
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 if test "${ac_cv_imap_tk}" = "yes"; then
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #include <stdio.h>
19436 #include <imap/c-client.h>
19437 void mm_searched (MAILSTREAM *stream,unsigned long number)
19440 void mm_exists (MAILSTREAM *stream,unsigned long number)
19443 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19446 void mm_flags (MAILSTREAM *stream,unsigned long number)
19449 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19452 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19455 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19458 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19461 void mm_log (char *string,long errflg)
19464 void mm_dlog (char *string)
19467 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19470 void mm_critical (MAILSTREAM *stream)
19473 void mm_nocritical (MAILSTREAM *stream)
19476 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19479 void mm_fatal (char *string)
19483 main ()
19486 long check = mail_expunge_full(NULL, "", 0);
19490 return 0;
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19501 ac_status=$?
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_imap_tk2006="yes"
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_imap_tk2006="no"
19520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19521 conftest$ac_exeext conftest.$ac_ext
19522 else #looking in imap directory didn't work, try c-client
19523 imap_ldflags=""
19524 imap_libs="-lc-client"
19525 imap_include="-DUSE_SYSTEM_CCLIENT"
19526 CPPFLAGS="${saved_cppflags}"
19527 LIBS="${saved_libs}"
19528 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19529 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536 #include <stdio.h>
19537 #include <c-client/c-client.h>
19538 void mm_searched (MAILSTREAM *stream,unsigned long number)
19541 void mm_exists (MAILSTREAM *stream,unsigned long number)
19544 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19547 void mm_flags (MAILSTREAM *stream,unsigned long number)
19550 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19553 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19556 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19559 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19562 void mm_log (char *string,long errflg)
19565 void mm_dlog (char *string)
19568 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19571 void mm_critical (MAILSTREAM *stream)
19574 void mm_nocritical (MAILSTREAM *stream)
19577 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19580 void mm_fatal (char *string)
19584 main ()
19587 MAILSTREAM *foo = mail_open(NULL, "", 0);
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_link") 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest$ac_exeext &&
19611 $as_test_x conftest$ac_exeext; then
19612 ac_cv_imap_tk="yes"
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_imap_tk="no"
19621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19623 if test "${ac_cv_imap_tk}" = "yes"; then
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 #include <stdio.h>
19631 #include <c-client/c-client.h>
19632 void mm_searched (MAILSTREAM *stream,unsigned long number)
19635 void mm_exists (MAILSTREAM *stream,unsigned long number)
19638 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19641 void mm_flags (MAILSTREAM *stream,unsigned long number)
19644 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19647 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19650 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19653 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19656 void mm_log (char *string,long errflg)
19659 void mm_dlog (char *string)
19662 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19665 void mm_critical (MAILSTREAM *stream)
19668 void mm_nocritical (MAILSTREAM *stream)
19671 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19674 void mm_fatal (char *string)
19678 main ()
19681 long check = mail_expunge_full(NULL, "", 0);
19685 return 0;
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 ac_cv_imap_tk2006="yes"
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_imap_tk2006="no"
19715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19716 conftest$ac_exeext conftest.$ac_ext
19720 if test "${ac_cv_imap_tk}" = "yes"; then
19721 { echo "$as_me:$LINENO: result: yes" >&5
19722 echo "${ECHO_T}yes" >&6; }
19723 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19724 IMAP_TK_INCLUDE="${imap_include}"
19725 PBX_IMAP_TK=1
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_IMAP_TK 1
19729 _ACEOF
19731 if test "${ac_cv_imap_tk2006}" = "yes"; then
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE_IMAP_TK2006 1
19735 _ACEOF
19738 elif test -n "${IMAP_TK_MANDATORY}"; then
19739 { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741 { echo "$as_me:$LINENO: ***" >&5
19742 echo "$as_me: ***" >&6;}
19743 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19744 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19745 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19746 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19747 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19748 echo "$as_me: *** including --without-imap." >&6;}
19749 exit 1
19750 else
19751 { echo "$as_me:$LINENO: result: no" >&5
19752 echo "${ECHO_T}no" >&6; }
19754 CPPFLAGS="${saved_cppflags}"
19755 LIBS="${saved_libs}"
19758 # Needed by unixodbc
19760 if test "${USE_LTDL}" != "no"; then
19761 pbxlibdir=""
19762 if test "x${LTDL_DIR}" != "x"; then
19763 if test -d ${LTDL_DIR}/lib; then
19764 pbxlibdir="-L${LTDL_DIR}/lib"
19765 else
19766 pbxlibdir="-L${LTDL_DIR}"
19769 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19770 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 ac_check_lib_save_LIBS=$LIBS
19775 LIBS="-lltdl ${pbxlibdir} $LIBS"
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19786 #ifdef __cplusplus
19787 extern "C"
19788 #endif
19789 char lt_dlinit ();
19791 main ()
19793 return lt_dlinit ();
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_ltdl_lt_dlinit=yes
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_lib_ltdl_lt_dlinit=no
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19829 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19830 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19831 AST_LTDL_FOUND=yes
19832 else
19833 AST_LTDL_FOUND=no
19837 if test "${AST_LTDL_FOUND}" = "yes"; then
19838 LTDL_LIB="-lltdl "
19839 LTDL_HEADER_FOUND="1"
19840 if test "x${LTDL_DIR}" != "x"; then
19841 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19842 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19843 saved_cppflags="${CPPFLAGS}"
19844 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19845 if test "xltdl.h" != "x" ; then
19846 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
19847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19848 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19849 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_res=`eval echo '${'$as_ac_Header'}'`
19854 { echo "$as_me:$LINENO: result: $ac_res" >&5
19855 echo "${ECHO_T}$ac_res" >&6; }
19856 else
19857 # Is the header compilable?
19858 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19859 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 $ac_includes_default
19867 #include <${LTDL_DIR}/include/ltdl.h>
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19886 ac_header_compiler=yes
19887 else
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_header_compiler=no
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19896 echo "${ECHO_T}$ac_header_compiler" >&6; }
19898 # Is the header present?
19899 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19900 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <${LTDL_DIR}/include/ltdl.h>
19908 _ACEOF
19909 if { (ac_try="$ac_cpp conftest.$ac_ext"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } >/dev/null && {
19922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 }; then
19925 ac_header_preproc=yes
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 ac_header_preproc=no
19933 rm -f conftest.err conftest.$ac_ext
19934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19935 echo "${ECHO_T}$ac_header_preproc" >&6; }
19937 # So? What about this header?
19938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19939 yes:no: )
19940 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19941 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19943 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19944 ac_header_preproc=yes
19946 no:yes:* )
19947 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19948 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19950 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19952 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19954 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19956 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19958 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19959 ( cat <<\_ASBOX
19960 ## ------------------------------- ##
19961 ## Report this to www.asterisk.org ##
19962 ## ------------------------------- ##
19963 _ASBOX
19964 ) | sed "s/^/$as_me: WARNING: /" >&2
19966 esac
19967 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19968 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 eval "$as_ac_Header=\$ac_header_preproc"
19974 ac_res=`eval echo '${'$as_ac_Header'}'`
19975 { echo "$as_me:$LINENO: result: $ac_res" >&5
19976 echo "${ECHO_T}$ac_res" >&6; }
19979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19980 LTDL_HEADER_FOUND=1
19981 else
19982 LTDL_HEADER_FOUND=0
19987 CPPFLAGS="${saved_cppflags}"
19988 else
19989 if test "xltdl.h" != "x" ; then
19990 if test "${ac_cv_header_ltdl_h+set}" = set; then
19991 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19992 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19993 if test "${ac_cv_header_ltdl_h+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19997 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19998 else
19999 # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20001 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20009 #include <ltdl.h>
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20019 ac_status=$?
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20028 ac_header_compiler=yes
20029 else
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_header_compiler=no
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038 echo "${ECHO_T}$ac_header_compiler" >&6; }
20040 # Is the header present?
20041 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20042 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <ltdl.h>
20050 _ACEOF
20051 if { (ac_try="$ac_cpp conftest.$ac_ext"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } >/dev/null && {
20064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20066 }; then
20067 ac_header_preproc=yes
20068 else
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ac_header_preproc=no
20075 rm -f conftest.err conftest.$ac_ext
20076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20077 echo "${ECHO_T}$ac_header_preproc" >&6; }
20079 # So? What about this header?
20080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20081 yes:no: )
20082 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20083 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20085 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20086 ac_header_preproc=yes
20088 no:yes:* )
20089 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20090 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20092 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20094 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20096 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20098 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20100 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20101 ( cat <<\_ASBOX
20102 ## ------------------------------- ##
20103 ## Report this to www.asterisk.org ##
20104 ## ------------------------------- ##
20105 _ASBOX
20106 ) | sed "s/^/$as_me: WARNING: /" >&2
20108 esac
20109 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20110 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20111 if test "${ac_cv_header_ltdl_h+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114 ac_cv_header_ltdl_h=$ac_header_preproc
20116 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20117 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20120 if test $ac_cv_header_ltdl_h = yes; then
20121 LTDL_HEADER_FOUND=1
20122 else
20123 LTDL_HEADER_FOUND=0
20129 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20130 if test -n "${LTDL_MANDATORY}" ;
20131 then
20132 { echo "$as_me:$LINENO: ***" >&5
20133 echo "$as_me: ***" >&6;}
20134 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20135 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20136 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20137 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20138 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20139 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20140 exit 1
20142 LTDL_LIB=""
20143 LTDL_INCLUDE=""
20144 PBX_LTDL=0
20145 else
20146 PBX_LTDL=1
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_LTDL 1
20150 _ACEOF
20153 elif test -n "${LTDL_MANDATORY}";
20154 then
20155 { echo "$as_me:$LINENO: ***" >&5
20156 echo "$as_me: ***" >&6;}
20157 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20158 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20159 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20160 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20161 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20162 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20163 exit 1
20168 ac_ext=cpp
20169 ac_cpp='$CXXCPP $CPPFLAGS'
20170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20175 if test "${USE_KDE}" != "no"; then
20176 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20177 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20178 saved_libs="${LIBS}"
20179 saved_cppflags="${CPPFLAGS}"
20180 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20181 if test -d ${KDE_DIR}/lib; then
20182 kdelibdir="${KDE_DIR}/lib"
20183 else
20184 kdelibdir="${KDE_DIR}"
20186 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include "kcrash.h"
20197 main ()
20199 KCrash::defaultCrashHandler(1);
20201 return 0;
20204 _ACEOF
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_cxx_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_lib_kde_crash="yes"
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_lib_kde_crash="no"
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20234 LIBS="${saved_libs}"
20235 CPPFLAGS="${saved_cppflags}"
20237 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20238 { echo "$as_me:$LINENO: result: yes" >&5
20239 echo "${ECHO_T}yes" >&6; }
20240 KDE_LIB="-lkdecore -lkdeui"
20241 if test "${KDE_DIR}" != ""; then
20242 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
20243 KDE_INCLUDE="-I${KDE_DIR}/include"
20245 PBX_KDE=1
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_LIBKDE 1
20249 _ACEOF
20251 elif test -n "${KDE_MANDATORY}"; then
20252 { echo "$as_me:$LINENO: result: no" >&5
20253 echo "${ECHO_T}no" >&6; }
20254 { echo "$as_me:$LINENO: ***" >&5
20255 echo "$as_me: ***" >&6;}
20256 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20257 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20258 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20259 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20260 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20261 echo "$as_me: *** including --without-kde." >&6;}
20262 exit 1
20263 else
20264 { echo "$as_me:$LINENO: result: no" >&5
20265 echo "${ECHO_T}no" >&6; }
20268 if test "${PBX_KDE}" = 1; then
20269 if test -n "$ac_tool_prefix"; then
20270 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20271 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
20272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20274 if test "${ac_cv_path_KDEINIT+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 case $KDEINIT in
20278 [\\/]* | ?:[\\/]*)
20279 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
20282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20285 IFS=$as_save_IFS
20286 test -z "$as_dir" && as_dir=.
20287 for ac_exec_ext in '' $ac_executable_extensions; do
20288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20289 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20291 break 2
20293 done
20294 done
20295 IFS=$as_save_IFS
20298 esac
20300 KDEINIT=$ac_cv_path_KDEINIT
20301 if test -n "$KDEINIT"; then
20302 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20303 echo "${ECHO_T}$KDEINIT" >&6; }
20304 else
20305 { echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6; }
20311 if test -z "$ac_cv_path_KDEINIT"; then
20312 ac_pt_KDEINIT=$KDEINIT
20313 # Extract the first word of "kdeinit", so it can be a program name with args.
20314 set dummy kdeinit; ac_word=$2
20315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20317 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320 case $ac_pt_KDEINIT in
20321 [\\/]* | ?:[\\/]*)
20322 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
20325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20326 for as_dir in $PATH
20328 IFS=$as_save_IFS
20329 test -z "$as_dir" && as_dir=.
20330 for ac_exec_ext in '' $ac_executable_extensions; do
20331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20332 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20334 break 2
20336 done
20337 done
20338 IFS=$as_save_IFS
20341 esac
20343 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
20344 if test -n "$ac_pt_KDEINIT"; then
20345 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20346 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20347 else
20348 { echo "$as_me:$LINENO: result: no" >&5
20349 echo "${ECHO_T}no" >&6; }
20352 if test "x$ac_pt_KDEINIT" = x; then
20353 KDEINIT="No"
20354 else
20355 case $cross_compiling:$ac_tool_warned in
20356 yes:)
20357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20358 whose name does not start with the host triplet. If you think this
20359 configuration is useful to you, please write to autoconf@gnu.org." >&5
20360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20361 whose name does not start with the host triplet. If you think this
20362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20363 ac_tool_warned=yes ;;
20364 esac
20365 KDEINIT=$ac_pt_KDEINIT
20367 else
20368 KDEINIT="$ac_cv_path_KDEINIT"
20371 if test ! x"${KDEINIT}" = xNo; then
20372 KDEDIR=$(${DIRNAME} ${KDEINIT})
20373 KDEDIR=$(${DIRNAME} ${KDEDIR})
20378 ac_ext=c
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386 if test "${USE_MISDN}" != "no"; then
20387 pbxlibdir=""
20388 if test "x${MISDN_DIR}" != "x"; then
20389 if test -d ${MISDN_DIR}/lib; then
20390 pbxlibdir="-L${MISDN_DIR}/lib"
20391 else
20392 pbxlibdir="-L${MISDN_DIR}"
20395 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20396 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20397 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400 ac_check_lib_save_LIBS=$LIBS
20401 LIBS="-lmISDN ${pbxlibdir} $LIBS"
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h. */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412 #ifdef __cplusplus
20413 extern "C"
20414 #endif
20415 char mISDN_open ();
20417 main ()
20419 return mISDN_open ();
20421 return 0;
20423 _ACEOF
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest$ac_exeext &&
20441 $as_test_x conftest$ac_exeext; then
20442 ac_cv_lib_mISDN_mISDN_open=yes
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_lib_mISDN_mISDN_open=no
20450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20451 conftest$ac_exeext conftest.$ac_ext
20452 LIBS=$ac_check_lib_save_LIBS
20454 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20455 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20456 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20457 AST_MISDN_FOUND=yes
20458 else
20459 AST_MISDN_FOUND=no
20463 if test "${AST_MISDN_FOUND}" = "yes"; then
20464 MISDN_LIB="-lmISDN "
20465 MISDN_HEADER_FOUND="1"
20466 if test "x${MISDN_DIR}" != "x"; then
20467 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20468 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20469 saved_cppflags="${CPPFLAGS}"
20470 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20471 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20472 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20475 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 ac_res=`eval echo '${'$as_ac_Header'}'`
20480 { echo "$as_me:$LINENO: result: $ac_res" >&5
20481 echo "${ECHO_T}$ac_res" >&6; }
20482 else
20483 # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20485 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 $ac_includes_default
20493 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.$ac_objext; then
20512 ac_header_compiler=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_compiler=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20526 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20534 _ACEOF
20535 if { (ac_try="$ac_cpp conftest.$ac_ext"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null && {
20548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 }; then
20551 ac_header_preproc=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_header_preproc=no
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20563 # So? What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20565 yes:no: )
20566 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20567 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20569 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20570 ac_header_preproc=yes
20572 no:yes:* )
20573 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20574 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20576 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20578 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20580 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20582 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20584 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20585 ( cat <<\_ASBOX
20586 ## ------------------------------- ##
20587 ## Report this to www.asterisk.org ##
20588 ## ------------------------------- ##
20589 _ASBOX
20590 ) | sed "s/^/$as_me: WARNING: /" >&2
20592 esac
20593 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20594 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598 eval "$as_ac_Header=\$ac_header_preproc"
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601 { echo "$as_me:$LINENO: result: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20606 MISDN_HEADER_FOUND=1
20607 else
20608 MISDN_HEADER_FOUND=0
20613 CPPFLAGS="${saved_cppflags}"
20614 else
20615 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20616 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20617 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20618 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20619 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20623 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20624 else
20625 # Is the header compilable?
20626 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20627 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h. */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 #include <mISDNuser/mISDNlib.h>
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_header_compiler=yes
20655 else
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_compiler=no
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20664 echo "${ECHO_T}$ac_header_compiler" >&6; }
20666 # Is the header present?
20667 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20668 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20669 cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h. */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20675 #include <mISDNuser/mISDNlib.h>
20676 _ACEOF
20677 if { (ac_try="$ac_cpp conftest.$ac_ext"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } >/dev/null && {
20690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 }; then
20693 ac_header_preproc=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_header_preproc=no
20701 rm -f conftest.err conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20703 echo "${ECHO_T}$ac_header_preproc" >&6; }
20705 # So? What about this header?
20706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20707 yes:no: )
20708 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20709 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20711 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20712 ac_header_preproc=yes
20714 no:yes:* )
20715 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20716 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20718 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20720 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20722 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20724 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20726 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20727 ( cat <<\_ASBOX
20728 ## ------------------------------- ##
20729 ## Report this to www.asterisk.org ##
20730 ## ------------------------------- ##
20731 _ASBOX
20732 ) | sed "s/^/$as_me: WARNING: /" >&2
20734 esac
20735 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20736 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20737 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20742 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20743 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20746 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20747 MISDN_HEADER_FOUND=1
20748 else
20749 MISDN_HEADER_FOUND=0
20755 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20756 if test -n "${MISDN_MANDATORY}" ;
20757 then
20758 { echo "$as_me:$LINENO: ***" >&5
20759 echo "$as_me: ***" >&6;}
20760 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20761 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20762 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20763 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20764 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20765 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20766 exit 1
20768 MISDN_LIB=""
20769 MISDN_INCLUDE=""
20770 PBX_MISDN=0
20771 else
20772 PBX_MISDN=1
20774 cat >>confdefs.h <<_ACEOF
20775 #define HAVE_MISDN 1
20776 _ACEOF
20779 elif test -n "${MISDN_MANDATORY}";
20780 then
20781 { echo "$as_me:$LINENO: ***" >&5
20782 echo "$as_me: ***" >&6;}
20783 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20784 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20785 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20786 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20787 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20788 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20789 exit 1
20794 if test "${PBX_MISDN}" = 1; then
20796 if test "${USE_ISDNNET}" != "no"; then
20797 pbxlibdir=""
20798 if test "x${ISDNNET_DIR}" != "x"; then
20799 if test -d ${ISDNNET_DIR}/lib; then
20800 pbxlibdir="-L${ISDNNET_DIR}/lib"
20801 else
20802 pbxlibdir="-L${ISDNNET_DIR}"
20805 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20806 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20807 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810 ac_check_lib_save_LIBS=$LIBS
20811 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20819 /* Override any GCC internal prototype to avoid an error.
20820 Use char because int might match the return type of a GCC
20821 builtin and then its argument prototype would still apply. */
20822 #ifdef __cplusplus
20823 extern "C"
20824 #endif
20825 char init_manager ();
20827 main ()
20829 return init_manager ();
20831 return 0;
20833 _ACEOF
20834 rm -f conftest.$ac_objext conftest$ac_exeext
20835 if { (ac_try="$ac_link"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_link") 2>conftest.er1
20842 ac_status=$?
20843 grep -v '^ *+' conftest.er1 >conftest.err
20844 rm -f conftest.er1
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } && {
20848 test -z "$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20850 } && test -s conftest$ac_exeext &&
20851 $as_test_x conftest$ac_exeext; then
20852 ac_cv_lib_isdnnet_init_manager=yes
20853 else
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20857 ac_cv_lib_isdnnet_init_manager=no
20860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20861 conftest$ac_exeext conftest.$ac_ext
20862 LIBS=$ac_check_lib_save_LIBS
20864 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20865 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20866 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20867 AST_ISDNNET_FOUND=yes
20868 else
20869 AST_ISDNNET_FOUND=no
20873 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20874 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20875 ISDNNET_HEADER_FOUND="1"
20876 if test "x${ISDNNET_DIR}" != "x"; then
20877 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20878 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20879 saved_cppflags="${CPPFLAGS}"
20880 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20881 if test "xmISDNuser/isdn_net.h" != "x" ; then
20882 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20884 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20885 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 ac_res=`eval echo '${'$as_ac_Header'}'`
20890 { echo "$as_me:$LINENO: result: $ac_res" >&5
20891 echo "${ECHO_T}$ac_res" >&6; }
20892 else
20893 # Is the header compilable?
20894 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20895 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h. */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 $ac_includes_default
20903 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20913 ac_status=$?
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && {
20919 test -z "$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 } && test -s conftest.$ac_objext; then
20922 ac_header_compiler=yes
20923 else
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_header_compiler=no
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20932 echo "${ECHO_T}$ac_header_compiler" >&6; }
20934 # Is the header present?
20935 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20936 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20944 _ACEOF
20945 if { (ac_try="$ac_cpp conftest.$ac_ext"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev/null && {
20958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 }; then
20961 ac_header_preproc=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 ac_header_preproc=no
20969 rm -f conftest.err conftest.$ac_ext
20970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20971 echo "${ECHO_T}$ac_header_preproc" >&6; }
20973 # So? What about this header?
20974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20975 yes:no: )
20976 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20977 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20979 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20980 ac_header_preproc=yes
20982 no:yes:* )
20983 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20984 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20985 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20986 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20988 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20990 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20992 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20994 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20995 ( cat <<\_ASBOX
20996 ## ------------------------------- ##
20997 ## Report this to www.asterisk.org ##
20998 ## ------------------------------- ##
20999 _ASBOX
21000 ) | sed "s/^/$as_me: WARNING: /" >&2
21002 esac
21003 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21004 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008 eval "$as_ac_Header=\$ac_header_preproc"
21010 ac_res=`eval echo '${'$as_ac_Header'}'`
21011 { echo "$as_me:$LINENO: result: $ac_res" >&5
21012 echo "${ECHO_T}$ac_res" >&6; }
21015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21016 ISDNNET_HEADER_FOUND=1
21017 else
21018 ISDNNET_HEADER_FOUND=0
21023 CPPFLAGS="${saved_cppflags}"
21024 else
21025 if test "xmISDNuser/isdn_net.h" != "x" ; then
21026 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21027 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21028 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21029 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21033 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21034 else
21035 # Is the header compilable?
21036 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21037 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 $ac_includes_default
21045 #include <mISDNuser/isdn_net.h>
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_header_compiler=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_compiler=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 echo "${ECHO_T}$ac_header_compiler" >&6; }
21076 # Is the header present?
21077 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21078 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <mISDNuser/isdn_net.h>
21086 _ACEOF
21087 if { (ac_try="$ac_cpp conftest.$ac_ext"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21094 ac_status=$?
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } >/dev/null && {
21100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 }; then
21103 ac_header_preproc=yes
21104 else
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_preproc=no
21111 rm -f conftest.err conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21113 echo "${ECHO_T}$ac_header_preproc" >&6; }
21115 # So? What about this header?
21116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21117 yes:no: )
21118 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21119 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21121 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21122 ac_header_preproc=yes
21124 no:yes:* )
21125 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21126 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21128 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21130 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21132 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21134 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21136 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21137 ( cat <<\_ASBOX
21138 ## ------------------------------- ##
21139 ## Report this to www.asterisk.org ##
21140 ## ------------------------------- ##
21141 _ASBOX
21142 ) | sed "s/^/$as_me: WARNING: /" >&2
21144 esac
21145 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21146 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21147 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
21152 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21153 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21156 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21157 ISDNNET_HEADER_FOUND=1
21158 else
21159 ISDNNET_HEADER_FOUND=0
21165 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21166 if test -n "${ISDNNET_MANDATORY}" ;
21167 then
21168 { echo "$as_me:$LINENO: ***" >&5
21169 echo "$as_me: ***" >&6;}
21170 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21171 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21172 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21173 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21174 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21175 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21176 exit 1
21178 ISDNNET_LIB=""
21179 ISDNNET_INCLUDE=""
21180 PBX_ISDNNET=0
21181 else
21182 PBX_ISDNNET=1
21184 cat >>confdefs.h <<_ACEOF
21185 #define HAVE_ISDNNET 1
21186 _ACEOF
21189 elif test -n "${ISDNNET_MANDATORY}";
21190 then
21191 { echo "$as_me:$LINENO: ***" >&5
21192 echo "$as_me: ***" >&6;}
21193 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21194 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21195 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21196 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21197 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21198 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21199 exit 1
21204 if test "${USE_SUPPSERV}" != "no"; then
21205 pbxlibdir=""
21206 if test "x${SUPPSERV_DIR}" != "x"; then
21207 if test -d ${SUPPSERV_DIR}/lib; then
21208 pbxlibdir="-L${SUPPSERV_DIR}/lib"
21209 else
21210 pbxlibdir="-L${SUPPSERV_DIR}"
21213 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21214 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21215 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 ac_check_lib_save_LIBS=$LIBS
21219 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21230 #ifdef __cplusplus
21231 extern "C"
21232 #endif
21233 char encodeFac ();
21235 main ()
21237 return encodeFac ();
21239 return 0;
21241 _ACEOF
21242 rm -f conftest.$ac_objext conftest$ac_exeext
21243 if { (ac_try="$ac_link"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_link") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext &&
21259 $as_test_x conftest$ac_exeext; then
21260 ac_cv_lib_suppserv_encodeFac=yes
21261 else
21262 echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 ac_cv_lib_suppserv_encodeFac=no
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269 conftest$ac_exeext conftest.$ac_ext
21270 LIBS=$ac_check_lib_save_LIBS
21272 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21273 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21274 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21275 AST_SUPPSERV_FOUND=yes
21276 else
21277 AST_SUPPSERV_FOUND=no
21281 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21282 SUPPSERV_LIB="-lsuppserv "
21283 SUPPSERV_HEADER_FOUND="1"
21284 if test "x${SUPPSERV_DIR}" != "x"; then
21285 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21286 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21287 saved_cppflags="${CPPFLAGS}"
21288 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21289 if test "xmISDNuser/suppserv.h" != "x" ; then
21290 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
21291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21292 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21293 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 ac_res=`eval echo '${'$as_ac_Header'}'`
21298 { echo "$as_me:$LINENO: result: $ac_res" >&5
21299 echo "${ECHO_T}$ac_res" >&6; }
21300 else
21301 # Is the header compilable?
21302 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21303 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21311 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_compile") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest.$ac_objext; then
21330 ac_header_compiler=yes
21331 else
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21335 ac_header_compiler=no
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21340 echo "${ECHO_T}$ac_header_compiler" >&6; }
21342 # Is the header present?
21343 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21344 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h. */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21352 _ACEOF
21353 if { (ac_try="$ac_cpp conftest.$ac_ext"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } >/dev/null && {
21366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21368 }; then
21369 ac_header_preproc=yes
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_header_preproc=no
21377 rm -f conftest.err conftest.$ac_ext
21378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21379 echo "${ECHO_T}$ac_header_preproc" >&6; }
21381 # So? What about this header?
21382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21383 yes:no: )
21384 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21385 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21387 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21388 ac_header_preproc=yes
21390 no:yes:* )
21391 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21392 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21394 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21396 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21398 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21400 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21402 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21403 ( cat <<\_ASBOX
21404 ## ------------------------------- ##
21405 ## Report this to www.asterisk.org ##
21406 ## ------------------------------- ##
21407 _ASBOX
21408 ) | sed "s/^/$as_me: WARNING: /" >&2
21410 esac
21411 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21412 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416 eval "$as_ac_Header=\$ac_header_preproc"
21418 ac_res=`eval echo '${'$as_ac_Header'}'`
21419 { echo "$as_me:$LINENO: result: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21424 SUPPSERV_HEADER_FOUND=1
21425 else
21426 SUPPSERV_HEADER_FOUND=0
21431 CPPFLAGS="${saved_cppflags}"
21432 else
21433 if test "xmISDNuser/suppserv.h" != "x" ; then
21434 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21435 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21436 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21437 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21441 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21442 else
21443 # Is the header compilable?
21444 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21445 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 $ac_includes_default
21453 #include <mISDNuser/suppserv.h>
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21472 ac_header_compiler=yes
21473 else
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_header_compiler=no
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 echo "${ECHO_T}$ac_header_compiler" >&6; }
21484 # Is the header present?
21485 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21486 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h. */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <mISDNuser/suppserv.h>
21494 _ACEOF
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } >/dev/null && {
21508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 }; then
21511 ac_header_preproc=yes
21512 else
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_header_preproc=no
21519 rm -f conftest.err conftest.$ac_ext
21520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21521 echo "${ECHO_T}$ac_header_preproc" >&6; }
21523 # So? What about this header?
21524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21525 yes:no: )
21526 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21527 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21529 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21530 ac_header_preproc=yes
21532 no:yes:* )
21533 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21534 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21536 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21538 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21540 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21542 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21544 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21545 ( cat <<\_ASBOX
21546 ## ------------------------------- ##
21547 ## Report this to www.asterisk.org ##
21548 ## ------------------------------- ##
21549 _ASBOX
21550 ) | sed "s/^/$as_me: WARNING: /" >&2
21552 esac
21553 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21554 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21555 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21560 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21561 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21564 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21565 SUPPSERV_HEADER_FOUND=1
21566 else
21567 SUPPSERV_HEADER_FOUND=0
21573 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21574 if test -n "${SUPPSERV_MANDATORY}" ;
21575 then
21576 { echo "$as_me:$LINENO: ***" >&5
21577 echo "$as_me: ***" >&6;}
21578 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21579 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21580 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21581 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21582 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21583 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21584 exit 1
21586 SUPPSERV_LIB=""
21587 SUPPSERV_INCLUDE=""
21588 PBX_SUPPSERV=0
21589 else
21590 PBX_SUPPSERV=1
21592 cat >>confdefs.h <<_ACEOF
21593 #define HAVE_SUPPSERV 1
21594 _ACEOF
21597 elif test -n "${SUPPSERV_MANDATORY}";
21598 then
21599 { echo "$as_me:$LINENO: ***" >&5
21600 echo "$as_me: ***" >&6;}
21601 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21602 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21603 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21604 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21605 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21606 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21607 exit 1
21611 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21612 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21613 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21614 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21618 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21619 else
21620 # Is the header compilable?
21621 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21622 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21623 cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h. */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 $ac_includes_default
21630 #include <linux/mISDNdsp.h>
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21640 ac_status=$?
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest.$ac_objext; then
21649 ac_header_compiler=yes
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_header_compiler=no
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21659 echo "${ECHO_T}$ac_header_compiler" >&6; }
21661 # Is the header present?
21662 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21663 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21664 cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h. */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 #include <linux/mISDNdsp.h>
21671 _ACEOF
21672 if { (ac_try="$ac_cpp conftest.$ac_ext"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev/null && {
21685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 }; then
21688 ac_header_preproc=yes
21689 else
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_header_preproc=no
21696 rm -f conftest.err conftest.$ac_ext
21697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21698 echo "${ECHO_T}$ac_header_preproc" >&6; }
21700 # So? What about this header?
21701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21702 yes:no: )
21703 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21704 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21706 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21707 ac_header_preproc=yes
21709 no:yes:* )
21710 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21711 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21713 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21714 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21715 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21717 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21719 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21721 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21722 ( cat <<\_ASBOX
21723 ## ------------------------------- ##
21724 ## Report this to www.asterisk.org ##
21725 ## ------------------------------- ##
21726 _ASBOX
21727 ) | sed "s/^/$as_me: WARNING: /" >&2
21729 esac
21730 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21731 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21732 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 else
21735 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21737 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21738 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21741 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21743 cat >>confdefs.h <<_ACEOF
21744 #define MISDN_1_2 1
21745 _ACEOF
21753 if test "${USE_NBS}" != "no"; then
21754 pbxlibdir=""
21755 if test "x${NBS_DIR}" != "x"; then
21756 if test -d ${NBS_DIR}/lib; then
21757 pbxlibdir="-L${NBS_DIR}/lib"
21758 else
21759 pbxlibdir="-L${NBS_DIR}"
21762 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21763 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21764 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767 ac_check_lib_save_LIBS=$LIBS
21768 LIBS="-lnbs ${pbxlibdir} $LIBS"
21769 cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h. */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21776 /* Override any GCC internal prototype to avoid an error.
21777 Use char because int might match the return type of a GCC
21778 builtin and then its argument prototype would still apply. */
21779 #ifdef __cplusplus
21780 extern "C"
21781 #endif
21782 char nbs_connect ();
21784 main ()
21786 return nbs_connect ();
21788 return 0;
21790 _ACEOF
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_link") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest$ac_exeext &&
21808 $as_test_x conftest$ac_exeext; then
21809 ac_cv_lib_nbs_nbs_connect=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_cv_lib_nbs_nbs_connect=no
21817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21818 conftest$ac_exeext conftest.$ac_ext
21819 LIBS=$ac_check_lib_save_LIBS
21821 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21822 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21823 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21824 AST_NBS_FOUND=yes
21825 else
21826 AST_NBS_FOUND=no
21830 if test "${AST_NBS_FOUND}" = "yes"; then
21831 NBS_LIB="-lnbs "
21832 NBS_HEADER_FOUND="1"
21833 if test "x${NBS_DIR}" != "x"; then
21834 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
21835 NBS_INCLUDE="-I${NBS_DIR}/include"
21836 saved_cppflags="${CPPFLAGS}"
21837 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
21838 if test "xnbs.h" != "x" ; then
21839 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21842 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 ac_res=`eval echo '${'$as_ac_Header'}'`
21847 { echo "$as_me:$LINENO: result: $ac_res" >&5
21848 echo "${ECHO_T}$ac_res" >&6; }
21849 else
21850 # Is the header compilable?
21851 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21852 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21860 #include <${NBS_DIR}/include/nbs.h>
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21870 ac_status=$?
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21879 ac_header_compiler=yes
21880 else
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_header_compiler=no
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21889 echo "${ECHO_T}$ac_header_compiler" >&6; }
21891 # Is the header present?
21892 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21893 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21894 cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h. */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #include <${NBS_DIR}/include/nbs.h>
21901 _ACEOF
21902 if { (ac_try="$ac_cpp conftest.$ac_ext"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } >/dev/null && {
21915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 }; then
21918 ac_header_preproc=yes
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_header_preproc=no
21926 rm -f conftest.err conftest.$ac_ext
21927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21928 echo "${ECHO_T}$ac_header_preproc" >&6; }
21930 # So? What about this header?
21931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21932 yes:no: )
21933 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21934 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21936 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21937 ac_header_preproc=yes
21939 no:yes:* )
21940 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21941 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21943 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21945 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21947 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21949 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21951 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21952 ( cat <<\_ASBOX
21953 ## ------------------------------- ##
21954 ## Report this to www.asterisk.org ##
21955 ## ------------------------------- ##
21956 _ASBOX
21957 ) | sed "s/^/$as_me: WARNING: /" >&2
21959 esac
21960 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21961 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965 eval "$as_ac_Header=\$ac_header_preproc"
21967 ac_res=`eval echo '${'$as_ac_Header'}'`
21968 { echo "$as_me:$LINENO: result: $ac_res" >&5
21969 echo "${ECHO_T}$ac_res" >&6; }
21972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21973 NBS_HEADER_FOUND=1
21974 else
21975 NBS_HEADER_FOUND=0
21980 CPPFLAGS="${saved_cppflags}"
21981 else
21982 if test "xnbs.h" != "x" ; then
21983 if test "${ac_cv_header_nbs_h+set}" = set; then
21984 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21985 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21986 if test "${ac_cv_header_nbs_h+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21990 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21991 else
21992 # Is the header compilable?
21993 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
21994 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 #include <nbs.h>
22003 _ACEOF
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_header_compiler=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_compiler=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22035 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 #include <nbs.h>
22043 _ACEOF
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22051 ac_status=$?
22052 grep -v '^ *+' conftest.er1 >conftest.err
22053 rm -f conftest.er1
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } >/dev/null && {
22057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 }; then
22060 ac_header_preproc=yes
22061 else
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_header_preproc=no
22068 rm -f conftest.err conftest.$ac_ext
22069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6; }
22072 # So? What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22074 yes:no: )
22075 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22079 ac_header_preproc=yes
22081 no:yes:* )
22082 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22094 ( cat <<\_ASBOX
22095 ## ------------------------------- ##
22096 ## Report this to www.asterisk.org ##
22097 ## ------------------------------- ##
22098 _ASBOX
22099 ) | sed "s/^/$as_me: WARNING: /" >&2
22101 esac
22102 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22103 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22104 if test "${ac_cv_header_nbs_h+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 else
22107 ac_cv_header_nbs_h=$ac_header_preproc
22109 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22110 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22113 if test $ac_cv_header_nbs_h = yes; then
22114 NBS_HEADER_FOUND=1
22115 else
22116 NBS_HEADER_FOUND=0
22122 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22123 if test -n "${NBS_MANDATORY}" ;
22124 then
22125 { echo "$as_me:$LINENO: ***" >&5
22126 echo "$as_me: ***" >&6;}
22127 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22128 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22129 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22130 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22131 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22132 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22133 exit 1
22135 NBS_LIB=""
22136 NBS_INCLUDE=""
22137 PBX_NBS=0
22138 else
22139 PBX_NBS=1
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_NBS 1
22143 _ACEOF
22146 elif test -n "${NBS_MANDATORY}";
22147 then
22148 { echo "$as_me:$LINENO: ***" >&5
22149 echo "$as_me: ***" >&6;}
22150 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22151 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22152 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22153 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22154 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22155 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22156 exit 1
22162 if test "${USE_NCURSES}" != "no"; then
22163 pbxlibdir=""
22164 if test "x${NCURSES_DIR}" != "x"; then
22165 if test -d ${NCURSES_DIR}/lib; then
22166 pbxlibdir="-L${NCURSES_DIR}/lib"
22167 else
22168 pbxlibdir="-L${NCURSES_DIR}"
22171 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22172 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22173 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lncurses ${pbxlibdir} $LIBS"
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22188 #ifdef __cplusplus
22189 extern "C"
22190 #endif
22191 char initscr ();
22193 main ()
22195 return initscr ();
22197 return 0;
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22205 esac
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>conftest.er1
22208 ac_status=$?
22209 grep -v '^ *+' conftest.er1 >conftest.err
22210 rm -f conftest.er1
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest$ac_exeext &&
22217 $as_test_x conftest$ac_exeext; then
22218 ac_cv_lib_ncurses_initscr=yes
22219 else
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_cv_lib_ncurses_initscr=no
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227 conftest$ac_exeext conftest.$ac_ext
22228 LIBS=$ac_check_lib_save_LIBS
22230 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22231 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22232 if test $ac_cv_lib_ncurses_initscr = yes; then
22233 AST_NCURSES_FOUND=yes
22234 else
22235 AST_NCURSES_FOUND=no
22239 if test "${AST_NCURSES_FOUND}" = "yes"; then
22240 NCURSES_LIB="-lncurses "
22241 NCURSES_HEADER_FOUND="1"
22242 if test "x${NCURSES_DIR}" != "x"; then
22243 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22244 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22245 saved_cppflags="${CPPFLAGS}"
22246 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22247 if test "xcurses.h" != "x" ; then
22248 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
22249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22250 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22251 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 ac_res=`eval echo '${'$as_ac_Header'}'`
22256 { echo "$as_me:$LINENO: result: $ac_res" >&5
22257 echo "${ECHO_T}$ac_res" >&6; }
22258 else
22259 # Is the header compilable?
22260 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22261 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22262 cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h. */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 $ac_includes_default
22269 #include <${NCURSES_DIR}/include/curses.h>
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.$ac_objext; then
22288 ac_header_compiler=yes
22289 else
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_header_compiler=no
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22298 echo "${ECHO_T}$ac_header_compiler" >&6; }
22300 # Is the header present?
22301 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22302 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 #include <${NCURSES_DIR}/include/curses.h>
22310 _ACEOF
22311 if { (ac_try="$ac_cpp conftest.$ac_ext"
22312 case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22318 ac_status=$?
22319 grep -v '^ *+' conftest.er1 >conftest.err
22320 rm -f conftest.er1
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } >/dev/null && {
22324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22325 test ! -s conftest.err
22326 }; then
22327 ac_header_preproc=yes
22328 else
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ac_header_preproc=no
22335 rm -f conftest.err conftest.$ac_ext
22336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22337 echo "${ECHO_T}$ac_header_preproc" >&6; }
22339 # So? What about this header?
22340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22341 yes:no: )
22342 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22343 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22345 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22346 ac_header_preproc=yes
22348 no:yes:* )
22349 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22350 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22352 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22354 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22356 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22358 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22360 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22361 ( cat <<\_ASBOX
22362 ## ------------------------------- ##
22363 ## Report this to www.asterisk.org ##
22364 ## ------------------------------- ##
22365 _ASBOX
22366 ) | sed "s/^/$as_me: WARNING: /" >&2
22368 esac
22369 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22370 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374 eval "$as_ac_Header=\$ac_header_preproc"
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 NCURSES_HEADER_FOUND=1
22383 else
22384 NCURSES_HEADER_FOUND=0
22389 CPPFLAGS="${saved_cppflags}"
22390 else
22391 if test "xcurses.h" != "x" ; then
22392 if test "${ac_cv_header_curses_h+set}" = set; then
22393 { echo "$as_me:$LINENO: checking for curses.h" >&5
22394 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22395 if test "${ac_cv_header_curses_h+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22399 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22400 else
22401 # Is the header compilable?
22402 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22403 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 #include <curses.h>
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22421 ac_status=$?
22422 grep -v '^ *+' conftest.er1 >conftest.err
22423 rm -f conftest.er1
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.$ac_objext; then
22430 ac_header_compiler=yes
22431 else
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ac_header_compiler=no
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22440 echo "${ECHO_T}$ac_header_compiler" >&6; }
22442 # Is the header present?
22443 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22444 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 #include <curses.h>
22452 _ACEOF
22453 if { (ac_try="$ac_cpp conftest.$ac_ext"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } >/dev/null && {
22466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 }; then
22469 ac_header_preproc=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_header_preproc=no
22477 rm -f conftest.err conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479 echo "${ECHO_T}$ac_header_preproc" >&6; }
22481 # So? What about this header?
22482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483 yes:no: )
22484 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22487 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22488 ac_header_preproc=yes
22490 no:yes:* )
22491 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22492 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22494 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22496 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22498 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22500 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22502 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22503 ( cat <<\_ASBOX
22504 ## ------------------------------- ##
22505 ## Report this to www.asterisk.org ##
22506 ## ------------------------------- ##
22507 _ASBOX
22508 ) | sed "s/^/$as_me: WARNING: /" >&2
22510 esac
22511 { echo "$as_me:$LINENO: checking for curses.h" >&5
22512 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22513 if test "${ac_cv_header_curses_h+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516 ac_cv_header_curses_h=$ac_header_preproc
22518 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22522 if test $ac_cv_header_curses_h = yes; then
22523 NCURSES_HEADER_FOUND=1
22524 else
22525 NCURSES_HEADER_FOUND=0
22531 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22532 if test -n "${NCURSES_MANDATORY}" ;
22533 then
22534 { echo "$as_me:$LINENO: ***" >&5
22535 echo "$as_me: ***" >&6;}
22536 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22537 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22538 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22539 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22540 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22541 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22542 exit 1
22544 NCURSES_LIB=""
22545 NCURSES_INCLUDE=""
22546 PBX_NCURSES=0
22547 else
22548 PBX_NCURSES=1
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_NCURSES 1
22552 _ACEOF
22555 elif test -n "${NCURSES_MANDATORY}";
22556 then
22557 { echo "$as_me:$LINENO: ***" >&5
22558 echo "$as_me: ***" >&6;}
22559 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22560 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22561 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22562 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22563 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22564 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22565 exit 1
22570 NETSNMP_CONFIG=No
22571 if test "${USE_NETSNMP}" != "no"; then
22572 if test "x${NETSNMP_DIR}" != "x"; then
22573 if test -n "$ac_tool_prefix"; then
22574 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22575 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22578 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581 case $NETSNMP_CONFIG in
22582 [\\/]* | ?:[\\/]*)
22583 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22587 for as_dir in ${NETSNMP_DIR}/bin
22589 IFS=$as_save_IFS
22590 test -z "$as_dir" && as_dir=.
22591 for ac_exec_ext in '' $ac_executable_extensions; do
22592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22593 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22595 break 2
22597 done
22598 done
22599 IFS=$as_save_IFS
22602 esac
22604 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22605 if test -n "$NETSNMP_CONFIG"; then
22606 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22607 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22608 else
22609 { echo "$as_me:$LINENO: result: no" >&5
22610 echo "${ECHO_T}no" >&6; }
22615 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22616 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22617 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22618 set dummy net-snmp-config; ac_word=$2
22619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22621 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 else
22624 case $ac_pt_NETSNMP_CONFIG in
22625 [\\/]* | ?:[\\/]*)
22626 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22630 for as_dir in ${NETSNMP_DIR}/bin
22632 IFS=$as_save_IFS
22633 test -z "$as_dir" && as_dir=.
22634 for ac_exec_ext in '' $ac_executable_extensions; do
22635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22636 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22638 break 2
22640 done
22641 done
22642 IFS=$as_save_IFS
22645 esac
22647 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22648 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22649 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22650 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22651 else
22652 { echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6; }
22656 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22657 NETSNMP_CONFIG="No"
22658 else
22659 case $cross_compiling:$ac_tool_warned in
22660 yes:)
22661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22662 whose name does not start with the host triplet. If you think this
22663 configuration is useful to you, please write to autoconf@gnu.org." >&5
22664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22665 whose name does not start with the host triplet. If you think this
22666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22667 ac_tool_warned=yes ;;
22668 esac
22669 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22671 else
22672 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22675 if test x"${NETSNMP_CONFIG}" = xNo; then
22676 { echo "$as_me:$LINENO: ***" >&5
22677 echo "$as_me: ***" >&6;}
22678 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22679 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22680 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22681 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22682 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22683 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22684 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22685 echo "$as_me: *** including --without-netsnmp" >&6;}
22686 exit 1
22688 else
22689 if test -n "$ac_tool_prefix"; then
22690 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22691 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22694 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 else
22697 case $NETSNMP_CONFIG in
22698 [\\/]* | ?:[\\/]*)
22699 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22703 for as_dir in $PATH
22705 IFS=$as_save_IFS
22706 test -z "$as_dir" && as_dir=.
22707 for ac_exec_ext in '' $ac_executable_extensions; do
22708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22709 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22711 break 2
22713 done
22714 done
22715 IFS=$as_save_IFS
22718 esac
22720 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22721 if test -n "$NETSNMP_CONFIG"; then
22722 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22723 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22724 else
22725 { echo "$as_me:$LINENO: result: no" >&5
22726 echo "${ECHO_T}no" >&6; }
22731 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22732 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22733 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22734 set dummy net-snmp-config; ac_word=$2
22735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22737 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740 case $ac_pt_NETSNMP_CONFIG in
22741 [\\/]* | ?:[\\/]*)
22742 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22746 for as_dir in $PATH
22748 IFS=$as_save_IFS
22749 test -z "$as_dir" && as_dir=.
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22752 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22754 break 2
22756 done
22757 done
22758 IFS=$as_save_IFS
22761 esac
22763 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22764 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22765 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22766 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22767 else
22768 { echo "$as_me:$LINENO: result: no" >&5
22769 echo "${ECHO_T}no" >&6; }
22772 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22773 NETSNMP_CONFIG="No"
22774 else
22775 case $cross_compiling:$ac_tool_warned in
22776 yes:)
22777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22778 whose name does not start with the host triplet. If you think this
22779 configuration is useful to you, please write to autoconf@gnu.org." >&5
22780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22781 whose name does not start with the host triplet. If you think this
22782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22783 ac_tool_warned=yes ;;
22784 esac
22785 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22787 else
22788 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22793 if test x"${NETSNMP_CONFIG}" != xNo; then
22794 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22796 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22797 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22798 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801 ac_check_lib_save_LIBS=$LIBS
22802 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h. */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22813 #ifdef __cplusplus
22814 extern "C"
22815 #endif
22816 char snmp_register_callback ();
22818 main ()
22820 return snmp_register_callback ();
22822 return 0;
22824 _ACEOF
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest$ac_exeext &&
22842 $as_test_x conftest$ac_exeext; then
22843 ac_cv_lib_netsnmp_snmp_register_callback=yes
22844 else
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 ac_cv_lib_netsnmp_snmp_register_callback=no
22851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852 conftest$ac_exeext conftest.$ac_ext
22853 LIBS=$ac_check_lib_save_LIBS
22855 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22856 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22857 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22859 cat >>confdefs.h <<_ACEOF
22860 #define HAVE_NETSNMP 1
22861 _ACEOF
22866 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22867 NETSNMP_LIB="${NETSNMP_libs}"
22868 PBX_NETSNMP=1
22869 elif test -n "${NETSNMP_MANDATORY}";
22870 then
22871 { echo "$as_me:$LINENO: ***" >&5
22872 echo "$as_me: ***" >&6;}
22873 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22874 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22875 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22876 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22877 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22878 echo "$as_me: *** including --without-netsnmp" >&6;}
22879 exit 1
22881 elif test -n "${NETSNMP_MANDATORY}";
22882 then
22883 { echo "$as_me:$LINENO: ***" >&5
22884 echo "$as_me: ***" >&6;}
22885 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22886 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22887 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22888 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22889 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22890 echo "$as_me: *** including --without-netsnmp" >&6;}
22891 exit 1
22895 if test "${USE_NEWT}" != "no"; then
22896 pbxlibdir=""
22897 if test "x${NEWT_DIR}" != "x"; then
22898 if test -d ${NEWT_DIR}/lib; then
22899 pbxlibdir="-L${NEWT_DIR}/lib"
22900 else
22901 pbxlibdir="-L${NEWT_DIR}"
22904 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22905 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22906 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 else
22909 ac_check_lib_save_LIBS=$LIBS
22910 LIBS="-lnewt ${pbxlibdir} $LIBS"
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22918 /* Override any GCC internal prototype to avoid an error.
22919 Use char because int might match the return type of a GCC
22920 builtin and then its argument prototype would still apply. */
22921 #ifdef __cplusplus
22922 extern "C"
22923 #endif
22924 char newtBell ();
22926 main ()
22928 return newtBell ();
22930 return 0;
22932 _ACEOF
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 if { (ac_try="$ac_link"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest$ac_exeext &&
22950 $as_test_x conftest$ac_exeext; then
22951 ac_cv_lib_newt_newtBell=yes
22952 else
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_lib_newt_newtBell=no
22959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22960 conftest$ac_exeext conftest.$ac_ext
22961 LIBS=$ac_check_lib_save_LIBS
22963 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22964 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22965 if test $ac_cv_lib_newt_newtBell = yes; then
22966 AST_NEWT_FOUND=yes
22967 else
22968 AST_NEWT_FOUND=no
22972 if test "${AST_NEWT_FOUND}" = "yes"; then
22973 NEWT_LIB="-lnewt "
22974 NEWT_HEADER_FOUND="1"
22975 if test "x${NEWT_DIR}" != "x"; then
22976 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22977 NEWT_INCLUDE="-I${NEWT_DIR}/include"
22978 saved_cppflags="${CPPFLAGS}"
22979 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
22980 if test "xnewt.h" != "x" ; then
22981 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
22982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22983 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22984 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 ac_res=`eval echo '${'$as_ac_Header'}'`
22989 { echo "$as_me:$LINENO: result: $ac_res" >&5
22990 echo "${ECHO_T}$ac_res" >&6; }
22991 else
22992 # Is the header compilable?
22993 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
22994 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h. */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 $ac_includes_default
23002 #include <${NEWT_DIR}/include/newt.h>
23003 _ACEOF
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_header_compiler=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_compiler=no
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23031 echo "${ECHO_T}$ac_header_compiler" >&6; }
23033 # Is the header present?
23034 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23035 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 #include <${NEWT_DIR}/include/newt.h>
23043 _ACEOF
23044 if { (ac_try="$ac_cpp conftest.$ac_ext"
23045 case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23048 esac
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23051 ac_status=$?
23052 grep -v '^ *+' conftest.er1 >conftest.err
23053 rm -f conftest.er1
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } >/dev/null && {
23057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23058 test ! -s conftest.err
23059 }; then
23060 ac_header_preproc=yes
23061 else
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23065 ac_header_preproc=no
23068 rm -f conftest.err conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23070 echo "${ECHO_T}$ac_header_preproc" >&6; }
23072 # So? What about this header?
23073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23074 yes:no: )
23075 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23076 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23078 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23079 ac_header_preproc=yes
23081 no:yes:* )
23082 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23083 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23084 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23085 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23086 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23087 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23089 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23091 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23093 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23094 ( cat <<\_ASBOX
23095 ## ------------------------------- ##
23096 ## Report this to www.asterisk.org ##
23097 ## ------------------------------- ##
23098 _ASBOX
23099 ) | sed "s/^/$as_me: WARNING: /" >&2
23101 esac
23102 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23103 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107 eval "$as_ac_Header=\$ac_header_preproc"
23109 ac_res=`eval echo '${'$as_ac_Header'}'`
23110 { echo "$as_me:$LINENO: result: $ac_res" >&5
23111 echo "${ECHO_T}$ac_res" >&6; }
23114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23115 NEWT_HEADER_FOUND=1
23116 else
23117 NEWT_HEADER_FOUND=0
23122 CPPFLAGS="${saved_cppflags}"
23123 else
23124 if test "xnewt.h" != "x" ; then
23125 if test "${ac_cv_header_newt_h+set}" = set; then
23126 { echo "$as_me:$LINENO: checking for newt.h" >&5
23127 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23128 if test "${ac_cv_header_newt_h+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23132 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23133 else
23134 # Is the header compilable?
23135 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23136 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 $ac_includes_default
23144 #include <newt.h>
23145 _ACEOF
23146 rm -f conftest.$ac_objext
23147 if { (ac_try="$ac_compile"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_compile") 2>conftest.er1
23154 ac_status=$?
23155 grep -v '^ *+' conftest.er1 >conftest.err
23156 rm -f conftest.er1
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } && {
23160 test -z "$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 } && test -s conftest.$ac_objext; then
23163 ac_header_compiler=yes
23164 else
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_compiler=no
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23173 echo "${ECHO_T}$ac_header_compiler" >&6; }
23175 # Is the header present?
23176 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23177 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h. */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 #include <newt.h>
23185 _ACEOF
23186 if { (ac_try="$ac_cpp conftest.$ac_ext"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23193 ac_status=$?
23194 grep -v '^ *+' conftest.er1 >conftest.err
23195 rm -f conftest.er1
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } >/dev/null && {
23199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23200 test ! -s conftest.err
23201 }; then
23202 ac_header_preproc=yes
23203 else
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23207 ac_header_preproc=no
23210 rm -f conftest.err conftest.$ac_ext
23211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23212 echo "${ECHO_T}$ac_header_preproc" >&6; }
23214 # So? What about this header?
23215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23216 yes:no: )
23217 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23218 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23219 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23220 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23221 ac_header_preproc=yes
23223 no:yes:* )
23224 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23225 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23226 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23227 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23228 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23229 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23231 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23233 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23234 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23235 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23236 ( cat <<\_ASBOX
23237 ## ------------------------------- ##
23238 ## Report this to www.asterisk.org ##
23239 ## ------------------------------- ##
23240 _ASBOX
23241 ) | sed "s/^/$as_me: WARNING: /" >&2
23243 esac
23244 { echo "$as_me:$LINENO: checking for newt.h" >&5
23245 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23246 if test "${ac_cv_header_newt_h+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249 ac_cv_header_newt_h=$ac_header_preproc
23251 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23252 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23255 if test $ac_cv_header_newt_h = yes; then
23256 NEWT_HEADER_FOUND=1
23257 else
23258 NEWT_HEADER_FOUND=0
23264 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23265 if test -n "${NEWT_MANDATORY}" ;
23266 then
23267 { echo "$as_me:$LINENO: ***" >&5
23268 echo "$as_me: ***" >&6;}
23269 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23270 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23271 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23272 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23273 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23274 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23275 exit 1
23277 NEWT_LIB=""
23278 NEWT_INCLUDE=""
23279 PBX_NEWT=0
23280 else
23281 PBX_NEWT=1
23283 cat >>confdefs.h <<_ACEOF
23284 #define HAVE_NEWT 1
23285 _ACEOF
23288 elif test -n "${NEWT_MANDATORY}";
23289 then
23290 { echo "$as_me:$LINENO: ***" >&5
23291 echo "$as_me: ***" >&6;}
23292 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23293 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23294 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23295 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23296 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23297 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23298 exit 1
23304 if test "${USE_UNIXODBC}" != "no"; then
23305 pbxlibdir=""
23306 if test "x${UNIXODBC_DIR}" != "x"; then
23307 if test -d ${UNIXODBC_DIR}/lib; then
23308 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23309 else
23310 pbxlibdir="-L${UNIXODBC_DIR}"
23313 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23314 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23315 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318 ac_check_lib_save_LIBS=$LIBS
23319 LIBS="-lodbc ${pbxlibdir} $LIBS"
23320 cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h. */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23327 /* Override any GCC internal prototype to avoid an error.
23328 Use char because int might match the return type of a GCC
23329 builtin and then its argument prototype would still apply. */
23330 #ifdef __cplusplus
23331 extern "C"
23332 #endif
23333 char SQLConnect ();
23335 main ()
23337 return SQLConnect ();
23339 return 0;
23341 _ACEOF
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (ac_try="$ac_link"
23344 case "(($ac_try" in
23345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346 *) ac_try_echo=$ac_try;;
23347 esac
23348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349 (eval "$ac_link") 2>conftest.er1
23350 ac_status=$?
23351 grep -v '^ *+' conftest.er1 >conftest.err
23352 rm -f conftest.er1
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } && {
23356 test -z "$ac_c_werror_flag" ||
23357 test ! -s conftest.err
23358 } && test -s conftest$ac_exeext &&
23359 $as_test_x conftest$ac_exeext; then
23360 ac_cv_lib_odbc_SQLConnect=yes
23361 else
23362 echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23365 ac_cv_lib_odbc_SQLConnect=no
23368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23369 conftest$ac_exeext conftest.$ac_ext
23370 LIBS=$ac_check_lib_save_LIBS
23372 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23373 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23374 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23375 AST_UNIXODBC_FOUND=yes
23376 else
23377 AST_UNIXODBC_FOUND=no
23381 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23382 UNIXODBC_LIB="-lodbc "
23383 UNIXODBC_HEADER_FOUND="1"
23384 if test "x${UNIXODBC_DIR}" != "x"; then
23385 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
23386 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
23387 saved_cppflags="${CPPFLAGS}"
23388 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23389 if test "xsql.h" != "x" ; then
23390 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23392 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23393 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 ac_res=`eval echo '${'$as_ac_Header'}'`
23398 { echo "$as_me:$LINENO: result: $ac_res" >&5
23399 echo "${ECHO_T}$ac_res" >&6; }
23400 else
23401 # Is the header compilable?
23402 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23403 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23404 cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h. */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 $ac_includes_default
23411 #include <${UNIXODBC_DIR}/include/sql.h>
23412 _ACEOF
23413 rm -f conftest.$ac_objext
23414 if { (ac_try="$ac_compile"
23415 case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418 esac
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_compile") 2>conftest.er1
23421 ac_status=$?
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } && {
23427 test -z "$ac_c_werror_flag" ||
23428 test ! -s conftest.err
23429 } && test -s conftest.$ac_objext; then
23430 ac_header_compiler=yes
23431 else
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ac_header_compiler=no
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440 echo "${ECHO_T}$ac_header_compiler" >&6; }
23442 # Is the header present?
23443 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23444 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23445 cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h. */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23451 #include <${UNIXODBC_DIR}/include/sql.h>
23452 _ACEOF
23453 if { (ac_try="$ac_cpp conftest.$ac_ext"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23460 ac_status=$?
23461 grep -v '^ *+' conftest.er1 >conftest.err
23462 rm -f conftest.er1
23463 cat conftest.err >&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } >/dev/null && {
23466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23468 }; then
23469 ac_header_preproc=yes
23470 else
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 ac_header_preproc=no
23477 rm -f conftest.err conftest.$ac_ext
23478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23479 echo "${ECHO_T}$ac_header_preproc" >&6; }
23481 # So? What about this header?
23482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23483 yes:no: )
23484 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23485 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23487 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23488 ac_header_preproc=yes
23490 no:yes:* )
23491 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23492 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23493 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23494 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23495 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23496 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23498 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23499 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23500 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23501 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23502 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23503 ( cat <<\_ASBOX
23504 ## ------------------------------- ##
23505 ## Report this to www.asterisk.org ##
23506 ## ------------------------------- ##
23507 _ASBOX
23508 ) | sed "s/^/$as_me: WARNING: /" >&2
23510 esac
23511 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23512 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515 else
23516 eval "$as_ac_Header=\$ac_header_preproc"
23518 ac_res=`eval echo '${'$as_ac_Header'}'`
23519 { echo "$as_me:$LINENO: result: $ac_res" >&5
23520 echo "${ECHO_T}$ac_res" >&6; }
23523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23524 UNIXODBC_HEADER_FOUND=1
23525 else
23526 UNIXODBC_HEADER_FOUND=0
23531 CPPFLAGS="${saved_cppflags}"
23532 else
23533 if test "xsql.h" != "x" ; then
23534 if test "${ac_cv_header_sql_h+set}" = set; then
23535 { echo "$as_me:$LINENO: checking for sql.h" >&5
23536 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23537 if test "${ac_cv_header_sql_h+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23541 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23542 else
23543 # Is the header compilable?
23544 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23545 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23546 cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h. */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 $ac_includes_default
23553 #include <sql.h>
23554 _ACEOF
23555 rm -f conftest.$ac_objext
23556 if { (ac_try="$ac_compile"
23557 case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23560 esac
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_compile") 2>conftest.er1
23563 ac_status=$?
23564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } && {
23569 test -z "$ac_c_werror_flag" ||
23570 test ! -s conftest.err
23571 } && test -s conftest.$ac_objext; then
23572 ac_header_compiler=yes
23573 else
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_header_compiler=no
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23582 echo "${ECHO_T}$ac_header_compiler" >&6; }
23584 # Is the header present?
23585 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23586 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 #include <sql.h>
23594 _ACEOF
23595 if { (ac_try="$ac_cpp conftest.$ac_ext"
23596 case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23602 ac_status=$?
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } >/dev/null && {
23608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 }; then
23611 ac_header_preproc=yes
23612 else
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23616 ac_header_preproc=no
23619 rm -f conftest.err conftest.$ac_ext
23620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23621 echo "${ECHO_T}$ac_header_preproc" >&6; }
23623 # So? What about this header?
23624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23625 yes:no: )
23626 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23627 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23629 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23630 ac_header_preproc=yes
23632 no:yes:* )
23633 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23634 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23635 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23636 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23637 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23638 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23639 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23640 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23642 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23644 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23645 ( cat <<\_ASBOX
23646 ## ------------------------------- ##
23647 ## Report this to www.asterisk.org ##
23648 ## ------------------------------- ##
23649 _ASBOX
23650 ) | sed "s/^/$as_me: WARNING: /" >&2
23652 esac
23653 { echo "$as_me:$LINENO: checking for sql.h" >&5
23654 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23655 if test "${ac_cv_header_sql_h+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658 ac_cv_header_sql_h=$ac_header_preproc
23660 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23661 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23664 if test $ac_cv_header_sql_h = yes; then
23665 UNIXODBC_HEADER_FOUND=1
23666 else
23667 UNIXODBC_HEADER_FOUND=0
23673 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23674 if test -n "${UNIXODBC_MANDATORY}" ;
23675 then
23676 { echo "$as_me:$LINENO: ***" >&5
23677 echo "$as_me: ***" >&6;}
23678 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23679 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23680 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23681 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23683 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23684 exit 1
23686 UNIXODBC_LIB=""
23687 UNIXODBC_INCLUDE=""
23688 PBX_UNIXODBC=0
23689 else
23690 PBX_UNIXODBC=1
23692 cat >>confdefs.h <<_ACEOF
23693 #define HAVE_UNIXODBC 1
23694 _ACEOF
23697 elif test -n "${UNIXODBC_MANDATORY}";
23698 then
23699 { echo "$as_me:$LINENO: ***" >&5
23700 echo "$as_me: ***" >&6;}
23701 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23702 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23706 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23707 exit 1
23713 if test "${USE_OGG}" != "no"; then
23714 pbxlibdir=""
23715 if test "x${OGG_DIR}" != "x"; then
23716 if test -d ${OGG_DIR}/lib; then
23717 pbxlibdir="-L${OGG_DIR}/lib"
23718 else
23719 pbxlibdir="-L${OGG_DIR}"
23722 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23723 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23724 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727 ac_check_lib_save_LIBS=$LIBS
23728 LIBS="-logg ${pbxlibdir} $LIBS"
23729 cat >conftest.$ac_ext <<_ACEOF
23730 /* confdefs.h. */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23736 /* Override any GCC internal prototype to avoid an error.
23737 Use char because int might match the return type of a GCC
23738 builtin and then its argument prototype would still apply. */
23739 #ifdef __cplusplus
23740 extern "C"
23741 #endif
23742 char ogg_sync_init ();
23744 main ()
23746 return ogg_sync_init ();
23748 return 0;
23750 _ACEOF
23751 rm -f conftest.$ac_objext conftest$ac_exeext
23752 if { (ac_try="$ac_link"
23753 case "(($ac_try" in
23754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755 *) ac_try_echo=$ac_try;;
23756 esac
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758 (eval "$ac_link") 2>conftest.er1
23759 ac_status=$?
23760 grep -v '^ *+' conftest.er1 >conftest.err
23761 rm -f conftest.er1
23762 cat conftest.err >&5
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } && {
23765 test -z "$ac_c_werror_flag" ||
23766 test ! -s conftest.err
23767 } && test -s conftest$ac_exeext &&
23768 $as_test_x conftest$ac_exeext; then
23769 ac_cv_lib_ogg_ogg_sync_init=yes
23770 else
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ac_cv_lib_ogg_ogg_sync_init=no
23777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23778 conftest$ac_exeext conftest.$ac_ext
23779 LIBS=$ac_check_lib_save_LIBS
23781 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23782 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23783 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23784 AST_OGG_FOUND=yes
23785 else
23786 AST_OGG_FOUND=no
23790 if test "${AST_OGG_FOUND}" = "yes"; then
23791 OGG_LIB="-logg "
23792 OGG_HEADER_FOUND="1"
23793 if test "x${OGG_DIR}" != "x"; then
23794 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23795 OGG_INCLUDE="-I${OGG_DIR}/include"
23796 saved_cppflags="${CPPFLAGS}"
23797 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23798 if test "x" != "x" ; then
23799 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
23800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23801 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23802 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 ac_res=`eval echo '${'$as_ac_Header'}'`
23807 { echo "$as_me:$LINENO: result: $ac_res" >&5
23808 echo "${ECHO_T}$ac_res" >&6; }
23809 else
23810 # Is the header compilable?
23811 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23812 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h. */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 $ac_includes_default
23820 #include <${OGG_DIR}/include/>
23821 _ACEOF
23822 rm -f conftest.$ac_objext
23823 if { (ac_try="$ac_compile"
23824 case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23827 esac
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_compile") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest.$ac_objext; then
23839 ac_header_compiler=yes
23840 else
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23844 ac_header_compiler=no
23847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23849 echo "${ECHO_T}$ac_header_compiler" >&6; }
23851 # Is the header present?
23852 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23853 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23854 cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h. */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include <${OGG_DIR}/include/>
23861 _ACEOF
23862 if { (ac_try="$ac_cpp conftest.$ac_ext"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23869 ac_status=$?
23870 grep -v '^ *+' conftest.er1 >conftest.err
23871 rm -f conftest.er1
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } >/dev/null && {
23875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 }; then
23878 ac_header_preproc=yes
23879 else
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_header_preproc=no
23886 rm -f conftest.err conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23888 echo "${ECHO_T}$ac_header_preproc" >&6; }
23890 # So? What about this header?
23891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23892 yes:no: )
23893 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23894 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23895 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23896 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23897 ac_header_preproc=yes
23899 no:yes:* )
23900 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23901 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23902 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23903 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23904 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23905 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23907 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23909 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23910 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23911 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23912 ( cat <<\_ASBOX
23913 ## ------------------------------- ##
23914 ## Report this to www.asterisk.org ##
23915 ## ------------------------------- ##
23916 _ASBOX
23917 ) | sed "s/^/$as_me: WARNING: /" >&2
23919 esac
23920 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23921 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925 eval "$as_ac_Header=\$ac_header_preproc"
23927 ac_res=`eval echo '${'$as_ac_Header'}'`
23928 { echo "$as_me:$LINENO: result: $ac_res" >&5
23929 echo "${ECHO_T}$ac_res" >&6; }
23932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23933 OGG_HEADER_FOUND=1
23934 else
23935 OGG_HEADER_FOUND=0
23940 CPPFLAGS="${saved_cppflags}"
23941 else
23942 if test "x" != "x" ; then
23943 if test "${ac_cv_header_+set}" = set; then
23944 { echo "$as_me:$LINENO: checking for " >&5
23945 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23946 if test "${ac_cv_header_+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23949 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23950 echo "${ECHO_T}$ac_cv_header_" >&6; }
23951 else
23952 # Is the header compilable?
23953 { echo "$as_me:$LINENO: checking usability" >&5
23954 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h. */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 $ac_includes_default
23962 #include <>
23963 _ACEOF
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
23966 case "(($ac_try" in
23967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968 *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971 (eval "$ac_compile") 2>conftest.er1
23972 ac_status=$?
23973 grep -v '^ *+' conftest.er1 >conftest.err
23974 rm -f conftest.er1
23975 cat conftest.err >&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } && {
23978 test -z "$ac_c_werror_flag" ||
23979 test ! -s conftest.err
23980 } && test -s conftest.$ac_objext; then
23981 ac_header_compiler=yes
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_header_compiler=no
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23991 echo "${ECHO_T}$ac_header_compiler" >&6; }
23993 # Is the header present?
23994 { echo "$as_me:$LINENO: checking presence" >&5
23995 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23996 cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h. */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 #include <>
24003 _ACEOF
24004 if { (ac_try="$ac_cpp conftest.$ac_ext"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24011 ac_status=$?
24012 grep -v '^ *+' conftest.er1 >conftest.err
24013 rm -f conftest.er1
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } >/dev/null && {
24017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24019 }; then
24020 ac_header_preproc=yes
24021 else
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_header_preproc=no
24028 rm -f conftest.err conftest.$ac_ext
24029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24030 echo "${ECHO_T}$ac_header_preproc" >&6; }
24032 # So? What about this header?
24033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24034 yes:no: )
24035 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24036 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24038 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24039 ac_header_preproc=yes
24041 no:yes:* )
24042 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24043 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24045 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24047 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24049 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24051 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24053 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24054 ( cat <<\_ASBOX
24055 ## ------------------------------- ##
24056 ## Report this to www.asterisk.org ##
24057 ## ------------------------------- ##
24058 _ASBOX
24059 ) | sed "s/^/$as_me: WARNING: /" >&2
24061 esac
24062 { echo "$as_me:$LINENO: checking for " >&5
24063 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24064 if test "${ac_cv_header_+set}" = set; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067 ac_cv_header_=$ac_header_preproc
24069 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24070 echo "${ECHO_T}$ac_cv_header_" >&6; }
24073 if test $ac_cv_header_ = yes; then
24074 OGG_HEADER_FOUND=1
24075 else
24076 OGG_HEADER_FOUND=0
24082 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24083 if test -n "${OGG_MANDATORY}" ;
24084 then
24085 { echo "$as_me:$LINENO: ***" >&5
24086 echo "$as_me: ***" >&6;}
24087 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24088 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24089 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24090 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24091 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24092 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24093 exit 1
24095 OGG_LIB=""
24096 OGG_INCLUDE=""
24097 PBX_OGG=0
24098 else
24099 PBX_OGG=1
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_OGG 1
24103 _ACEOF
24106 elif test -n "${OGG_MANDATORY}";
24107 then
24108 { echo "$as_me:$LINENO: ***" >&5
24109 echo "$as_me: ***" >&6;}
24110 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24111 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24112 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24113 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24114 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24115 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24116 exit 1
24121 if test "${USE_OSS}" != "no"; then
24122 PBX_OSS=0
24123 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24124 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24125 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24126 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24130 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24131 else
24132 # Is the header compilable?
24133 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24134 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 $ac_includes_default
24142 #include <linux/soundcard.h>
24143 _ACEOF
24144 rm -f conftest.$ac_objext
24145 if { (ac_try="$ac_compile"
24146 case "(($ac_try" in
24147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24148 *) ac_try_echo=$ac_try;;
24149 esac
24150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24161 ac_header_compiler=yes
24162 else
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ac_header_compiler=no
24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24171 echo "${ECHO_T}$ac_header_compiler" >&6; }
24173 # Is the header present?
24174 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24175 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24176 cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h. */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 #include <linux/soundcard.h>
24183 _ACEOF
24184 if { (ac_try="$ac_cpp conftest.$ac_ext"
24185 case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24188 esac
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24191 ac_status=$?
24192 grep -v '^ *+' conftest.er1 >conftest.err
24193 rm -f conftest.er1
24194 cat conftest.err >&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } >/dev/null && {
24197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24198 test ! -s conftest.err
24199 }; then
24200 ac_header_preproc=yes
24201 else
24202 echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_header_preproc=no
24208 rm -f conftest.err conftest.$ac_ext
24209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24210 echo "${ECHO_T}$ac_header_preproc" >&6; }
24212 # So? What about this header?
24213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24214 yes:no: )
24215 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24216 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24217 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24218 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24219 ac_header_preproc=yes
24221 no:yes:* )
24222 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24223 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24225 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24227 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24229 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24231 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24233 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24234 ( cat <<\_ASBOX
24235 ## ------------------------------- ##
24236 ## Report this to www.asterisk.org ##
24237 ## ------------------------------- ##
24238 _ASBOX
24239 ) | sed "s/^/$as_me: WARNING: /" >&2
24241 esac
24242 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24243 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24244 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 else
24247 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24249 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24250 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24253 if test $ac_cv_header_linux_soundcard_h = yes; then
24255 PBX_OSS=1
24257 cat >>confdefs.h <<_ACEOF
24258 #define HAVE_OSS 1
24259 _ACEOF
24265 if test "$PBX_OSS" = "0"; then
24266 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24267 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24268 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24269 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24272 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24273 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24274 else
24275 # Is the header compilable?
24276 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24277 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24278 cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h. */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 $ac_includes_default
24285 #include <sys/soundcard.h>
24286 _ACEOF
24287 rm -f conftest.$ac_objext
24288 if { (ac_try="$ac_compile"
24289 case "(($ac_try" in
24290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24291 *) ac_try_echo=$ac_try;;
24292 esac
24293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24294 (eval "$ac_compile") 2>conftest.er1
24295 ac_status=$?
24296 grep -v '^ *+' conftest.er1 >conftest.err
24297 rm -f conftest.er1
24298 cat conftest.err >&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } && {
24301 test -z "$ac_c_werror_flag" ||
24302 test ! -s conftest.err
24303 } && test -s conftest.$ac_objext; then
24304 ac_header_compiler=yes
24305 else
24306 echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24309 ac_header_compiler=no
24312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24314 echo "${ECHO_T}$ac_header_compiler" >&6; }
24316 # Is the header present?
24317 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24318 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24319 cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h. */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 #include <sys/soundcard.h>
24326 _ACEOF
24327 if { (ac_try="$ac_cpp conftest.$ac_ext"
24328 case "(($ac_try" in
24329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24331 esac
24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24334 ac_status=$?
24335 grep -v '^ *+' conftest.er1 >conftest.err
24336 rm -f conftest.er1
24337 cat conftest.err >&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); } >/dev/null && {
24340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24341 test ! -s conftest.err
24342 }; then
24343 ac_header_preproc=yes
24344 else
24345 echo "$as_me: failed program was:" >&5
24346 sed 's/^/| /' conftest.$ac_ext >&5
24348 ac_header_preproc=no
24351 rm -f conftest.err conftest.$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353 echo "${ECHO_T}$ac_header_preproc" >&6; }
24355 # So? What about this header?
24356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24357 yes:no: )
24358 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24359 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24360 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24361 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24362 ac_header_preproc=yes
24364 no:yes:* )
24365 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24366 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24367 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24368 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24370 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24372 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24374 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24376 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24377 ( cat <<\_ASBOX
24378 ## ------------------------------- ##
24379 ## Report this to www.asterisk.org ##
24380 ## ------------------------------- ##
24381 _ASBOX
24382 ) | sed "s/^/$as_me: WARNING: /" >&2
24384 esac
24385 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24386 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24393 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24396 if test $ac_cv_header_sys_soundcard_h = yes; then
24398 PBX_OSS=1
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_OSS 1
24402 _ACEOF
24409 if test "$PBX_OSS" = "0"; then
24411 if test "${USE_OSS}" != "no"; then
24412 pbxlibdir=""
24413 if test "x${OSS_DIR}" != "x"; then
24414 if test -d ${OSS_DIR}/lib; then
24415 pbxlibdir="-L${OSS_DIR}/lib"
24416 else
24417 pbxlibdir="-L${OSS_DIR}"
24420 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24421 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24422 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425 ac_check_lib_save_LIBS=$LIBS
24426 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24427 cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h. */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24434 /* Override any GCC internal prototype to avoid an error.
24435 Use char because int might match the return type of a GCC
24436 builtin and then its argument prototype would still apply. */
24437 #ifdef __cplusplus
24438 extern "C"
24439 #endif
24440 char oss_ioctl_mixer ();
24442 main ()
24444 return oss_ioctl_mixer ();
24446 return 0;
24448 _ACEOF
24449 rm -f conftest.$ac_objext conftest$ac_exeext
24450 if { (ac_try="$ac_link"
24451 case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24454 esac
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_link") 2>conftest.er1
24457 ac_status=$?
24458 grep -v '^ *+' conftest.er1 >conftest.err
24459 rm -f conftest.er1
24460 cat conftest.err >&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest$ac_exeext &&
24466 $as_test_x conftest$ac_exeext; then
24467 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
24468 else
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
24475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24476 conftest$ac_exeext conftest.$ac_ext
24477 LIBS=$ac_check_lib_save_LIBS
24479 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24480 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24481 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24482 AST_OSS_FOUND=yes
24483 else
24484 AST_OSS_FOUND=no
24488 if test "${AST_OSS_FOUND}" = "yes"; then
24489 OSS_LIB="-lossaudio "
24490 OSS_HEADER_FOUND="1"
24491 if test "x${OSS_DIR}" != "x"; then
24492 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
24493 OSS_INCLUDE="-I${OSS_DIR}/include"
24494 saved_cppflags="${CPPFLAGS}"
24495 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
24496 if test "xsoundcard.h" != "x" ; then
24497 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24499 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24500 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 ac_res=`eval echo '${'$as_ac_Header'}'`
24505 { echo "$as_me:$LINENO: result: $ac_res" >&5
24506 echo "${ECHO_T}$ac_res" >&6; }
24507 else
24508 # Is the header compilable?
24509 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24510 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24511 cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h. */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 $ac_includes_default
24518 #include <${OSS_DIR}/include/soundcard.h>
24519 _ACEOF
24520 rm -f conftest.$ac_objext
24521 if { (ac_try="$ac_compile"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24525 esac
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24528 ac_status=$?
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_header_compiler=yes
24538 else
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_header_compiler=no
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24547 echo "${ECHO_T}$ac_header_compiler" >&6; }
24549 # Is the header present?
24550 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24551 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <${OSS_DIR}/include/soundcard.h>
24559 _ACEOF
24560 if { (ac_try="$ac_cpp conftest.$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24567 ac_status=$?
24568 grep -v '^ *+' conftest.er1 >conftest.err
24569 rm -f conftest.er1
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } >/dev/null && {
24573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 }; then
24576 ac_header_preproc=yes
24577 else
24578 echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24581 ac_header_preproc=no
24584 rm -f conftest.err conftest.$ac_ext
24585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24586 echo "${ECHO_T}$ac_header_preproc" >&6; }
24588 # So? What about this header?
24589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24590 yes:no: )
24591 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24592 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24594 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24595 ac_header_preproc=yes
24597 no:yes:* )
24598 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24599 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24600 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24601 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24606 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24607 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24608 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24609 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24610 ( cat <<\_ASBOX
24611 ## ------------------------------- ##
24612 ## Report this to www.asterisk.org ##
24613 ## ------------------------------- ##
24614 _ASBOX
24615 ) | sed "s/^/$as_me: WARNING: /" >&2
24617 esac
24618 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24619 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623 eval "$as_ac_Header=\$ac_header_preproc"
24625 ac_res=`eval echo '${'$as_ac_Header'}'`
24626 { echo "$as_me:$LINENO: result: $ac_res" >&5
24627 echo "${ECHO_T}$ac_res" >&6; }
24630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24631 OSS_HEADER_FOUND=1
24632 else
24633 OSS_HEADER_FOUND=0
24638 CPPFLAGS="${saved_cppflags}"
24639 else
24640 if test "xsoundcard.h" != "x" ; then
24641 if test "${ac_cv_header_soundcard_h+set}" = set; then
24642 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24643 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24644 if test "${ac_cv_header_soundcard_h+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24647 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24648 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24649 else
24650 # Is the header compilable?
24651 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24652 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h. */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 $ac_includes_default
24660 #include <soundcard.h>
24661 _ACEOF
24662 rm -f conftest.$ac_objext
24663 if { (ac_try="$ac_compile"
24664 case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24667 esac
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669 (eval "$ac_compile") 2>conftest.er1
24670 ac_status=$?
24671 grep -v '^ *+' conftest.er1 >conftest.err
24672 rm -f conftest.er1
24673 cat conftest.err >&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } && {
24676 test -z "$ac_c_werror_flag" ||
24677 test ! -s conftest.err
24678 } && test -s conftest.$ac_objext; then
24679 ac_header_compiler=yes
24680 else
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ac_header_compiler=no
24687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24689 echo "${ECHO_T}$ac_header_compiler" >&6; }
24691 # Is the header present?
24692 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24693 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24694 cat >conftest.$ac_ext <<_ACEOF
24695 /* confdefs.h. */
24696 _ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 #include <soundcard.h>
24701 _ACEOF
24702 if { (ac_try="$ac_cpp conftest.$ac_ext"
24703 case "(($ac_try" in
24704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705 *) ac_try_echo=$ac_try;;
24706 esac
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24709 ac_status=$?
24710 grep -v '^ *+' conftest.er1 >conftest.err
24711 rm -f conftest.er1
24712 cat conftest.err >&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } >/dev/null && {
24715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24716 test ! -s conftest.err
24717 }; then
24718 ac_header_preproc=yes
24719 else
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ac_header_preproc=no
24726 rm -f conftest.err conftest.$ac_ext
24727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24728 echo "${ECHO_T}$ac_header_preproc" >&6; }
24730 # So? What about this header?
24731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24732 yes:no: )
24733 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24734 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24735 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24736 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24737 ac_header_preproc=yes
24739 no:yes:* )
24740 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24741 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24743 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24745 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24747 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24749 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24751 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24752 ( cat <<\_ASBOX
24753 ## ------------------------------- ##
24754 ## Report this to www.asterisk.org ##
24755 ## ------------------------------- ##
24756 _ASBOX
24757 ) | sed "s/^/$as_me: WARNING: /" >&2
24759 esac
24760 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24761 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24762 if test "${ac_cv_header_soundcard_h+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24764 else
24765 ac_cv_header_soundcard_h=$ac_header_preproc
24767 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24768 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24771 if test $ac_cv_header_soundcard_h = yes; then
24772 OSS_HEADER_FOUND=1
24773 else
24774 OSS_HEADER_FOUND=0
24780 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24781 if test -n "${OSS_MANDATORY}" ;
24782 then
24783 { echo "$as_me:$LINENO: ***" >&5
24784 echo "$as_me: ***" >&6;}
24785 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24786 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24787 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24788 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24789 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24790 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24791 exit 1
24793 OSS_LIB=""
24794 OSS_INCLUDE=""
24795 PBX_OSS=0
24796 else
24797 PBX_OSS=1
24799 cat >>confdefs.h <<_ACEOF
24800 #define HAVE_OSS 1
24801 _ACEOF
24804 elif test -n "${OSS_MANDATORY}";
24805 then
24806 { echo "$as_me:$LINENO: ***" >&5
24807 echo "$as_me: ***" >&6;}
24808 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24809 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24810 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24811 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24812 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24813 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24814 exit 1
24821 PG_CONFIG=No
24822 if test "${USE_PGSQL}" != "no"; then
24823 if test "x${PGSQL_DIR}" != "x"; then
24824 if test -n "$ac_tool_prefix"; then
24825 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24826 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24829 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831 else
24832 case $PG_CONFIG in
24833 [\\/]* | ?:[\\/]*)
24834 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24838 for as_dir in ${PGSQL_DIR}/bin
24840 IFS=$as_save_IFS
24841 test -z "$as_dir" && as_dir=.
24842 for ac_exec_ext in '' $ac_executable_extensions; do
24843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24844 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24846 break 2
24848 done
24849 done
24850 IFS=$as_save_IFS
24853 esac
24855 PG_CONFIG=$ac_cv_path_PG_CONFIG
24856 if test -n "$PG_CONFIG"; then
24857 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24858 echo "${ECHO_T}$PG_CONFIG" >&6; }
24859 else
24860 { echo "$as_me:$LINENO: result: no" >&5
24861 echo "${ECHO_T}no" >&6; }
24866 if test -z "$ac_cv_path_PG_CONFIG"; then
24867 ac_pt_PG_CONFIG=$PG_CONFIG
24868 # Extract the first word of "pg_config", so it can be a program name with args.
24869 set dummy pg_config; ac_word=$2
24870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24872 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875 case $ac_pt_PG_CONFIG in
24876 [\\/]* | ?:[\\/]*)
24877 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in ${PGSQL_DIR}/bin
24883 IFS=$as_save_IFS
24884 test -z "$as_dir" && as_dir=.
24885 for ac_exec_ext in '' $ac_executable_extensions; do
24886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24887 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24889 break 2
24891 done
24892 done
24893 IFS=$as_save_IFS
24896 esac
24898 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24899 if test -n "$ac_pt_PG_CONFIG"; then
24900 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24901 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24902 else
24903 { echo "$as_me:$LINENO: result: no" >&5
24904 echo "${ECHO_T}no" >&6; }
24907 if test "x$ac_pt_PG_CONFIG" = x; then
24908 PG_CONFIG="No"
24909 else
24910 case $cross_compiling:$ac_tool_warned in
24911 yes:)
24912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24913 whose name does not start with the host triplet. If you think this
24914 configuration is useful to you, please write to autoconf@gnu.org." >&5
24915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24916 whose name does not start with the host triplet. If you think this
24917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24918 ac_tool_warned=yes ;;
24919 esac
24920 PG_CONFIG=$ac_pt_PG_CONFIG
24922 else
24923 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24926 if test x"${PG_CONFIG}" = xNo; then
24927 { echo "$as_me:$LINENO: ***" >&5
24928 echo "$as_me: ***" >&6;}
24929 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24930 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24931 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24932 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24935 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24936 echo "$as_me: *** including --without-postgres" >&6;}
24937 exit 1
24939 else
24940 if test -n "$ac_tool_prefix"; then
24941 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24942 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24945 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948 case $PG_CONFIG in
24949 [\\/]* | ?:[\\/]*)
24950 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24956 IFS=$as_save_IFS
24957 test -z "$as_dir" && as_dir=.
24958 for ac_exec_ext in '' $ac_executable_extensions; do
24959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24960 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24962 break 2
24964 done
24965 done
24966 IFS=$as_save_IFS
24969 esac
24971 PG_CONFIG=$ac_cv_path_PG_CONFIG
24972 if test -n "$PG_CONFIG"; then
24973 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24974 echo "${ECHO_T}$PG_CONFIG" >&6; }
24975 else
24976 { echo "$as_me:$LINENO: result: no" >&5
24977 echo "${ECHO_T}no" >&6; }
24982 if test -z "$ac_cv_path_PG_CONFIG"; then
24983 ac_pt_PG_CONFIG=$PG_CONFIG
24984 # Extract the first word of "pg_config", so it can be a program name with args.
24985 set dummy pg_config; ac_word=$2
24986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24988 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 else
24991 case $ac_pt_PG_CONFIG in
24992 [\\/]* | ?:[\\/]*)
24993 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24997 for as_dir in $PATH
24999 IFS=$as_save_IFS
25000 test -z "$as_dir" && as_dir=.
25001 for ac_exec_ext in '' $ac_executable_extensions; do
25002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25003 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25005 break 2
25007 done
25008 done
25009 IFS=$as_save_IFS
25012 esac
25014 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25015 if test -n "$ac_pt_PG_CONFIG"; then
25016 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25017 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25018 else
25019 { echo "$as_me:$LINENO: result: no" >&5
25020 echo "${ECHO_T}no" >&6; }
25023 if test "x$ac_pt_PG_CONFIG" = x; then
25024 PG_CONFIG="No"
25025 else
25026 case $cross_compiling:$ac_tool_warned in
25027 yes:)
25028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25029 whose name does not start with the host triplet. If you think this
25030 configuration is useful to you, please write to autoconf@gnu.org." >&5
25031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25032 whose name does not start with the host triplet. If you think this
25033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25034 ac_tool_warned=yes ;;
25035 esac
25036 PG_CONFIG=$ac_pt_PG_CONFIG
25038 else
25039 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25044 if test "${PG_CONFIG}" != No; then
25045 PGSQL_libdir=`${PG_CONFIG} --libdir`
25046 PGSQL_includedir=`${PG_CONFIG} --includedir`
25048 if test "x$?" != "x0" ; then
25049 if test -n "${PGSQL_MANDATORY}" ; then
25050 { echo "$as_me:$LINENO: ***" >&5
25051 echo "$as_me: ***" >&6;}
25052 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25053 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25056 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25057 echo "$as_me: *** including --without-postgres" >&6;}
25058 exit 1
25060 else
25061 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25062 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25063 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066 ac_check_lib_save_LIBS=$LIBS
25067 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
25068 cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h. */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25075 /* Override any GCC internal prototype to avoid an error.
25076 Use char because int might match the return type of a GCC
25077 builtin and then its argument prototype would still apply. */
25078 #ifdef __cplusplus
25079 extern "C"
25080 #endif
25081 char PQescapeStringConn ();
25083 main ()
25085 return PQescapeStringConn ();
25087 return 0;
25089 _ACEOF
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (ac_try="$ac_link"
25092 case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25095 esac
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097 (eval "$ac_link") 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && {
25104 test -z "$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 } && test -s conftest$ac_exeext &&
25107 $as_test_x conftest$ac_exeext; then
25108 ac_cv_lib_pq_PQescapeStringConn=yes
25109 else
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25113 ac_cv_lib_pq_PQescapeStringConn=no
25116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25117 conftest$ac_exeext conftest.$ac_ext
25118 LIBS=$ac_check_lib_save_LIBS
25120 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25121 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25122 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25124 cat >>confdefs.h <<_ACEOF
25125 #define HAVE_PGSQL 1
25126 _ACEOF
25131 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25132 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25133 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25134 PBX_PGSQL=1
25135 elif test -n "${PGSQL_MANDATORY}";
25136 then
25137 { echo "$as_me:$LINENO: ***" >&5
25138 echo "$as_me: ***" >&6;}
25139 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25140 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25141 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25142 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25143 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25144 echo "$as_me: *** including --without-postgres" >&6;}
25145 exit 1
25148 elif test -n "${PGSQL_MANDATORY}";
25149 then
25150 { echo "$as_me:$LINENO: ***" >&5
25151 echo "$as_me: ***" >&6;}
25152 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25153 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25154 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25155 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25156 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25157 echo "$as_me: *** including --without-postgres" >&6;}
25158 exit 1
25162 if test "${USE_POPT}" != "no"; then
25163 pbxlibdir=""
25164 if test "x${POPT_DIR}" != "x"; then
25165 if test -d ${POPT_DIR}/lib; then
25166 pbxlibdir="-L${POPT_DIR}/lib"
25167 else
25168 pbxlibdir="-L${POPT_DIR}"
25171 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25172 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25173 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 else
25176 ac_check_lib_save_LIBS=$LIBS
25177 LIBS="-lpopt ${pbxlibdir} $LIBS"
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25185 /* Override any GCC internal prototype to avoid an error.
25186 Use char because int might match the return type of a GCC
25187 builtin and then its argument prototype would still apply. */
25188 #ifdef __cplusplus
25189 extern "C"
25190 #endif
25191 char poptStrerror ();
25193 main ()
25195 return poptStrerror ();
25197 return 0;
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207 (eval "$ac_link") 2>conftest.er1
25208 ac_status=$?
25209 grep -v '^ *+' conftest.er1 >conftest.err
25210 rm -f conftest.er1
25211 cat conftest.err >&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } && {
25214 test -z "$ac_c_werror_flag" ||
25215 test ! -s conftest.err
25216 } && test -s conftest$ac_exeext &&
25217 $as_test_x conftest$ac_exeext; then
25218 ac_cv_lib_popt_poptStrerror=yes
25219 else
25220 echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223 ac_cv_lib_popt_poptStrerror=no
25226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25227 conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25230 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25231 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25232 if test $ac_cv_lib_popt_poptStrerror = yes; then
25233 AST_POPT_FOUND=yes
25234 else
25235 AST_POPT_FOUND=no
25239 if test "${AST_POPT_FOUND}" = "yes"; then
25240 POPT_LIB="-lpopt "
25241 POPT_HEADER_FOUND="1"
25242 if test "x${POPT_DIR}" != "x"; then
25243 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
25244 POPT_INCLUDE="-I${POPT_DIR}/include"
25245 saved_cppflags="${CPPFLAGS}"
25246 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
25247 if test "xpopt.h" != "x" ; then
25248 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25251 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256 { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25258 else
25259 # Is the header compilable?
25260 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25261 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25262 cat >conftest.$ac_ext <<_ACEOF
25263 /* confdefs.h. */
25264 _ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25269 #include <${POPT_DIR}/include/popt.h>
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25279 ac_status=$?
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_header_compiler=yes
25289 else
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_header_compiler=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25298 echo "${ECHO_T}$ac_header_compiler" >&6; }
25300 # Is the header present?
25301 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25302 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h. */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 #include <${POPT_DIR}/include/popt.h>
25310 _ACEOF
25311 if { (ac_try="$ac_cpp conftest.$ac_ext"
25312 case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25315 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } >/dev/null && {
25324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 }; then
25327 ac_header_preproc=yes
25328 else
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_header_preproc=no
25335 rm -f conftest.err conftest.$ac_ext
25336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25337 echo "${ECHO_T}$ac_header_preproc" >&6; }
25339 # So? What about this header?
25340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25341 yes:no: )
25342 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25343 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25345 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25346 ac_header_preproc=yes
25348 no:yes:* )
25349 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25350 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25351 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25352 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25354 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25356 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25358 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25360 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25361 ( cat <<\_ASBOX
25362 ## ------------------------------- ##
25363 ## Report this to www.asterisk.org ##
25364 ## ------------------------------- ##
25365 _ASBOX
25366 ) | sed "s/^/$as_me: WARNING: /" >&2
25368 esac
25369 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25370 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 else
25374 eval "$as_ac_Header=\$ac_header_preproc"
25376 ac_res=`eval echo '${'$as_ac_Header'}'`
25377 { echo "$as_me:$LINENO: result: $ac_res" >&5
25378 echo "${ECHO_T}$ac_res" >&6; }
25381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25382 POPT_HEADER_FOUND=1
25383 else
25384 POPT_HEADER_FOUND=0
25389 CPPFLAGS="${saved_cppflags}"
25390 else
25391 if test "xpopt.h" != "x" ; then
25392 if test "${ac_cv_header_popt_h+set}" = set; then
25393 { echo "$as_me:$LINENO: checking for popt.h" >&5
25394 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25395 if test "${ac_cv_header_popt_h+set}" = set; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25399 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25400 else
25401 # Is the header compilable?
25402 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25403 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25404 cat >conftest.$ac_ext <<_ACEOF
25405 /* confdefs.h. */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 $ac_includes_default
25411 #include <popt.h>
25412 _ACEOF
25413 rm -f conftest.$ac_objext
25414 if { (ac_try="$ac_compile"
25415 case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_compile") 2>conftest.er1
25421 ac_status=$?
25422 grep -v '^ *+' conftest.er1 >conftest.err
25423 rm -f conftest.er1
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && {
25427 test -z "$ac_c_werror_flag" ||
25428 test ! -s conftest.err
25429 } && test -s conftest.$ac_objext; then
25430 ac_header_compiler=yes
25431 else
25432 echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25435 ac_header_compiler=no
25438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25440 echo "${ECHO_T}$ac_header_compiler" >&6; }
25442 # Is the header present?
25443 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25444 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25445 cat >conftest.$ac_ext <<_ACEOF
25446 /* confdefs.h. */
25447 _ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25451 #include <popt.h>
25452 _ACEOF
25453 if { (ac_try="$ac_cpp conftest.$ac_ext"
25454 case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25457 esac
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } >/dev/null && {
25466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25468 }; then
25469 ac_header_preproc=yes
25470 else
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ac_header_preproc=no
25477 rm -f conftest.err conftest.$ac_ext
25478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25479 echo "${ECHO_T}$ac_header_preproc" >&6; }
25481 # So? What about this header?
25482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25483 yes:no: )
25484 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25485 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25486 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25487 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25488 ac_header_preproc=yes
25490 no:yes:* )
25491 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25492 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25493 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25494 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25495 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25496 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25498 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25500 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25502 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25503 ( cat <<\_ASBOX
25504 ## ------------------------------- ##
25505 ## Report this to www.asterisk.org ##
25506 ## ------------------------------- ##
25507 _ASBOX
25508 ) | sed "s/^/$as_me: WARNING: /" >&2
25510 esac
25511 { echo "$as_me:$LINENO: checking for popt.h" >&5
25512 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25513 if test "${ac_cv_header_popt_h+set}" = set; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25515 else
25516 ac_cv_header_popt_h=$ac_header_preproc
25518 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25519 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25522 if test $ac_cv_header_popt_h = yes; then
25523 POPT_HEADER_FOUND=1
25524 else
25525 POPT_HEADER_FOUND=0
25531 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25532 if test -n "${POPT_MANDATORY}" ;
25533 then
25534 { echo "$as_me:$LINENO: ***" >&5
25535 echo "$as_me: ***" >&6;}
25536 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25537 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25538 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25539 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25540 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25541 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25542 exit 1
25544 POPT_LIB=""
25545 POPT_INCLUDE=""
25546 PBX_POPT=0
25547 else
25548 PBX_POPT=1
25550 cat >>confdefs.h <<_ACEOF
25551 #define HAVE_POPT 1
25552 _ACEOF
25555 elif test -n "${POPT_MANDATORY}";
25556 then
25557 { echo "$as_me:$LINENO: ***" >&5
25558 echo "$as_me: ***" >&6;}
25559 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25560 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25561 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25562 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25563 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25564 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25565 exit 1
25571 if test "${USE_PRI}" != "no"; then
25572 pbxlibdir=""
25573 if test "x${PRI_DIR}" != "x"; then
25574 if test -d ${PRI_DIR}/lib; then
25575 pbxlibdir="-L${PRI_DIR}/lib"
25576 else
25577 pbxlibdir="-L${PRI_DIR}"
25580 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25581 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25582 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585 ac_check_lib_save_LIBS=$LIBS
25586 LIBS="-lpri ${pbxlibdir} $LIBS"
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h. */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25594 /* Override any GCC internal prototype to avoid an error.
25595 Use char because int might match the return type of a GCC
25596 builtin and then its argument prototype would still apply. */
25597 #ifdef __cplusplus
25598 extern "C"
25599 #endif
25600 char pri_keypad_facility ();
25602 main ()
25604 return pri_keypad_facility ();
25606 return 0;
25608 _ACEOF
25609 rm -f conftest.$ac_objext conftest$ac_exeext
25610 if { (ac_try="$ac_link"
25611 case "(($ac_try" in
25612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25613 *) ac_try_echo=$ac_try;;
25614 esac
25615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25616 (eval "$ac_link") 2>conftest.er1
25617 ac_status=$?
25618 grep -v '^ *+' conftest.er1 >conftest.err
25619 rm -f conftest.er1
25620 cat conftest.err >&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && {
25623 test -z "$ac_c_werror_flag" ||
25624 test ! -s conftest.err
25625 } && test -s conftest$ac_exeext &&
25626 $as_test_x conftest$ac_exeext; then
25627 ac_cv_lib_pri_pri_keypad_facility=yes
25628 else
25629 echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25632 ac_cv_lib_pri_pri_keypad_facility=no
25635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25636 conftest$ac_exeext conftest.$ac_ext
25637 LIBS=$ac_check_lib_save_LIBS
25639 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25640 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25641 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25642 AST_PRI_FOUND=yes
25643 else
25644 AST_PRI_FOUND=no
25648 if test "${AST_PRI_FOUND}" = "yes"; then
25649 PRI_LIB="-lpri "
25650 PRI_HEADER_FOUND="1"
25651 if test "x${PRI_DIR}" != "x"; then
25652 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25653 PRI_INCLUDE="-I${PRI_DIR}/include"
25654 saved_cppflags="${CPPFLAGS}"
25655 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25656 if test "xlibpri.h" != "x" ; then
25657 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
25658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25659 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25660 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 ac_res=`eval echo '${'$as_ac_Header'}'`
25665 { echo "$as_me:$LINENO: result: $ac_res" >&5
25666 echo "${ECHO_T}$ac_res" >&6; }
25667 else
25668 # Is the header compilable?
25669 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25670 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25671 cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h. */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25678 #include <${PRI_DIR}/include/libpri.h>
25679 _ACEOF
25680 rm -f conftest.$ac_objext
25681 if { (ac_try="$ac_compile"
25682 case "(($ac_try" in
25683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684 *) ac_try_echo=$ac_try;;
25685 esac
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687 (eval "$ac_compile") 2>conftest.er1
25688 ac_status=$?
25689 grep -v '^ *+' conftest.er1 >conftest.err
25690 rm -f conftest.er1
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } && {
25694 test -z "$ac_c_werror_flag" ||
25695 test ! -s conftest.err
25696 } && test -s conftest.$ac_objext; then
25697 ac_header_compiler=yes
25698 else
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 ac_header_compiler=no
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25707 echo "${ECHO_T}$ac_header_compiler" >&6; }
25709 # Is the header present?
25710 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25711 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h. */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 #include <${PRI_DIR}/include/libpri.h>
25719 _ACEOF
25720 if { (ac_try="$ac_cpp conftest.$ac_ext"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } >/dev/null && {
25733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 }; then
25736 ac_header_preproc=yes
25737 else
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_header_preproc=no
25744 rm -f conftest.err conftest.$ac_ext
25745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25746 echo "${ECHO_T}$ac_header_preproc" >&6; }
25748 # So? What about this header?
25749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25750 yes:no: )
25751 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25752 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25754 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25755 ac_header_preproc=yes
25757 no:yes:* )
25758 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25759 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25761 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25763 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25765 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25767 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25769 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25770 ( cat <<\_ASBOX
25771 ## ------------------------------- ##
25772 ## Report this to www.asterisk.org ##
25773 ## ------------------------------- ##
25774 _ASBOX
25775 ) | sed "s/^/$as_me: WARNING: /" >&2
25777 esac
25778 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25779 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783 eval "$as_ac_Header=\$ac_header_preproc"
25785 ac_res=`eval echo '${'$as_ac_Header'}'`
25786 { echo "$as_me:$LINENO: result: $ac_res" >&5
25787 echo "${ECHO_T}$ac_res" >&6; }
25790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25791 PRI_HEADER_FOUND=1
25792 else
25793 PRI_HEADER_FOUND=0
25798 CPPFLAGS="${saved_cppflags}"
25799 else
25800 if test "xlibpri.h" != "x" ; then
25801 if test "${ac_cv_header_libpri_h+set}" = set; then
25802 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25803 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25804 if test "${ac_cv_header_libpri_h+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25807 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25808 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25809 else
25810 # Is the header compilable?
25811 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25812 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h. */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25820 #include <libpri.h>
25821 _ACEOF
25822 rm -f conftest.$ac_objext
25823 if { (ac_try="$ac_compile"
25824 case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25827 esac
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_compile") 2>conftest.er1
25830 ac_status=$?
25831 grep -v '^ *+' conftest.er1 >conftest.err
25832 rm -f conftest.er1
25833 cat conftest.err >&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } && {
25836 test -z "$ac_c_werror_flag" ||
25837 test ! -s conftest.err
25838 } && test -s conftest.$ac_objext; then
25839 ac_header_compiler=yes
25840 else
25841 echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25844 ac_header_compiler=no
25847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25849 echo "${ECHO_T}$ac_header_compiler" >&6; }
25851 # Is the header present?
25852 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25853 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25854 cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h. */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 #include <libpri.h>
25861 _ACEOF
25862 if { (ac_try="$ac_cpp conftest.$ac_ext"
25863 case "(($ac_try" in
25864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25865 *) ac_try_echo=$ac_try;;
25866 esac
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25869 ac_status=$?
25870 grep -v '^ *+' conftest.er1 >conftest.err
25871 rm -f conftest.er1
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } >/dev/null && {
25875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25876 test ! -s conftest.err
25877 }; then
25878 ac_header_preproc=yes
25879 else
25880 echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25883 ac_header_preproc=no
25886 rm -f conftest.err conftest.$ac_ext
25887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25888 echo "${ECHO_T}$ac_header_preproc" >&6; }
25890 # So? What about this header?
25891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25892 yes:no: )
25893 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25894 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25896 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25897 ac_header_preproc=yes
25899 no:yes:* )
25900 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25901 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25903 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25905 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25907 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25908 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25909 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25910 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25911 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25912 ( cat <<\_ASBOX
25913 ## ------------------------------- ##
25914 ## Report this to www.asterisk.org ##
25915 ## ------------------------------- ##
25916 _ASBOX
25917 ) | sed "s/^/$as_me: WARNING: /" >&2
25919 esac
25920 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25921 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25922 if test "${ac_cv_header_libpri_h+set}" = set; then
25923 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 else
25925 ac_cv_header_libpri_h=$ac_header_preproc
25927 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25928 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25931 if test $ac_cv_header_libpri_h = yes; then
25932 PRI_HEADER_FOUND=1
25933 else
25934 PRI_HEADER_FOUND=0
25940 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25941 if test -n "${PRI_MANDATORY}" ;
25942 then
25943 { echo "$as_me:$LINENO: ***" >&5
25944 echo "$as_me: ***" >&6;}
25945 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25946 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25947 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25948 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25949 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25950 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25951 exit 1
25953 PRI_LIB=""
25954 PRI_INCLUDE=""
25955 PBX_PRI=0
25956 else
25957 PBX_PRI=1
25959 cat >>confdefs.h <<_ACEOF
25960 #define HAVE_PRI 1
25961 _ACEOF
25964 elif test -n "${PRI_MANDATORY}";
25965 then
25966 { echo "$as_me:$LINENO: ***" >&5
25967 echo "$as_me: ***" >&6;}
25968 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25969 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25970 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25971 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25972 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25973 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25974 exit 1
25979 if test "${USE_PWLIB}" != "no"; then
25980 if test -n "${PWLIB_DIR}"; then
25981 PWLIBDIR="${PWLIB_DIR}"
25985 PWLIB_INCDIR=
25986 PWLIB_LIBDIR=
25987 ac_ext=cpp
25988 ac_cpp='$CXXCPP $CPPFLAGS'
25989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25993 if test "${PWLIBDIR:-unset}" != "unset" ; then
25994 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
25997 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
25998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002 { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26004 else
26005 # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26007 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h. */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <${PWLIBDIR}/version.h>
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26025 ac_status=$?
26026 grep -v '^ *+' conftest.er1 >conftest.err
26027 rm -f conftest.er1
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_cxx_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.$ac_objext; then
26034 ac_header_compiler=yes
26035 else
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_header_compiler=no
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26048 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h. */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 #include <${PWLIBDIR}/version.h>
26056 _ACEOF
26057 if { (ac_try="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null && {
26070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26071 test ! -s conftest.err
26072 }; then
26073 ac_header_preproc=yes
26074 else
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_preproc=no
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26085 # So? What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26087 yes:no: )
26088 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26092 ac_header_preproc=yes
26094 no:yes:* )
26095 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26107 ( cat <<\_ASBOX
26108 ## ------------------------------- ##
26109 ## Report this to www.asterisk.org ##
26110 ## ------------------------------- ##
26111 _ASBOX
26112 ) | sed "s/^/$as_me: WARNING: /" >&2
26114 esac
26115 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26116 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26119 else
26120 eval "$as_ac_Header=\$ac_header_preproc"
26122 ac_res=`eval echo '${'$as_ac_Header'}'`
26123 { echo "$as_me:$LINENO: result: $ac_res" >&5
26124 echo "${ECHO_T}$ac_res" >&6; }
26127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26128 HAS_PWLIB=1
26133 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26134 if test "${OPENH323DIR:-unset}" != "unset"; then
26135 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26137 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26138 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 ac_res=`eval echo '${'$as_ac_Header'}'`
26143 { echo "$as_me:$LINENO: result: $ac_res" >&5
26144 echo "${ECHO_T}$ac_res" >&6; }
26145 else
26146 # Is the header compilable?
26147 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26148 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $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 $ac_includes_default
26156 #include <${OPENH323DIR}/../pwlib/version.h>
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26166 ac_status=$?
26167 grep -v '^ *+' conftest.er1 >conftest.err
26168 rm -f conftest.er1
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } && {
26172 test -z "$ac_cxx_werror_flag" ||
26173 test ! -s conftest.err
26174 } && test -s conftest.$ac_objext; then
26175 ac_header_compiler=yes
26176 else
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26180 ac_header_compiler=no
26183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6; }
26187 # Is the header present?
26188 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26189 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h. */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <${OPENH323DIR}/../pwlib/version.h>
26197 _ACEOF
26198 if { (ac_try="$ac_cpp conftest.$ac_ext"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } >/dev/null && {
26211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26212 test ! -s conftest.err
26213 }; then
26214 ac_header_preproc=yes
26215 else
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_header_preproc=no
26222 rm -f conftest.err conftest.$ac_ext
26223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26224 echo "${ECHO_T}$ac_header_preproc" >&6; }
26226 # So? What about this header?
26227 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26228 yes:no: )
26229 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26230 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26232 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26233 ac_header_preproc=yes
26235 no:yes:* )
26236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26237 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26239 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26241 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26243 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26245 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26247 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26248 ( cat <<\_ASBOX
26249 ## ------------------------------- ##
26250 ## Report this to www.asterisk.org ##
26251 ## ------------------------------- ##
26252 _ASBOX
26253 ) | sed "s/^/$as_me: WARNING: /" >&2
26255 esac
26256 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26257 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 else
26261 eval "$as_ac_Header=\$ac_header_preproc"
26263 ac_res=`eval echo '${'$as_ac_Header'}'`
26264 { echo "$as_me:$LINENO: result: $ac_res" >&5
26265 echo "${ECHO_T}$ac_res" >&6; }
26268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26269 HAS_PWLIB=1
26274 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26275 PWLIBDIR="${OPENH323DIR}/../pwlib"
26276 else
26277 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26279 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26280 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 ac_res=`eval echo '${'$as_ac_Header'}'`
26285 { echo "$as_me:$LINENO: result: $ac_res" >&5
26286 echo "${ECHO_T}$ac_res" >&6; }
26287 else
26288 # Is the header compilable?
26289 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26290 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $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 $ac_includes_default
26298 #include <${HOME}/pwlib/include/ptlib.h>
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304 *) ac_try_echo=$ac_try;;
26305 esac
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_cxx_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.$ac_objext; then
26317 ac_header_compiler=yes
26318 else
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_header_compiler=no
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26327 echo "${ECHO_T}$ac_header_compiler" >&6; }
26329 # Is the header present?
26330 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26331 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h. */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26338 #include <${HOME}/pwlib/include/ptlib.h>
26339 _ACEOF
26340 if { (ac_try="$ac_cpp conftest.$ac_ext"
26341 case "(($ac_try" in
26342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26343 *) ac_try_echo=$ac_try;;
26344 esac
26345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26347 ac_status=$?
26348 grep -v '^ *+' conftest.er1 >conftest.err
26349 rm -f conftest.er1
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } >/dev/null && {
26353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26354 test ! -s conftest.err
26355 }; then
26356 ac_header_preproc=yes
26357 else
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ac_header_preproc=no
26364 rm -f conftest.err conftest.$ac_ext
26365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26366 echo "${ECHO_T}$ac_header_preproc" >&6; }
26368 # So? What about this header?
26369 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26370 yes:no: )
26371 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26372 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26374 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26375 ac_header_preproc=yes
26377 no:yes:* )
26378 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26379 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26381 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26383 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26385 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26387 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26389 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26390 ( cat <<\_ASBOX
26391 ## ------------------------------- ##
26392 ## Report this to www.asterisk.org ##
26393 ## ------------------------------- ##
26394 _ASBOX
26395 ) | sed "s/^/$as_me: WARNING: /" >&2
26397 esac
26398 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26399 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 else
26403 eval "$as_ac_Header=\$ac_header_preproc"
26405 ac_res=`eval echo '${'$as_ac_Header'}'`
26406 { echo "$as_me:$LINENO: result: $ac_res" >&5
26407 echo "${ECHO_T}$ac_res" >&6; }
26410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26411 HAS_PWLIB=1
26415 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26416 PWLIBDIR="${HOME}/pwlib"
26417 else
26418 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26419 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26420 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26421 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26425 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26426 else
26427 # Is the header compilable?
26428 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26429 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26430 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h. */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 $ac_includes_default
26437 #include </usr/local/include/ptlib.h>
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443 *) ac_try_echo=$ac_try;;
26444 esac
26445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26446 (eval "$ac_compile") 2>conftest.er1
26447 ac_status=$?
26448 grep -v '^ *+' conftest.er1 >conftest.err
26449 rm -f conftest.er1
26450 cat conftest.err >&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } && {
26453 test -z "$ac_cxx_werror_flag" ||
26454 test ! -s conftest.err
26455 } && test -s conftest.$ac_objext; then
26456 ac_header_compiler=yes
26457 else
26458 echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26461 ac_header_compiler=no
26464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26466 echo "${ECHO_T}$ac_header_compiler" >&6; }
26468 # Is the header present?
26469 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26470 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 #include </usr/local/include/ptlib.h>
26478 _ACEOF
26479 if { (ac_try="$ac_cpp conftest.$ac_ext"
26480 case "(($ac_try" in
26481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482 *) ac_try_echo=$ac_try;;
26483 esac
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26486 ac_status=$?
26487 grep -v '^ *+' conftest.er1 >conftest.err
26488 rm -f conftest.er1
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } >/dev/null && {
26492 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26493 test ! -s conftest.err
26494 }; then
26495 ac_header_preproc=yes
26496 else
26497 echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26500 ac_header_preproc=no
26503 rm -f conftest.err conftest.$ac_ext
26504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26505 echo "${ECHO_T}$ac_header_preproc" >&6; }
26507 # So? What about this header?
26508 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26509 yes:no: )
26510 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26511 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26513 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26514 ac_header_preproc=yes
26516 no:yes:* )
26517 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26518 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26519 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26520 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26522 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26524 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26526 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26528 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26529 ( cat <<\_ASBOX
26530 ## ------------------------------- ##
26531 ## Report this to www.asterisk.org ##
26532 ## ------------------------------- ##
26533 _ASBOX
26534 ) | sed "s/^/$as_me: WARNING: /" >&2
26536 esac
26537 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26538 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26539 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26544 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26545 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26548 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26549 HAS_PWLIB=1
26553 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26554 # Extract the first word of "ptlib-config", so it can be a program name with args.
26555 set dummy ptlib-config; ac_word=$2
26556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26558 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561 case $PTLIB_CONFIG in
26562 [\\/]* | ?:[\\/]*)
26563 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26567 for as_dir in /usr/local/bin
26569 IFS=$as_save_IFS
26570 test -z "$as_dir" && as_dir=.
26571 for ac_exec_ext in '' $ac_executable_extensions; do
26572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26573 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26575 break 2
26577 done
26578 done
26579 IFS=$as_save_IFS
26582 esac
26584 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26585 if test -n "$PTLIB_CONFIG"; then
26586 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26587 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26588 else
26589 { echo "$as_me:$LINENO: result: no" >&5
26590 echo "${ECHO_T}no" >&6; }
26594 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
26595 # Extract the first word of "ptlib-config", so it can be a program name with args.
26596 set dummy ptlib-config; ac_word=$2
26597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26599 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602 case $PTLIB_CONFIG in
26603 [\\/]* | ?:[\\/]*)
26604 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26608 for as_dir in /usr/local/share/pwlib/make
26610 IFS=$as_save_IFS
26611 test -z "$as_dir" && as_dir=.
26612 for ac_exec_ext in '' $ac_executable_extensions; do
26613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26614 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26616 break 2
26618 done
26619 done
26620 IFS=$as_save_IFS
26623 esac
26625 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26626 if test -n "$PTLIB_CONFIG"; then
26627 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26628 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26629 else
26630 { echo "$as_me:$LINENO: result: no" >&5
26631 echo "${ECHO_T}no" >&6; }
26636 PWLIB_INCDIR="/usr/local/include"
26637 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26638 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26639 if test "x$LIB64" != "x"; then
26640 PWLIB_LIBDIR="/usr/local/lib64"
26641 else
26642 PWLIB_LIBDIR="/usr/local/lib"
26645 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26646 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26647 else
26648 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26649 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26650 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26651 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26655 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26656 else
26657 # Is the header compilable?
26658 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
26659 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h. */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26667 #include </usr/include/ptlib.h>
26668 _ACEOF
26669 rm -f conftest.$ac_objext
26670 if { (ac_try="$ac_compile"
26671 case "(($ac_try" in
26672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673 *) ac_try_echo=$ac_try;;
26674 esac
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676 (eval "$ac_compile") 2>conftest.er1
26677 ac_status=$?
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } && {
26683 test -z "$ac_cxx_werror_flag" ||
26684 test ! -s conftest.err
26685 } && test -s conftest.$ac_objext; then
26686 ac_header_compiler=yes
26687 else
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26691 ac_header_compiler=no
26694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26696 echo "${ECHO_T}$ac_header_compiler" >&6; }
26698 # Is the header present?
26699 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
26700 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
26701 cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h. */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 #include </usr/include/ptlib.h>
26708 _ACEOF
26709 if { (ac_try="$ac_cpp conftest.$ac_ext"
26710 case "(($ac_try" in
26711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26712 *) ac_try_echo=$ac_try;;
26713 esac
26714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26716 ac_status=$?
26717 grep -v '^ *+' conftest.er1 >conftest.err
26718 rm -f conftest.er1
26719 cat conftest.err >&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } >/dev/null && {
26722 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26723 test ! -s conftest.err
26724 }; then
26725 ac_header_preproc=yes
26726 else
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26730 ac_header_preproc=no
26733 rm -f conftest.err conftest.$ac_ext
26734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26735 echo "${ECHO_T}$ac_header_preproc" >&6; }
26737 # So? What about this header?
26738 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26739 yes:no: )
26740 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26741 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
26743 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
26744 ac_header_preproc=yes
26746 no:yes:* )
26747 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
26748 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
26749 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
26750 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26751 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
26752 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
26753 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26754 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26755 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
26756 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26757 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
26758 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26759 ( cat <<\_ASBOX
26760 ## ------------------------------- ##
26761 ## Report this to www.asterisk.org ##
26762 ## ------------------------------- ##
26763 _ASBOX
26764 ) | sed "s/^/$as_me: WARNING: /" >&2
26766 esac
26767 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26768 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26769 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26770 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 else
26772 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
26774 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26775 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26778 if test $ac_cv_header__usr_include_ptlib_h = yes; then
26779 HAS_PWLIB=1
26783 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26784 # Extract the first word of "ptlib-config", so it can be a program name with args.
26785 set dummy ptlib-config; ac_word=$2
26786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26788 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791 case $PTLIB_CONFIG in
26792 [\\/]* | ?:[\\/]*)
26793 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26797 for as_dir in /usr/share/pwlib/make
26799 IFS=$as_save_IFS
26800 test -z "$as_dir" && as_dir=.
26801 for ac_exec_ext in '' $ac_executable_extensions; do
26802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26803 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26805 break 2
26807 done
26808 done
26809 IFS=$as_save_IFS
26812 esac
26814 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26815 if test -n "$PTLIB_CONFIG"; then
26816 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26817 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26818 else
26819 { echo "$as_me:$LINENO: result: no" >&5
26820 echo "${ECHO_T}no" >&6; }
26824 PWLIB_INCDIR="/usr/include"
26825 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26826 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26827 if test "x$LIB64" != "x"; then
26828 PWLIB_LIBDIR="/usr/lib64"
26829 else
26830 PWLIB_LIBDIR="/usr/lib"
26833 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26834 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26841 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
26842 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
26843 # exit
26846 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26847 if test "${PWLIBDIR:-unset}" = "unset" ; then
26848 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
26849 PWLIBDIR=`$PTLIB_CONFIG --prefix`
26850 else
26851 echo "Cannot find ptlib-config - please install and try again"
26852 exit
26856 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
26857 PWLIBDIR="/usr/share/pwlib"
26858 PWLIB_INCDIR="/usr/include"
26859 if test "x$LIB64" != "x"; then
26860 PWLIB_LIBDIR="/usr/lib64"
26861 else
26862 PWLIB_LIBDIR="/usr/lib"
26865 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
26866 PWLIBDIR="/usr/local/share/pwlib"
26867 PWLIB_INCDIR="/usr/local/include"
26868 if test "x$LIB64" != "x"; then
26869 PWLIB_LIBDIR="/usr/local/lib64"
26870 else
26871 PWLIB_LIBDIR="/usr/local/lib"
26875 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26876 PWLIB_INCDIR="${PWLIBDIR}/include"
26878 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26879 PWLIB_LIBDIR="${PWLIBDIR}/lib"
26886 ac_ext=c
26887 ac_cpp='$CPP $CPPFLAGS'
26888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26894 if test "${HAS_PWLIB:-unset}" != "unset"; then
26895 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26896 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
26897 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
26898 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
26899 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26900 let PWLIB_REQ=1*10000+9*100+2
26902 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26903 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26904 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26905 { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26907 unset HAS_PWLIB
26908 else
26909 { echo "$as_me:$LINENO: result: yes" >&5
26910 echo "${ECHO_T}yes" >&6; }
26915 if test "${HAS_PWLIB:-unset}" != "unset"; then
26917 PWLIB_OSTYPE=
26918 case "$host_os" in
26919 linux*) PWLIB_OSTYPE=linux ;
26921 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26923 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26924 ENDLDLIBS="-lossaudio" ;
26926 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26927 ENDLDLIBS="-lossaudio" ;
26929 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26931 darwin* ) PWLIB_OSTYPE=Darwin ;
26933 beos*) PWLIB_OSTYPE=beos ;
26934 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26936 cygwin*) PWLIB_OSTYPE=cygwin ;
26938 mingw*) PWLIB_OSTYPE=mingw ;
26939 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26940 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26942 * ) PWLIB_OSTYPE="$host_os" ;
26943 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26944 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26946 esac
26948 PWLIB_MACHTYPE=
26949 case "$host_cpu" in
26950 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26953 x86_64) PWLIB_MACHTYPE=x86_64 ;
26954 P_64BIT=1 ;
26955 LIB64=1 ;
26958 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26959 P_64BIT=1 ;
26962 sparc ) PWLIB_MACHTYPE=sparc ;
26965 powerpc ) PWLIB_MACHTYPE=ppc ;
26968 ppc ) PWLIB_MACHTYPE=ppc ;
26971 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26972 P_64BIT=1 ;
26973 LIB64=1 ;
26976 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26977 P_64BIT=1 ;
26978 LIB64=1 ;
26981 ia64) PWLIB_MACHTYPE=ia64 ;
26982 P_64BIT=1 ;
26985 s390x) PWLIB_MACHTYPE=s390x ;
26986 P_64BIT=1 ;
26987 LIB64=1 ;
26990 s390) PWLIB_MACHTYPE=s390 ;
26993 * ) PWLIB_MACHTYPE="$host_cpu";
26994 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26995 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
26996 esac
26998 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27003 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27006 if test "${HAS_PWLIB:-unset}" != "unset"; then
27007 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27008 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27010 saved_cppflags="${CPPFLAGS}"
27011 saved_libs="${LIBS}"
27012 if test "${PWLIB_LIB:-unset}" != "unset"; then
27013 LIBS="${LIBS} ${PWLIB_LIB} "
27014 else
27015 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27017 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27019 ac_ext=cpp
27020 ac_cpp='$CXXCPP $CPPFLAGS'
27021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27026 cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h. */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 #include "ptlib.h"
27034 main ()
27036 BOOL q = PTime::IsDaylightSavings();
27038 return 0;
27040 _ACEOF
27041 rm -f conftest.$ac_objext conftest$ac_exeext
27042 if { (ac_try="$ac_link"
27043 case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_link") 2>conftest.er1
27049 ac_status=$?
27050 grep -v '^ *+' conftest.er1 >conftest.err
27051 rm -f conftest.er1
27052 cat conftest.err >&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } && {
27055 test -z "$ac_cxx_werror_flag" ||
27056 test ! -s conftest.err
27057 } && test -s conftest$ac_exeext &&
27058 $as_test_x conftest$ac_exeext; then
27059 { echo "$as_me:$LINENO: result: yes" >&5
27060 echo "${ECHO_T}yes" >&6; }
27061 ac_cv_lib_PWLIB="yes"
27063 else
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 { echo "$as_me:$LINENO: result: no" >&5
27068 echo "${ECHO_T}no" >&6; }
27069 ac_cv_lib_PWLIB="no"
27074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27075 conftest$ac_exeext conftest.$ac_ext
27077 ac_ext=c
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27084 LIBS="${saved_libs}"
27085 CPPFLAGS="${saved_cppflags}"
27087 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27088 if test "${PWLIB_LIB:-undef}" = "undef"; then
27089 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27090 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27091 else
27092 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27095 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27096 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27098 PBX_PWLIB=1
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_PWLIB 1
27102 _ACEOF
27110 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27111 { echo "$as_me:$LINENO: ***" >&5
27112 echo "$as_me: ***" >&6;}
27113 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27114 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27115 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27116 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27117 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27118 echo "$as_me: *** including --without-pwlib" >&6;}
27119 exit 1
27122 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27123 if test -n "${OPENH323_DIR}"; then
27124 OPENH323DIR="${OPENH323_DIR}"
27127 OPENH323_INCDIR=
27128 OPENH323_LIBDIR=
27129 ac_ext=cpp
27130 ac_cpp='$CXXCPP $CPPFLAGS'
27131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27135 if test "${OPENH323DIR:-unset}" != "unset" ; then
27136 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27138 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27139 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 ac_res=`eval echo '${'$as_ac_Header'}'`
27144 { echo "$as_me:$LINENO: result: $ac_res" >&5
27145 echo "${ECHO_T}$ac_res" >&6; }
27146 else
27147 # Is the header compilable?
27148 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27149 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27150 cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h. */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 $ac_includes_default
27157 #include <${OPENH323DIR}/version.h>
27158 _ACEOF
27159 rm -f conftest.$ac_objext
27160 if { (ac_try="$ac_compile"
27161 case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_compile") 2>conftest.er1
27167 ac_status=$?
27168 grep -v '^ *+' conftest.er1 >conftest.err
27169 rm -f conftest.er1
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } && {
27173 test -z "$ac_cxx_werror_flag" ||
27174 test ! -s conftest.err
27175 } && test -s conftest.$ac_objext; then
27176 ac_header_compiler=yes
27177 else
27178 echo "$as_me: failed program was:" >&5
27179 sed 's/^/| /' conftest.$ac_ext >&5
27181 ac_header_compiler=no
27184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27186 echo "${ECHO_T}$ac_header_compiler" >&6; }
27188 # Is the header present?
27189 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27190 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27191 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h. */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27197 #include <${OPENH323DIR}/version.h>
27198 _ACEOF
27199 if { (ac_try="$ac_cpp conftest.$ac_ext"
27200 case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27206 ac_status=$?
27207 grep -v '^ *+' conftest.er1 >conftest.err
27208 rm -f conftest.er1
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } >/dev/null && {
27212 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27213 test ! -s conftest.err
27214 }; then
27215 ac_header_preproc=yes
27216 else
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 ac_header_preproc=no
27223 rm -f conftest.err conftest.$ac_ext
27224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27225 echo "${ECHO_T}$ac_header_preproc" >&6; }
27227 # So? What about this header?
27228 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27229 yes:no: )
27230 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27231 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27232 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27233 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27234 ac_header_preproc=yes
27236 no:yes:* )
27237 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27238 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27239 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27240 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27241 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27242 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27244 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27246 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27248 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27249 ( cat <<\_ASBOX
27250 ## ------------------------------- ##
27251 ## Report this to www.asterisk.org ##
27252 ## ------------------------------- ##
27253 _ASBOX
27254 ) | sed "s/^/$as_me: WARNING: /" >&2
27256 esac
27257 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27258 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262 eval "$as_ac_Header=\$ac_header_preproc"
27264 ac_res=`eval echo '${'$as_ac_Header'}'`
27265 { echo "$as_me:$LINENO: result: $ac_res" >&5
27266 echo "${ECHO_T}$ac_res" >&6; }
27269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27270 HAS_OPENH323=1
27275 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27276 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27278 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27279 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27283 ac_res=`eval echo '${'$as_ac_Header'}'`
27284 { echo "$as_me:$LINENO: result: $ac_res" >&5
27285 echo "${ECHO_T}$ac_res" >&6; }
27286 else
27287 # Is the header compilable?
27288 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27289 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27290 cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h. */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27296 $ac_includes_default
27297 #include <${PWLIBDIR}/../openh323/version.h>
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27307 ac_status=$?
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_cxx_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest.$ac_objext; then
27316 ac_header_compiler=yes
27317 else
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_header_compiler=no
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27326 echo "${ECHO_T}$ac_header_compiler" >&6; }
27328 # Is the header present?
27329 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27330 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h. */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <${PWLIBDIR}/../openh323/version.h>
27338 _ACEOF
27339 if { (ac_try="$ac_cpp conftest.$ac_ext"
27340 case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343 esac
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27346 ac_status=$?
27347 grep -v '^ *+' conftest.er1 >conftest.err
27348 rm -f conftest.er1
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } >/dev/null && {
27352 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27353 test ! -s conftest.err
27354 }; then
27355 ac_header_preproc=yes
27356 else
27357 echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.$ac_ext >&5
27360 ac_header_preproc=no
27363 rm -f conftest.err conftest.$ac_ext
27364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27365 echo "${ECHO_T}$ac_header_preproc" >&6; }
27367 # So? What about this header?
27368 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27369 yes:no: )
27370 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27371 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27373 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27374 ac_header_preproc=yes
27376 no:yes:* )
27377 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27378 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27380 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27382 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27384 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27386 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27388 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27389 ( cat <<\_ASBOX
27390 ## ------------------------------- ##
27391 ## Report this to www.asterisk.org ##
27392 ## ------------------------------- ##
27393 _ASBOX
27394 ) | sed "s/^/$as_me: WARNING: /" >&2
27396 esac
27397 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27398 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27401 else
27402 eval "$as_ac_Header=\$ac_header_preproc"
27404 ac_res=`eval echo '${'$as_ac_Header'}'`
27405 { echo "$as_me:$LINENO: result: $ac_res" >&5
27406 echo "${ECHO_T}$ac_res" >&6; }
27409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27410 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27414 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27415 OPENH323DIR="${PWLIBDIR}/../openh323"
27416 saved_cppflags="${CPPFLAGS}"
27417 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27418 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27419 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27420 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424 cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h. */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27430 #include <ptlib.h>
27432 #include <${OPENH323DIR}/include/h323.h>
27433 _ACEOF
27434 rm -f conftest.$ac_objext
27435 if { (ac_try="$ac_compile"
27436 case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27439 esac
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_compile") 2>conftest.er1
27442 ac_status=$?
27443 grep -v '^ *+' conftest.er1 >conftest.err
27444 rm -f conftest.er1
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } && {
27448 test -z "$ac_cxx_werror_flag" ||
27449 test ! -s conftest.err
27450 } && test -s conftest.$ac_objext; then
27451 eval "$as_ac_Header=yes"
27452 else
27453 echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27456 eval "$as_ac_Header=no"
27459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461 ac_res=`eval echo '${'$as_ac_Header'}'`
27462 { echo "$as_me:$LINENO: result: $ac_res" >&5
27463 echo "${ECHO_T}$ac_res" >&6; }
27464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27466 else
27467 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27471 CPPFLAGS="${saved_cppflags}"
27472 else
27473 saved_cppflags="${CPPFLAGS}"
27474 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27475 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27477 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27478 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_res=`eval echo '${'$as_ac_Header'}'`
27483 { echo "$as_me:$LINENO: result: $ac_res" >&5
27484 echo "${ECHO_T}$ac_res" >&6; }
27485 else
27486 # Is the header compilable?
27487 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27488 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27489 cat >conftest.$ac_ext <<_ACEOF
27490 /* confdefs.h. */
27491 _ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27495 $ac_includes_default
27496 #include <${HOME}/openh323/include/h323.h>
27497 _ACEOF
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27503 esac
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27506 ac_status=$?
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_cxx_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest.$ac_objext; then
27515 ac_header_compiler=yes
27516 else
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27520 ac_header_compiler=no
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27525 echo "${ECHO_T}$ac_header_compiler" >&6; }
27527 # Is the header present?
27528 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27529 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27530 cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h. */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27536 #include <${HOME}/openh323/include/h323.h>
27537 _ACEOF
27538 if { (ac_try="$ac_cpp conftest.$ac_ext"
27539 case "(($ac_try" in
27540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27541 *) ac_try_echo=$ac_try;;
27542 esac
27543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27545 ac_status=$?
27546 grep -v '^ *+' conftest.er1 >conftest.err
27547 rm -f conftest.er1
27548 cat conftest.err >&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } >/dev/null && {
27551 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27552 test ! -s conftest.err
27553 }; then
27554 ac_header_preproc=yes
27555 else
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ac_header_preproc=no
27562 rm -f conftest.err conftest.$ac_ext
27563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27564 echo "${ECHO_T}$ac_header_preproc" >&6; }
27566 # So? What about this header?
27567 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27568 yes:no: )
27569 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27570 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
27572 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
27573 ac_header_preproc=yes
27575 no:yes:* )
27576 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
27577 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
27578 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
27579 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
27580 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
27581 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27583 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27584 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
27585 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
27587 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
27588 ( cat <<\_ASBOX
27589 ## ------------------------------- ##
27590 ## Report this to www.asterisk.org ##
27591 ## ------------------------------- ##
27592 _ASBOX
27593 ) | sed "s/^/$as_me: WARNING: /" >&2
27595 esac
27596 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27597 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 else
27601 eval "$as_ac_Header=\$ac_header_preproc"
27603 ac_res=`eval echo '${'$as_ac_Header'}'`
27604 { echo "$as_me:$LINENO: result: $ac_res" >&5
27605 echo "${ECHO_T}$ac_res" >&6; }
27608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27609 HAS_OPENH323=1
27613 CPPFLAGS="${saved_cppflags}"
27614 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27615 OPENH323DIR="${HOME}/openh323"
27616 else
27617 saved_cppflags="${CPPFLAGS}"
27618 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
27619 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27620 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27621 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27622 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27626 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27627 else
27628 # Is the header compilable?
27629 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
27630 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
27631 cat >conftest.$ac_ext <<_ACEOF
27632 /* confdefs.h. */
27633 _ACEOF
27634 cat confdefs.h >>conftest.$ac_ext
27635 cat >>conftest.$ac_ext <<_ACEOF
27636 /* end confdefs.h. */
27637 $ac_includes_default
27638 #include </usr/local/include/openh323/h323.h>
27639 _ACEOF
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645 esac
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_compile") 2>conftest.er1
27648 ac_status=$?
27649 grep -v '^ *+' conftest.er1 >conftest.err
27650 rm -f conftest.er1
27651 cat conftest.err >&5
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && {
27654 test -z "$ac_cxx_werror_flag" ||
27655 test ! -s conftest.err
27656 } && test -s conftest.$ac_objext; then
27657 ac_header_compiler=yes
27658 else
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ac_header_compiler=no
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27667 echo "${ECHO_T}$ac_header_compiler" >&6; }
27669 # Is the header present?
27670 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
27671 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
27672 cat >conftest.$ac_ext <<_ACEOF
27673 /* confdefs.h. */
27674 _ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27678 #include </usr/local/include/openh323/h323.h>
27679 _ACEOF
27680 if { (ac_try="$ac_cpp conftest.$ac_ext"
27681 case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27684 esac
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27687 ac_status=$?
27688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } >/dev/null && {
27693 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27694 test ! -s conftest.err
27695 }; then
27696 ac_header_preproc=yes
27697 else
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_header_preproc=no
27704 rm -f conftest.err conftest.$ac_ext
27705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27706 echo "${ECHO_T}$ac_header_preproc" >&6; }
27708 # So? What about this header?
27709 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27710 yes:no: )
27711 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27712 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27713 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
27714 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
27715 ac_header_preproc=yes
27717 no:yes:* )
27718 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
27719 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
27721 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
27722 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
27723 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
27724 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27725 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27726 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
27727 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
27728 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
27729 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
27730 ( cat <<\_ASBOX
27731 ## ------------------------------- ##
27732 ## Report this to www.asterisk.org ##
27733 ## ------------------------------- ##
27734 _ASBOX
27735 ) | sed "s/^/$as_me: WARNING: /" >&2
27737 esac
27738 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27739 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27740 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27741 echo $ECHO_N "(cached) $ECHO_C" >&6
27742 else
27743 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
27745 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27746 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27749 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
27750 HAS_OPENH323=1
27754 CPPFLAGS="${saved_cppflags}"
27755 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27756 OPENH323DIR="/usr/local/share/openh323"
27757 OPENH323_INCDIR="/usr/local/include/openh323"
27758 if test "x$LIB64" != "x"; then
27759 OPENH323_LIBDIR="/usr/local/lib64"
27760 else
27761 OPENH323_LIBDIR="/usr/local/lib"
27763 else
27764 saved_cppflags="${CPPFLAGS}"
27765 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
27766 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
27767 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
27768 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27770 else
27771 cat >conftest.$ac_ext <<_ACEOF
27772 /* confdefs.h. */
27773 _ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27777 #include <ptlib.h>
27779 #include </usr/include/openh323/h323.h>
27780 _ACEOF
27781 rm -f conftest.$ac_objext
27782 if { (ac_try="$ac_compile"
27783 case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_compile") 2>conftest.er1
27789 ac_status=$?
27790 grep -v '^ *+' conftest.er1 >conftest.err
27791 rm -f conftest.er1
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_cxx_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest.$ac_objext; then
27798 ac_cv_header__usr_include_openh323_h323_h=yes
27799 else
27800 echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27803 ac_cv_header__usr_include_openh323_h323_h=no
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
27809 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
27810 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
27811 HAS_OPENH323=1
27815 CPPFLAGS="${saved_cppflags}"
27816 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27817 OPENH323DIR="/usr/share/openh323"
27818 OPENH323_INCDIR="/usr/include/openh323"
27819 if test "x$LIB64" != "x"; then
27820 OPENH323_LIBDIR="/usr/lib64"
27821 else
27822 OPENH323_LIBDIR="/usr/lib"
27830 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27831 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
27832 OPENH323_INCDIR="${OPENH323DIR}/include"
27834 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
27835 OPENH323_LIBDIR="${OPENH323DIR}/lib"
27838 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
27839 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
27840 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
27846 ac_ext=c
27847 ac_cpp='$CPP $CPPFLAGS'
27848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27854 if test "${HAS_OPENH323:-unset}" != "unset"; then
27855 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27856 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27857 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27858 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27859 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27860 let OPENH323_REQ=1*10000+17*100+3
27862 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
27863 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27864 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27865 { echo "$as_me:$LINENO: result: no" >&5
27866 echo "${ECHO_T}no" >&6; }
27867 unset HAS_OPENH323
27868 else
27869 { echo "$as_me:$LINENO: result: yes" >&5
27870 echo "${ECHO_T}yes" >&6; }
27875 if test "${HAS_OPENH323:-unset}" != "unset"; then
27876 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
27877 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
27878 OPENH323_SUFFIX=
27879 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
27880 for pfx in $prefixes; do
27881 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27882 libfile=
27883 if test -n "$files"; then
27884 for f in $files; do
27885 if test -f $f -a ! -L $f; then
27886 libfile=`basename $f`
27887 break;
27889 done
27891 if test -n "$libfile"; then
27892 OPENH323_PREFIX=$pfx
27893 break;
27895 done
27896 if test "${libfile:-unset}" != "unset"; then
27897 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27899 case "${OPENH323_SUFFIX}" in
27901 OPENH323_BUILD="notrace";;
27903 OPENH323_BUILD="opt";;
27905 OPENH323_BUILD="debug";;
27907 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
27908 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27909 if test "x$notrace" = "x"; then
27910 notrace="0"
27912 if test "$notrace" -ne 0; then
27913 OPENH323_BUILD="notrace"
27914 else
27915 OPENH323_BUILD="opt"
27917 OPENH323_LIB="-l${OPENH323_PREFIX}"
27918 else
27919 OPENH323_BUILD="notrace"
27922 esac
27923 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
27924 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27930 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
27932 if test "${HAS_OPENH323:-unset}" != "unset"; then
27933 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
27934 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
27936 saved_cppflags="${CPPFLAGS}"
27937 saved_libs="${LIBS}"
27938 if test "${OPENH323_LIB:-unset}" != "unset"; then
27939 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27940 else
27941 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27943 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27945 ac_ext=cpp
27946 ac_cpp='$CXXCPP $CPPFLAGS'
27947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27952 cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h. */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27958 #include "ptlib.h"
27959 #include "h323.h"
27960 #include "h323ep.h"
27962 main ()
27964 H323EndPoint ep = H323EndPoint();
27966 return 0;
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (ac_try="$ac_link"
27971 case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_link") 2>conftest.er1
27977 ac_status=$?
27978 grep -v '^ *+' conftest.er1 >conftest.err
27979 rm -f conftest.er1
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } && {
27983 test -z "$ac_cxx_werror_flag" ||
27984 test ! -s conftest.err
27985 } && test -s conftest$ac_exeext &&
27986 $as_test_x conftest$ac_exeext; then
27987 { echo "$as_me:$LINENO: result: yes" >&5
27988 echo "${ECHO_T}yes" >&6; }
27989 ac_cv_lib_OPENH323="yes"
27991 else
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 { echo "$as_me:$LINENO: result: no" >&5
27996 echo "${ECHO_T}no" >&6; }
27997 ac_cv_lib_OPENH323="no"
28002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28003 conftest$ac_exeext conftest.$ac_ext
28005 ac_ext=c
28006 ac_cpp='$CPP $CPPFLAGS'
28007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28012 LIBS="${saved_libs}"
28013 CPPFLAGS="${saved_cppflags}"
28015 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28016 if test "${OPENH323_LIB:-undef}" = "undef"; then
28017 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28018 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28019 else
28020 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28023 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28024 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28026 PBX_OPENH323=1
28028 cat >>confdefs.h <<\_ACEOF
28029 #define HAVE_OPENH323 1
28030 _ACEOF
28036 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28037 { echo "$as_me:$LINENO: ***" >&5
28038 echo "$as_me: ***" >&6;}
28039 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28040 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28041 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28042 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28043 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28044 echo "$as_me: *** including --without-h323" >&6;}
28045 exit 1
28049 if test "${USE_RADIUS}" != "no"; then
28050 pbxlibdir=""
28051 if test "x${RADIUS_DIR}" != "x"; then
28052 if test -d ${RADIUS_DIR}/lib; then
28053 pbxlibdir="-L${RADIUS_DIR}/lib"
28054 else
28055 pbxlibdir="-L${RADIUS_DIR}"
28058 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28059 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28060 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 else
28063 ac_check_lib_save_LIBS=$LIBS
28064 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28065 cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h. */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h. */
28072 /* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28075 #ifdef __cplusplus
28076 extern "C"
28077 #endif
28078 char rc_read_config ();
28080 main ()
28082 return rc_read_config ();
28084 return 0;
28086 _ACEOF
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_link") 2>conftest.er1
28095 ac_status=$?
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } && {
28101 test -z "$ac_c_werror_flag" ||
28102 test ! -s conftest.err
28103 } && test -s conftest$ac_exeext &&
28104 $as_test_x conftest$ac_exeext; then
28105 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28106 else
28107 echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28110 ac_cv_lib_radiusclient_ng_rc_read_config=no
28113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28114 conftest$ac_exeext conftest.$ac_ext
28115 LIBS=$ac_check_lib_save_LIBS
28117 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28118 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28119 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28120 AST_RADIUS_FOUND=yes
28121 else
28122 AST_RADIUS_FOUND=no
28126 if test "${AST_RADIUS_FOUND}" = "yes"; then
28127 RADIUS_LIB="-lradiusclient-ng "
28128 RADIUS_HEADER_FOUND="1"
28129 if test "x${RADIUS_DIR}" != "x"; then
28130 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28131 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28132 saved_cppflags="${CPPFLAGS}"
28133 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28134 if test "xradiusclient-ng.h" != "x" ; then
28135 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
28136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28137 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28138 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28140 echo $ECHO_N "(cached) $ECHO_C" >&6
28142 ac_res=`eval echo '${'$as_ac_Header'}'`
28143 { echo "$as_me:$LINENO: result: $ac_res" >&5
28144 echo "${ECHO_T}$ac_res" >&6; }
28145 else
28146 # Is the header compilable?
28147 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28148 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28149 cat >conftest.$ac_ext <<_ACEOF
28150 /* confdefs.h. */
28151 _ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 $ac_includes_default
28156 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28157 _ACEOF
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } && {
28172 test -z "$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 } && test -s conftest.$ac_objext; then
28175 ac_header_compiler=yes
28176 else
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_header_compiler=no
28183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28185 echo "${ECHO_T}$ac_header_compiler" >&6; }
28187 # Is the header present?
28188 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28189 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28190 cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h. */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28197 _ACEOF
28198 if { (ac_try="$ac_cpp conftest.$ac_ext"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } >/dev/null && {
28211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28213 }; then
28214 ac_header_preproc=yes
28215 else
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_header_preproc=no
28222 rm -f conftest.err conftest.$ac_ext
28223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28224 echo "${ECHO_T}$ac_header_preproc" >&6; }
28226 # So? What about this header?
28227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28228 yes:no: )
28229 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28230 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28231 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28232 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28233 ac_header_preproc=yes
28235 no:yes:* )
28236 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28237 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28238 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28239 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28240 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28241 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28242 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28243 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28244 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28245 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28247 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28248 ( cat <<\_ASBOX
28249 ## ------------------------------- ##
28250 ## Report this to www.asterisk.org ##
28251 ## ------------------------------- ##
28252 _ASBOX
28253 ) | sed "s/^/$as_me: WARNING: /" >&2
28255 esac
28256 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28257 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28259 echo $ECHO_N "(cached) $ECHO_C" >&6
28260 else
28261 eval "$as_ac_Header=\$ac_header_preproc"
28263 ac_res=`eval echo '${'$as_ac_Header'}'`
28264 { echo "$as_me:$LINENO: result: $ac_res" >&5
28265 echo "${ECHO_T}$ac_res" >&6; }
28268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28269 RADIUS_HEADER_FOUND=1
28270 else
28271 RADIUS_HEADER_FOUND=0
28276 CPPFLAGS="${saved_cppflags}"
28277 else
28278 if test "xradiusclient-ng.h" != "x" ; then
28279 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28280 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28281 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28282 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28286 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28287 else
28288 # Is the header compilable?
28289 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28290 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28291 cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h. */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28297 $ac_includes_default
28298 #include <radiusclient-ng.h>
28299 _ACEOF
28300 rm -f conftest.$ac_objext
28301 if { (ac_try="$ac_compile"
28302 case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_compile") 2>conftest.er1
28308 ac_status=$?
28309 grep -v '^ *+' conftest.er1 >conftest.err
28310 rm -f conftest.er1
28311 cat conftest.err >&5
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } && {
28314 test -z "$ac_c_werror_flag" ||
28315 test ! -s conftest.err
28316 } && test -s conftest.$ac_objext; then
28317 ac_header_compiler=yes
28318 else
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 ac_header_compiler=no
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28327 echo "${ECHO_T}$ac_header_compiler" >&6; }
28329 # Is the header present?
28330 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28331 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28332 cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h. */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h. */
28338 #include <radiusclient-ng.h>
28339 _ACEOF
28340 if { (ac_try="$ac_cpp conftest.$ac_ext"
28341 case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28344 esac
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28347 ac_status=$?
28348 grep -v '^ *+' conftest.er1 >conftest.err
28349 rm -f conftest.er1
28350 cat conftest.err >&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } >/dev/null && {
28353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28354 test ! -s conftest.err
28355 }; then
28356 ac_header_preproc=yes
28357 else
28358 echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 ac_header_preproc=no
28364 rm -f conftest.err conftest.$ac_ext
28365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28366 echo "${ECHO_T}$ac_header_preproc" >&6; }
28368 # So? What about this header?
28369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28370 yes:no: )
28371 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28372 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28373 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28374 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28375 ac_header_preproc=yes
28377 no:yes:* )
28378 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28379 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28380 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28381 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28382 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28383 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28384 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28385 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28386 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28387 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28388 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28389 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28390 ( cat <<\_ASBOX
28391 ## ------------------------------- ##
28392 ## Report this to www.asterisk.org ##
28393 ## ------------------------------- ##
28394 _ASBOX
28395 ) | sed "s/^/$as_me: WARNING: /" >&2
28397 esac
28398 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28399 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28400 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28405 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28406 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28409 if test $ac_cv_header_radiusclient_ng_h = yes; then
28410 RADIUS_HEADER_FOUND=1
28411 else
28412 RADIUS_HEADER_FOUND=0
28418 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28419 if test -n "${RADIUS_MANDATORY}" ;
28420 then
28421 { echo "$as_me:$LINENO: ***" >&5
28422 echo "$as_me: ***" >&6;}
28423 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28424 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28425 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28426 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28428 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28429 exit 1
28431 RADIUS_LIB=""
28432 RADIUS_INCLUDE=""
28433 PBX_RADIUS=0
28434 else
28435 PBX_RADIUS=1
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_RADIUS 1
28439 _ACEOF
28442 elif test -n "${RADIUS_MANDATORY}";
28443 then
28444 { echo "$as_me:$LINENO: ***" >&5
28445 echo "$as_me: ***" >&6;}
28446 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28447 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28448 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28449 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28451 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28452 exit 1
28458 if test "${USE_SPEEX}" != "no"; then
28459 pbxlibdir=""
28460 if test "x${SPEEX_DIR}" != "x"; then
28461 if test -d ${SPEEX_DIR}/lib; then
28462 pbxlibdir="-L${SPEEX_DIR}/lib"
28463 else
28464 pbxlibdir="-L${SPEEX_DIR}"
28467 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28468 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28469 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 else
28472 ac_check_lib_save_LIBS=$LIBS
28473 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28474 cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h. */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28481 /* Override any GCC internal prototype to avoid an error.
28482 Use char because int might match the return type of a GCC
28483 builtin and then its argument prototype would still apply. */
28484 #ifdef __cplusplus
28485 extern "C"
28486 #endif
28487 char speex_encode ();
28489 main ()
28491 return speex_encode ();
28493 return 0;
28495 _ACEOF
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (ac_try="$ac_link"
28498 case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_link") 2>conftest.er1
28504 ac_status=$?
28505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } && {
28510 test -z "$ac_c_werror_flag" ||
28511 test ! -s conftest.err
28512 } && test -s conftest$ac_exeext &&
28513 $as_test_x conftest$ac_exeext; then
28514 ac_cv_lib_speex_speex_encode=yes
28515 else
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 ac_cv_lib_speex_speex_encode=no
28522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28523 conftest$ac_exeext conftest.$ac_ext
28524 LIBS=$ac_check_lib_save_LIBS
28526 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28527 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28528 if test $ac_cv_lib_speex_speex_encode = yes; then
28529 AST_SPEEX_FOUND=yes
28530 else
28531 AST_SPEEX_FOUND=no
28535 if test "${AST_SPEEX_FOUND}" = "yes"; then
28536 SPEEX_LIB="-lspeex -lm"
28537 SPEEX_HEADER_FOUND="1"
28538 if test "x${SPEEX_DIR}" != "x"; then
28539 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28540 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
28541 saved_cppflags="${CPPFLAGS}"
28542 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
28543 if test "xspeex/speex.h" != "x" ; then
28544 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28546 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28547 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28551 ac_res=`eval echo '${'$as_ac_Header'}'`
28552 { echo "$as_me:$LINENO: result: $ac_res" >&5
28553 echo "${ECHO_T}$ac_res" >&6; }
28554 else
28555 # Is the header compilable?
28556 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28557 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28558 cat >conftest.$ac_ext <<_ACEOF
28559 /* confdefs.h. */
28560 _ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 $ac_includes_default
28565 #include <${SPEEX_DIR}/include/speex/speex.h>
28566 _ACEOF
28567 rm -f conftest.$ac_objext
28568 if { (ac_try="$ac_compile"
28569 case "(($ac_try" in
28570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28571 *) ac_try_echo=$ac_try;;
28572 esac
28573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28574 (eval "$ac_compile") 2>conftest.er1
28575 ac_status=$?
28576 grep -v '^ *+' conftest.er1 >conftest.err
28577 rm -f conftest.er1
28578 cat conftest.err >&5
28579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 (exit $ac_status); } && {
28581 test -z "$ac_c_werror_flag" ||
28582 test ! -s conftest.err
28583 } && test -s conftest.$ac_objext; then
28584 ac_header_compiler=yes
28585 else
28586 echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28589 ac_header_compiler=no
28592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28594 echo "${ECHO_T}$ac_header_compiler" >&6; }
28596 # Is the header present?
28597 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
28598 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
28599 cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h. */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 #include <${SPEEX_DIR}/include/speex/speex.h>
28606 _ACEOF
28607 if { (ac_try="$ac_cpp conftest.$ac_ext"
28608 case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611 esac
28612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28614 ac_status=$?
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } >/dev/null && {
28620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28621 test ! -s conftest.err
28622 }; then
28623 ac_header_preproc=yes
28624 else
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_header_preproc=no
28631 rm -f conftest.err conftest.$ac_ext
28632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28633 echo "${ECHO_T}$ac_header_preproc" >&6; }
28635 # So? What about this header?
28636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28637 yes:no: )
28638 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28639 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
28641 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
28642 ac_header_preproc=yes
28644 no:yes:* )
28645 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
28646 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
28647 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
28648 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
28649 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
28650 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
28651 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28652 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
28654 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
28655 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
28656 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
28657 ( cat <<\_ASBOX
28658 ## ------------------------------- ##
28659 ## Report this to www.asterisk.org ##
28660 ## ------------------------------- ##
28661 _ASBOX
28662 ) | sed "s/^/$as_me: WARNING: /" >&2
28664 esac
28665 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28666 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28669 else
28670 eval "$as_ac_Header=\$ac_header_preproc"
28672 ac_res=`eval echo '${'$as_ac_Header'}'`
28673 { echo "$as_me:$LINENO: result: $ac_res" >&5
28674 echo "${ECHO_T}$ac_res" >&6; }
28677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28678 SPEEX_HEADER_FOUND=1
28679 else
28680 SPEEX_HEADER_FOUND=0
28685 CPPFLAGS="${saved_cppflags}"
28686 else
28687 if test "xspeex/speex.h" != "x" ; then
28688 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28689 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28690 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28691 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28695 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28696 else
28697 # Is the header compilable?
28698 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
28699 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
28700 cat >conftest.$ac_ext <<_ACEOF
28701 /* confdefs.h. */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h. */
28706 $ac_includes_default
28707 #include <speex/speex.h>
28708 _ACEOF
28709 rm -f conftest.$ac_objext
28710 if { (ac_try="$ac_compile"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28714 esac
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_compile") 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } && {
28723 test -z "$ac_c_werror_flag" ||
28724 test ! -s conftest.err
28725 } && test -s conftest.$ac_objext; then
28726 ac_header_compiler=yes
28727 else
28728 echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28731 ac_header_compiler=no
28734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28736 echo "${ECHO_T}$ac_header_compiler" >&6; }
28738 # Is the header present?
28739 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
28740 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h. */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 #include <speex/speex.h>
28748 _ACEOF
28749 if { (ac_try="$ac_cpp conftest.$ac_ext"
28750 case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28753 esac
28754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28756 ac_status=$?
28757 grep -v '^ *+' conftest.er1 >conftest.err
28758 rm -f conftest.er1
28759 cat conftest.err >&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); } >/dev/null && {
28762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28763 test ! -s conftest.err
28764 }; then
28765 ac_header_preproc=yes
28766 else
28767 echo "$as_me: failed program was:" >&5
28768 sed 's/^/| /' conftest.$ac_ext >&5
28770 ac_header_preproc=no
28773 rm -f conftest.err conftest.$ac_ext
28774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28775 echo "${ECHO_T}$ac_header_preproc" >&6; }
28777 # So? What about this header?
28778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28779 yes:no: )
28780 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28781 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28782 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
28783 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
28784 ac_header_preproc=yes
28786 no:yes:* )
28787 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
28788 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
28789 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
28790 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
28791 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
28792 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
28793 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28794 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
28796 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
28798 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
28799 ( cat <<\_ASBOX
28800 ## ------------------------------- ##
28801 ## Report this to www.asterisk.org ##
28802 ## ------------------------------- ##
28803 _ASBOX
28804 ) | sed "s/^/$as_me: WARNING: /" >&2
28806 esac
28807 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28808 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28809 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28811 else
28812 ac_cv_header_speex_speex_h=$ac_header_preproc
28814 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28815 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28818 if test $ac_cv_header_speex_speex_h = yes; then
28819 SPEEX_HEADER_FOUND=1
28820 else
28821 SPEEX_HEADER_FOUND=0
28827 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
28828 if test -n "${SPEEX_MANDATORY}" ;
28829 then
28830 { echo "$as_me:$LINENO: ***" >&5
28831 echo "$as_me: ***" >&6;}
28832 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
28833 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
28834 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
28835 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
28836 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28837 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28838 exit 1
28840 SPEEX_LIB=""
28841 SPEEX_INCLUDE=""
28842 PBX_SPEEX=0
28843 else
28844 PBX_SPEEX=1
28846 cat >>confdefs.h <<_ACEOF
28847 #define HAVE_SPEEX 1
28848 _ACEOF
28851 elif test -n "${SPEEX_MANDATORY}";
28852 then
28853 { echo "$as_me:$LINENO: ***" >&5
28854 echo "$as_me: ***" >&6;}
28855 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
28856 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
28857 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28858 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28859 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28860 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28861 exit 1
28867 if test "${USE_SPEEXDSP}" != "no"; then
28868 pbxlibdir=""
28869 if test "x${SPEEXDSP_DIR}" != "x"; then
28870 if test -d ${SPEEXDSP_DIR}/lib; then
28871 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
28872 else
28873 pbxlibdir="-L${SPEEXDSP_DIR}"
28876 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
28877 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
28878 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
28879 echo $ECHO_N "(cached) $ECHO_C" >&6
28880 else
28881 ac_check_lib_save_LIBS=$LIBS
28882 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
28883 cat >conftest.$ac_ext <<_ACEOF
28884 /* confdefs.h. */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28890 /* Override any GCC internal prototype to avoid an error.
28891 Use char because int might match the return type of a GCC
28892 builtin and then its argument prototype would still apply. */
28893 #ifdef __cplusplus
28894 extern "C"
28895 #endif
28896 char speex_preprocess_ctl ();
28898 main ()
28900 return speex_preprocess_ctl ();
28902 return 0;
28904 _ACEOF
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (ac_try="$ac_link"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_link") 2>conftest.er1
28913 ac_status=$?
28914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } && {
28919 test -z "$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28921 } && test -s conftest$ac_exeext &&
28922 $as_test_x conftest$ac_exeext; then
28923 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
28924 else
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
28931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28932 conftest$ac_exeext conftest.$ac_ext
28933 LIBS=$ac_check_lib_save_LIBS
28935 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
28936 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
28937 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
28938 AST_SPEEXDSP_FOUND=yes
28939 else
28940 AST_SPEEXDSP_FOUND=no
28944 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
28945 SPEEXDSP_LIB="-lspeexdsp -lm"
28946 SPEEXDSP_HEADER_FOUND="1"
28947 if test "x${SPEEXDSP_DIR}" != "x"; then
28948 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
28949 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
28950 saved_cppflags="${CPPFLAGS}"
28951 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
28952 if test "xspeex/speex.h" != "x" ; then
28953 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
28954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28955 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
28956 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
28960 ac_res=`eval echo '${'$as_ac_Header'}'`
28961 { echo "$as_me:$LINENO: result: $ac_res" >&5
28962 echo "${ECHO_T}$ac_res" >&6; }
28963 else
28964 # Is the header compilable?
28965 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
28966 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28967 cat >conftest.$ac_ext <<_ACEOF
28968 /* confdefs.h. */
28969 _ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h. */
28973 $ac_includes_default
28974 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
28975 _ACEOF
28976 rm -f conftest.$ac_objext
28977 if { (ac_try="$ac_compile"
28978 case "(($ac_try" in
28979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980 *) ac_try_echo=$ac_try;;
28981 esac
28982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983 (eval "$ac_compile") 2>conftest.er1
28984 ac_status=$?
28985 grep -v '^ *+' conftest.er1 >conftest.err
28986 rm -f conftest.er1
28987 cat conftest.err >&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } && {
28990 test -z "$ac_c_werror_flag" ||
28991 test ! -s conftest.err
28992 } && test -s conftest.$ac_objext; then
28993 ac_header_compiler=yes
28994 else
28995 echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ac_header_compiler=no
29001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29003 echo "${ECHO_T}$ac_header_compiler" >&6; }
29005 # Is the header present?
29006 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29007 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29008 cat >conftest.$ac_ext <<_ACEOF
29009 /* confdefs.h. */
29010 _ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h. */
29014 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29015 _ACEOF
29016 if { (ac_try="$ac_cpp conftest.$ac_ext"
29017 case "(($ac_try" in
29018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29020 esac
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29023 ac_status=$?
29024 grep -v '^ *+' conftest.er1 >conftest.err
29025 rm -f conftest.er1
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } >/dev/null && {
29029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29030 test ! -s conftest.err
29031 }; then
29032 ac_header_preproc=yes
29033 else
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6; }
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046 yes:no: )
29047 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29053 no:yes:* )
29054 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29066 ( cat <<\_ASBOX
29067 ## ------------------------------- ##
29068 ## Report this to www.asterisk.org ##
29069 ## ------------------------------- ##
29070 _ASBOX
29071 ) | sed "s/^/$as_me: WARNING: /" >&2
29073 esac
29074 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29075 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079 eval "$as_ac_Header=\$ac_header_preproc"
29081 ac_res=`eval echo '${'$as_ac_Header'}'`
29082 { echo "$as_me:$LINENO: result: $ac_res" >&5
29083 echo "${ECHO_T}$ac_res" >&6; }
29086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29087 SPEEXDSP_HEADER_FOUND=1
29088 else
29089 SPEEXDSP_HEADER_FOUND=0
29094 CPPFLAGS="${saved_cppflags}"
29095 else
29096 if test "xspeex/speex.h" != "x" ; then
29097 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29098 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29099 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29100 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29103 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29104 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29105 else
29106 # Is the header compilable?
29107 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29108 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29109 cat >conftest.$ac_ext <<_ACEOF
29110 /* confdefs.h. */
29111 _ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h. */
29115 $ac_includes_default
29116 #include <speex/speex.h>
29117 _ACEOF
29118 rm -f conftest.$ac_objext
29119 if { (ac_try="$ac_compile"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123 esac
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_compile") 2>conftest.er1
29126 ac_status=$?
29127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } && {
29132 test -z "$ac_c_werror_flag" ||
29133 test ! -s conftest.err
29134 } && test -s conftest.$ac_objext; then
29135 ac_header_compiler=yes
29136 else
29137 echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29140 ac_header_compiler=no
29143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29145 echo "${ECHO_T}$ac_header_compiler" >&6; }
29147 # Is the header present?
29148 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29149 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29150 cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h. */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 #include <speex/speex.h>
29157 _ACEOF
29158 if { (ac_try="$ac_cpp conftest.$ac_ext"
29159 case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29165 ac_status=$?
29166 grep -v '^ *+' conftest.er1 >conftest.err
29167 rm -f conftest.er1
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } >/dev/null && {
29171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29172 test ! -s conftest.err
29173 }; then
29174 ac_header_preproc=yes
29175 else
29176 echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29179 ac_header_preproc=no
29182 rm -f conftest.err conftest.$ac_ext
29183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29184 echo "${ECHO_T}$ac_header_preproc" >&6; }
29186 # So? What about this header?
29187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29188 yes:no: )
29189 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29190 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29192 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29193 ac_header_preproc=yes
29195 no:yes:* )
29196 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29197 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29199 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29201 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29203 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29205 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29207 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29208 ( cat <<\_ASBOX
29209 ## ------------------------------- ##
29210 ## Report this to www.asterisk.org ##
29211 ## ------------------------------- ##
29212 _ASBOX
29213 ) | sed "s/^/$as_me: WARNING: /" >&2
29215 esac
29216 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29217 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29218 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221 ac_cv_header_speex_speex_h=$ac_header_preproc
29223 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29224 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29227 if test $ac_cv_header_speex_speex_h = yes; then
29228 SPEEXDSP_HEADER_FOUND=1
29229 else
29230 SPEEXDSP_HEADER_FOUND=0
29236 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
29237 if test -n "${SPEEXDSP_MANDATORY}" ;
29238 then
29239 { echo "$as_me:$LINENO: ***" >&5
29240 echo "$as_me: ***" >&6;}
29241 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
29242 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
29243 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
29244 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
29245 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29246 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29247 exit 1
29249 SPEEXDSP_LIB=""
29250 SPEEXDSP_INCLUDE=""
29251 PBX_SPEEXDSP=0
29252 else
29253 PBX_SPEEXDSP=1
29255 cat >>confdefs.h <<_ACEOF
29256 #define HAVE_SPEEXDSP 1
29257 _ACEOF
29260 elif test -n "${SPEEXDSP_MANDATORY}";
29261 then
29262 { echo "$as_me:$LINENO: ***" >&5
29263 echo "$as_me: ***" >&6;}
29264 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
29265 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
29266 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29267 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29268 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29269 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29270 exit 1
29276 if test "${USE_SQLITE}" != "no"; then
29277 pbxlibdir=""
29278 if test "x${SQLITE_DIR}" != "x"; then
29279 if test -d ${SQLITE_DIR}/lib; then
29280 pbxlibdir="-L${SQLITE_DIR}/lib"
29281 else
29282 pbxlibdir="-L${SQLITE_DIR}"
29285 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
29286 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
29287 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29289 else
29290 ac_check_lib_save_LIBS=$LIBS
29291 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29292 cat >conftest.$ac_ext <<_ACEOF
29293 /* confdefs.h. */
29294 _ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h. */
29299 /* Override any GCC internal prototype to avoid an error.
29300 Use char because int might match the return type of a GCC
29301 builtin and then its argument prototype would still apply. */
29302 #ifdef __cplusplus
29303 extern "C"
29304 #endif
29305 char sqlite_exec ();
29307 main ()
29309 return sqlite_exec ();
29311 return 0;
29313 _ACEOF
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (ac_try="$ac_link"
29316 case "(($ac_try" in
29317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318 *) ac_try_echo=$ac_try;;
29319 esac
29320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29321 (eval "$ac_link") 2>conftest.er1
29322 ac_status=$?
29323 grep -v '^ *+' conftest.er1 >conftest.err
29324 rm -f conftest.er1
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest$ac_exeext &&
29331 $as_test_x conftest$ac_exeext; then
29332 ac_cv_lib_sqlite_sqlite_exec=yes
29333 else
29334 echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ac_cv_lib_sqlite_sqlite_exec=no
29340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29341 conftest$ac_exeext conftest.$ac_ext
29342 LIBS=$ac_check_lib_save_LIBS
29344 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
29345 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29346 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29347 AST_SQLITE_FOUND=yes
29348 else
29349 AST_SQLITE_FOUND=no
29353 if test "${AST_SQLITE_FOUND}" = "yes"; then
29354 SQLITE_LIB="-lsqlite "
29355 SQLITE_HEADER_FOUND="1"
29356 if test "x${SQLITE_DIR}" != "x"; then
29357 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
29358 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
29359 saved_cppflags="${CPPFLAGS}"
29360 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
29361 if test "xsqlite.h" != "x" ; then
29362 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
29363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29364 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29365 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 ac_res=`eval echo '${'$as_ac_Header'}'`
29370 { echo "$as_me:$LINENO: result: $ac_res" >&5
29371 echo "${ECHO_T}$ac_res" >&6; }
29372 else
29373 # Is the header compilable?
29374 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
29375 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
29376 cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h. */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29382 $ac_includes_default
29383 #include <${SQLITE_DIR}/include/sqlite.h>
29384 _ACEOF
29385 rm -f conftest.$ac_objext
29386 if { (ac_try="$ac_compile"
29387 case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390 esac
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_compile") 2>conftest.er1
29393 ac_status=$?
29394 grep -v '^ *+' conftest.er1 >conftest.err
29395 rm -f conftest.er1
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } && {
29399 test -z "$ac_c_werror_flag" ||
29400 test ! -s conftest.err
29401 } && test -s conftest.$ac_objext; then
29402 ac_header_compiler=yes
29403 else
29404 echo "$as_me: failed program was:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29407 ac_header_compiler=no
29410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29412 echo "${ECHO_T}$ac_header_compiler" >&6; }
29414 # Is the header present?
29415 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
29416 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
29417 cat >conftest.$ac_ext <<_ACEOF
29418 /* confdefs.h. */
29419 _ACEOF
29420 cat confdefs.h >>conftest.$ac_ext
29421 cat >>conftest.$ac_ext <<_ACEOF
29422 /* end confdefs.h. */
29423 #include <${SQLITE_DIR}/include/sqlite.h>
29424 _ACEOF
29425 if { (ac_try="$ac_cpp conftest.$ac_ext"
29426 case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29429 esac
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29432 ac_status=$?
29433 grep -v '^ *+' conftest.er1 >conftest.err
29434 rm -f conftest.er1
29435 cat conftest.err >&5
29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } >/dev/null && {
29438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29439 test ! -s conftest.err
29440 }; then
29441 ac_header_preproc=yes
29442 else
29443 echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29446 ac_header_preproc=no
29449 rm -f conftest.err conftest.$ac_ext
29450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29451 echo "${ECHO_T}$ac_header_preproc" >&6; }
29453 # So? What about this header?
29454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29455 yes:no: )
29456 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29457 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29458 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
29459 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
29460 ac_header_preproc=yes
29462 no:yes:* )
29463 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
29464 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
29466 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
29467 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
29468 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
29469 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29470 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29471 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
29472 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
29474 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
29475 ( cat <<\_ASBOX
29476 ## ------------------------------- ##
29477 ## Report this to www.asterisk.org ##
29478 ## ------------------------------- ##
29479 _ASBOX
29480 ) | sed "s/^/$as_me: WARNING: /" >&2
29482 esac
29483 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29484 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488 eval "$as_ac_Header=\$ac_header_preproc"
29490 ac_res=`eval echo '${'$as_ac_Header'}'`
29491 { echo "$as_me:$LINENO: result: $ac_res" >&5
29492 echo "${ECHO_T}$ac_res" >&6; }
29495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29496 SQLITE_HEADER_FOUND=1
29497 else
29498 SQLITE_HEADER_FOUND=0
29503 CPPFLAGS="${saved_cppflags}"
29504 else
29505 if test "xsqlite.h" != "x" ; then
29506 if test "${ac_cv_header_sqlite_h+set}" = set; then
29507 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29508 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29509 if test "${ac_cv_header_sqlite_h+set}" = set; then
29510 echo $ECHO_N "(cached) $ECHO_C" >&6
29512 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29513 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29514 else
29515 # Is the header compilable?
29516 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
29517 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
29518 cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h. */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 $ac_includes_default
29525 #include <sqlite.h>
29526 _ACEOF
29527 rm -f conftest.$ac_objext
29528 if { (ac_try="$ac_compile"
29529 case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29532 esac
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_compile") 2>conftest.er1
29535 ac_status=$?
29536 grep -v '^ *+' conftest.er1 >conftest.err
29537 rm -f conftest.er1
29538 cat conftest.err >&5
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } && {
29541 test -z "$ac_c_werror_flag" ||
29542 test ! -s conftest.err
29543 } && test -s conftest.$ac_objext; then
29544 ac_header_compiler=yes
29545 else
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_header_compiler=no
29552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29554 echo "${ECHO_T}$ac_header_compiler" >&6; }
29556 # Is the header present?
29557 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
29558 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
29559 cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h. */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h. */
29565 #include <sqlite.h>
29566 _ACEOF
29567 if { (ac_try="$ac_cpp conftest.$ac_ext"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29574 ac_status=$?
29575 grep -v '^ *+' conftest.er1 >conftest.err
29576 rm -f conftest.er1
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } >/dev/null && {
29580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29581 test ! -s conftest.err
29582 }; then
29583 ac_header_preproc=yes
29584 else
29585 echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29588 ac_header_preproc=no
29591 rm -f conftest.err conftest.$ac_ext
29592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29593 echo "${ECHO_T}$ac_header_preproc" >&6; }
29595 # So? What about this header?
29596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29597 yes:no: )
29598 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29599 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29600 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
29601 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
29602 ac_header_preproc=yes
29604 no:yes:* )
29605 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
29606 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
29607 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
29608 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
29609 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
29610 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
29611 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29612 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
29614 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
29616 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
29617 ( cat <<\_ASBOX
29618 ## ------------------------------- ##
29619 ## Report this to www.asterisk.org ##
29620 ## ------------------------------- ##
29621 _ASBOX
29622 ) | sed "s/^/$as_me: WARNING: /" >&2
29624 esac
29625 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29626 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29627 if test "${ac_cv_header_sqlite_h+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630 ac_cv_header_sqlite_h=$ac_header_preproc
29632 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29633 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29636 if test $ac_cv_header_sqlite_h = yes; then
29637 SQLITE_HEADER_FOUND=1
29638 else
29639 SQLITE_HEADER_FOUND=0
29645 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
29646 if test -n "${SQLITE_MANDATORY}" ;
29647 then
29648 { echo "$as_me:$LINENO: ***" >&5
29649 echo "$as_me: ***" >&6;}
29650 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
29651 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
29652 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
29653 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
29654 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
29655 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
29656 exit 1
29658 SQLITE_LIB=""
29659 SQLITE_INCLUDE=""
29660 PBX_SQLITE=0
29661 else
29662 PBX_SQLITE=1
29664 cat >>confdefs.h <<_ACEOF
29665 #define HAVE_SQLITE 1
29666 _ACEOF
29669 elif test -n "${SQLITE_MANDATORY}";
29670 then
29671 { echo "$as_me:$LINENO: ***" >&5
29672 echo "$as_me: ***" >&6;}
29673 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
29674 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
29675 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29676 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29677 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
29678 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
29679 exit 1
29685 if test "${USE_OPENSSL}" != "no"; then
29686 pbxlibdir=""
29687 if test "x${OPENSSL_DIR}" != "x"; then
29688 if test -d ${OPENSSL_DIR}/lib; then
29689 pbxlibdir="-L${OPENSSL_DIR}/lib"
29690 else
29691 pbxlibdir="-L${OPENSSL_DIR}"
29694 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
29695 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
29696 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699 ac_check_lib_save_LIBS=$LIBS
29700 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
29701 cat >conftest.$ac_ext <<_ACEOF
29702 /* confdefs.h. */
29703 _ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29708 /* Override any GCC internal prototype to avoid an error.
29709 Use char because int might match the return type of a GCC
29710 builtin and then its argument prototype would still apply. */
29711 #ifdef __cplusplus
29712 extern "C"
29713 #endif
29714 char ssl2_connect ();
29716 main ()
29718 return ssl2_connect ();
29720 return 0;
29722 _ACEOF
29723 rm -f conftest.$ac_objext conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29728 esac
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730 (eval "$ac_link") 2>conftest.er1
29731 ac_status=$?
29732 grep -v '^ *+' conftest.er1 >conftest.err
29733 rm -f conftest.er1
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } && {
29737 test -z "$ac_c_werror_flag" ||
29738 test ! -s conftest.err
29739 } && test -s conftest$ac_exeext &&
29740 $as_test_x conftest$ac_exeext; then
29741 ac_cv_lib_ssl_ssl2_connect=yes
29742 else
29743 echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29746 ac_cv_lib_ssl_ssl2_connect=no
29749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29750 conftest$ac_exeext conftest.$ac_ext
29751 LIBS=$ac_check_lib_save_LIBS
29753 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
29754 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
29755 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
29756 AST_OPENSSL_FOUND=yes
29757 else
29758 AST_OPENSSL_FOUND=no
29762 if test "${AST_OPENSSL_FOUND}" = "yes"; then
29763 OPENSSL_LIB="-lssl -lcrypto"
29764 OPENSSL_HEADER_FOUND="1"
29765 if test "x${OPENSSL_DIR}" != "x"; then
29766 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
29767 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
29768 saved_cppflags="${CPPFLAGS}"
29769 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
29770 if test "xopenssl/ssl.h" != "x" ; then
29771 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
29772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29773 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
29774 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
29775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29776 echo $ECHO_N "(cached) $ECHO_C" >&6
29778 ac_res=`eval echo '${'$as_ac_Header'}'`
29779 { echo "$as_me:$LINENO: result: $ac_res" >&5
29780 echo "${ECHO_T}$ac_res" >&6; }
29781 else
29782 # Is the header compilable?
29783 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
29784 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
29785 cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h. */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29791 $ac_includes_default
29792 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29793 _ACEOF
29794 rm -f conftest.$ac_objext
29795 if { (ac_try="$ac_compile"
29796 case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29799 esac
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_compile") 2>conftest.er1
29802 ac_status=$?
29803 grep -v '^ *+' conftest.er1 >conftest.err
29804 rm -f conftest.er1
29805 cat conftest.err >&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } && {
29808 test -z "$ac_c_werror_flag" ||
29809 test ! -s conftest.err
29810 } && test -s conftest.$ac_objext; then
29811 ac_header_compiler=yes
29812 else
29813 echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29816 ac_header_compiler=no
29819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29821 echo "${ECHO_T}$ac_header_compiler" >&6; }
29823 # Is the header present?
29824 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
29825 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
29826 cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h. */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29832 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29833 _ACEOF
29834 if { (ac_try="$ac_cpp conftest.$ac_ext"
29835 case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29838 esac
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29841 ac_status=$?
29842 grep -v '^ *+' conftest.er1 >conftest.err
29843 rm -f conftest.er1
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } >/dev/null && {
29847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29848 test ! -s conftest.err
29849 }; then
29850 ac_header_preproc=yes
29851 else
29852 echo "$as_me: failed program was:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29855 ac_header_preproc=no
29858 rm -f conftest.err conftest.$ac_ext
29859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29860 echo "${ECHO_T}$ac_header_preproc" >&6; }
29862 # So? What about this header?
29863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29864 yes:no: )
29865 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29866 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
29868 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
29869 ac_header_preproc=yes
29871 no:yes:* )
29872 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
29873 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
29874 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
29875 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
29876 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
29877 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
29878 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
29879 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29880 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
29881 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
29883 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
29884 ( cat <<\_ASBOX
29885 ## ------------------------------- ##
29886 ## Report this to www.asterisk.org ##
29887 ## ------------------------------- ##
29888 _ASBOX
29889 ) | sed "s/^/$as_me: WARNING: /" >&2
29891 esac
29892 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
29893 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
29894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29895 echo $ECHO_N "(cached) $ECHO_C" >&6
29896 else
29897 eval "$as_ac_Header=\$ac_header_preproc"
29899 ac_res=`eval echo '${'$as_ac_Header'}'`
29900 { echo "$as_me:$LINENO: result: $ac_res" >&5
29901 echo "${ECHO_T}$ac_res" >&6; }
29904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29905 OPENSSL_HEADER_FOUND=1
29906 else
29907 OPENSSL_HEADER_FOUND=0
29912 CPPFLAGS="${saved_cppflags}"
29913 else
29914 if test "xopenssl/ssl.h" != "x" ; then
29915 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29916 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
29917 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
29918 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
29922 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29923 else
29924 # Is the header compilable?
29925 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
29926 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h. */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933 $ac_includes_default
29934 #include <openssl/ssl.h>
29935 _ACEOF
29936 rm -f conftest.$ac_objext
29937 if { (ac_try="$ac_compile"
29938 case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_compile") 2>conftest.er1
29944 ac_status=$?
29945 grep -v '^ *+' conftest.er1 >conftest.err
29946 rm -f conftest.er1
29947 cat conftest.err >&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); } && {
29950 test -z "$ac_c_werror_flag" ||
29951 test ! -s conftest.err
29952 } && test -s conftest.$ac_objext; then
29953 ac_header_compiler=yes
29954 else
29955 echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29958 ac_header_compiler=no
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29963 echo "${ECHO_T}$ac_header_compiler" >&6; }
29965 # Is the header present?
29966 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
29967 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
29968 cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h. */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h. */
29974 #include <openssl/ssl.h>
29975 _ACEOF
29976 if { (ac_try="$ac_cpp conftest.$ac_ext"
29977 case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29980 esac
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29983 ac_status=$?
29984 grep -v '^ *+' conftest.er1 >conftest.err
29985 rm -f conftest.er1
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } >/dev/null && {
29989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29990 test ! -s conftest.err
29991 }; then
29992 ac_header_preproc=yes
29993 else
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_header_preproc=no
30000 rm -f conftest.err conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30002 echo "${ECHO_T}$ac_header_preproc" >&6; }
30004 # So? What about this header?
30005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30006 yes:no: )
30007 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30008 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30009 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30010 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30011 ac_header_preproc=yes
30013 no:yes:* )
30014 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30015 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30017 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30019 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30021 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30023 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30025 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30026 ( cat <<\_ASBOX
30027 ## ------------------------------- ##
30028 ## Report this to www.asterisk.org ##
30029 ## ------------------------------- ##
30030 _ASBOX
30031 ) | sed "s/^/$as_me: WARNING: /" >&2
30033 esac
30034 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30035 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30036 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30041 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30042 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30045 if test $ac_cv_header_openssl_ssl_h = yes; then
30046 OPENSSL_HEADER_FOUND=1
30047 else
30048 OPENSSL_HEADER_FOUND=0
30054 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30055 if test -n "${OPENSSL_MANDATORY}" ;
30056 then
30057 { echo "$as_me:$LINENO: ***" >&5
30058 echo "$as_me: ***" >&6;}
30059 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30060 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30061 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30062 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30063 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30064 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30065 exit 1
30067 OPENSSL_LIB=""
30068 OPENSSL_INCLUDE=""
30069 PBX_OPENSSL=0
30070 else
30071 PBX_OPENSSL=1
30073 cat >>confdefs.h <<_ACEOF
30074 #define HAVE_OPENSSL 1
30075 _ACEOF
30078 elif test -n "${OPENSSL_MANDATORY}";
30079 then
30080 { echo "$as_me:$LINENO: ***" >&5
30081 echo "$as_me: ***" >&6;}
30082 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30083 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30084 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30085 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30086 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30087 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30088 exit 1
30092 if test "$PBX_OPENSSL" = "1";
30093 then
30095 if test "${USE_OSPTK}" != "no"; then
30096 pbxlibdir=""
30097 if test "x${OSPTK_DIR}" != "x"; then
30098 if test -d ${OSPTK_DIR}/lib; then
30099 pbxlibdir="-L${OSPTK_DIR}/lib"
30100 else
30101 pbxlibdir="-L${OSPTK_DIR}"
30104 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30105 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30106 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
30108 else
30109 ac_check_lib_save_LIBS=$LIBS
30110 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30111 cat >conftest.$ac_ext <<_ACEOF
30112 /* confdefs.h. */
30113 _ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h. */
30118 /* Override any GCC internal prototype to avoid an error.
30119 Use char because int might match the return type of a GCC
30120 builtin and then its argument prototype would still apply. */
30121 #ifdef __cplusplus
30122 extern "C"
30123 #endif
30124 char OSPPCryptoDecrypt ();
30126 main ()
30128 return OSPPCryptoDecrypt ();
30130 return 0;
30132 _ACEOF
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (ac_try="$ac_link"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_link") 2>conftest.er1
30141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } && {
30147 test -z "$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30149 } && test -s conftest$ac_exeext &&
30150 $as_test_x conftest$ac_exeext; then
30151 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
30152 else
30153 echo "$as_me: failed program was:" >&5
30154 sed 's/^/| /' conftest.$ac_ext >&5
30156 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
30159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30160 conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30163 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30164 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30165 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30166 AST_OSPTK_FOUND=yes
30167 else
30168 AST_OSPTK_FOUND=no
30172 if test "${AST_OSPTK_FOUND}" = "yes"; then
30173 OSPTK_LIB="-losptk -lcrypto -lssl"
30174 OSPTK_HEADER_FOUND="1"
30175 if test "x${OSPTK_DIR}" != "x"; then
30176 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
30177 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
30178 saved_cppflags="${CPPFLAGS}"
30179 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
30180 if test "xosp/osp.h" != "x" ; then
30181 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
30182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30183 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30184 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30188 ac_res=`eval echo '${'$as_ac_Header'}'`
30189 { echo "$as_me:$LINENO: result: $ac_res" >&5
30190 echo "${ECHO_T}$ac_res" >&6; }
30191 else
30192 # Is the header compilable?
30193 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
30194 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
30195 cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h. */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30201 $ac_includes_default
30202 #include <${OSPTK_DIR}/include/osp/osp.h>
30203 _ACEOF
30204 rm -f conftest.$ac_objext
30205 if { (ac_try="$ac_compile"
30206 case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30209 esac
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_compile") 2>conftest.er1
30212 ac_status=$?
30213 grep -v '^ *+' conftest.er1 >conftest.err
30214 rm -f conftest.er1
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } && {
30218 test -z "$ac_c_werror_flag" ||
30219 test ! -s conftest.err
30220 } && test -s conftest.$ac_objext; then
30221 ac_header_compiler=yes
30222 else
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30226 ac_header_compiler=no
30229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30231 echo "${ECHO_T}$ac_header_compiler" >&6; }
30233 # Is the header present?
30234 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
30235 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
30236 cat >conftest.$ac_ext <<_ACEOF
30237 /* confdefs.h. */
30238 _ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h. */
30242 #include <${OSPTK_DIR}/include/osp/osp.h>
30243 _ACEOF
30244 if { (ac_try="$ac_cpp conftest.$ac_ext"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30251 ac_status=$?
30252 grep -v '^ *+' conftest.er1 >conftest.err
30253 rm -f conftest.er1
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } >/dev/null && {
30257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30259 }; then
30260 ac_header_preproc=yes
30261 else
30262 echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30265 ac_header_preproc=no
30268 rm -f conftest.err conftest.$ac_ext
30269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30270 echo "${ECHO_T}$ac_header_preproc" >&6; }
30272 # So? What about this header?
30273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30274 yes:no: )
30275 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30276 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30277 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
30278 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
30279 ac_header_preproc=yes
30281 no:yes:* )
30282 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
30283 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
30284 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
30285 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
30287 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30289 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
30291 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
30293 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
30294 ( cat <<\_ASBOX
30295 ## ------------------------------- ##
30296 ## Report this to www.asterisk.org ##
30297 ## ------------------------------- ##
30298 _ASBOX
30299 ) | sed "s/^/$as_me: WARNING: /" >&2
30301 esac
30302 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30303 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30306 else
30307 eval "$as_ac_Header=\$ac_header_preproc"
30309 ac_res=`eval echo '${'$as_ac_Header'}'`
30310 { echo "$as_me:$LINENO: result: $ac_res" >&5
30311 echo "${ECHO_T}$ac_res" >&6; }
30314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30315 OSPTK_HEADER_FOUND=1
30316 else
30317 OSPTK_HEADER_FOUND=0
30322 CPPFLAGS="${saved_cppflags}"
30323 else
30324 if test "xosp/osp.h" != "x" ; then
30325 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30326 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30327 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30328 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30332 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30333 else
30334 # Is the header compilable?
30335 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
30336 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
30337 cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h. */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 $ac_includes_default
30344 #include <osp/osp.h>
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30354 ac_status=$?
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_c_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_header_compiler=yes
30364 else
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_header_compiler=no
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30373 echo "${ECHO_T}$ac_header_compiler" >&6; }
30375 # Is the header present?
30376 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
30377 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30379 /* confdefs.h. */
30380 _ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 #include <osp/osp.h>
30385 _ACEOF
30386 if { (ac_try="$ac_cpp conftest.$ac_ext"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30393 ac_status=$?
30394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } >/dev/null && {
30399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 }; then
30402 ac_header_preproc=yes
30403 else
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_header_preproc=no
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30414 # So? What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416 yes:no: )
30417 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30418 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
30420 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
30421 ac_header_preproc=yes
30423 no:yes:* )
30424 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
30425 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
30427 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
30429 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30431 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
30433 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
30435 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
30436 ( cat <<\_ASBOX
30437 ## ------------------------------- ##
30438 ## Report this to www.asterisk.org ##
30439 ## ------------------------------- ##
30440 _ASBOX
30441 ) | sed "s/^/$as_me: WARNING: /" >&2
30443 esac
30444 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30445 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30446 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30447 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449 ac_cv_header_osp_osp_h=$ac_header_preproc
30451 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30452 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30455 if test $ac_cv_header_osp_osp_h = yes; then
30456 OSPTK_HEADER_FOUND=1
30457 else
30458 OSPTK_HEADER_FOUND=0
30464 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
30465 if test -n "${OSPTK_MANDATORY}" ;
30466 then
30467 { echo "$as_me:$LINENO: ***" >&5
30468 echo "$as_me: ***" >&6;}
30469 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
30470 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
30471 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
30472 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
30473 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30474 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30475 exit 1
30477 OSPTK_LIB=""
30478 OSPTK_INCLUDE=""
30479 PBX_OSPTK=0
30480 else
30481 PBX_OSPTK=1
30483 cat >>confdefs.h <<_ACEOF
30484 #define HAVE_OSPTK 1
30485 _ACEOF
30488 elif test -n "${OSPTK_MANDATORY}";
30489 then
30490 { echo "$as_me:$LINENO: ***" >&5
30491 echo "$as_me: ***" >&6;}
30492 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
30493 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
30494 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30495 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30497 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30498 exit 1
30505 if test "${USE_FREETDS}" != "no"; then
30506 pbxlibdir=""
30507 if test "x${FREETDS_DIR}" != "x"; then
30508 if test -d ${FREETDS_DIR}/lib; then
30509 pbxlibdir="-L${FREETDS_DIR}/lib"
30510 else
30511 pbxlibdir="-L${FREETDS_DIR}"
30514 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
30515 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
30516 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30517 echo $ECHO_N "(cached) $ECHO_C" >&6
30518 else
30519 ac_check_lib_save_LIBS=$LIBS
30520 LIBS="-ltds ${pbxlibdir} $LIBS"
30521 cat >conftest.$ac_ext <<_ACEOF
30522 /* confdefs.h. */
30523 _ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h. */
30528 /* Override any GCC internal prototype to avoid an error.
30529 Use char because int might match the return type of a GCC
30530 builtin and then its argument prototype would still apply. */
30531 #ifdef __cplusplus
30532 extern "C"
30533 #endif
30534 char tds_version ();
30536 main ()
30538 return tds_version ();
30540 return 0;
30542 _ACEOF
30543 rm -f conftest.$ac_objext conftest$ac_exeext
30544 if { (ac_try="$ac_link"
30545 case "(($ac_try" in
30546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547 *) ac_try_echo=$ac_try;;
30548 esac
30549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30550 (eval "$ac_link") 2>conftest.er1
30551 ac_status=$?
30552 grep -v '^ *+' conftest.er1 >conftest.err
30553 rm -f conftest.er1
30554 cat conftest.err >&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); } && {
30557 test -z "$ac_c_werror_flag" ||
30558 test ! -s conftest.err
30559 } && test -s conftest$ac_exeext &&
30560 $as_test_x conftest$ac_exeext; then
30561 ac_cv_lib_tds_tds_version=yes
30562 else
30563 echo "$as_me: failed program was:" >&5
30564 sed 's/^/| /' conftest.$ac_ext >&5
30566 ac_cv_lib_tds_tds_version=no
30569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30570 conftest$ac_exeext conftest.$ac_ext
30571 LIBS=$ac_check_lib_save_LIBS
30573 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
30574 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
30575 if test $ac_cv_lib_tds_tds_version = yes; then
30576 AST_FREETDS_FOUND=yes
30577 else
30578 AST_FREETDS_FOUND=no
30582 if test "${AST_FREETDS_FOUND}" = "yes"; then
30583 FREETDS_LIB="-ltds "
30584 FREETDS_HEADER_FOUND="1"
30585 if test "x${FREETDS_DIR}" != "x"; then
30586 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
30587 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
30588 saved_cppflags="${CPPFLAGS}"
30589 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
30590 if test "xtds.h" != "x" ; then
30591 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
30592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30593 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
30594 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
30595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 ac_res=`eval echo '${'$as_ac_Header'}'`
30599 { echo "$as_me:$LINENO: result: $ac_res" >&5
30600 echo "${ECHO_T}$ac_res" >&6; }
30601 else
30602 # Is the header compilable?
30603 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
30604 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
30605 cat >conftest.$ac_ext <<_ACEOF
30606 /* confdefs.h. */
30607 _ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h. */
30611 $ac_includes_default
30612 #include <${FREETDS_DIR}/include/tds.h>
30613 _ACEOF
30614 rm -f conftest.$ac_objext
30615 if { (ac_try="$ac_compile"
30616 case "(($ac_try" in
30617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618 *) ac_try_echo=$ac_try;;
30619 esac
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621 (eval "$ac_compile") 2>conftest.er1
30622 ac_status=$?
30623 grep -v '^ *+' conftest.er1 >conftest.err
30624 rm -f conftest.er1
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } && {
30628 test -z "$ac_c_werror_flag" ||
30629 test ! -s conftest.err
30630 } && test -s conftest.$ac_objext; then
30631 ac_header_compiler=yes
30632 else
30633 echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30636 ac_header_compiler=no
30639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30641 echo "${ECHO_T}$ac_header_compiler" >&6; }
30643 # Is the header present?
30644 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
30645 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
30646 cat >conftest.$ac_ext <<_ACEOF
30647 /* confdefs.h. */
30648 _ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h. */
30652 #include <${FREETDS_DIR}/include/tds.h>
30653 _ACEOF
30654 if { (ac_try="$ac_cpp conftest.$ac_ext"
30655 case "(($ac_try" in
30656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657 *) ac_try_echo=$ac_try;;
30658 esac
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30661 ac_status=$?
30662 grep -v '^ *+' conftest.er1 >conftest.err
30663 rm -f conftest.er1
30664 cat conftest.err >&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } >/dev/null && {
30667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30668 test ! -s conftest.err
30669 }; then
30670 ac_header_preproc=yes
30671 else
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 ac_header_preproc=no
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30682 # So? What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30684 yes:no: )
30685 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
30686 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
30688 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
30689 ac_header_preproc=yes
30691 no:yes:* )
30692 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
30693 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
30695 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
30697 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
30699 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
30701 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
30703 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
30704 ( cat <<\_ASBOX
30705 ## ------------------------------- ##
30706 ## Report this to www.asterisk.org ##
30707 ## ------------------------------- ##
30708 _ASBOX
30709 ) | sed "s/^/$as_me: WARNING: /" >&2
30711 esac
30712 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
30713 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716 else
30717 eval "$as_ac_Header=\$ac_header_preproc"
30719 ac_res=`eval echo '${'$as_ac_Header'}'`
30720 { echo "$as_me:$LINENO: result: $ac_res" >&5
30721 echo "${ECHO_T}$ac_res" >&6; }
30724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725 FREETDS_HEADER_FOUND=1
30726 else
30727 FREETDS_HEADER_FOUND=0
30732 CPPFLAGS="${saved_cppflags}"
30733 else
30734 if test "xtds.h" != "x" ; then
30735 if test "${ac_cv_header_tds_h+set}" = set; then
30736 { echo "$as_me:$LINENO: checking for tds.h" >&5
30737 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
30738 if test "${ac_cv_header_tds_h+set}" = set; then
30739 echo $ECHO_N "(cached) $ECHO_C" >&6
30741 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
30742 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30743 else
30744 # Is the header compilable?
30745 { echo "$as_me:$LINENO: checking tds.h usability" >&5
30746 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
30747 cat >conftest.$ac_ext <<_ACEOF
30748 /* confdefs.h. */
30749 _ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 $ac_includes_default
30754 #include <tds.h>
30755 _ACEOF
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30761 esac
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
30764 ac_status=$?
30765 grep -v '^ *+' conftest.er1 >conftest.err
30766 rm -f conftest.er1
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); } && {
30770 test -z "$ac_c_werror_flag" ||
30771 test ! -s conftest.err
30772 } && test -s conftest.$ac_objext; then
30773 ac_header_compiler=yes
30774 else
30775 echo "$as_me: failed program was:" >&5
30776 sed 's/^/| /' conftest.$ac_ext >&5
30778 ac_header_compiler=no
30781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30783 echo "${ECHO_T}$ac_header_compiler" >&6; }
30785 # Is the header present?
30786 { echo "$as_me:$LINENO: checking tds.h presence" >&5
30787 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
30788 cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h. */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30794 #include <tds.h>
30795 _ACEOF
30796 if { (ac_try="$ac_cpp conftest.$ac_ext"
30797 case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30800 esac
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30803 ac_status=$?
30804 grep -v '^ *+' conftest.er1 >conftest.err
30805 rm -f conftest.er1
30806 cat conftest.err >&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } >/dev/null && {
30809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30810 test ! -s conftest.err
30811 }; then
30812 ac_header_preproc=yes
30813 else
30814 echo "$as_me: failed program was:" >&5
30815 sed 's/^/| /' conftest.$ac_ext >&5
30817 ac_header_preproc=no
30820 rm -f conftest.err conftest.$ac_ext
30821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30822 echo "${ECHO_T}$ac_header_preproc" >&6; }
30824 # So? What about this header?
30825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30826 yes:no: )
30827 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
30828 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
30830 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
30831 ac_header_preproc=yes
30833 no:yes:* )
30834 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
30835 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
30836 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
30837 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
30838 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
30839 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
30840 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
30841 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
30842 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
30843 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
30844 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
30845 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
30846 ( cat <<\_ASBOX
30847 ## ------------------------------- ##
30848 ## Report this to www.asterisk.org ##
30849 ## ------------------------------- ##
30850 _ASBOX
30851 ) | sed "s/^/$as_me: WARNING: /" >&2
30853 esac
30854 { echo "$as_me:$LINENO: checking for tds.h" >&5
30855 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
30856 if test "${ac_cv_header_tds_h+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859 ac_cv_header_tds_h=$ac_header_preproc
30861 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
30862 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30865 if test $ac_cv_header_tds_h = yes; then
30866 FREETDS_HEADER_FOUND=1
30867 else
30868 FREETDS_HEADER_FOUND=0
30874 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
30875 if test -n "${FREETDS_MANDATORY}" ;
30876 then
30877 { echo "$as_me:$LINENO: ***" >&5
30878 echo "$as_me: ***" >&6;}
30879 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
30880 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
30881 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
30882 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
30883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
30884 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
30885 exit 1
30887 FREETDS_LIB=""
30888 FREETDS_INCLUDE=""
30889 PBX_FREETDS=0
30890 else
30891 PBX_FREETDS=1
30893 cat >>confdefs.h <<_ACEOF
30894 #define HAVE_FREETDS 1
30895 _ACEOF
30898 elif test -n "${FREETDS_MANDATORY}";
30899 then
30900 { echo "$as_me:$LINENO: ***" >&5
30901 echo "$as_me: ***" >&6;}
30902 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
30903 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
30904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30906 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
30907 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
30908 exit 1
30912 if test "${PBX_FREETDS}" != "0";
30913 then
30914 if test "${FREETDS_DIR}x" = "x";
30915 then
30916 for tds_dir in /usr /usr/local;
30918 if test -f "${tds_dir}/include/tdsver.h";
30919 then
30920 FREETDS_DIR="${tds_dir}"
30922 done
30924 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
30925 *0.64*)
30926 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
30928 *0.63*)
30929 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
30931 *0.62*)
30932 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
30935 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
30937 esac
30941 if test "${USE_TERMCAP}" != "no"; then
30942 pbxlibdir=""
30943 if test "x${TERMCAP_DIR}" != "x"; then
30944 if test -d ${TERMCAP_DIR}/lib; then
30945 pbxlibdir="-L${TERMCAP_DIR}/lib"
30946 else
30947 pbxlibdir="-L${TERMCAP_DIR}"
30950 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30951 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
30952 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30953 echo $ECHO_N "(cached) $ECHO_C" >&6
30954 else
30955 ac_check_lib_save_LIBS=$LIBS
30956 LIBS="-ltermcap ${pbxlibdir} $LIBS"
30957 cat >conftest.$ac_ext <<_ACEOF
30958 /* confdefs.h. */
30959 _ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h. */
30964 /* Override any GCC internal prototype to avoid an error.
30965 Use char because int might match the return type of a GCC
30966 builtin and then its argument prototype would still apply. */
30967 #ifdef __cplusplus
30968 extern "C"
30969 #endif
30970 char tgetent ();
30972 main ()
30974 return tgetent ();
30976 return 0;
30978 _ACEOF
30979 rm -f conftest.$ac_objext conftest$ac_exeext
30980 if { (ac_try="$ac_link"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_link") 2>conftest.er1
30987 ac_status=$?
30988 grep -v '^ *+' conftest.er1 >conftest.err
30989 rm -f conftest.er1
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest$ac_exeext &&
30996 $as_test_x conftest$ac_exeext; then
30997 ac_cv_lib_termcap_tgetent=yes
30998 else
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 ac_cv_lib_termcap_tgetent=no
31005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31006 conftest$ac_exeext conftest.$ac_ext
31007 LIBS=$ac_check_lib_save_LIBS
31009 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31010 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31011 if test $ac_cv_lib_termcap_tgetent = yes; then
31012 AST_TERMCAP_FOUND=yes
31013 else
31014 AST_TERMCAP_FOUND=no
31018 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31019 TERMCAP_LIB="-ltermcap "
31020 TERMCAP_HEADER_FOUND="1"
31021 if test "x${TERMCAP_DIR}" != "x"; then
31022 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31023 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
31024 saved_cppflags="${CPPFLAGS}"
31025 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31026 if test "x" != "x" ; then
31027 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
31028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31029 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31030 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31034 ac_res=`eval echo '${'$as_ac_Header'}'`
31035 { echo "$as_me:$LINENO: result: $ac_res" >&5
31036 echo "${ECHO_T}$ac_res" >&6; }
31037 else
31038 # Is the header compilable?
31039 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31040 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31041 cat >conftest.$ac_ext <<_ACEOF
31042 /* confdefs.h. */
31043 _ACEOF
31044 cat confdefs.h >>conftest.$ac_ext
31045 cat >>conftest.$ac_ext <<_ACEOF
31046 /* end confdefs.h. */
31047 $ac_includes_default
31048 #include <${TERMCAP_DIR}/include/>
31049 _ACEOF
31050 rm -f conftest.$ac_objext
31051 if { (ac_try="$ac_compile"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31055 esac
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_compile") 2>conftest.er1
31058 ac_status=$?
31059 grep -v '^ *+' conftest.er1 >conftest.err
31060 rm -f conftest.er1
31061 cat conftest.err >&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } && {
31064 test -z "$ac_c_werror_flag" ||
31065 test ! -s conftest.err
31066 } && test -s conftest.$ac_objext; then
31067 ac_header_compiler=yes
31068 else
31069 echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31072 ac_header_compiler=no
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31077 echo "${ECHO_T}$ac_header_compiler" >&6; }
31079 # Is the header present?
31080 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31081 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h. */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 #include <${TERMCAP_DIR}/include/>
31089 _ACEOF
31090 if { (ac_try="$ac_cpp conftest.$ac_ext"
31091 case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31094 esac
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31097 ac_status=$?
31098 grep -v '^ *+' conftest.er1 >conftest.err
31099 rm -f conftest.er1
31100 cat conftest.err >&5
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); } >/dev/null && {
31103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31104 test ! -s conftest.err
31105 }; then
31106 ac_header_preproc=yes
31107 else
31108 echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31111 ac_header_preproc=no
31114 rm -f conftest.err conftest.$ac_ext
31115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31116 echo "${ECHO_T}$ac_header_preproc" >&6; }
31118 # So? What about this header?
31119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31120 yes:no: )
31121 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31122 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31123 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31124 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31125 ac_header_preproc=yes
31127 no:yes:* )
31128 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31129 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31130 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31131 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31132 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31133 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31134 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31135 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31136 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31137 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31138 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31139 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31140 ( cat <<\_ASBOX
31141 ## ------------------------------- ##
31142 ## Report this to www.asterisk.org ##
31143 ## ------------------------------- ##
31144 _ASBOX
31145 ) | sed "s/^/$as_me: WARNING: /" >&2
31147 esac
31148 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31149 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31151 echo $ECHO_N "(cached) $ECHO_C" >&6
31152 else
31153 eval "$as_ac_Header=\$ac_header_preproc"
31155 ac_res=`eval echo '${'$as_ac_Header'}'`
31156 { echo "$as_me:$LINENO: result: $ac_res" >&5
31157 echo "${ECHO_T}$ac_res" >&6; }
31160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31161 TERMCAP_HEADER_FOUND=1
31162 else
31163 TERMCAP_HEADER_FOUND=0
31168 CPPFLAGS="${saved_cppflags}"
31169 else
31170 if test "x" != "x" ; then
31171 if test "${ac_cv_header_+set}" = set; then
31172 { echo "$as_me:$LINENO: checking for " >&5
31173 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31174 if test "${ac_cv_header_+set}" = set; then
31175 echo $ECHO_N "(cached) $ECHO_C" >&6
31177 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31178 echo "${ECHO_T}$ac_cv_header_" >&6; }
31179 else
31180 # Is the header compilable?
31181 { echo "$as_me:$LINENO: checking usability" >&5
31182 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31183 cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h. */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31189 $ac_includes_default
31190 #include <>
31191 _ACEOF
31192 rm -f conftest.$ac_objext
31193 if { (ac_try="$ac_compile"
31194 case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_compile") 2>conftest.er1
31200 ac_status=$?
31201 grep -v '^ *+' conftest.er1 >conftest.err
31202 rm -f conftest.er1
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } && {
31206 test -z "$ac_c_werror_flag" ||
31207 test ! -s conftest.err
31208 } && test -s conftest.$ac_objext; then
31209 ac_header_compiler=yes
31210 else
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 ac_header_compiler=no
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31219 echo "${ECHO_T}$ac_header_compiler" >&6; }
31221 # Is the header present?
31222 { echo "$as_me:$LINENO: checking presence" >&5
31223 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31224 cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h. */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31230 #include <>
31231 _ACEOF
31232 if { (ac_try="$ac_cpp conftest.$ac_ext"
31233 case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236 esac
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31239 ac_status=$?
31240 grep -v '^ *+' conftest.er1 >conftest.err
31241 rm -f conftest.er1
31242 cat conftest.err >&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); } >/dev/null && {
31245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31246 test ! -s conftest.err
31247 }; then
31248 ac_header_preproc=yes
31249 else
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31253 ac_header_preproc=no
31256 rm -f conftest.err conftest.$ac_ext
31257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31258 echo "${ECHO_T}$ac_header_preproc" >&6; }
31260 # So? What about this header?
31261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31262 yes:no: )
31263 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31264 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31265 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31266 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31267 ac_header_preproc=yes
31269 no:yes:* )
31270 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31271 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31272 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31273 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31274 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31275 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31276 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31277 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31278 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31279 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31280 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31281 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31282 ( cat <<\_ASBOX
31283 ## ------------------------------- ##
31284 ## Report this to www.asterisk.org ##
31285 ## ------------------------------- ##
31286 _ASBOX
31287 ) | sed "s/^/$as_me: WARNING: /" >&2
31289 esac
31290 { echo "$as_me:$LINENO: checking for " >&5
31291 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31292 if test "${ac_cv_header_+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31295 ac_cv_header_=$ac_header_preproc
31297 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31298 echo "${ECHO_T}$ac_cv_header_" >&6; }
31301 if test $ac_cv_header_ = yes; then
31302 TERMCAP_HEADER_FOUND=1
31303 else
31304 TERMCAP_HEADER_FOUND=0
31310 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
31311 if test -n "${TERMCAP_MANDATORY}" ;
31312 then
31313 { echo "$as_me:$LINENO: ***" >&5
31314 echo "$as_me: ***" >&6;}
31315 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
31316 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
31317 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
31318 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
31319 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31320 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31321 exit 1
31323 TERMCAP_LIB=""
31324 TERMCAP_INCLUDE=""
31325 PBX_TERMCAP=0
31326 else
31327 PBX_TERMCAP=1
31329 cat >>confdefs.h <<_ACEOF
31330 #define HAVE_TERMCAP 1
31331 _ACEOF
31334 elif test -n "${TERMCAP_MANDATORY}";
31335 then
31336 { echo "$as_me:$LINENO: ***" >&5
31337 echo "$as_me: ***" >&6;}
31338 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
31339 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
31340 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31341 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31342 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31343 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31344 exit 1
31350 if test "${USE_TINFO}" != "no"; then
31351 pbxlibdir=""
31352 if test "x${TINFO_DIR}" != "x"; then
31353 if test -d ${TINFO_DIR}/lib; then
31354 pbxlibdir="-L${TINFO_DIR}/lib"
31355 else
31356 pbxlibdir="-L${TINFO_DIR}"
31359 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31360 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31361 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31363 else
31364 ac_check_lib_save_LIBS=$LIBS
31365 LIBS="-ltinfo ${pbxlibdir} $LIBS"
31366 cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h. */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31373 /* Override any GCC internal prototype to avoid an error.
31374 Use char because int might match the return type of a GCC
31375 builtin and then its argument prototype would still apply. */
31376 #ifdef __cplusplus
31377 extern "C"
31378 #endif
31379 char tgetent ();
31381 main ()
31383 return tgetent ();
31385 return 0;
31387 _ACEOF
31388 rm -f conftest.$ac_objext conftest$ac_exeext
31389 if { (ac_try="$ac_link"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393 esac
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_link") 2>conftest.er1
31396 ac_status=$?
31397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } && {
31402 test -z "$ac_c_werror_flag" ||
31403 test ! -s conftest.err
31404 } && test -s conftest$ac_exeext &&
31405 $as_test_x conftest$ac_exeext; then
31406 ac_cv_lib_tinfo_tgetent=yes
31407 else
31408 echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31411 ac_cv_lib_tinfo_tgetent=no
31414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31415 conftest$ac_exeext conftest.$ac_ext
31416 LIBS=$ac_check_lib_save_LIBS
31418 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31419 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31420 if test $ac_cv_lib_tinfo_tgetent = yes; then
31421 AST_TINFO_FOUND=yes
31422 else
31423 AST_TINFO_FOUND=no
31427 if test "${AST_TINFO_FOUND}" = "yes"; then
31428 TINFO_LIB="-ltinfo "
31429 TINFO_HEADER_FOUND="1"
31430 if test "x${TINFO_DIR}" != "x"; then
31431 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31432 TINFO_INCLUDE="-I${TINFO_DIR}/include"
31433 saved_cppflags="${CPPFLAGS}"
31434 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
31435 if test "x" != "x" ; then
31436 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
31437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31438 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31439 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31443 ac_res=`eval echo '${'$as_ac_Header'}'`
31444 { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 else
31447 # Is the header compilable?
31448 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
31449 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
31450 cat >conftest.$ac_ext <<_ACEOF
31451 /* confdefs.h. */
31452 _ACEOF
31453 cat confdefs.h >>conftest.$ac_ext
31454 cat >>conftest.$ac_ext <<_ACEOF
31455 /* end confdefs.h. */
31456 $ac_includes_default
31457 #include <${TINFO_DIR}/include/>
31458 _ACEOF
31459 rm -f conftest.$ac_objext
31460 if { (ac_try="$ac_compile"
31461 case "(($ac_try" in
31462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463 *) ac_try_echo=$ac_try;;
31464 esac
31465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31466 (eval "$ac_compile") 2>conftest.er1
31467 ac_status=$?
31468 grep -v '^ *+' conftest.er1 >conftest.err
31469 rm -f conftest.er1
31470 cat conftest.err >&5
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); } && {
31473 test -z "$ac_c_werror_flag" ||
31474 test ! -s conftest.err
31475 } && test -s conftest.$ac_objext; then
31476 ac_header_compiler=yes
31477 else
31478 echo "$as_me: failed program was:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31481 ac_header_compiler=no
31484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31486 echo "${ECHO_T}$ac_header_compiler" >&6; }
31488 # Is the header present?
31489 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
31490 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
31491 cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h. */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 #include <${TINFO_DIR}/include/>
31498 _ACEOF
31499 if { (ac_try="$ac_cpp conftest.$ac_ext"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31506 ac_status=$?
31507 grep -v '^ *+' conftest.er1 >conftest.err
31508 rm -f conftest.er1
31509 cat conftest.err >&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } >/dev/null && {
31512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31513 test ! -s conftest.err
31514 }; then
31515 ac_header_preproc=yes
31516 else
31517 echo "$as_me: failed program was:" >&5
31518 sed 's/^/| /' conftest.$ac_ext >&5
31520 ac_header_preproc=no
31523 rm -f conftest.err conftest.$ac_ext
31524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31525 echo "${ECHO_T}$ac_header_preproc" >&6; }
31527 # So? What about this header?
31528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31529 yes:no: )
31530 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31531 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31532 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
31533 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
31534 ac_header_preproc=yes
31536 no:yes:* )
31537 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
31538 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
31539 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
31540 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
31541 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
31542 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
31543 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31544 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31545 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
31546 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31547 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
31548 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31549 ( cat <<\_ASBOX
31550 ## ------------------------------- ##
31551 ## Report this to www.asterisk.org ##
31552 ## ------------------------------- ##
31553 _ASBOX
31554 ) | sed "s/^/$as_me: WARNING: /" >&2
31556 esac
31557 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31558 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31561 else
31562 eval "$as_ac_Header=\$ac_header_preproc"
31564 ac_res=`eval echo '${'$as_ac_Header'}'`
31565 { echo "$as_me:$LINENO: result: $ac_res" >&5
31566 echo "${ECHO_T}$ac_res" >&6; }
31569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31570 TINFO_HEADER_FOUND=1
31571 else
31572 TINFO_HEADER_FOUND=0
31577 CPPFLAGS="${saved_cppflags}"
31578 else
31579 if test "x" != "x" ; then
31580 if test "${ac_cv_header_+set}" = set; then
31581 { echo "$as_me:$LINENO: checking for " >&5
31582 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31583 if test "${ac_cv_header_+set}" = set; then
31584 echo $ECHO_N "(cached) $ECHO_C" >&6
31586 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31587 echo "${ECHO_T}$ac_cv_header_" >&6; }
31588 else
31589 # Is the header compilable?
31590 { echo "$as_me:$LINENO: checking usability" >&5
31591 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31592 cat >conftest.$ac_ext <<_ACEOF
31593 /* confdefs.h. */
31594 _ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598 $ac_includes_default
31599 #include <>
31600 _ACEOF
31601 rm -f conftest.$ac_objext
31602 if { (ac_try="$ac_compile"
31603 case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_compile") 2>conftest.er1
31609 ac_status=$?
31610 grep -v '^ *+' conftest.er1 >conftest.err
31611 rm -f conftest.er1
31612 cat conftest.err >&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } && {
31615 test -z "$ac_c_werror_flag" ||
31616 test ! -s conftest.err
31617 } && test -s conftest.$ac_objext; then
31618 ac_header_compiler=yes
31619 else
31620 echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31623 ac_header_compiler=no
31626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31628 echo "${ECHO_T}$ac_header_compiler" >&6; }
31630 # Is the header present?
31631 { echo "$as_me:$LINENO: checking presence" >&5
31632 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31633 cat >conftest.$ac_ext <<_ACEOF
31634 /* confdefs.h. */
31635 _ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31639 #include <>
31640 _ACEOF
31641 if { (ac_try="$ac_cpp conftest.$ac_ext"
31642 case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31645 esac
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } >/dev/null && {
31654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31655 test ! -s conftest.err
31656 }; then
31657 ac_header_preproc=yes
31658 else
31659 echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31662 ac_header_preproc=no
31665 rm -f conftest.err conftest.$ac_ext
31666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31667 echo "${ECHO_T}$ac_header_preproc" >&6; }
31669 # So? What about this header?
31670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31671 yes:no: )
31672 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31673 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31674 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31675 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31676 ac_header_preproc=yes
31678 no:yes:* )
31679 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31680 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31681 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31682 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31683 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31684 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31685 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31686 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31687 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31688 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31689 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31690 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31691 ( cat <<\_ASBOX
31692 ## ------------------------------- ##
31693 ## Report this to www.asterisk.org ##
31694 ## ------------------------------- ##
31695 _ASBOX
31696 ) | sed "s/^/$as_me: WARNING: /" >&2
31698 esac
31699 { echo "$as_me:$LINENO: checking for " >&5
31700 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31701 if test "${ac_cv_header_+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
31703 else
31704 ac_cv_header_=$ac_header_preproc
31706 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31707 echo "${ECHO_T}$ac_cv_header_" >&6; }
31710 if test $ac_cv_header_ = yes; then
31711 TINFO_HEADER_FOUND=1
31712 else
31713 TINFO_HEADER_FOUND=0
31719 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
31720 if test -n "${TINFO_MANDATORY}" ;
31721 then
31722 { echo "$as_me:$LINENO: ***" >&5
31723 echo "$as_me: ***" >&6;}
31724 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
31725 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
31726 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
31727 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
31728 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
31729 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
31730 exit 1
31732 TINFO_LIB=""
31733 TINFO_INCLUDE=""
31734 PBX_TINFO=0
31735 else
31736 PBX_TINFO=1
31738 cat >>confdefs.h <<_ACEOF
31739 #define HAVE_TINFO 1
31740 _ACEOF
31743 elif test -n "${TINFO_MANDATORY}";
31744 then
31745 { echo "$as_me:$LINENO: ***" >&5
31746 echo "$as_me: ***" >&6;}
31747 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
31748 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
31749 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31750 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31751 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
31752 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
31753 exit 1
31758 if test "${host_os}" != "linux-gnu" ; then
31759 tonezone_extra="-lm"
31763 if test "${USE_TONEZONE}" != "no"; then
31764 pbxlibdir=""
31765 if test "x${TONEZONE_DIR}" != "x"; then
31766 if test -d ${TONEZONE_DIR}/lib; then
31767 pbxlibdir="-L${TONEZONE_DIR}/lib"
31768 else
31769 pbxlibdir="-L${TONEZONE_DIR}"
31772 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
31773 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
31774 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
31775 echo $ECHO_N "(cached) $ECHO_C" >&6
31776 else
31777 ac_check_lib_save_LIBS=$LIBS
31778 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
31779 cat >conftest.$ac_ext <<_ACEOF
31780 /* confdefs.h. */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31786 /* Override any GCC internal prototype to avoid an error.
31787 Use char because int might match the return type of a GCC
31788 builtin and then its argument prototype would still apply. */
31789 #ifdef __cplusplus
31790 extern "C"
31791 #endif
31792 char tone_zone_find ();
31794 main ()
31796 return tone_zone_find ();
31798 return 0;
31800 _ACEOF
31801 rm -f conftest.$ac_objext conftest$ac_exeext
31802 if { (ac_try="$ac_link"
31803 case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31806 esac
31807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_link") 2>conftest.er1
31809 ac_status=$?
31810 grep -v '^ *+' conftest.er1 >conftest.err
31811 rm -f conftest.er1
31812 cat conftest.err >&5
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } && {
31815 test -z "$ac_c_werror_flag" ||
31816 test ! -s conftest.err
31817 } && test -s conftest$ac_exeext &&
31818 $as_test_x conftest$ac_exeext; then
31819 ac_cv_lib_tonezone_tone_zone_find=yes
31820 else
31821 echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 ac_cv_lib_tonezone_tone_zone_find=no
31827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31828 conftest$ac_exeext conftest.$ac_ext
31829 LIBS=$ac_check_lib_save_LIBS
31831 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
31832 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
31833 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
31834 AST_TONEZONE_FOUND=yes
31835 else
31836 AST_TONEZONE_FOUND=no
31840 if test "${AST_TONEZONE_FOUND}" = "yes"; then
31841 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
31842 TONEZONE_HEADER_FOUND="1"
31843 if test "x${TONEZONE_DIR}" != "x"; then
31844 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
31845 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
31846 saved_cppflags="${CPPFLAGS}"
31847 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
31848 if test "xzaptel/tonezone.h" != "x" ; then
31849 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
31850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31851 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
31852 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
31853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31856 ac_res=`eval echo '${'$as_ac_Header'}'`
31857 { echo "$as_me:$LINENO: result: $ac_res" >&5
31858 echo "${ECHO_T}$ac_res" >&6; }
31859 else
31860 # Is the header compilable?
31861 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
31862 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
31863 cat >conftest.$ac_ext <<_ACEOF
31864 /* confdefs.h. */
31865 _ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31869 $ac_includes_default
31870 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31871 _ACEOF
31872 rm -f conftest.$ac_objext
31873 if { (ac_try="$ac_compile"
31874 case "(($ac_try" in
31875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31876 *) ac_try_echo=$ac_try;;
31877 esac
31878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31879 (eval "$ac_compile") 2>conftest.er1
31880 ac_status=$?
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } && {
31886 test -z "$ac_c_werror_flag" ||
31887 test ! -s conftest.err
31888 } && test -s conftest.$ac_objext; then
31889 ac_header_compiler=yes
31890 else
31891 echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31894 ac_header_compiler=no
31897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31899 echo "${ECHO_T}$ac_header_compiler" >&6; }
31901 # Is the header present?
31902 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
31903 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
31904 cat >conftest.$ac_ext <<_ACEOF
31905 /* confdefs.h. */
31906 _ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h. */
31910 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31911 _ACEOF
31912 if { (ac_try="$ac_cpp conftest.$ac_ext"
31913 case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31919 ac_status=$?
31920 grep -v '^ *+' conftest.er1 >conftest.err
31921 rm -f conftest.er1
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } >/dev/null && {
31925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31926 test ! -s conftest.err
31927 }; then
31928 ac_header_preproc=yes
31929 else
31930 echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31933 ac_header_preproc=no
31936 rm -f conftest.err conftest.$ac_ext
31937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31938 echo "${ECHO_T}$ac_header_preproc" >&6; }
31940 # So? What about this header?
31941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31942 yes:no: )
31943 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
31944 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31945 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
31946 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
31947 ac_header_preproc=yes
31949 no:yes:* )
31950 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
31951 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
31952 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
31953 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
31954 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
31955 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
31956 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
31957 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
31958 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
31959 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
31960 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
31961 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
31962 ( cat <<\_ASBOX
31963 ## ------------------------------- ##
31964 ## Report this to www.asterisk.org ##
31965 ## ------------------------------- ##
31966 _ASBOX
31967 ) | sed "s/^/$as_me: WARNING: /" >&2
31969 esac
31970 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
31971 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
31972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975 eval "$as_ac_Header=\$ac_header_preproc"
31977 ac_res=`eval echo '${'$as_ac_Header'}'`
31978 { echo "$as_me:$LINENO: result: $ac_res" >&5
31979 echo "${ECHO_T}$ac_res" >&6; }
31982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31983 TONEZONE_HEADER_FOUND=1
31984 else
31985 TONEZONE_HEADER_FOUND=0
31990 CPPFLAGS="${saved_cppflags}"
31991 else
31992 if test "xzaptel/tonezone.h" != "x" ; then
31993 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31994 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
31995 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
31996 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31999 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32000 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32001 else
32002 # Is the header compilable?
32003 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
32004 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
32005 cat >conftest.$ac_ext <<_ACEOF
32006 /* confdefs.h. */
32007 _ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 $ac_includes_default
32012 #include <zaptel/tonezone.h>
32013 _ACEOF
32014 rm -f conftest.$ac_objext
32015 if { (ac_try="$ac_compile"
32016 case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32019 esac
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_compile") 2>conftest.er1
32022 ac_status=$?
32023 grep -v '^ *+' conftest.er1 >conftest.err
32024 rm -f conftest.er1
32025 cat conftest.err >&5
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } && {
32028 test -z "$ac_c_werror_flag" ||
32029 test ! -s conftest.err
32030 } && test -s conftest.$ac_objext; then
32031 ac_header_compiler=yes
32032 else
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 ac_header_compiler=no
32039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32041 echo "${ECHO_T}$ac_header_compiler" >&6; }
32043 # Is the header present?
32044 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32045 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32046 cat >conftest.$ac_ext <<_ACEOF
32047 /* confdefs.h. */
32048 _ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h. */
32052 #include <zaptel/tonezone.h>
32053 _ACEOF
32054 if { (ac_try="$ac_cpp conftest.$ac_ext"
32055 case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32058 esac
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32061 ac_status=$?
32062 grep -v '^ *+' conftest.er1 >conftest.err
32063 rm -f conftest.er1
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); } >/dev/null && {
32067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32068 test ! -s conftest.err
32069 }; then
32070 ac_header_preproc=yes
32071 else
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ac_header_preproc=no
32078 rm -f conftest.err conftest.$ac_ext
32079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32080 echo "${ECHO_T}$ac_header_preproc" >&6; }
32082 # So? What about this header?
32083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32084 yes:no: )
32085 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32086 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32087 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32088 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32089 ac_header_preproc=yes
32091 no:yes:* )
32092 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32093 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32094 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32095 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32096 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32097 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32098 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32099 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32100 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32101 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32102 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32103 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32104 ( cat <<\_ASBOX
32105 ## ------------------------------- ##
32106 ## Report this to www.asterisk.org ##
32107 ## ------------------------------- ##
32108 _ASBOX
32109 ) | sed "s/^/$as_me: WARNING: /" >&2
32111 esac
32112 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32113 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32114 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32115 echo $ECHO_N "(cached) $ECHO_C" >&6
32116 else
32117 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32119 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32120 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32123 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32124 TONEZONE_HEADER_FOUND=1
32125 else
32126 TONEZONE_HEADER_FOUND=0
32132 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32133 if test -n "${TONEZONE_MANDATORY}" ;
32134 then
32135 { echo "$as_me:$LINENO: ***" >&5
32136 echo "$as_me: ***" >&6;}
32137 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32138 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32139 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32140 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32141 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32142 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32143 exit 1
32145 TONEZONE_LIB=""
32146 TONEZONE_INCLUDE=""
32147 PBX_TONEZONE=0
32148 else
32149 PBX_TONEZONE=1
32151 cat >>confdefs.h <<_ACEOF
32152 #define HAVE_TONEZONE 1
32153 _ACEOF
32156 elif test -n "${TONEZONE_MANDATORY}";
32157 then
32158 { echo "$as_me:$LINENO: ***" >&5
32159 echo "$as_me: ***" >&6;}
32160 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
32161 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
32162 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32163 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32164 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32165 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32166 exit 1
32172 if test "${USE_USB}" != "no"; then
32173 pbxlibdir=""
32174 if test "x${USB_DIR}" != "x"; then
32175 if test -d ${USB_DIR}/lib; then
32176 pbxlibdir="-L${USB_DIR}/lib"
32177 else
32178 pbxlibdir="-L${USB_DIR}"
32181 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
32182 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
32183 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186 ac_check_lib_save_LIBS=$LIBS
32187 LIBS="-lusb ${pbxlibdir} $LIBS"
32188 cat >conftest.$ac_ext <<_ACEOF
32189 /* confdefs.h. */
32190 _ACEOF
32191 cat confdefs.h >>conftest.$ac_ext
32192 cat >>conftest.$ac_ext <<_ACEOF
32193 /* end confdefs.h. */
32195 /* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32198 #ifdef __cplusplus
32199 extern "C"
32200 #endif
32201 char usb_init ();
32203 main ()
32205 return usb_init ();
32207 return 0;
32209 _ACEOF
32210 rm -f conftest.$ac_objext conftest$ac_exeext
32211 if { (ac_try="$ac_link"
32212 case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32215 esac
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_link") 2>conftest.er1
32218 ac_status=$?
32219 grep -v '^ *+' conftest.er1 >conftest.err
32220 rm -f conftest.er1
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } && {
32224 test -z "$ac_c_werror_flag" ||
32225 test ! -s conftest.err
32226 } && test -s conftest$ac_exeext &&
32227 $as_test_x conftest$ac_exeext; then
32228 ac_cv_lib_usb_usb_init=yes
32229 else
32230 echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32233 ac_cv_lib_usb_usb_init=no
32236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32237 conftest$ac_exeext conftest.$ac_ext
32238 LIBS=$ac_check_lib_save_LIBS
32240 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
32241 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32242 if test $ac_cv_lib_usb_usb_init = yes; then
32243 AST_USB_FOUND=yes
32244 else
32245 AST_USB_FOUND=no
32249 if test "${AST_USB_FOUND}" = "yes"; then
32250 USB_LIB="-lusb "
32251 USB_HEADER_FOUND="1"
32252 if test "x${USB_DIR}" != "x"; then
32253 USB_LIB="${pbxlibdir} ${USB_LIB}"
32254 USB_INCLUDE="-I${USB_DIR}/include"
32255 saved_cppflags="${CPPFLAGS}"
32256 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
32257 if test "xusb.h" != "x" ; then
32258 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
32259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32260 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32261 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32265 ac_res=`eval echo '${'$as_ac_Header'}'`
32266 { echo "$as_me:$LINENO: result: $ac_res" >&5
32267 echo "${ECHO_T}$ac_res" >&6; }
32268 else
32269 # Is the header compilable?
32270 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
32271 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
32272 cat >conftest.$ac_ext <<_ACEOF
32273 /* confdefs.h. */
32274 _ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32278 $ac_includes_default
32279 #include <${USB_DIR}/include/usb.h>
32280 _ACEOF
32281 rm -f conftest.$ac_objext
32282 if { (ac_try="$ac_compile"
32283 case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_compile") 2>conftest.er1
32289 ac_status=$?
32290 grep -v '^ *+' conftest.er1 >conftest.err
32291 rm -f conftest.er1
32292 cat conftest.err >&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } && {
32295 test -z "$ac_c_werror_flag" ||
32296 test ! -s conftest.err
32297 } && test -s conftest.$ac_objext; then
32298 ac_header_compiler=yes
32299 else
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ac_header_compiler=no
32306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32308 echo "${ECHO_T}$ac_header_compiler" >&6; }
32310 # Is the header present?
32311 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
32312 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
32313 cat >conftest.$ac_ext <<_ACEOF
32314 /* confdefs.h. */
32315 _ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h. */
32319 #include <${USB_DIR}/include/usb.h>
32320 _ACEOF
32321 if { (ac_try="$ac_cpp conftest.$ac_ext"
32322 case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32325 esac
32326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32328 ac_status=$?
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } >/dev/null && {
32334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32335 test ! -s conftest.err
32336 }; then
32337 ac_header_preproc=yes
32338 else
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_header_preproc=no
32345 rm -f conftest.err conftest.$ac_ext
32346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32347 echo "${ECHO_T}$ac_header_preproc" >&6; }
32349 # So? What about this header?
32350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32351 yes:no: )
32352 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32353 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32354 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
32355 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
32356 ac_header_preproc=yes
32358 no:yes:* )
32359 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
32360 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
32361 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
32362 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
32363 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
32364 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
32365 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
32366 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32367 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
32368 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
32369 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
32370 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
32371 ( cat <<\_ASBOX
32372 ## ------------------------------- ##
32373 ## Report this to www.asterisk.org ##
32374 ## ------------------------------- ##
32375 _ASBOX
32376 ) | sed "s/^/$as_me: WARNING: /" >&2
32378 esac
32379 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32380 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32382 echo $ECHO_N "(cached) $ECHO_C" >&6
32383 else
32384 eval "$as_ac_Header=\$ac_header_preproc"
32386 ac_res=`eval echo '${'$as_ac_Header'}'`
32387 { echo "$as_me:$LINENO: result: $ac_res" >&5
32388 echo "${ECHO_T}$ac_res" >&6; }
32391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32392 USB_HEADER_FOUND=1
32393 else
32394 USB_HEADER_FOUND=0
32399 CPPFLAGS="${saved_cppflags}"
32400 else
32401 if test "xusb.h" != "x" ; then
32402 if test "${ac_cv_header_usb_h+set}" = set; then
32403 { echo "$as_me:$LINENO: checking for usb.h" >&5
32404 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32405 if test "${ac_cv_header_usb_h+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32409 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32410 else
32411 # Is the header compilable?
32412 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32413 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32414 cat >conftest.$ac_ext <<_ACEOF
32415 /* confdefs.h. */
32416 _ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h. */
32420 $ac_includes_default
32421 #include <usb.h>
32422 _ACEOF
32423 rm -f conftest.$ac_objext
32424 if { (ac_try="$ac_compile"
32425 case "(($ac_try" in
32426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32427 *) ac_try_echo=$ac_try;;
32428 esac
32429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32430 (eval "$ac_compile") 2>conftest.er1
32431 ac_status=$?
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } && {
32437 test -z "$ac_c_werror_flag" ||
32438 test ! -s conftest.err
32439 } && test -s conftest.$ac_objext; then
32440 ac_header_compiler=yes
32441 else
32442 echo "$as_me: failed program was:" >&5
32443 sed 's/^/| /' conftest.$ac_ext >&5
32445 ac_header_compiler=no
32448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32450 echo "${ECHO_T}$ac_header_compiler" >&6; }
32452 # Is the header present?
32453 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32454 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32455 cat >conftest.$ac_ext <<_ACEOF
32456 /* confdefs.h. */
32457 _ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h. */
32461 #include <usb.h>
32462 _ACEOF
32463 if { (ac_try="$ac_cpp conftest.$ac_ext"
32464 case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32470 ac_status=$?
32471 grep -v '^ *+' conftest.er1 >conftest.err
32472 rm -f conftest.er1
32473 cat conftest.err >&5
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); } >/dev/null && {
32476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32477 test ! -s conftest.err
32478 }; then
32479 ac_header_preproc=yes
32480 else
32481 echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32484 ac_header_preproc=no
32487 rm -f conftest.err conftest.$ac_ext
32488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32489 echo "${ECHO_T}$ac_header_preproc" >&6; }
32491 # So? What about this header?
32492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32493 yes:no: )
32494 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32495 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32496 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32497 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32498 ac_header_preproc=yes
32500 no:yes:* )
32501 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32502 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32503 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32504 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32505 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32506 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32507 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32508 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32509 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32510 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32511 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32512 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32513 ( cat <<\_ASBOX
32514 ## ------------------------------- ##
32515 ## Report this to www.asterisk.org ##
32516 ## ------------------------------- ##
32517 _ASBOX
32518 ) | sed "s/^/$as_me: WARNING: /" >&2
32520 esac
32521 { echo "$as_me:$LINENO: checking for usb.h" >&5
32522 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32523 if test "${ac_cv_header_usb_h+set}" = set; then
32524 echo $ECHO_N "(cached) $ECHO_C" >&6
32525 else
32526 ac_cv_header_usb_h=$ac_header_preproc
32528 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32529 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32532 if test $ac_cv_header_usb_h = yes; then
32533 USB_HEADER_FOUND=1
32534 else
32535 USB_HEADER_FOUND=0
32541 if test "x${USB_HEADER_FOUND}" = "x0" ; then
32542 if test -n "${USB_MANDATORY}" ;
32543 then
32544 { echo "$as_me:$LINENO: ***" >&5
32545 echo "$as_me: ***" >&6;}
32546 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
32547 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
32548 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
32549 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
32550 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32551 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32552 exit 1
32554 USB_LIB=""
32555 USB_INCLUDE=""
32556 PBX_USB=0
32557 else
32558 PBX_USB=1
32560 cat >>confdefs.h <<_ACEOF
32561 #define HAVE_USB 1
32562 _ACEOF
32565 elif test -n "${USB_MANDATORY}";
32566 then
32567 { echo "$as_me:$LINENO: ***" >&5
32568 echo "$as_me: ***" >&6;}
32569 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
32570 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
32571 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32572 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32573 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32574 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32575 exit 1
32581 if test "${USE_VORBIS}" != "no"; then
32582 pbxlibdir=""
32583 if test "x${VORBIS_DIR}" != "x"; then
32584 if test -d ${VORBIS_DIR}/lib; then
32585 pbxlibdir="-L${VORBIS_DIR}/lib"
32586 else
32587 pbxlibdir="-L${VORBIS_DIR}"
32590 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
32591 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
32592 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
32593 echo $ECHO_N "(cached) $ECHO_C" >&6
32594 else
32595 ac_check_lib_save_LIBS=$LIBS
32596 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
32597 cat >conftest.$ac_ext <<_ACEOF
32598 /* confdefs.h. */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32604 /* Override any GCC internal prototype to avoid an error.
32605 Use char because int might match the return type of a GCC
32606 builtin and then its argument prototype would still apply. */
32607 #ifdef __cplusplus
32608 extern "C"
32609 #endif
32610 char vorbis_info_init ();
32612 main ()
32614 return vorbis_info_init ();
32616 return 0;
32618 _ACEOF
32619 rm -f conftest.$ac_objext conftest$ac_exeext
32620 if { (ac_try="$ac_link"
32621 case "(($ac_try" in
32622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623 *) ac_try_echo=$ac_try;;
32624 esac
32625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32626 (eval "$ac_link") 2>conftest.er1
32627 ac_status=$?
32628 grep -v '^ *+' conftest.er1 >conftest.err
32629 rm -f conftest.er1
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } && {
32633 test -z "$ac_c_werror_flag" ||
32634 test ! -s conftest.err
32635 } && test -s conftest$ac_exeext &&
32636 $as_test_x conftest$ac_exeext; then
32637 ac_cv_lib_vorbis_vorbis_info_init=yes
32638 else
32639 echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32642 ac_cv_lib_vorbis_vorbis_info_init=no
32645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32646 conftest$ac_exeext conftest.$ac_ext
32647 LIBS=$ac_check_lib_save_LIBS
32649 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
32650 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
32651 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
32652 AST_VORBIS_FOUND=yes
32653 else
32654 AST_VORBIS_FOUND=no
32658 if test "${AST_VORBIS_FOUND}" = "yes"; then
32659 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
32660 VORBIS_HEADER_FOUND="1"
32661 if test "x${VORBIS_DIR}" != "x"; then
32662 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
32663 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
32664 saved_cppflags="${CPPFLAGS}"
32665 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
32666 if test "xvorbis/codec.h" != "x" ; then
32667 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
32668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32669 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
32670 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
32671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32674 ac_res=`eval echo '${'$as_ac_Header'}'`
32675 { echo "$as_me:$LINENO: result: $ac_res" >&5
32676 echo "${ECHO_T}$ac_res" >&6; }
32677 else
32678 # Is the header compilable?
32679 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
32680 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
32681 cat >conftest.$ac_ext <<_ACEOF
32682 /* confdefs.h. */
32683 _ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h. */
32687 $ac_includes_default
32688 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32689 _ACEOF
32690 rm -f conftest.$ac_objext
32691 if { (ac_try="$ac_compile"
32692 case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_compile") 2>conftest.er1
32698 ac_status=$?
32699 grep -v '^ *+' conftest.er1 >conftest.err
32700 rm -f conftest.er1
32701 cat conftest.err >&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } && {
32704 test -z "$ac_c_werror_flag" ||
32705 test ! -s conftest.err
32706 } && test -s conftest.$ac_objext; then
32707 ac_header_compiler=yes
32708 else
32709 echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32712 ac_header_compiler=no
32715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32717 echo "${ECHO_T}$ac_header_compiler" >&6; }
32719 # Is the header present?
32720 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
32721 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
32722 cat >conftest.$ac_ext <<_ACEOF
32723 /* confdefs.h. */
32724 _ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h. */
32728 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32729 _ACEOF
32730 if { (ac_try="$ac_cpp conftest.$ac_ext"
32731 case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32737 ac_status=$?
32738 grep -v '^ *+' conftest.er1 >conftest.err
32739 rm -f conftest.er1
32740 cat conftest.err >&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); } >/dev/null && {
32743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32744 test ! -s conftest.err
32745 }; then
32746 ac_header_preproc=yes
32747 else
32748 echo "$as_me: failed program was:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32751 ac_header_preproc=no
32754 rm -f conftest.err conftest.$ac_ext
32755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32756 echo "${ECHO_T}$ac_header_preproc" >&6; }
32758 # So? What about this header?
32759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32760 yes:no: )
32761 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
32762 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32763 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
32764 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
32765 ac_header_preproc=yes
32767 no:yes:* )
32768 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
32769 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
32771 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
32772 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
32773 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
32774 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
32775 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
32776 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
32777 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
32778 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
32779 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
32780 ( cat <<\_ASBOX
32781 ## ------------------------------- ##
32782 ## Report this to www.asterisk.org ##
32783 ## ------------------------------- ##
32784 _ASBOX
32785 ) | sed "s/^/$as_me: WARNING: /" >&2
32787 esac
32788 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
32789 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
32790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793 eval "$as_ac_Header=\$ac_header_preproc"
32795 ac_res=`eval echo '${'$as_ac_Header'}'`
32796 { echo "$as_me:$LINENO: result: $ac_res" >&5
32797 echo "${ECHO_T}$ac_res" >&6; }
32800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32801 VORBIS_HEADER_FOUND=1
32802 else
32803 VORBIS_HEADER_FOUND=0
32808 CPPFLAGS="${saved_cppflags}"
32809 else
32810 if test "xvorbis/codec.h" != "x" ; then
32811 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32812 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
32813 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
32814 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32815 echo $ECHO_N "(cached) $ECHO_C" >&6
32817 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
32818 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32819 else
32820 # Is the header compilable?
32821 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
32822 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
32823 cat >conftest.$ac_ext <<_ACEOF
32824 /* confdefs.h. */
32825 _ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32829 $ac_includes_default
32830 #include <vorbis/codec.h>
32831 _ACEOF
32832 rm -f conftest.$ac_objext
32833 if { (ac_try="$ac_compile"
32834 case "(($ac_try" in
32835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836 *) ac_try_echo=$ac_try;;
32837 esac
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839 (eval "$ac_compile") 2>conftest.er1
32840 ac_status=$?
32841 grep -v '^ *+' conftest.er1 >conftest.err
32842 rm -f conftest.er1
32843 cat conftest.err >&5
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); } && {
32846 test -z "$ac_c_werror_flag" ||
32847 test ! -s conftest.err
32848 } && test -s conftest.$ac_objext; then
32849 ac_header_compiler=yes
32850 else
32851 echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32854 ac_header_compiler=no
32857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32859 echo "${ECHO_T}$ac_header_compiler" >&6; }
32861 # Is the header present?
32862 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
32863 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
32864 cat >conftest.$ac_ext <<_ACEOF
32865 /* confdefs.h. */
32866 _ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h. */
32870 #include <vorbis/codec.h>
32871 _ACEOF
32872 if { (ac_try="$ac_cpp conftest.$ac_ext"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32876 esac
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32879 ac_status=$?
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } >/dev/null && {
32885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32886 test ! -s conftest.err
32887 }; then
32888 ac_header_preproc=yes
32889 else
32890 echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32893 ac_header_preproc=no
32896 rm -f conftest.err conftest.$ac_ext
32897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32898 echo "${ECHO_T}$ac_header_preproc" >&6; }
32900 # So? What about this header?
32901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32902 yes:no: )
32903 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
32904 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32905 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
32906 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
32907 ac_header_preproc=yes
32909 no:yes:* )
32910 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
32911 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
32912 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
32913 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
32914 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
32915 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
32916 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
32917 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
32918 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
32919 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
32920 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
32921 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
32922 ( cat <<\_ASBOX
32923 ## ------------------------------- ##
32924 ## Report this to www.asterisk.org ##
32925 ## ------------------------------- ##
32926 _ASBOX
32927 ) | sed "s/^/$as_me: WARNING: /" >&2
32929 esac
32930 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
32931 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
32932 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32935 ac_cv_header_vorbis_codec_h=$ac_header_preproc
32937 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
32938 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32941 if test $ac_cv_header_vorbis_codec_h = yes; then
32942 VORBIS_HEADER_FOUND=1
32943 else
32944 VORBIS_HEADER_FOUND=0
32950 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
32951 if test -n "${VORBIS_MANDATORY}" ;
32952 then
32953 { echo "$as_me:$LINENO: ***" >&5
32954 echo "$as_me: ***" >&6;}
32955 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
32956 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
32957 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
32958 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
32959 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
32960 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
32961 exit 1
32963 VORBIS_LIB=""
32964 VORBIS_INCLUDE=""
32965 PBX_VORBIS=0
32966 else
32967 PBX_VORBIS=1
32969 cat >>confdefs.h <<_ACEOF
32970 #define HAVE_VORBIS 1
32971 _ACEOF
32974 elif test -n "${VORBIS_MANDATORY}";
32975 then
32976 { echo "$as_me:$LINENO: ***" >&5
32977 echo "$as_me: ***" >&6;}
32978 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
32979 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
32980 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32981 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32982 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
32983 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
32984 exit 1
32989 ac_ext=cpp
32990 ac_cpp='$CXXCPP $CPPFLAGS'
32991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32996 if test "${USE_VPB}" != "no"; then
32997 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
32998 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
32999 saved_libs="${LIBS}"
33000 saved_cppflags="${CPPFLAGS}"
33001 if test "x${VPB_DIR}" != "x"; then
33002 if test -d ${VPB_DIR}/lib; then
33003 vpblibdir=${VPB_DIR}/lib
33004 else
33005 vpblibdir=${VPB_DIR}
33007 LIBS="${LIBS} -L${vpblibdir}"
33008 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
33010 LIBS="${LIBS} -lvpb -lpthread"
33011 cat >conftest.$ac_ext <<_ACEOF
33013 /* confdefs.h. */
33014 _ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h. */
33018 #include <vpbapi.h>
33020 main ()
33022 int q = vpb_open(0,0);
33024 return 0;
33027 _ACEOF
33028 rm -f conftest.$ac_objext conftest$ac_exeext
33029 if { (ac_try="$ac_link"
33030 case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_link") 2>conftest.er1
33036 ac_status=$?
33037 grep -v '^ *+' conftest.er1 >conftest.err
33038 rm -f conftest.er1
33039 cat conftest.err >&5
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); } && {
33042 test -z "$ac_cxx_werror_flag" ||
33043 test ! -s conftest.err
33044 } && test -s conftest$ac_exeext &&
33045 $as_test_x conftest$ac_exeext; then
33046 { echo "$as_me:$LINENO: result: yes" >&5
33047 echo "${ECHO_T}yes" >&6; }
33048 ac_cv_lib_vpb_vpb_open="yes"
33050 else
33051 echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33054 { echo "$as_me:$LINENO: result: no" >&5
33055 echo "${ECHO_T}no" >&6; }
33056 ac_cv_lib_vpb_vpb_open="no"
33061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33062 conftest$ac_exeext conftest.$ac_ext
33063 LIBS="${saved_libs}"
33064 CPPFLAGS="${saved_cppflags}"
33065 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33066 VPB_LIB="-lvpb"
33067 if test "${VPB_DIR}" != ""; then
33068 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33069 VPB_INCLUDE="-I${VPB_DIR}/include"
33071 PBX_VPB=1
33073 cat >>confdefs.h <<\_ACEOF
33074 #define HAVE_VPB 1
33075 _ACEOF
33077 elif test -n "${VPB_MANDATORY}"; then
33078 { echo "$as_me:$LINENO: ***" >&5
33079 echo "$as_me: ***" >&6;}
33080 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33081 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33082 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33083 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33084 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33085 echo "$as_me: *** including --without-vpb." >&6;}
33086 exit 1
33090 ac_ext=c
33091 ac_cpp='$CPP $CPPFLAGS'
33092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33098 if test "${USE_ZLIB}" != "no"; then
33099 pbxlibdir=""
33100 if test "x${ZLIB_DIR}" != "x"; then
33101 if test -d ${ZLIB_DIR}/lib; then
33102 pbxlibdir="-L${ZLIB_DIR}/lib"
33103 else
33104 pbxlibdir="-L${ZLIB_DIR}"
33107 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33108 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33109 if test "${ac_cv_lib_z_compress+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33111 else
33112 ac_check_lib_save_LIBS=$LIBS
33113 LIBS="-lz ${pbxlibdir} $LIBS"
33114 cat >conftest.$ac_ext <<_ACEOF
33115 /* confdefs.h. */
33116 _ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h. */
33121 /* Override any GCC internal prototype to avoid an error.
33122 Use char because int might match the return type of a GCC
33123 builtin and then its argument prototype would still apply. */
33124 #ifdef __cplusplus
33125 extern "C"
33126 #endif
33127 char compress ();
33129 main ()
33131 return compress ();
33133 return 0;
33135 _ACEOF
33136 rm -f conftest.$ac_objext conftest$ac_exeext
33137 if { (ac_try="$ac_link"
33138 case "(($ac_try" in
33139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33140 *) ac_try_echo=$ac_try;;
33141 esac
33142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33143 (eval "$ac_link") 2>conftest.er1
33144 ac_status=$?
33145 grep -v '^ *+' conftest.er1 >conftest.err
33146 rm -f conftest.er1
33147 cat conftest.err >&5
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); } && {
33150 test -z "$ac_c_werror_flag" ||
33151 test ! -s conftest.err
33152 } && test -s conftest$ac_exeext &&
33153 $as_test_x conftest$ac_exeext; then
33154 ac_cv_lib_z_compress=yes
33155 else
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_cv_lib_z_compress=no
33162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33163 conftest$ac_exeext conftest.$ac_ext
33164 LIBS=$ac_check_lib_save_LIBS
33166 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
33167 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33168 if test $ac_cv_lib_z_compress = yes; then
33169 AST_ZLIB_FOUND=yes
33170 else
33171 AST_ZLIB_FOUND=no
33175 if test "${AST_ZLIB_FOUND}" = "yes"; then
33176 ZLIB_LIB="-lz "
33177 ZLIB_HEADER_FOUND="1"
33178 if test "x${ZLIB_DIR}" != "x"; then
33179 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
33180 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
33181 saved_cppflags="${CPPFLAGS}"
33182 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
33183 if test "xzlib.h" != "x" ; then
33184 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
33185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33186 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33187 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 ac_res=`eval echo '${'$as_ac_Header'}'`
33192 { echo "$as_me:$LINENO: result: $ac_res" >&5
33193 echo "${ECHO_T}$ac_res" >&6; }
33194 else
33195 # Is the header compilable?
33196 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
33197 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
33198 cat >conftest.$ac_ext <<_ACEOF
33199 /* confdefs.h. */
33200 _ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h. */
33204 $ac_includes_default
33205 #include <${ZLIB_DIR}/include/zlib.h>
33206 _ACEOF
33207 rm -f conftest.$ac_objext
33208 if { (ac_try="$ac_compile"
33209 case "(($ac_try" in
33210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211 *) ac_try_echo=$ac_try;;
33212 esac
33213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33214 (eval "$ac_compile") 2>conftest.er1
33215 ac_status=$?
33216 grep -v '^ *+' conftest.er1 >conftest.err
33217 rm -f conftest.er1
33218 cat conftest.err >&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); } && {
33221 test -z "$ac_c_werror_flag" ||
33222 test ! -s conftest.err
33223 } && test -s conftest.$ac_objext; then
33224 ac_header_compiler=yes
33225 else
33226 echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33229 ac_header_compiler=no
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33234 echo "${ECHO_T}$ac_header_compiler" >&6; }
33236 # Is the header present?
33237 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
33238 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
33239 cat >conftest.$ac_ext <<_ACEOF
33240 /* confdefs.h. */
33241 _ACEOF
33242 cat confdefs.h >>conftest.$ac_ext
33243 cat >>conftest.$ac_ext <<_ACEOF
33244 /* end confdefs.h. */
33245 #include <${ZLIB_DIR}/include/zlib.h>
33246 _ACEOF
33247 if { (ac_try="$ac_cpp conftest.$ac_ext"
33248 case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33254 ac_status=$?
33255 grep -v '^ *+' conftest.er1 >conftest.err
33256 rm -f conftest.er1
33257 cat conftest.err >&5
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); } >/dev/null && {
33260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33261 test ! -s conftest.err
33262 }; then
33263 ac_header_preproc=yes
33264 else
33265 echo "$as_me: failed program was:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33268 ac_header_preproc=no
33271 rm -f conftest.err conftest.$ac_ext
33272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33273 echo "${ECHO_T}$ac_header_preproc" >&6; }
33275 # So? What about this header?
33276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33277 yes:no: )
33278 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33279 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33280 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
33281 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
33282 ac_header_preproc=yes
33284 no:yes:* )
33285 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
33286 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
33287 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
33288 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
33289 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
33290 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
33291 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33292 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33293 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
33294 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
33295 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
33296 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
33297 ( cat <<\_ASBOX
33298 ## ------------------------------- ##
33299 ## Report this to www.asterisk.org ##
33300 ## ------------------------------- ##
33301 _ASBOX
33302 ) | sed "s/^/$as_me: WARNING: /" >&2
33304 esac
33305 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33306 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33308 echo $ECHO_N "(cached) $ECHO_C" >&6
33309 else
33310 eval "$as_ac_Header=\$ac_header_preproc"
33312 ac_res=`eval echo '${'$as_ac_Header'}'`
33313 { echo "$as_me:$LINENO: result: $ac_res" >&5
33314 echo "${ECHO_T}$ac_res" >&6; }
33317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33318 ZLIB_HEADER_FOUND=1
33319 else
33320 ZLIB_HEADER_FOUND=0
33325 CPPFLAGS="${saved_cppflags}"
33326 else
33327 if test "xzlib.h" != "x" ; then
33328 if test "${ac_cv_header_zlib_h+set}" = set; then
33329 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33330 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33331 if test "${ac_cv_header_zlib_h+set}" = set; then
33332 echo $ECHO_N "(cached) $ECHO_C" >&6
33334 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33335 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33336 else
33337 # Is the header compilable?
33338 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33339 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33340 cat >conftest.$ac_ext <<_ACEOF
33341 /* confdefs.h. */
33342 _ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346 $ac_includes_default
33347 #include <zlib.h>
33348 _ACEOF
33349 rm -f conftest.$ac_objext
33350 if { (ac_try="$ac_compile"
33351 case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33354 esac
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_compile") 2>conftest.er1
33357 ac_status=$?
33358 grep -v '^ *+' conftest.er1 >conftest.err
33359 rm -f conftest.er1
33360 cat conftest.err >&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } && {
33363 test -z "$ac_c_werror_flag" ||
33364 test ! -s conftest.err
33365 } && test -s conftest.$ac_objext; then
33366 ac_header_compiler=yes
33367 else
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33371 ac_header_compiler=no
33374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33376 echo "${ECHO_T}$ac_header_compiler" >&6; }
33378 # Is the header present?
33379 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33380 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33381 cat >conftest.$ac_ext <<_ACEOF
33382 /* confdefs.h. */
33383 _ACEOF
33384 cat confdefs.h >>conftest.$ac_ext
33385 cat >>conftest.$ac_ext <<_ACEOF
33386 /* end confdefs.h. */
33387 #include <zlib.h>
33388 _ACEOF
33389 if { (ac_try="$ac_cpp conftest.$ac_ext"
33390 case "(($ac_try" in
33391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392 *) ac_try_echo=$ac_try;;
33393 esac
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33396 ac_status=$?
33397 grep -v '^ *+' conftest.er1 >conftest.err
33398 rm -f conftest.er1
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } >/dev/null && {
33402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33403 test ! -s conftest.err
33404 }; then
33405 ac_header_preproc=yes
33406 else
33407 echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33410 ac_header_preproc=no
33413 rm -f conftest.err conftest.$ac_ext
33414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33415 echo "${ECHO_T}$ac_header_preproc" >&6; }
33417 # So? What about this header?
33418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33419 yes:no: )
33420 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33421 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33422 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33423 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33424 ac_header_preproc=yes
33426 no:yes:* )
33427 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33428 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33429 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33430 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33431 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33432 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33433 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33434 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33435 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33436 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33437 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33438 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33439 ( cat <<\_ASBOX
33440 ## ------------------------------- ##
33441 ## Report this to www.asterisk.org ##
33442 ## ------------------------------- ##
33443 _ASBOX
33444 ) | sed "s/^/$as_me: WARNING: /" >&2
33446 esac
33447 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33448 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33449 if test "${ac_cv_header_zlib_h+set}" = set; then
33450 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 else
33452 ac_cv_header_zlib_h=$ac_header_preproc
33454 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33455 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33458 if test $ac_cv_header_zlib_h = yes; then
33459 ZLIB_HEADER_FOUND=1
33460 else
33461 ZLIB_HEADER_FOUND=0
33467 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
33468 if test -n "${ZLIB_MANDATORY}" ;
33469 then
33470 { echo "$as_me:$LINENO: ***" >&5
33471 echo "$as_me: ***" >&6;}
33472 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
33473 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
33474 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
33475 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
33476 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33477 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33478 exit 1
33480 ZLIB_LIB=""
33481 ZLIB_INCLUDE=""
33482 PBX_ZLIB=0
33483 else
33484 PBX_ZLIB=1
33486 cat >>confdefs.h <<_ACEOF
33487 #define HAVE_ZLIB 1
33488 _ACEOF
33491 elif test -n "${ZLIB_MANDATORY}";
33492 then
33493 { echo "$as_me:$LINENO: ***" >&5
33494 echo "$as_me: ***" >&6;}
33495 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
33496 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
33497 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33498 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33499 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33500 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33501 exit 1
33506 if test "${USE_ZAPTEL}" != "no"; then
33507 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
33508 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
33509 saved_cppflags="${CPPFLAGS}"
33510 if test "x${ZAPTEL_DIR}" != "x"; then
33511 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33513 cat >conftest.$ac_ext <<_ACEOF
33515 /* confdefs.h. */
33516 _ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h. */
33520 #include <zaptel/zaptel.h>
33522 main ()
33524 int foo = ZT_DIAL_OP_CANCEL;
33526 return 0;
33529 _ACEOF
33530 rm -f conftest.$ac_objext
33531 if { (ac_try="$ac_compile"
33532 case "(($ac_try" in
33533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534 *) ac_try_echo=$ac_try;;
33535 esac
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537 (eval "$ac_compile") 2>conftest.er1
33538 ac_status=$?
33539 grep -v '^ *+' conftest.er1 >conftest.err
33540 rm -f conftest.er1
33541 cat conftest.err >&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); } && {
33544 test -z "$ac_c_werror_flag" ||
33545 test ! -s conftest.err
33546 } && test -s conftest.$ac_objext; then
33547 { echo "$as_me:$LINENO: result: yes" >&5
33548 echo "${ECHO_T}yes" >&6; }
33549 ac_cv_zaptel_h="yes"
33551 else
33552 echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33555 { echo "$as_me:$LINENO: result: no" >&5
33556 echo "${ECHO_T}no" >&6; }
33557 ac_cv_zaptel_h="no"
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563 CPPFLAGS="${saved_cppflags}"
33564 if test "${ac_cv_zaptel_h}" = "yes"; then
33565 if test "${ZAPTEL_DIR}" != ""; then
33566 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
33568 PBX_ZAPTEL=1
33570 cat >>confdefs.h <<\_ACEOF
33571 #define HAVE_ZAPTEL 1
33572 _ACEOF
33574 elif test -n "${ZAPTEL_MANDATORY}";
33575 then
33576 { echo "$as_me:$LINENO: ***" >&5
33577 echo "$as_me: ***" >&6;}
33578 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
33579 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
33580 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33581 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33582 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
33583 echo "$as_me: *** including --without-zaptel." >&6;}
33584 exit 1
33588 if test "${PBX_ZAPTEL}" = 1; then
33589 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
33590 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
33591 saved_cppflags="${CPPFLAGS}"
33592 if test "x${ZAPTEL_DIR}" != "x"; then
33593 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33595 cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h. */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33602 #include <zaptel/zaptel.h>
33604 main ()
33606 int foo = ZT_EVENT_REMOVED;
33608 return 0;
33611 _ACEOF
33612 rm -f conftest.$ac_objext
33613 if { (ac_try="$ac_compile"
33614 case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33617 esac
33618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_compile") 2>conftest.er1
33620 ac_status=$?
33621 grep -v '^ *+' conftest.er1 >conftest.err
33622 rm -f conftest.er1
33623 cat conftest.err >&5
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); } && {
33626 test -z "$ac_c_werror_flag" ||
33627 test ! -s conftest.err
33628 } && test -s conftest.$ac_objext; then
33629 { echo "$as_me:$LINENO: result: yes" >&5
33630 echo "${ECHO_T}yes" >&6; }
33631 ac_cv_zaptel_vldtmf="yes"
33633 else
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 { echo "$as_me:$LINENO: result: no" >&5
33638 echo "${ECHO_T}no" >&6; }
33639 ac_cv_zaptel_vldtmf="no"
33644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33645 CPPFLAGS="${saved_cppflags}"
33646 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
33647 PBX_ZAPTEL_VLDTMF=1
33649 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
33650 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
33651 saved_cppflags="${CPPFLAGS}"
33652 if test "x${ZAPTEL_DIR}" != "x"; then
33653 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33655 cat >conftest.$ac_ext <<_ACEOF
33657 /* confdefs.h. */
33658 _ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h. */
33662 #include <zaptel/zaptel.h>
33664 main ()
33666 int foo = ZT_TCOP_ALLOCATE;
33668 return 0;
33671 _ACEOF
33672 rm -f conftest.$ac_objext
33673 if { (ac_try="$ac_compile"
33674 case "(($ac_try" in
33675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33676 *) ac_try_echo=$ac_try;;
33677 esac
33678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33679 (eval "$ac_compile") 2>conftest.er1
33680 ac_status=$?
33681 grep -v '^ *+' conftest.er1 >conftest.err
33682 rm -f conftest.er1
33683 cat conftest.err >&5
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); } && {
33686 test -z "$ac_c_werror_flag" ||
33687 test ! -s conftest.err
33688 } && test -s conftest.$ac_objext; then
33689 { echo "$as_me:$LINENO: result: yes" >&5
33690 echo "${ECHO_T}yes" >&6; }
33691 ac_cv_zaptel_transcode="yes"
33693 else
33694 echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33697 { echo "$as_me:$LINENO: result: no" >&5
33698 echo "${ECHO_T}no" >&6; }
33699 ac_cv_zaptel_transcode="no"
33704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33705 CPPFLAGS="${saved_cppflags}"
33706 if test "${ac_cv_zaptel_transcode}" = "yes"; then
33707 PBX_ZAPTEL_TRANSCODE=1
33713 EDITLINE_LIB=""
33714 if test "x$TERMCAP_LIB" != "x" ; then
33715 EDITLINE_LIB="$TERMCAP_LIB"
33716 elif test "x$TINFO_LIB" != "x" ; then
33717 EDITLINE_LIB="$TINFO_LIB"
33718 elif test "x$CURSES_LIB" != "x" ; then
33719 EDITLINE_LIB="$CURSES_LIB"
33720 elif test "x$NCURSES_LIB" != "x" ; then
33721 EDITLINE_LIB="$NCURSES_LIB"
33722 else
33723 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
33724 echo "$as_me: error: *** termcap support not found" >&2;}
33725 { (exit 1); exit 1; }; }
33729 if test "${ac_cv_header_h323_h+set}" = set; then
33730 { echo "$as_me:$LINENO: checking for h323.h" >&5
33731 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
33732 if test "${ac_cv_header_h323_h+set}" = set; then
33733 echo $ECHO_N "(cached) $ECHO_C" >&6
33735 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
33736 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33737 else
33738 # Is the header compilable?
33739 { echo "$as_me:$LINENO: checking h323.h usability" >&5
33740 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
33741 cat >conftest.$ac_ext <<_ACEOF
33742 /* confdefs.h. */
33743 _ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h. */
33747 $ac_includes_default
33748 #include <h323.h>
33749 _ACEOF
33750 rm -f conftest.$ac_objext
33751 if { (ac_try="$ac_compile"
33752 case "(($ac_try" in
33753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754 *) ac_try_echo=$ac_try;;
33755 esac
33756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757 (eval "$ac_compile") 2>conftest.er1
33758 ac_status=$?
33759 grep -v '^ *+' conftest.er1 >conftest.err
33760 rm -f conftest.er1
33761 cat conftest.err >&5
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); } && {
33764 test -z "$ac_c_werror_flag" ||
33765 test ! -s conftest.err
33766 } && test -s conftest.$ac_objext; then
33767 ac_header_compiler=yes
33768 else
33769 echo "$as_me: failed program was:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33772 ac_header_compiler=no
33775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33777 echo "${ECHO_T}$ac_header_compiler" >&6; }
33779 # Is the header present?
33780 { echo "$as_me:$LINENO: checking h323.h presence" >&5
33781 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
33782 cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h. */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h. */
33788 #include <h323.h>
33789 _ACEOF
33790 if { (ac_try="$ac_cpp conftest.$ac_ext"
33791 case "(($ac_try" in
33792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793 *) ac_try_echo=$ac_try;;
33794 esac
33795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33797 ac_status=$?
33798 grep -v '^ *+' conftest.er1 >conftest.err
33799 rm -f conftest.er1
33800 cat conftest.err >&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } >/dev/null && {
33803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33804 test ! -s conftest.err
33805 }; then
33806 ac_header_preproc=yes
33807 else
33808 echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33811 ac_header_preproc=no
33814 rm -f conftest.err conftest.$ac_ext
33815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33816 echo "${ECHO_T}$ac_header_preproc" >&6; }
33818 # So? What about this header?
33819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33820 yes:no: )
33821 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
33822 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33823 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
33824 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
33825 ac_header_preproc=yes
33827 no:yes:* )
33828 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
33829 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
33831 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
33833 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
33834 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
33835 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
33836 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
33837 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
33838 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
33839 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
33840 ( cat <<\_ASBOX
33841 ## ------------------------------- ##
33842 ## Report this to www.asterisk.org ##
33843 ## ------------------------------- ##
33844 _ASBOX
33845 ) | sed "s/^/$as_me: WARNING: /" >&2
33847 esac
33848 { echo "$as_me:$LINENO: checking for h323.h" >&5
33849 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
33850 if test "${ac_cv_header_h323_h+set}" = set; then
33851 echo $ECHO_N "(cached) $ECHO_C" >&6
33852 else
33853 ac_cv_header_h323_h=$ac_header_preproc
33855 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
33856 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33859 if test $ac_cv_header_h323_h = yes; then
33860 PBX_H323=1
33861 else
33862 PBX_H323=0
33868 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33869 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
33870 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
33871 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
33874 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
33875 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33876 else
33877 # Is the header compilable?
33878 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
33879 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
33880 cat >conftest.$ac_ext <<_ACEOF
33881 /* confdefs.h. */
33882 _ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h. */
33886 $ac_includes_default
33887 #include <linux/compiler.h>
33888 _ACEOF
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33894 esac
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_compile") 2>conftest.er1
33897 ac_status=$?
33898 grep -v '^ *+' conftest.er1 >conftest.err
33899 rm -f conftest.er1
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } && {
33903 test -z "$ac_c_werror_flag" ||
33904 test ! -s conftest.err
33905 } && test -s conftest.$ac_objext; then
33906 ac_header_compiler=yes
33907 else
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_header_compiler=no
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33916 echo "${ECHO_T}$ac_header_compiler" >&6; }
33918 # Is the header present?
33919 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
33920 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
33921 cat >conftest.$ac_ext <<_ACEOF
33922 /* confdefs.h. */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 #include <linux/compiler.h>
33928 _ACEOF
33929 if { (ac_try="$ac_cpp conftest.$ac_ext"
33930 case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33933 esac
33934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33936 ac_status=$?
33937 grep -v '^ *+' conftest.er1 >conftest.err
33938 rm -f conftest.er1
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } >/dev/null && {
33942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33943 test ! -s conftest.err
33944 }; then
33945 ac_header_preproc=yes
33946 else
33947 echo "$as_me: failed program was:" >&5
33948 sed 's/^/| /' conftest.$ac_ext >&5
33950 ac_header_preproc=no
33953 rm -f conftest.err conftest.$ac_ext
33954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33955 echo "${ECHO_T}$ac_header_preproc" >&6; }
33957 # So? What about this header?
33958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33959 yes:no: )
33960 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
33961 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33962 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
33963 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
33964 ac_header_preproc=yes
33966 no:yes:* )
33967 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
33968 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
33969 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
33970 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
33971 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
33972 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
33973 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
33974 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
33975 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
33976 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
33977 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
33978 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
33979 ( cat <<\_ASBOX
33980 ## ------------------------------- ##
33981 ## Report this to www.asterisk.org ##
33982 ## ------------------------------- ##
33983 _ASBOX
33984 ) | sed "s/^/$as_me: WARNING: /" >&2
33986 esac
33987 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
33988 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
33989 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33990 echo $ECHO_N "(cached) $ECHO_C" >&6
33991 else
33992 ac_cv_header_linux_compiler_h=$ac_header_preproc
33994 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
33995 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33998 if test $ac_cv_header_linux_compiler_h = yes; then
34000 cat >>confdefs.h <<_ACEOF
34001 #define HAVE_LINUX_COMPILER_H 1
34002 _ACEOF
34008 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34009 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34010 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34011 echo $ECHO_N "(cached) $ECHO_C" >&6
34012 else
34013 cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h. */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h. */
34020 #include <linux/version.h>
34021 #ifdef HAVE_LINUX_COMPILER_H
34022 #include <linux/compiler.h>
34023 #endif
34026 #include <linux/ixjuser.h>
34027 _ACEOF
34028 rm -f conftest.$ac_objext
34029 if { (ac_try="$ac_compile"
34030 case "(($ac_try" in
34031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 *) ac_try_echo=$ac_try;;
34033 esac
34034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035 (eval "$ac_compile") 2>conftest.er1
34036 ac_status=$?
34037 grep -v '^ *+' conftest.er1 >conftest.err
34038 rm -f conftest.er1
34039 cat conftest.err >&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); } && {
34042 test -z "$ac_c_werror_flag" ||
34043 test ! -s conftest.err
34044 } && test -s conftest.$ac_objext; then
34045 ac_cv_header_linux_ixjuser_h=yes
34046 else
34047 echo "$as_me: failed program was:" >&5
34048 sed 's/^/| /' conftest.$ac_ext >&5
34050 ac_cv_header_linux_ixjuser_h=no
34053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34056 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34057 if test $ac_cv_header_linux_ixjuser_h = yes; then
34058 PBX_IXJUSER=1
34059 else
34060 PBX_IXJUSER=0
34066 if test "${cross_compiling}" = "no";
34067 then
34068 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34069 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34070 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
34072 else
34073 test "$cross_compiling" = yes &&
34074 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34075 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34076 { (exit 1); exit 1; }; }
34077 if test -r "/sbin/launchd"; then
34078 ac_cv_file__sbin_launchd=yes
34079 else
34080 ac_cv_file__sbin_launchd=no
34083 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34084 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34085 if test $ac_cv_file__sbin_launchd = yes; then
34087 cat >>confdefs.h <<\_ACEOF
34088 #define HAVE_SBIN_LAUNCHD 1
34089 _ACEOF
34095 PBX_GTK=0
34096 if test -n "$ac_tool_prefix"; then
34097 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34098 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34101 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34102 echo $ECHO_N "(cached) $ECHO_C" >&6
34103 else
34104 if test -n "$GTKCONFIG"; then
34105 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34106 else
34107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34108 for as_dir in $PATH
34110 IFS=$as_save_IFS
34111 test -z "$as_dir" && as_dir=.
34112 for ac_exec_ext in '' $ac_executable_extensions; do
34113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34114 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
34115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34116 break 2
34118 done
34119 done
34120 IFS=$as_save_IFS
34124 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34125 if test -n "$GTKCONFIG"; then
34126 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34127 echo "${ECHO_T}$GTKCONFIG" >&6; }
34128 else
34129 { echo "$as_me:$LINENO: result: no" >&5
34130 echo "${ECHO_T}no" >&6; }
34135 if test -z "$ac_cv_prog_GTKCONFIG"; then
34136 ac_ct_GTKCONFIG=$GTKCONFIG
34137 # Extract the first word of "gtk-config", so it can be a program name with args.
34138 set dummy gtk-config; ac_word=$2
34139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34141 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34142 echo $ECHO_N "(cached) $ECHO_C" >&6
34143 else
34144 if test -n "$ac_ct_GTKCONFIG"; then
34145 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
34146 else
34147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34148 for as_dir in $PATH
34150 IFS=$as_save_IFS
34151 test -z "$as_dir" && as_dir=.
34152 for ac_exec_ext in '' $ac_executable_extensions; do
34153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34154 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
34155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34156 break 2
34158 done
34159 done
34160 IFS=$as_save_IFS
34164 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
34165 if test -n "$ac_ct_GTKCONFIG"; then
34166 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
34167 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34168 else
34169 { echo "$as_me:$LINENO: result: no" >&5
34170 echo "${ECHO_T}no" >&6; }
34173 if test "x$ac_ct_GTKCONFIG" = x; then
34174 GTKCONFIG="No"
34175 else
34176 case $cross_compiling:$ac_tool_warned in
34177 yes:)
34178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34179 whose name does not start with the host triplet. If you think this
34180 configuration is useful to you, please write to autoconf@gnu.org." >&5
34181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34182 whose name does not start with the host triplet. If you think this
34183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34184 ac_tool_warned=yes ;;
34185 esac
34186 GTKCONFIG=$ac_ct_GTKCONFIG
34188 else
34189 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
34192 if test ! "x${GTKCONFIG}" = xNo; then
34193 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
34194 GTK_LIB=$(${GTKCONFIG} --libs gthread)
34195 PBX_GTK=1
34197 cat >>confdefs.h <<\_ACEOF
34198 #define HAVE_GTK 1
34199 _ACEOF
34206 PBX_GTK2=0
34207 if test -n "$ac_tool_prefix"; then
34208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34212 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34213 echo $ECHO_N "(cached) $ECHO_C" >&6
34214 else
34215 if test -n "$PKGCONFIG"; then
34216 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
34217 else
34218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34219 for as_dir in $PATH
34221 IFS=$as_save_IFS
34222 test -z "$as_dir" && as_dir=.
34223 for ac_exec_ext in '' $ac_executable_extensions; do
34224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34225 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
34226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34227 break 2
34229 done
34230 done
34231 IFS=$as_save_IFS
34235 PKGCONFIG=$ac_cv_prog_PKGCONFIG
34236 if test -n "$PKGCONFIG"; then
34237 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
34238 echo "${ECHO_T}$PKGCONFIG" >&6; }
34239 else
34240 { echo "$as_me:$LINENO: result: no" >&5
34241 echo "${ECHO_T}no" >&6; }
34246 if test -z "$ac_cv_prog_PKGCONFIG"; then
34247 ac_ct_PKGCONFIG=$PKGCONFIG
34248 # Extract the first word of "pkg-config", so it can be a program name with args.
34249 set dummy pkg-config; ac_word=$2
34250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34252 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34253 echo $ECHO_N "(cached) $ECHO_C" >&6
34254 else
34255 if test -n "$ac_ct_PKGCONFIG"; then
34256 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
34257 else
34258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34259 for as_dir in $PATH
34261 IFS=$as_save_IFS
34262 test -z "$as_dir" && as_dir=.
34263 for ac_exec_ext in '' $ac_executable_extensions; do
34264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34265 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
34266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34267 break 2
34269 done
34270 done
34271 IFS=$as_save_IFS
34275 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
34276 if test -n "$ac_ct_PKGCONFIG"; then
34277 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
34278 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34279 else
34280 { echo "$as_me:$LINENO: result: no" >&5
34281 echo "${ECHO_T}no" >&6; }
34284 if test "x$ac_ct_PKGCONFIG" = x; then
34285 PKGCONFIG="No"
34286 else
34287 case $cross_compiling:$ac_tool_warned in
34288 yes:)
34289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34290 whose name does not start with the host triplet. If you think this
34291 configuration is useful to you, please write to autoconf@gnu.org." >&5
34292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34293 whose name does not start with the host triplet. If you think this
34294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34295 ac_tool_warned=yes ;;
34296 esac
34297 PKGCONFIG=$ac_ct_PKGCONFIG
34299 else
34300 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
34303 if test ! "x${PKGCONFIG}" = xNo; then
34304 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
34305 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
34306 PBX_GTK2=1
34308 cat >>confdefs.h <<\_ACEOF
34309 #define HAVE_GTK2 1
34310 _ACEOF
34317 if test "${USE_CURL}" != "no"; then
34318 if test -n "$ac_tool_prefix"; then
34319 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
34320 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
34321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34323 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325 else
34326 case $CURL_CONFIG in
34327 [\\/]* | ?:[\\/]*)
34328 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
34331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34332 for as_dir in $PATH
34334 IFS=$as_save_IFS
34335 test -z "$as_dir" && as_dir=.
34336 for ac_exec_ext in '' $ac_executable_extensions; do
34337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34338 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34340 break 2
34342 done
34343 done
34344 IFS=$as_save_IFS
34347 esac
34349 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
34350 if test -n "$CURL_CONFIG"; then
34351 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
34352 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34353 else
34354 { echo "$as_me:$LINENO: result: no" >&5
34355 echo "${ECHO_T}no" >&6; }
34360 if test -z "$ac_cv_path_CURL_CONFIG"; then
34361 ac_pt_CURL_CONFIG=$CURL_CONFIG
34362 # Extract the first word of "curl-config", so it can be a program name with args.
34363 set dummy curl-config; ac_word=$2
34364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34366 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34367 echo $ECHO_N "(cached) $ECHO_C" >&6
34368 else
34369 case $ac_pt_CURL_CONFIG in
34370 [\\/]* | ?:[\\/]*)
34371 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34375 for as_dir in $PATH
34377 IFS=$as_save_IFS
34378 test -z "$as_dir" && as_dir=.
34379 for ac_exec_ext in '' $ac_executable_extensions; do
34380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34381 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34383 break 2
34385 done
34386 done
34387 IFS=$as_save_IFS
34390 esac
34392 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
34393 if test -n "$ac_pt_CURL_CONFIG"; then
34394 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
34395 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34396 else
34397 { echo "$as_me:$LINENO: result: no" >&5
34398 echo "${ECHO_T}no" >&6; }
34401 if test "x$ac_pt_CURL_CONFIG" = x; then
34402 CURL_CONFIG="No"
34403 else
34404 case $cross_compiling:$ac_tool_warned in
34405 yes:)
34406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34407 whose name does not start with the host triplet. If you think this
34408 configuration is useful to you, please write to autoconf@gnu.org." >&5
34409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34410 whose name does not start with the host triplet. If you think this
34411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34412 ac_tool_warned=yes ;;
34413 esac
34414 CURL_CONFIG=$ac_pt_CURL_CONFIG
34416 else
34417 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
34420 if test ! x"${CURL_CONFIG}" = xNo; then
34421 # check for version
34422 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
34423 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
34424 CURL_LIB=$(${CURL_CONFIG} --libs)
34426 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
34427 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
34428 saved_cppflags="${CPPFLAGS}"
34429 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
34430 cat >conftest.$ac_ext <<_ACEOF
34431 /* confdefs.h. */
34432 _ACEOF
34433 cat confdefs.h >>conftest.$ac_ext
34434 cat >>conftest.$ac_ext <<_ACEOF
34435 /* end confdefs.h. */
34436 #include <curl/curl.h>
34438 main ()
34440 curl_version();
34442 return 0;
34445 _ACEOF
34446 rm -f conftest.$ac_objext
34447 if { (ac_try="$ac_compile"
34448 case "(($ac_try" in
34449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34450 *) ac_try_echo=$ac_try;;
34451 esac
34452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34453 (eval "$ac_compile") 2>conftest.er1
34454 ac_status=$?
34455 grep -v '^ *+' conftest.er1 >conftest.err
34456 rm -f conftest.er1
34457 cat conftest.err >&5
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); } && {
34460 test -z "$ac_c_werror_flag" ||
34461 test ! -s conftest.err
34462 } && test -s conftest.$ac_objext; then
34464 { echo "$as_me:$LINENO: result: yes" >&5
34465 echo "${ECHO_T}yes" >&6; }
34466 ac_cv_curl_h="yes"
34468 else
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34473 { echo "$as_me:$LINENO: result: no" >&5
34474 echo "${ECHO_T}no" >&6; }
34475 ac_cv_curl_h="no"
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481 CPPFLAGS="${saved_cppflags}"
34482 if test "${ac_cv_curl_h}" = "yes"; then
34483 PBX_CURL=1
34485 cat >>confdefs.h <<\_ACEOF
34486 #define HAVE_CURL 1
34487 _ACEOF
34494 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
34496 cat >confcache <<\_ACEOF
34497 # This file is a shell script that caches the results of configure
34498 # tests run on this system so they can be shared between configure
34499 # scripts and configure runs, see configure's option --config-cache.
34500 # It is not useful on other systems. If it contains results you don't
34501 # want to keep, you may remove or edit it.
34503 # config.status only pays attention to the cache file if you give it
34504 # the --recheck option to rerun configure.
34506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34508 # following values.
34510 _ACEOF
34512 # The following way of writing the cache mishandles newlines in values,
34513 # but we know of no workaround that is simple, portable, and efficient.
34514 # So, we kill variables containing newlines.
34515 # Ultrix sh set writes to stderr and can't be redirected directly,
34516 # and sets the high bit in the cache file unless we assign to the vars.
34518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34519 eval ac_val=\$$ac_var
34520 case $ac_val in #(
34521 *${as_nl}*)
34522 case $ac_var in #(
34523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34525 esac
34526 case $ac_var in #(
34527 _ | IFS | as_nl) ;; #(
34528 *) $as_unset $ac_var ;;
34529 esac ;;
34530 esac
34531 done
34533 (set) 2>&1 |
34534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34535 *${as_nl}ac_space=\ *)
34536 # `set' does not quote correctly, so add quotes (double-quote
34537 # substitution turns \\\\ into \\, and sed turns \\ into \).
34538 sed -n \
34539 "s/'/'\\\\''/g;
34540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34541 ;; #(
34543 # `set' quotes correctly as required by POSIX, so do not add quotes.
34544 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34546 esac |
34547 sort
34549 sed '
34550 /^ac_cv_env_/b end
34551 t clear
34552 :clear
34553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34554 t end
34555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34556 :end' >>confcache
34557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34558 if test -w "$cache_file"; then
34559 test "x$cache_file" != "x/dev/null" &&
34560 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34561 echo "$as_me: updating cache $cache_file" >&6;}
34562 cat confcache >$cache_file
34563 else
34564 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34565 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34568 rm -f confcache
34570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34571 # Let make expand exec_prefix.
34572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34574 DEFS=-DHAVE_CONFIG_H
34576 ac_libobjs=
34577 ac_ltlibobjs=
34578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34579 # 1. Remove the extension, and $U if already installed.
34580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34581 ac_i=`echo "$ac_i" | sed "$ac_script"`
34582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34583 # will be set to the directory where LIBOBJS objects are built.
34584 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34585 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34586 done
34587 LIBOBJS=$ac_libobjs
34589 LTLIBOBJS=$ac_ltlibobjs
34593 : ${CONFIG_STATUS=./config.status}
34594 ac_clean_files_save=$ac_clean_files
34595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34598 cat >$CONFIG_STATUS <<_ACEOF
34599 #! $SHELL
34600 # Generated by $as_me.
34601 # Run this file to recreate the current configuration.
34602 # Compiler output produced by configure, useful for debugging
34603 # configure, is in config.log if it exists.
34605 debug=false
34606 ac_cs_recheck=false
34607 ac_cs_silent=false
34608 SHELL=\${CONFIG_SHELL-$SHELL}
34609 _ACEOF
34611 cat >>$CONFIG_STATUS <<\_ACEOF
34612 ## --------------------- ##
34613 ## M4sh Initialization. ##
34614 ## --------------------- ##
34616 # Be more Bourne compatible
34617 DUALCASE=1; export DUALCASE # for MKS sh
34618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34619 emulate sh
34620 NULLCMD=:
34621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34622 # is contrary to our usage. Disable this feature.
34623 alias -g '${1+"$@"}'='"$@"'
34624 setopt NO_GLOB_SUBST
34625 else
34626 case `(set -o) 2>/dev/null` in
34627 *posix*) set -o posix ;;
34628 esac
34635 # PATH needs CR
34636 # Avoid depending upon Character Ranges.
34637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34640 as_cr_digits='0123456789'
34641 as_cr_alnum=$as_cr_Letters$as_cr_digits
34643 # The user is always right.
34644 if test "${PATH_SEPARATOR+set}" != set; then
34645 echo "#! /bin/sh" >conf$$.sh
34646 echo "exit 0" >>conf$$.sh
34647 chmod +x conf$$.sh
34648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34649 PATH_SEPARATOR=';'
34650 else
34651 PATH_SEPARATOR=:
34653 rm -f conf$$.sh
34656 # Support unset when possible.
34657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34658 as_unset=unset
34659 else
34660 as_unset=false
34664 # IFS
34665 # We need space, tab and new line, in precisely that order. Quoting is
34666 # there to prevent editors from complaining about space-tab.
34667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34668 # splitting by setting IFS to empty value.)
34669 as_nl='
34671 IFS=" "" $as_nl"
34673 # Find who we are. Look in the path if we contain no directory separator.
34674 case $0 in
34675 *[\\/]* ) as_myself=$0 ;;
34676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34677 for as_dir in $PATH
34679 IFS=$as_save_IFS
34680 test -z "$as_dir" && as_dir=.
34681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34682 done
34683 IFS=$as_save_IFS
34686 esac
34687 # We did not find ourselves, most probably we were run as `sh COMMAND'
34688 # in which case we are not to be found in the path.
34689 if test "x$as_myself" = x; then
34690 as_myself=$0
34692 if test ! -f "$as_myself"; then
34693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34694 { (exit 1); exit 1; }
34697 # Work around bugs in pre-3.0 UWIN ksh.
34698 for as_var in ENV MAIL MAILPATH
34699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34700 done
34701 PS1='$ '
34702 PS2='> '
34703 PS4='+ '
34705 # NLS nuisances.
34706 for as_var in \
34707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34709 LC_TELEPHONE LC_TIME
34711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34712 eval $as_var=C; export $as_var
34713 else
34714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34716 done
34718 # Required to use basename.
34719 if expr a : '\(a\)' >/dev/null 2>&1 &&
34720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34721 as_expr=expr
34722 else
34723 as_expr=false
34726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34727 as_basename=basename
34728 else
34729 as_basename=false
34733 # Name of the executable.
34734 as_me=`$as_basename -- "$0" ||
34735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34736 X"$0" : 'X\(//\)$' \| \
34737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34738 echo X/"$0" |
34739 sed '/^.*\/\([^/][^/]*\)\/*$/{
34740 s//\1/
34743 /^X\/\(\/\/\)$/{
34744 s//\1/
34747 /^X\/\(\/\).*/{
34748 s//\1/
34751 s/.*/./; q'`
34753 # CDPATH.
34754 $as_unset CDPATH
34758 as_lineno_1=$LINENO
34759 as_lineno_2=$LINENO
34760 test "x$as_lineno_1" != "x$as_lineno_2" &&
34761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34764 # uniformly replaced by the line number. The first 'sed' inserts a
34765 # line-number line after each line using $LINENO; the second 'sed'
34766 # does the real work. The second script uses 'N' to pair each
34767 # line-number line with the line containing $LINENO, and appends
34768 # trailing '-' during substitution so that $LINENO is not a special
34769 # case at line end.
34770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34771 # scripts with optimization help from Paolo Bonzini. Blame Lee
34772 # E. McMahon (1931-1989) for sed's syntax. :-)
34773 sed -n '
34775 /[$]LINENO/=
34776 ' <$as_myself |
34777 sed '
34778 s/[$]LINENO.*/&-/
34779 t lineno
34781 :lineno
34783 :loop
34784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34785 t loop
34786 s/-\n.*//
34787 ' >$as_me.lineno &&
34788 chmod +x "$as_me.lineno" ||
34789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34790 { (exit 1); exit 1; }; }
34792 # Don't try to exec as it changes $[0], causing all sort of problems
34793 # (the dirname of $[0] is not the place where we might find the
34794 # original and so on. Autoconf is especially sensitive to this).
34795 . "./$as_me.lineno"
34796 # Exit status is that of the last command.
34797 exit
34801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34802 as_dirname=dirname
34803 else
34804 as_dirname=false
34807 ECHO_C= ECHO_N= ECHO_T=
34808 case `echo -n x` in
34809 -n*)
34810 case `echo 'x\c'` in
34811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34812 *) ECHO_C='\c';;
34813 esac;;
34815 ECHO_N='-n';;
34816 esac
34818 if expr a : '\(a\)' >/dev/null 2>&1 &&
34819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34820 as_expr=expr
34821 else
34822 as_expr=false
34825 rm -f conf$$ conf$$.exe conf$$.file
34826 if test -d conf$$.dir; then
34827 rm -f conf$$.dir/conf$$.file
34828 else
34829 rm -f conf$$.dir
34830 mkdir conf$$.dir
34832 echo >conf$$.file
34833 if ln -s conf$$.file conf$$ 2>/dev/null; then
34834 as_ln_s='ln -s'
34835 # ... but there are two gotchas:
34836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34838 # In both cases, we have to default to `cp -p'.
34839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34840 as_ln_s='cp -p'
34841 elif ln conf$$.file conf$$ 2>/dev/null; then
34842 as_ln_s=ln
34843 else
34844 as_ln_s='cp -p'
34846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34847 rmdir conf$$.dir 2>/dev/null
34849 if mkdir -p . 2>/dev/null; then
34850 as_mkdir_p=:
34851 else
34852 test -d ./-p && rmdir ./-p
34853 as_mkdir_p=false
34856 if test -x / >/dev/null 2>&1; then
34857 as_test_x='test -x'
34858 else
34859 if ls -dL / >/dev/null 2>&1; then
34860 as_ls_L_option=L
34861 else
34862 as_ls_L_option=
34864 as_test_x='
34865 eval sh -c '\''
34866 if test -d "$1"; then
34867 test -d "$1/.";
34868 else
34869 case $1 in
34870 -*)set "./$1";;
34871 esac;
34872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34873 ???[sx]*):;;*)false;;esac;fi
34874 '\'' sh
34877 as_executable_p=$as_test_x
34879 # Sed expression to map a string onto a valid CPP name.
34880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34882 # Sed expression to map a string onto a valid variable name.
34883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34886 exec 6>&1
34888 # Save the log message, to keep $[0] and so on meaningful, and to
34889 # report actual input values of CONFIG_FILES etc. instead of their
34890 # values after options handling.
34891 ac_log="
34892 This file was extended by asterisk $as_me 1.4, which was
34893 generated by GNU Autoconf 2.61. Invocation command line was
34895 CONFIG_FILES = $CONFIG_FILES
34896 CONFIG_HEADERS = $CONFIG_HEADERS
34897 CONFIG_LINKS = $CONFIG_LINKS
34898 CONFIG_COMMANDS = $CONFIG_COMMANDS
34899 $ $0 $@
34901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34904 _ACEOF
34906 cat >>$CONFIG_STATUS <<_ACEOF
34907 # Files that config.status was made for.
34908 config_files="$ac_config_files"
34909 config_headers="$ac_config_headers"
34911 _ACEOF
34913 cat >>$CONFIG_STATUS <<\_ACEOF
34914 ac_cs_usage="\
34915 \`$as_me' instantiates files from templates according to the
34916 current configuration.
34918 Usage: $0 [OPTIONS] [FILE]...
34920 -h, --help print this help, then exit
34921 -V, --version print version number and configuration settings, then exit
34922 -q, --quiet do not print progress messages
34923 -d, --debug don't remove temporary files
34924 --recheck update $as_me by reconfiguring in the same conditions
34925 --file=FILE[:TEMPLATE]
34926 instantiate the configuration file FILE
34927 --header=FILE[:TEMPLATE]
34928 instantiate the configuration header FILE
34930 Configuration files:
34931 $config_files
34933 Configuration headers:
34934 $config_headers
34936 Report bugs to <bug-autoconf@gnu.org>."
34938 _ACEOF
34939 cat >>$CONFIG_STATUS <<_ACEOF
34940 ac_cs_version="\\
34941 asterisk config.status 1.4
34942 configured by $0, generated by GNU Autoconf 2.61,
34943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34945 Copyright (C) 2006 Free Software Foundation, Inc.
34946 This config.status script is free software; the Free Software Foundation
34947 gives unlimited permission to copy, distribute and modify it."
34949 ac_pwd='$ac_pwd'
34950 srcdir='$srcdir'
34951 INSTALL='$INSTALL'
34952 _ACEOF
34954 cat >>$CONFIG_STATUS <<\_ACEOF
34955 # If no file are specified by the user, then we need to provide default
34956 # value. By we need to know if files were specified by the user.
34957 ac_need_defaults=:
34958 while test $# != 0
34960 case $1 in
34961 --*=*)
34962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34964 ac_shift=:
34967 ac_option=$1
34968 ac_optarg=$2
34969 ac_shift=shift
34971 esac
34973 case $ac_option in
34974 # Handling of the options.
34975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34976 ac_cs_recheck=: ;;
34977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34978 echo "$ac_cs_version"; exit ;;
34979 --debug | --debu | --deb | --de | --d | -d )
34980 debug=: ;;
34981 --file | --fil | --fi | --f )
34982 $ac_shift
34983 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34984 ac_need_defaults=false;;
34985 --header | --heade | --head | --hea )
34986 $ac_shift
34987 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34988 ac_need_defaults=false;;
34989 --he | --h)
34990 # Conflict between --help and --header
34991 { echo "$as_me: error: ambiguous option: $1
34992 Try \`$0 --help' for more information." >&2
34993 { (exit 1); exit 1; }; };;
34994 --help | --hel | -h )
34995 echo "$ac_cs_usage"; exit ;;
34996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34998 ac_cs_silent=: ;;
35000 # This is an error.
35001 -*) { echo "$as_me: error: unrecognized option: $1
35002 Try \`$0 --help' for more information." >&2
35003 { (exit 1); exit 1; }; } ;;
35005 *) ac_config_targets="$ac_config_targets $1"
35006 ac_need_defaults=false ;;
35008 esac
35009 shift
35010 done
35012 ac_configure_extra_args=
35014 if $ac_cs_silent; then
35015 exec 6>/dev/null
35016 ac_configure_extra_args="$ac_configure_extra_args --silent"
35019 _ACEOF
35020 cat >>$CONFIG_STATUS <<_ACEOF
35021 if \$ac_cs_recheck; then
35022 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35023 CONFIG_SHELL=$SHELL
35024 export CONFIG_SHELL
35025 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35028 _ACEOF
35029 cat >>$CONFIG_STATUS <<\_ACEOF
35030 exec 5>>config.log
35032 echo
35033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35034 ## Running $as_me. ##
35035 _ASBOX
35036 echo "$ac_log"
35037 } >&5
35039 _ACEOF
35040 cat >>$CONFIG_STATUS <<_ACEOF
35041 _ACEOF
35043 cat >>$CONFIG_STATUS <<\_ACEOF
35045 # Handling of arguments.
35046 for ac_config_target in $ac_config_targets
35048 case $ac_config_target in
35049 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35050 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
35051 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
35052 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
35054 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35055 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35056 { (exit 1); exit 1; }; };;
35057 esac
35058 done
35061 # If the user did not use the arguments to specify the items to instantiate,
35062 # then the envvar interface is used. Set only those that are not.
35063 # We use the long form for the default assignment because of an extremely
35064 # bizarre bug on SunOS 4.1.3.
35065 if $ac_need_defaults; then
35066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35070 # Have a temporary directory for convenience. Make it in the build tree
35071 # simply because there is no reason against having it here, and in addition,
35072 # creating and moving files from /tmp can sometimes cause problems.
35073 # Hook for its removal unless debugging.
35074 # Note that there is a small window in which the directory will not be cleaned:
35075 # after its creation but before its name has been assigned to `$tmp'.
35076 $debug ||
35078 tmp=
35079 trap 'exit_status=$?
35080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35082 trap '{ (exit 1); exit 1; }' 1 2 13 15
35084 # Create a (secure) tmp directory for tmp files.
35087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35088 test -n "$tmp" && test -d "$tmp"
35089 } ||
35091 tmp=./conf$$-$RANDOM
35092 (umask 077 && mkdir "$tmp")
35093 } ||
35095 echo "$me: cannot create a temporary directory in ." >&2
35096 { (exit 1); exit 1; }
35100 # Set up the sed scripts for CONFIG_FILES section.
35103 # No need to generate the scripts if there are no CONFIG_FILES.
35104 # This happens for instance when ./config.status config.h
35105 if test -n "$CONFIG_FILES"; then
35107 _ACEOF
35111 ac_delim='%!_!# '
35112 for ac_last_try in false false false false false :; do
35113 cat >conf$$subs.sed <<_ACEOF
35114 SHELL!$SHELL$ac_delim
35115 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35116 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35117 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35118 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35119 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35120 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35121 exec_prefix!$exec_prefix$ac_delim
35122 prefix!$prefix$ac_delim
35123 program_transform_name!$program_transform_name$ac_delim
35124 bindir!$bindir$ac_delim
35125 sbindir!$sbindir$ac_delim
35126 libexecdir!$libexecdir$ac_delim
35127 datarootdir!$datarootdir$ac_delim
35128 datadir!$datadir$ac_delim
35129 sysconfdir!$sysconfdir$ac_delim
35130 sharedstatedir!$sharedstatedir$ac_delim
35131 localstatedir!$localstatedir$ac_delim
35132 includedir!$includedir$ac_delim
35133 oldincludedir!$oldincludedir$ac_delim
35134 docdir!$docdir$ac_delim
35135 infodir!$infodir$ac_delim
35136 htmldir!$htmldir$ac_delim
35137 dvidir!$dvidir$ac_delim
35138 pdfdir!$pdfdir$ac_delim
35139 psdir!$psdir$ac_delim
35140 libdir!$libdir$ac_delim
35141 localedir!$localedir$ac_delim
35142 mandir!$mandir$ac_delim
35143 DEFS!$DEFS$ac_delim
35144 ECHO_C!$ECHO_C$ac_delim
35145 ECHO_N!$ECHO_N$ac_delim
35146 ECHO_T!$ECHO_T$ac_delim
35147 LIBS!$LIBS$ac_delim
35148 build_alias!$build_alias$ac_delim
35149 host_alias!$host_alias$ac_delim
35150 target_alias!$target_alias$ac_delim
35151 build!$build$ac_delim
35152 build_cpu!$build_cpu$ac_delim
35153 build_vendor!$build_vendor$ac_delim
35154 build_os!$build_os$ac_delim
35155 host!$host$ac_delim
35156 host_cpu!$host_cpu$ac_delim
35157 host_vendor!$host_vendor$ac_delim
35158 host_os!$host_os$ac_delim
35159 CC!$CC$ac_delim
35160 CFLAGS!$CFLAGS$ac_delim
35161 LDFLAGS!$LDFLAGS$ac_delim
35162 CPPFLAGS!$CPPFLAGS$ac_delim
35163 ac_ct_CC!$ac_ct_CC$ac_delim
35164 EXEEXT!$EXEEXT$ac_delim
35165 OBJEXT!$OBJEXT$ac_delim
35166 CPP!$CPP$ac_delim
35167 GREP!$GREP$ac_delim
35168 EGREP!$EGREP$ac_delim
35169 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35170 BUILD_CPU!$BUILD_CPU$ac_delim
35171 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35172 BUILD_OS!$BUILD_OS$ac_delim
35173 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35174 HOST_CPU!$HOST_CPU$ac_delim
35175 HOST_VENDOR!$HOST_VENDOR$ac_delim
35176 HOST_OS!$HOST_OS$ac_delim
35177 OSARCH!$OSARCH$ac_delim
35178 UNAME!$UNAME$ac_delim
35179 PBX_OSREV!$PBX_OSREV$ac_delim
35180 CXX!$CXX$ac_delim
35181 LD!$LD$ac_delim
35182 RANLIB!$RANLIB$ac_delim
35183 CXXFLAGS!$CXXFLAGS$ac_delim
35184 ac_ct_CXX!$ac_ct_CXX$ac_delim
35185 CXXCPP!$CXXCPP$ac_delim
35186 SED!$SED$ac_delim
35187 AWK!$AWK$ac_delim
35188 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35189 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35190 INSTALL_DATA!$INSTALL_DATA$ac_delim
35191 LN_S!$LN_S$ac_delim
35192 GNU_MAKE!$GNU_MAKE$ac_delim
35193 STRIP!$STRIP$ac_delim
35194 AR!$AR$ac_delim
35195 GNU_LD!$GNU_LD$ac_delim
35196 FIND!$FIND$ac_delim
35197 COMPRESS!$COMPRESS$ac_delim
35198 BASENAME!$BASENAME$ac_delim
35199 ID!$ID$ac_delim
35200 DIRNAME!$DIRNAME$ac_delim
35201 LN!$LN$ac_delim
35202 DOT!$DOT$ac_delim
35203 WGET!$WGET$ac_delim
35204 FETCH!$FETCH$ac_delim
35205 DOWNLOAD!$DOWNLOAD$ac_delim
35206 SOXMIX!$SOXMIX$ac_delim
35207 acx_pthread_config!$acx_pthread_config$ac_delim
35208 PTHREAD_CC!$PTHREAD_CC$ac_delim
35209 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35210 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35211 _ACEOF
35213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35214 break
35215 elif $ac_last_try; then
35216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35218 { (exit 1); exit 1; }; }
35219 else
35220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35222 done
35224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35225 if test -n "$ac_eof"; then
35226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35227 ac_eof=`expr $ac_eof + 1`
35230 cat >>$CONFIG_STATUS <<_ACEOF
35231 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35233 _ACEOF
35234 sed '
35235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35236 s/^/s,@/; s/!/@,|#_!!_#|/
35239 s/'"$ac_delim"'$/,g/; t
35240 s/$/\\/; p
35241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35242 ' >>$CONFIG_STATUS <conf$$subs.sed
35243 rm -f conf$$subs.sed
35244 cat >>$CONFIG_STATUS <<_ACEOF
35245 CEOF$ac_eof
35246 _ACEOF
35249 ac_delim='%!_!# '
35250 for ac_last_try in false false false false false :; do
35251 cat >conf$$subs.sed <<_ACEOF
35252 AST_DEVMODE!$AST_DEVMODE$ac_delim
35253 ALSA_LIB!$ALSA_LIB$ac_delim
35254 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35255 ALSA_DIR!$ALSA_DIR$ac_delim
35256 PBX_ALSA!$PBX_ALSA$ac_delim
35257 CURL_LIB!$CURL_LIB$ac_delim
35258 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35259 CURL_DIR!$CURL_DIR$ac_delim
35260 PBX_CURL!$PBX_CURL$ac_delim
35261 CAP_LIB!$CAP_LIB$ac_delim
35262 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35263 CAP_DIR!$CAP_DIR$ac_delim
35264 PBX_CAP!$PBX_CAP$ac_delim
35265 CURSES_LIB!$CURSES_LIB$ac_delim
35266 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35267 CURSES_DIR!$CURSES_DIR$ac_delim
35268 PBX_CURSES!$PBX_CURSES$ac_delim
35269 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35270 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35271 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35272 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35273 GSM_LIB!$GSM_LIB$ac_delim
35274 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35275 GSM_DIR!$GSM_DIR$ac_delim
35276 PBX_GSM!$PBX_GSM$ac_delim
35277 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35278 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35279 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35280 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35281 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35282 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35283 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35284 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35285 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35286 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35287 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35288 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35289 KDE_LIB!$KDE_LIB$ac_delim
35290 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35291 KDE_DIR!$KDE_DIR$ac_delim
35292 PBX_KDE!$PBX_KDE$ac_delim
35293 LTDL_LIB!$LTDL_LIB$ac_delim
35294 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35295 LTDL_DIR!$LTDL_DIR$ac_delim
35296 PBX_LTDL!$PBX_LTDL$ac_delim
35297 MISDN_LIB!$MISDN_LIB$ac_delim
35298 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35299 MISDN_DIR!$MISDN_DIR$ac_delim
35300 PBX_MISDN!$PBX_MISDN$ac_delim
35301 NBS_LIB!$NBS_LIB$ac_delim
35302 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35303 NBS_DIR!$NBS_DIR$ac_delim
35304 PBX_NBS!$PBX_NBS$ac_delim
35305 NCURSES_LIB!$NCURSES_LIB$ac_delim
35306 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35307 NCURSES_DIR!$NCURSES_DIR$ac_delim
35308 PBX_NCURSES!$PBX_NCURSES$ac_delim
35309 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35310 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35311 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35312 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35313 NEWT_LIB!$NEWT_LIB$ac_delim
35314 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35315 NEWT_DIR!$NEWT_DIR$ac_delim
35316 PBX_NEWT!$PBX_NEWT$ac_delim
35317 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35318 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35319 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35320 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35321 OGG_LIB!$OGG_LIB$ac_delim
35322 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35323 OGG_DIR!$OGG_DIR$ac_delim
35324 PBX_OGG!$PBX_OGG$ac_delim
35325 OSPTK_LIB!$OSPTK_LIB$ac_delim
35326 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35327 OSPTK_DIR!$OSPTK_DIR$ac_delim
35328 PBX_OSPTK!$PBX_OSPTK$ac_delim
35329 OSS_LIB!$OSS_LIB$ac_delim
35330 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35331 OSS_DIR!$OSS_DIR$ac_delim
35332 PBX_OSS!$PBX_OSS$ac_delim
35333 POPT_LIB!$POPT_LIB$ac_delim
35334 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35335 POPT_DIR!$POPT_DIR$ac_delim
35336 PBX_POPT!$PBX_POPT$ac_delim
35337 PGSQL_LIB!$PGSQL_LIB$ac_delim
35338 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35339 PGSQL_DIR!$PGSQL_DIR$ac_delim
35340 PBX_PGSQL!$PBX_PGSQL$ac_delim
35341 PRI_LIB!$PRI_LIB$ac_delim
35342 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35343 PRI_DIR!$PRI_DIR$ac_delim
35344 PBX_PRI!$PBX_PRI$ac_delim
35345 PWLIB_LIB!$PWLIB_LIB$ac_delim
35346 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35347 PWLIB_DIR!$PWLIB_DIR$ac_delim
35348 PBX_PWLIB!$PBX_PWLIB$ac_delim
35349 _ACEOF
35351 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35352 break
35353 elif $ac_last_try; then
35354 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35355 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35356 { (exit 1); exit 1; }; }
35357 else
35358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35360 done
35362 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35363 if test -n "$ac_eof"; then
35364 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35365 ac_eof=`expr $ac_eof + 1`
35368 cat >>$CONFIG_STATUS <<_ACEOF
35369 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35371 _ACEOF
35372 sed '
35373 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35374 s/^/s,@/; s/!/@,|#_!!_#|/
35377 s/'"$ac_delim"'$/,g/; t
35378 s/$/\\/; p
35379 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35380 ' >>$CONFIG_STATUS <conf$$subs.sed
35381 rm -f conf$$subs.sed
35382 cat >>$CONFIG_STATUS <<_ACEOF
35383 CEOF$ac_eof
35384 _ACEOF
35387 ac_delim='%!_!# '
35388 for ac_last_try in false false false false false :; do
35389 cat >conf$$subs.sed <<_ACEOF
35390 OPENH323_LIB!$OPENH323_LIB$ac_delim
35391 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35392 OPENH323_DIR!$OPENH323_DIR$ac_delim
35393 PBX_OPENH323!$PBX_OPENH323$ac_delim
35394 RADIUS_LIB!$RADIUS_LIB$ac_delim
35395 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35396 RADIUS_DIR!$RADIUS_DIR$ac_delim
35397 PBX_RADIUS!$PBX_RADIUS$ac_delim
35398 SPEEX_LIB!$SPEEX_LIB$ac_delim
35399 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35400 SPEEX_DIR!$SPEEX_DIR$ac_delim
35401 PBX_SPEEX!$PBX_SPEEX$ac_delim
35402 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35403 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35404 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35405 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35406 SQLITE_LIB!$SQLITE_LIB$ac_delim
35407 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35408 SQLITE_DIR!$SQLITE_DIR$ac_delim
35409 PBX_SQLITE!$PBX_SQLITE$ac_delim
35410 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35411 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35412 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35413 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35414 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35415 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35416 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35417 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35418 FREETDS_LIB!$FREETDS_LIB$ac_delim
35419 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35420 FREETDS_DIR!$FREETDS_DIR$ac_delim
35421 PBX_FREETDS!$PBX_FREETDS$ac_delim
35422 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35423 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35424 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35425 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35426 TINFO_LIB!$TINFO_LIB$ac_delim
35427 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35428 TINFO_DIR!$TINFO_DIR$ac_delim
35429 PBX_TINFO!$PBX_TINFO$ac_delim
35430 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35431 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35432 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35433 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35434 USB_LIB!$USB_LIB$ac_delim
35435 USB_INCLUDE!$USB_INCLUDE$ac_delim
35436 USB_DIR!$USB_DIR$ac_delim
35437 PBX_USB!$PBX_USB$ac_delim
35438 VORBIS_LIB!$VORBIS_LIB$ac_delim
35439 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35440 VORBIS_DIR!$VORBIS_DIR$ac_delim
35441 PBX_VORBIS!$PBX_VORBIS$ac_delim
35442 VPB_LIB!$VPB_LIB$ac_delim
35443 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35444 VPB_DIR!$VPB_DIR$ac_delim
35445 PBX_VPB!$PBX_VPB$ac_delim
35446 ZLIB_LIB!$ZLIB_LIB$ac_delim
35447 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35448 ZLIB_DIR!$ZLIB_DIR$ac_delim
35449 PBX_ZLIB!$PBX_ZLIB$ac_delim
35450 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35451 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35452 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35453 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35454 ALLOCA!$ALLOCA$ac_delim
35455 LIBOBJS!$LIBOBJS$ac_delim
35456 POW_LIB!$POW_LIB$ac_delim
35457 GC_CFLAGS!$GC_CFLAGS$ac_delim
35458 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35459 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35460 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35461 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35462 KDEINIT!$KDEINIT$ac_delim
35463 KDEDIR!$KDEDIR$ac_delim
35464 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35465 PG_CONFIG!$PG_CONFIG$ac_delim
35466 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35467 PWLIBDIR!$PWLIBDIR$ac_delim
35468 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35469 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35470 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35471 OPENH323DIR!$OPENH323DIR$ac_delim
35472 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35473 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35474 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35475 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35476 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35477 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35478 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35479 PBX_H323!$PBX_H323$ac_delim
35480 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35481 GTKCONFIG!$GTKCONFIG$ac_delim
35482 PBX_GTK!$PBX_GTK$ac_delim
35483 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35484 GTK_LIB!$GTK_LIB$ac_delim
35485 PKGCONFIG!$PKGCONFIG$ac_delim
35486 PBX_GTK2!$PBX_GTK2$ac_delim
35487 _ACEOF
35489 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35490 break
35491 elif $ac_last_try; then
35492 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35493 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35494 { (exit 1); exit 1; }; }
35495 else
35496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35498 done
35500 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35501 if test -n "$ac_eof"; then
35502 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35503 ac_eof=`expr $ac_eof + 1`
35506 cat >>$CONFIG_STATUS <<_ACEOF
35507 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35509 _ACEOF
35510 sed '
35511 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35512 s/^/s,@/; s/!/@,|#_!!_#|/
35515 s/'"$ac_delim"'$/,g/; t
35516 s/$/\\/; p
35517 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35518 ' >>$CONFIG_STATUS <conf$$subs.sed
35519 rm -f conf$$subs.sed
35520 cat >>$CONFIG_STATUS <<_ACEOF
35521 CEOF$ac_eof
35522 _ACEOF
35525 ac_delim='%!_!# '
35526 for ac_last_try in false false false false false :; do
35527 cat >conf$$subs.sed <<_ACEOF
35528 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35529 GTK2_LIB!$GTK2_LIB$ac_delim
35530 CURL_CONFIG!$CURL_CONFIG$ac_delim
35531 LTLIBOBJS!$LTLIBOBJS$ac_delim
35532 _ACEOF
35534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35535 break
35536 elif $ac_last_try; then
35537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35538 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35539 { (exit 1); exit 1; }; }
35540 else
35541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35543 done
35545 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35546 if test -n "$ac_eof"; then
35547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35548 ac_eof=`expr $ac_eof + 1`
35551 cat >>$CONFIG_STATUS <<_ACEOF
35552 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35554 _ACEOF
35555 sed '
35556 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35557 s/^/s,@/; s/!/@,|#_!!_#|/
35560 s/'"$ac_delim"'$/,g/; t
35561 s/$/\\/; p
35562 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35563 ' >>$CONFIG_STATUS <conf$$subs.sed
35564 rm -f conf$$subs.sed
35565 cat >>$CONFIG_STATUS <<_ACEOF
35566 :end
35567 s/|#_!!_#|//g
35568 CEOF$ac_eof
35569 _ACEOF
35572 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35573 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35574 # trailing colons and then remove the whole line if VPATH becomes empty
35575 # (actually we leave an empty line to preserve line numbers).
35576 if test "x$srcdir" = x.; then
35577 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35578 s/:*\$(srcdir):*/:/
35579 s/:*\${srcdir}:*/:/
35580 s/:*@srcdir@:*/:/
35581 s/^\([^=]*=[ ]*\):*/\1/
35582 s/:*$//
35583 s/^[^=]*=[ ]*$//
35587 cat >>$CONFIG_STATUS <<\_ACEOF
35588 fi # test -n "$CONFIG_FILES"
35591 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
35593 case $ac_tag in
35594 :[FHLC]) ac_mode=$ac_tag; continue;;
35595 esac
35596 case $ac_mode$ac_tag in
35597 :[FHL]*:*);;
35598 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35599 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35600 { (exit 1); exit 1; }; };;
35601 :[FH]-) ac_tag=-:-;;
35602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35603 esac
35604 ac_save_IFS=$IFS
35605 IFS=:
35606 set x $ac_tag
35607 IFS=$ac_save_IFS
35608 shift
35609 ac_file=$1
35610 shift
35612 case $ac_mode in
35613 :L) ac_source=$1;;
35614 :[FH])
35615 ac_file_inputs=
35616 for ac_f
35618 case $ac_f in
35619 -) ac_f="$tmp/stdin";;
35620 *) # Look for the file first in the build tree, then in the source tree
35621 # (if the path is not absolute). The absolute path cannot be DOS-style,
35622 # because $ac_f cannot contain `:'.
35623 test -f "$ac_f" ||
35624 case $ac_f in
35625 [\\/$]*) false;;
35626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35627 esac ||
35628 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35629 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35630 { (exit 1); exit 1; }; };;
35631 esac
35632 ac_file_inputs="$ac_file_inputs $ac_f"
35633 done
35635 # Let's still pretend it is `configure' which instantiates (i.e., don't
35636 # use $as_me), people would be surprised to read:
35637 # /* config.h. Generated by config.status. */
35638 configure_input="Generated from "`IFS=:
35639 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35640 if test x"$ac_file" != x-; then
35641 configure_input="$ac_file. $configure_input"
35642 { echo "$as_me:$LINENO: creating $ac_file" >&5
35643 echo "$as_me: creating $ac_file" >&6;}
35646 case $ac_tag in
35647 *:-:* | *:-) cat >"$tmp/stdin";;
35648 esac
35650 esac
35652 ac_dir=`$as_dirname -- "$ac_file" ||
35653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35654 X"$ac_file" : 'X\(//\)[^/]' \| \
35655 X"$ac_file" : 'X\(//\)$' \| \
35656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35657 echo X"$ac_file" |
35658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35659 s//\1/
35662 /^X\(\/\/\)[^/].*/{
35663 s//\1/
35666 /^X\(\/\/\)$/{
35667 s//\1/
35670 /^X\(\/\).*/{
35671 s//\1/
35674 s/.*/./; q'`
35675 { as_dir="$ac_dir"
35676 case $as_dir in #(
35677 -*) as_dir=./$as_dir;;
35678 esac
35679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35680 as_dirs=
35681 while :; do
35682 case $as_dir in #(
35683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35684 *) as_qdir=$as_dir;;
35685 esac
35686 as_dirs="'$as_qdir' $as_dirs"
35687 as_dir=`$as_dirname -- "$as_dir" ||
35688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35689 X"$as_dir" : 'X\(//\)[^/]' \| \
35690 X"$as_dir" : 'X\(//\)$' \| \
35691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35692 echo X"$as_dir" |
35693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35694 s//\1/
35697 /^X\(\/\/\)[^/].*/{
35698 s//\1/
35701 /^X\(\/\/\)$/{
35702 s//\1/
35705 /^X\(\/\).*/{
35706 s//\1/
35709 s/.*/./; q'`
35710 test -d "$as_dir" && break
35711 done
35712 test -z "$as_dirs" || eval "mkdir $as_dirs"
35713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35715 { (exit 1); exit 1; }; }; }
35716 ac_builddir=.
35718 case "$ac_dir" in
35719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722 # A ".." for each directory in $ac_dir_suffix.
35723 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35724 case $ac_top_builddir_sub in
35725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35727 esac ;;
35728 esac
35729 ac_abs_top_builddir=$ac_pwd
35730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35731 # for backward compatibility:
35732 ac_top_builddir=$ac_top_build_prefix
35734 case $srcdir in
35735 .) # We are building in place.
35736 ac_srcdir=.
35737 ac_top_srcdir=$ac_top_builddir_sub
35738 ac_abs_top_srcdir=$ac_pwd ;;
35739 [\\/]* | ?:[\\/]* ) # Absolute name.
35740 ac_srcdir=$srcdir$ac_dir_suffix;
35741 ac_top_srcdir=$srcdir
35742 ac_abs_top_srcdir=$srcdir ;;
35743 *) # Relative name.
35744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35745 ac_top_srcdir=$ac_top_build_prefix$srcdir
35746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35747 esac
35748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35751 case $ac_mode in
35754 # CONFIG_FILE
35757 case $INSTALL in
35758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35760 esac
35761 _ACEOF
35763 cat >>$CONFIG_STATUS <<\_ACEOF
35764 # If the template does not know about datarootdir, expand it.
35765 # FIXME: This hack should be removed a few years after 2.60.
35766 ac_datarootdir_hack=; ac_datarootdir_seen=
35768 case `sed -n '/datarootdir/ {
35772 /@datadir@/p
35773 /@docdir@/p
35774 /@infodir@/p
35775 /@localedir@/p
35776 /@mandir@/p
35777 ' $ac_file_inputs` in
35778 *datarootdir*) ac_datarootdir_seen=yes;;
35779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35782 _ACEOF
35783 cat >>$CONFIG_STATUS <<_ACEOF
35784 ac_datarootdir_hack='
35785 s&@datadir@&$datadir&g
35786 s&@docdir@&$docdir&g
35787 s&@infodir@&$infodir&g
35788 s&@localedir@&$localedir&g
35789 s&@mandir@&$mandir&g
35790 s&\\\${datarootdir}&$datarootdir&g' ;;
35791 esac
35792 _ACEOF
35794 # Neutralize VPATH when `$srcdir' = `.'.
35795 # Shell code in configure.ac might set extrasub.
35796 # FIXME: do we really want to maintain this feature?
35797 cat >>$CONFIG_STATUS <<_ACEOF
35798 sed "$ac_vpsub
35799 $extrasub
35800 _ACEOF
35801 cat >>$CONFIG_STATUS <<\_ACEOF
35803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35804 s&@configure_input@&$configure_input&;t t
35805 s&@top_builddir@&$ac_top_builddir_sub&;t t
35806 s&@srcdir@&$ac_srcdir&;t t
35807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35808 s&@top_srcdir@&$ac_top_srcdir&;t t
35809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35810 s&@builddir@&$ac_builddir&;t t
35811 s&@abs_builddir@&$ac_abs_builddir&;t t
35812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35813 s&@INSTALL@&$ac_INSTALL&;t t
35814 $ac_datarootdir_hack
35815 " $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
35817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35820 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35821 which seems to be undefined. Please make sure it is defined." >&5
35822 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35823 which seems to be undefined. Please make sure it is defined." >&2;}
35825 rm -f "$tmp/stdin"
35826 case $ac_file in
35827 -) cat "$tmp/out"; rm -f "$tmp/out";;
35828 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35829 esac
35833 # CONFIG_HEADER
35835 _ACEOF
35837 # Transform confdefs.h into a sed script `conftest.defines', that
35838 # substitutes the proper values into config.h.in to produce config.h.
35839 rm -f conftest.defines conftest.tail
35840 # First, append a space to every undef/define line, to ease matching.
35841 echo 's/$/ /' >conftest.defines
35842 # Then, protect against being on the right side of a sed subst, or in
35843 # an unquoted here document, in config.status. If some macros were
35844 # called several times there might be several #defines for the same
35845 # symbol, which is useless. But do not sort them, since the last
35846 # AC_DEFINE must be honored.
35847 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35848 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35849 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35850 # PARAMS is the parameter list in the macro definition--in most cases, it's
35851 # just an empty string.
35852 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35853 ac_dB='\\)[ (].*,\\1define\\2'
35854 ac_dC=' '
35855 ac_dD=' ,'
35857 uniq confdefs.h |
35858 sed -n '
35859 t rset
35860 :rset
35861 s/^[ ]*#[ ]*define[ ][ ]*//
35862 t ok
35865 s/[\\&,]/\\&/g
35866 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35867 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35868 ' >>conftest.defines
35870 # Remove the space that was appended to ease matching.
35871 # Then replace #undef with comments. This is necessary, for
35872 # example, in the case of _POSIX_SOURCE, which is predefined and required
35873 # on some systems where configure will not decide to define it.
35874 # (The regexp can be short, since the line contains either #define or #undef.)
35875 echo 's/ $//
35876 s,^[ #]*u.*,/* & */,' >>conftest.defines
35878 # Break up conftest.defines:
35879 ac_max_sed_lines=50
35881 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35882 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35883 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35884 # et cetera.
35885 ac_in='$ac_file_inputs'
35886 ac_out='"$tmp/out1"'
35887 ac_nxt='"$tmp/out2"'
35889 while :
35891 # Write a here document:
35892 cat >>$CONFIG_STATUS <<_ACEOF
35893 # First, check the format of the line:
35894 cat >"\$tmp/defines.sed" <<\\CEOF
35895 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35896 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35898 :def
35899 _ACEOF
35900 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35901 echo 'CEOF
35902 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35903 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35904 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35905 grep . conftest.tail >/dev/null || break
35906 rm -f conftest.defines
35907 mv conftest.tail conftest.defines
35908 done
35909 rm -f conftest.defines conftest.tail
35911 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35912 cat >>$CONFIG_STATUS <<\_ACEOF
35913 if test x"$ac_file" != x-; then
35914 echo "/* $configure_input */" >"$tmp/config.h"
35915 cat "$ac_result" >>"$tmp/config.h"
35916 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35918 echo "$as_me: $ac_file is unchanged" >&6;}
35919 else
35920 rm -f $ac_file
35921 mv "$tmp/config.h" $ac_file
35923 else
35924 echo "/* $configure_input */"
35925 cat "$ac_result"
35927 rm -f "$tmp/out12"
35931 esac
35933 done # for ac_tag
35936 { (exit 0); exit 0; }
35937 _ACEOF
35938 chmod +x $CONFIG_STATUS
35939 ac_clean_files=$ac_clean_files_save
35942 # configure is writing to config.log, and then calls config.status.
35943 # config.status does its own redirection, appending to config.log.
35944 # Unfortunately, on DOS this fails, as config.log is still kept open
35945 # by configure, so config.status won't be able to write to it; its
35946 # output is simply discarded. So we exec the FD to /dev/null,
35947 # effectively closing config.log, so it can be properly (re)opened and
35948 # appended to by config.status. When coming back to configure, we
35949 # need to make the FD available again.
35950 if test "$no_create" != yes; then
35951 ac_cs_success=:
35952 ac_config_status_args=
35953 test "$silent" = yes &&
35954 ac_config_status_args="$ac_config_status_args --quiet"
35955 exec 5>/dev/null
35956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35957 exec 5>>config.log
35958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35959 # would make configure fail if this is the last instruction.
35960 $ac_cs_success || { (exit 1); exit 1; }
35964 if test "x${silent}" != "xyes" ; then
35965 echo
35966 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
35967 echo " .\$7\$7.. .7\$\$7:. "
35968 echo " .\$\$:. ,\$7.7 "
35969 echo " .\$7. 7\$\$\$\$ .\$\$77 "
35970 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
35971 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
35972 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
35973 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
35974 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
35975 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
35976 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
35977 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
35978 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
35979 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
35980 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
35981 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
35982 echo " \$\$\$\$\$ \$\$\$ "
35983 echo " \$\$\$\$7. \$\$ (TM) "
35984 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
35985 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
35986 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
35987 echo
35990 { echo "$as_me:$LINENO: Package configured for: " >&5
35991 echo "$as_me: Package configured for: " >&6;}
35992 { echo "$as_me:$LINENO: OS type : $host_os" >&5
35993 echo "$as_me: OS type : $host_os" >&6;}
35994 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
35995 echo "$as_me: Host CPU : $host_cpu" >&6;}
35996 if test "${cross_compiling}" = "yes"; then
35997 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
35998 echo "$as_me: Cross Compilation = YES" >&6;}