Merged revisions 140169 via svnmerge from
[asterisk-bristuff.git] / configure
blobff4165f309cbe51f6bacaede43e17f0e97058750
1 #! /bin/sh
2 # From configure.ac Revision: 135405 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
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.6'
581 PACKAGE_STRING='asterisk 1.6'
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 WINARCH
687 UNAME
688 PBX_OSREV
691 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 STRIP
704 GNU_LD
705 FIND
706 COMPRESS
707 BASENAME
709 DIRNAME
712 WGET
713 RUBBER
714 KPATHSEA
715 FETCH
716 DOWNLOAD
717 SOXMIX
718 acx_pthread_config
719 PTHREAD_CC
720 PTHREAD_LIBS
721 PTHREAD_CFLAGS
722 AST_DEVMODE
723 ALSA_LIB
724 ALSA_INCLUDE
725 ALSA_DIR
726 PBX_ALSA
727 BKTR_LIB
728 BKTR_INCLUDE
729 BKTR_DIR
730 PBX_BKTR
731 CAP_LIB
732 CAP_INCLUDE
733 CAP_DIR
734 PBX_CAP
735 CURL_LIB
736 CURL_INCLUDE
737 CURL_DIR
738 PBX_CURL
739 CURSES_LIB
740 CURSES_INCLUDE
741 CURSES_DIR
742 PBX_CURSES
743 CRYPTO_LIB
744 CRYPTO_INCLUDE
745 CRYPTO_DIR
746 PBX_CRYPTO
747 DAHDI_LIB
748 DAHDI_INCLUDE
749 DAHDI_DIR
750 PBX_DAHDI
751 FFMPEG_LIB
752 FFMPEG_INCLUDE
753 FFMPEG_DIR
754 PBX_FFMPEG
755 GSM_LIB
756 GSM_INCLUDE
757 GSM_DIR
758 PBX_GSM
759 GTK_LIB
760 GTK_INCLUDE
761 GTK_DIR
762 PBX_GTK
763 GTK2_LIB
764 GTK2_INCLUDE
765 GTK2_DIR
766 PBX_GTK2
767 GMIME_LIB
768 GMIME_INCLUDE
769 GMIME_DIR
770 PBX_GMIME
771 HOARD_LIB
772 HOARD_INCLUDE
773 HOARD_DIR
774 PBX_HOARD
775 ICONV_LIB
776 ICONV_INCLUDE
777 ICONV_DIR
778 PBX_ICONV
779 IKSEMEL_LIB
780 IKSEMEL_INCLUDE
781 IKSEMEL_DIR
782 PBX_IKSEMEL
783 IMAP_TK_LIB
784 IMAP_TK_INCLUDE
785 IMAP_TK_DIR
786 PBX_IMAP_TK
787 ISDNNET_LIB
788 ISDNNET_INCLUDE
789 ISDNNET_DIR
790 PBX_ISDNNET
791 JACK_LIB
792 JACK_INCLUDE
793 JACK_DIR
794 PBX_JACK
795 LDAP_LIB
796 LDAP_INCLUDE
797 LDAP_DIR
798 PBX_LDAP
799 LTDL_LIB
800 LTDL_INCLUDE
801 LTDL_DIR
802 PBX_LTDL
803 LUA_LIB
804 LUA_INCLUDE
805 LUA_DIR
806 PBX_LUA
807 MISDN_LIB
808 MISDN_INCLUDE
809 MISDN_DIR
810 PBX_MISDN
811 NBS_LIB
812 NBS_INCLUDE
813 NBS_DIR
814 PBX_NBS
815 NCURSES_LIB
816 NCURSES_INCLUDE
817 NCURSES_DIR
818 PBX_NCURSES
819 NETSNMP_LIB
820 NETSNMP_INCLUDE
821 NETSNMP_DIR
822 PBX_NETSNMP
823 NEWT_LIB
824 NEWT_INCLUDE
825 NEWT_DIR
826 PBX_NEWT
827 UNIXODBC_LIB
828 UNIXODBC_INCLUDE
829 UNIXODBC_DIR
830 PBX_UNIXODBC
831 OGG_LIB
832 OGG_INCLUDE
833 OGG_DIR
834 PBX_OGG
835 OSPTK_LIB
836 OSPTK_INCLUDE
837 OSPTK_DIR
838 PBX_OSPTK
839 OSS_LIB
840 OSS_INCLUDE
841 OSS_DIR
842 PBX_OSS
843 PGSQL_LIB
844 PGSQL_INCLUDE
845 PGSQL_DIR
846 PBX_PGSQL
847 POPT_LIB
848 POPT_INCLUDE
849 POPT_DIR
850 PBX_POPT
851 PORTAUDIO_LIB
852 PORTAUDIO_INCLUDE
853 PORTAUDIO_DIR
854 PBX_PORTAUDIO
855 PRI_LIB
856 PRI_INCLUDE
857 PRI_DIR
858 PBX_PRI
859 RESAMPLE_LIB
860 RESAMPLE_INCLUDE
861 RESAMPLE_DIR
862 PBX_RESAMPLE
863 SPANDSP_LIB
864 SPANDSP_INCLUDE
865 SPANDSP_DIR
866 PBX_SPANDSP
867 SS7_LIB
868 SS7_INCLUDE
869 SS7_DIR
870 PBX_SS7
871 PWLIB_LIB
872 PWLIB_INCLUDE
873 PWLIB_DIR
874 PBX_PWLIB
875 OPENH323_LIB
876 OPENH323_INCLUDE
877 OPENH323_DIR
878 PBX_OPENH323
879 RADIUS_LIB
880 RADIUS_INCLUDE
881 RADIUS_DIR
882 PBX_RADIUS
883 SDL_LIB
884 SDL_INCLUDE
885 SDL_DIR
886 PBX_SDL
887 SDL_IMAGE_LIB
888 SDL_IMAGE_INCLUDE
889 SDL_IMAGE_DIR
890 PBX_SDL_IMAGE
891 OPENAIS_LIB
892 OPENAIS_INCLUDE
893 OPENAIS_DIR
894 PBX_OPENAIS
895 SPEEX_LIB
896 SPEEX_INCLUDE
897 SPEEX_DIR
898 PBX_SPEEX
899 SPEEXDSP_LIB
900 SPEEXDSP_INCLUDE
901 SPEEXDSP_DIR
902 PBX_SPEEXDSP
903 SQLITE_LIB
904 SQLITE_INCLUDE
905 SQLITE_DIR
906 PBX_SQLITE
907 SQLITE3_LIB
908 SQLITE3_INCLUDE
909 SQLITE3_DIR
910 PBX_SQLITE3
911 SUPPSERV_LIB
912 SUPPSERV_INCLUDE
913 SUPPSERV_DIR
914 PBX_SUPPSERV
915 OPENSSL_LIB
916 OPENSSL_INCLUDE
917 OPENSSL_DIR
918 PBX_OPENSSL
919 FREETDS_LIB
920 FREETDS_INCLUDE
921 FREETDS_DIR
922 PBX_FREETDS
923 TERMCAP_LIB
924 TERMCAP_INCLUDE
925 TERMCAP_DIR
926 PBX_TERMCAP
927 TINFO_LIB
928 TINFO_INCLUDE
929 TINFO_DIR
930 PBX_TINFO
931 TONEZONE_LIB
932 TONEZONE_INCLUDE
933 TONEZONE_DIR
934 PBX_TONEZONE
935 USB_LIB
936 USB_INCLUDE
937 USB_DIR
938 PBX_USB
939 VORBIS_LIB
940 VORBIS_INCLUDE
941 VORBIS_DIR
942 PBX_VORBIS
943 VPB_LIB
944 VPB_INCLUDE
945 VPB_DIR
946 PBX_VPB
947 X11_LIB
948 X11_INCLUDE
949 X11_DIR
950 PBX_X11
951 ZLIB_LIB
952 ZLIB_INCLUDE
953 ZLIB_DIR
954 PBX_ZLIB
955 ALLOCA
956 LIBOBJS
957 POW_LIB
958 HAS_POLL
959 PBX_PTHREAD_RWLOCK_INITIALIZER
960 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
961 GC_CFLAGS
962 GC_LDFLAGS
963 AST_DECLARATION_AFTER_STATEMENT
964 AST_NO_STRICT_OVERFLOW
965 AST_SHADOW_WARNINGS
966 PBX_RTLD_NOLOAD
967 PBX_IP_MTU_DISCOVER
968 GSM_INTERNAL
969 PBX_MISDN_FAC_RESULT
970 PBX_MISDN_FAC_ERROR
971 CONFIG_NETSNMP
972 PG_CONFIG
973 PTLIB_CONFIG
974 PWLIBDIR
975 PWLIB_INCDIR
976 PWLIB_LIBDIR
977 PWLIB_PLATFORM
978 OPENH323DIR
979 OPENH323_INCDIR
980 OPENH323_LIBDIR
981 OPENH323_SUFFIX
982 OPENH323_BUILD
983 PBX_AIS
984 AIS_INCLUDE
985 AIS_LIB
986 PBX_SPEEX_PREPROCESS
987 CONFIG_GMIME
988 EDITLINE_LIB
989 PBX_H323
990 PBX_IXJUSER
991 CONFIG_SDL
992 CONFIG_GTK
993 PKGCONFIG
994 CURL_CONFIG
995 LTLIBOBJS'
996 ac_subst_files=''
997 ac_precious_vars='build_alias
998 host_alias
999 target_alias
1001 CFLAGS
1002 LDFLAGS
1003 LIBS
1004 CPPFLAGS
1007 CXXFLAGS
1009 CXXCPP'
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1065 ac_prev=
1066 continue
1069 case $ac_option in
1070 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 *) ac_optarg=yes ;;
1072 esac
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1076 case $ac_dashdash$ac_option in
1078 ac_dashdash=yes ;;
1080 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081 ac_prev=bindir ;;
1082 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083 bindir=$ac_optarg ;;
1085 -build | --build | --buil | --bui | --bu)
1086 ac_prev=build_alias ;;
1087 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088 build_alias=$ac_optarg ;;
1090 -cache-file | --cache-file | --cache-fil | --cache-fi \
1091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092 ac_prev=cache_file ;;
1093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095 cache_file=$ac_optarg ;;
1097 --config-cache | -C)
1098 cache_file=config.cache ;;
1100 -datadir | --datadir | --datadi | --datad)
1101 ac_prev=datadir ;;
1102 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103 datadir=$ac_optarg ;;
1105 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106 | --dataroo | --dataro | --datar)
1107 ac_prev=datarootdir ;;
1108 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110 datarootdir=$ac_optarg ;;
1112 -disable-* | --disable-*)
1113 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1119 eval enable_$ac_feature=no ;;
1121 -docdir | --docdir | --docdi | --doc | --do)
1122 ac_prev=docdir ;;
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127 ac_prev=dvidir ;;
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1131 -enable-* | --enable-*)
1132 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1138 eval enable_$ac_feature=\$ac_optarg ;;
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1218 no_create=yes ;;
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 ac_prev=sbindir ;;
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 | --sbi=* | --sb=*)
1287 sbindir=$ac_optarg ;;
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1292 | --sha | --sh)
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 | --sha=* | --sh=*)
1298 sharedstatedir=$ac_optarg ;;
1300 -site | --site | --sit)
1301 ac_prev=site ;;
1302 -site=* | --site=* | --sit=*)
1303 site=$ac_optarg ;;
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 ac_prev=srcdir ;;
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308 srcdir=$ac_optarg ;;
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315 sysconfdir=$ac_optarg ;;
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
1318 ac_prev=target_alias ;;
1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320 target_alias=$ac_optarg ;;
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 verbose=yes ;;
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
1328 -with-* | --with-*)
1329 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid package name: $ac_package" >&2
1333 { (exit 1); exit 1; }; }
1334 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1335 eval with_$ac_package=\$ac_optarg ;;
1337 -without-* | --without-*)
1338 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 { echo "$as_me: error: invalid package name: $ac_package" >&2
1342 { (exit 1); exit 1; }; }
1343 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1344 eval with_$ac_package=no ;;
1346 --x)
1347 # Obsolete; use --with-x.
1348 with_x=yes ;;
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1364 -*) { echo "$as_me: error: unrecognized option: $ac_option
1365 Try \`$0 --help' for more information." >&2
1366 { (exit 1); exit 1; }; }
1369 *=*)
1370 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1373 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1374 { (exit 1); exit 1; }; }
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1386 esac
1387 done
1389 if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 { echo "$as_me: error: missing argument to $ac_option" >&2
1392 { (exit 1); exit 1; }; }
1395 # Be sure to have absolute directory names.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1401 eval ac_val=\$$ac_var
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1408 done
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431 test "$silent" = yes && exec 6>/dev/null
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { echo "$as_me: error: Working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$0" ||
1449 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$0" : 'X\(//\)[^/]' \| \
1451 X"$0" : 'X\(//\)$' \| \
1452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1453 echo X"$0" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1567 cat <<\_ACEOF
1569 System types:
1570 --build=BUILD configure for building on BUILD [guessed]
1571 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 _ACEOF
1575 if test -n "$ac_init_help"; then
1576 case $ac_init_help in
1577 short | recursive ) echo "Configuration of asterisk 1.6:";;
1578 esac
1579 cat <<\_ACEOF
1581 Optional Features:
1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584 --enable-dev-mode Turn on developer mode
1585 --disable-largefile omit support for large files
1586 --enable-internal-poll Use Asterisk's poll implementation
1588 Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1593 --with-execinfo=PATH use Stack Backtrace support files in PATH
1594 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1595 --with-curl=PATH use cURL files in PATH
1596 --with-curses=PATH use curses files in PATH
1597 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1598 --with-dahdi=PATH use DAHDI files in PATH
1599 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1600 --with-gsm=PATH use External GSM library files in PATH , use
1601 'internal' GSM otherwise
1602 --with-gtk=PATH use gtk libraries files in PATH
1603 --with-gtk2=PATH use gtk2 libraries files in PATH
1604 --with-gmime=PATH use GMime library files in PATH
1605 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1606 --with-iconv=PATH use Iconv Library files in PATH
1607 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1608 --with-imap=PATH use UW IMAP Toolkit files in PATH
1609 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1610 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1611 --with-ldap=PATH use OpenLDAP files in PATH
1612 --with-ltdl=PATH use libtool files in PATH
1613 --with-lua=PATH use Lua files in PATH
1614 --with-misdn=PATH use mISDN User Library files in PATH
1615 --with-nbs=PATH use Network Broadcast Sound files in PATH
1616 --with-ncurses=PATH use ncurses files in PATH
1617 --with-netsnmp=PATH use Net-SNMP files in PATH
1618 --with-newt=PATH use newt files in PATH
1619 --with-odbc=PATH use unixODBC files in PATH
1620 --with-ogg=PATH use OGG files in PATH
1621 --with-osptk=PATH use OSP Toolkit files in PATH
1622 --with-oss=PATH use Open Sound System files in PATH
1623 --with-postgres=PATH use PostgreSQL files in PATH
1624 --with-popt=PATH use popt files in PATH
1625 --with-portaudio=PATH use PortAudio files in PATH
1626 --with-pri=PATH use ISDN PRI files in PATH
1627 --with-resample=PATH use LIBRESAMPLE files in PATH
1628 --with-spandsp=PATH use SPANDSP files in PATH
1629 --with-ss7=PATH use ISDN SS7 files in PATH
1630 --with-pwlib=PATH use PWlib files in PATH
1631 --with-h323=PATH use OpenH323 files in PATH
1632 --with-radius=PATH use Radius Client files in PATH
1633 --with-sdl=PATH use Sdl files in PATH
1634 --with-SDL_image=PATH use Sdl Image library files in PATH
1635 --with-openais=PATH use OpenAIS files in PATH
1636 --with-speex=PATH use Speex files in PATH
1637 --with-speexdsp=PATH use Speexdsp files in PATH
1638 --with-sqlite=PATH use SQLite files in PATH
1639 --with-sqlite3=PATH use SQLite files in PATH
1640 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1641 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1642 PATH
1643 --with-tds=PATH use FreeTDS files in PATH
1644 --with-termcap=PATH use Termcap files in PATH
1645 --with-tinfo=PATH use Term Info files in PATH
1646 --with-tonezone=PATH use tonezone files in PATH
1647 --with-usb=PATH use usb files in PATH
1648 --with-vorbis=PATH use Vorbis files in PATH
1649 --with-vpb=PATH use Voicetronix API files in PATH
1650 --with-x11=PATH use X11 support files in PATH
1651 --with-z=PATH use zlib files in PATH
1653 Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CPP C preprocessor
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
1664 CXXCPP C++ preprocessor
1666 Use these variables to override the choices made by `configure' or to help
1667 it to find libraries and programs with nonstandard names/locations.
1669 Report bugs to <www.asterisk.org>.
1670 _ACEOF
1671 ac_status=$?
1674 if test "$ac_init_help" = "recursive"; then
1675 # If there are subdirs, report their specific --help.
1676 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677 test -d "$ac_dir" || continue
1678 ac_builddir=.
1680 case "$ac_dir" in
1681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690 esac
1691 ac_abs_top_builddir=$ac_pwd
1692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir=$ac_top_build_prefix
1696 case $srcdir in
1697 .) # We are building in place.
1698 ac_srcdir=.
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
1702 ac_srcdir=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 esac
1710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1720 else
1721 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
1724 done
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1729 cat <<\_ACEOF
1730 asterisk configure 1.6
1731 generated by GNU Autoconf 2.61
1733 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1734 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1735 This configure script is free software; the Free Software Foundation
1736 gives unlimited permission to copy, distribute and modify it.
1738 "Asterisk"
1739 _ACEOF
1740 exit
1742 cat >config.log <<_ACEOF
1743 This file contains any messages produced by compilers while
1744 running configure, to aid debugging if configure makes a mistake.
1746 It was created by asterisk $as_me 1.6, which was
1747 generated by GNU Autoconf 2.61. Invocation command line was
1749 $ $0 $@
1751 _ACEOF
1752 exec 5>>config.log
1754 cat <<_ASUNAME
1755 ## --------- ##
1756 ## Platform. ##
1757 ## --------- ##
1759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1776 _ASUNAME
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 echo "PATH: $as_dir"
1784 done
1785 IFS=$as_save_IFS
1787 } >&5
1789 cat >&5 <<_ACEOF
1792 ## ----------- ##
1793 ## Core tests. ##
1794 ## ----------- ##
1796 _ACEOF
1799 # Keep a trace of the command line.
1800 # Strip out --no-create and --no-recursion so they do not pile up.
1801 # Strip out --silent because we don't want to record it for future runs.
1802 # Also quote any args containing shell meta-characters.
1803 # Make two passes to allow for proper duplicate-argument suppression.
1804 ac_configure_args=
1805 ac_configure_args0=
1806 ac_configure_args1=
1807 ac_must_keep_next=false
1808 for ac_pass in 1 2
1810 for ac_arg
1812 case $ac_arg in
1813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815 | -silent | --silent | --silen | --sile | --sil)
1816 continue ;;
1817 *\'*)
1818 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 esac
1820 case $ac_pass in
1821 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1823 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1824 if test $ac_must_keep_next = true; then
1825 ac_must_keep_next=false # Got value, back to normal.
1826 else
1827 case $ac_arg in
1828 *=* | --config-cache | -C | -disable-* | --disable-* \
1829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831 | -with-* | --with-* | -without-* | --without-* | --x)
1832 case "$ac_configure_args0 " in
1833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834 esac
1836 -* ) ac_must_keep_next=true ;;
1837 esac
1839 ac_configure_args="$ac_configure_args '$ac_arg'"
1841 esac
1842 done
1843 done
1844 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1845 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1847 # When interrupted or exit'd, cleanup temporary files, and complete
1848 # config.log. We remove comments because anyway the quotes in there
1849 # would cause problems or look ugly.
1850 # WARNING: Use '\'' to represent an apostrophe within the trap.
1851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852 trap 'exit_status=$?
1853 # Save into config.log some information that might help in debugging.
1855 echo
1857 cat <<\_ASBOX
1858 ## ---------------- ##
1859 ## Cache variables. ##
1860 ## ---------------- ##
1861 _ASBOX
1862 echo
1863 # The following way of writing the cache mishandles newlines in values,
1865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866 eval ac_val=\$$ac_var
1867 case $ac_val in #(
1868 *${as_nl}*)
1869 case $ac_var in #(
1870 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1871 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1872 esac
1873 case $ac_var in #(
1874 _ | IFS | as_nl) ;; #(
1875 *) $as_unset $ac_var ;;
1876 esac ;;
1877 esac
1878 done
1879 (set) 2>&1 |
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
1882 sed -n \
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885 ;; #(
1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889 esac |
1890 sort
1892 echo
1894 cat <<\_ASBOX
1895 ## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##
1898 _ASBOX
1899 echo
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 echo "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1910 if test -n "$ac_subst_files"; then
1911 cat <<\_ASBOX
1912 ## ------------------- ##
1913 ## File substitutions. ##
1914 ## ------------------- ##
1915 _ASBOX
1916 echo
1917 for ac_var in $ac_subst_files
1919 eval ac_val=\$$ac_var
1920 case $ac_val in
1921 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922 esac
1923 echo "$ac_var='\''$ac_val'\''"
1924 done | sort
1925 echo
1928 if test -s confdefs.h; then
1929 cat <<\_ASBOX
1930 ## ----------- ##
1931 ## confdefs.h. ##
1932 ## ----------- ##
1933 _ASBOX
1934 echo
1935 cat confdefs.h
1936 echo
1938 test "$ac_signal" != 0 &&
1939 echo "$as_me: caught signal $ac_signal"
1940 echo "$as_me: exit $exit_status"
1941 } >&5
1942 rm -f core *.core core.conftest.* &&
1943 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944 exit $exit_status
1946 for ac_signal in 1 2 13 15; do
1947 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1948 done
1949 ac_signal=0
1951 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1952 rm -f -r conftest* confdefs.h
1954 # Predefined preprocessor variables.
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1968 _ACEOF
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_STRING "$PACKAGE_STRING"
1973 _ACEOF
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1978 _ACEOF
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer explicitly selected file to automatically selected ones.
1983 if test -n "$CONFIG_SITE"; then
1984 set x "$CONFIG_SITE"
1985 elif test "x$prefix" != xNONE; then
1986 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1987 else
1988 set x "$ac_default_prefix/share/config.site" \
1989 "$ac_default_prefix/etc/config.site"
1991 shift
1992 for ac_site_file
1994 if test -r "$ac_site_file"; then
1995 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1996 echo "$as_me: loading site script $ac_site_file" >&6;}
1997 sed 's/^/| /' "$ac_site_file" >&5
1998 . "$ac_site_file"
2000 done
2002 if test -r "$cache_file"; then
2003 # Some versions of bash will fail to source /dev/null (special
2004 # files actually), so we avoid doing that.
2005 if test -f "$cache_file"; then
2006 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2007 echo "$as_me: loading cache $cache_file" >&6;}
2008 case $cache_file in
2009 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2010 *) . "./$cache_file";;
2011 esac
2013 else
2014 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2015 echo "$as_me: creating cache $cache_file" >&6;}
2016 >$cache_file
2019 ac_header_list="$ac_header_list utime.h"
2020 # Check that the precious variables saved in the cache have kept the same
2021 # value.
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025 eval ac_new_set=\$ac_env_${ac_var}_set
2026 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027 eval ac_new_val=\$ac_env_${ac_var}_value
2028 case $ac_old_set,$ac_new_set in
2029 set,)
2030 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032 ac_cache_corrupted=: ;;
2033 ,set)
2034 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2035 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2037 ,);;
2039 if test "x$ac_old_val" != "x$ac_new_val"; then
2040 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2041 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2042 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2043 echo "$as_me: former value: $ac_old_val" >&2;}
2044 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2045 echo "$as_me: current value: $ac_new_val" >&2;}
2046 ac_cache_corrupted=:
2047 fi;;
2048 esac
2049 # Pass precious variables to config.status.
2050 if test "$ac_new_set" = set; then
2051 case $ac_new_val in
2052 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 *) ac_arg=$ac_var=$ac_new_val ;;
2054 esac
2055 case " $ac_configure_args " in
2056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2057 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2058 esac
2060 done
2061 if $ac_cache_corrupted; then
2062 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2063 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2064 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2065 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2066 { (exit 1); exit 1; }; }
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 # cross-compile macros
2102 ac_aux_dir=
2103 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2104 if test -f "$ac_dir/install-sh"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install-sh -c"
2107 break
2108 elif test -f "$ac_dir/install.sh"; then
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/install.sh -c"
2111 break
2112 elif test -f "$ac_dir/shtool"; then
2113 ac_aux_dir=$ac_dir
2114 ac_install_sh="$ac_aux_dir/shtool install -c"
2115 break
2117 done
2118 if test -z "$ac_aux_dir"; then
2119 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2120 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2121 { (exit 1); exit 1; }; }
2124 # These three variables are undocumented and unsupported,
2125 # and are intended to be withdrawn in a future Autoconf release.
2126 # They can cause serious problems if a builder's source tree is in a directory
2127 # whose full name contains unusual characters.
2128 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2129 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2130 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2133 # Make sure we can run config.sub.
2134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: checking build system type" >&5
2140 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_build+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 ac_build_alias=$build_alias
2145 test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147 test "x$ac_build_alias" = x &&
2148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150 { (exit 1); exit 1; }; }
2151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158 echo "${ECHO_T}$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162 echo "$as_me: error: invalid value of canonical build" >&2;}
2163 { (exit 1); exit 1; }; };;
2164 esac
2165 build=$ac_cv_build
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_build
2168 shift
2169 build_cpu=$1
2170 build_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 build_os=$*
2175 IFS=$ac_save_IFS
2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179 { echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2186 else
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195 echo "${ECHO_T}$ac_cv_host" >&6; }
2196 case $ac_cv_host in
2197 *-*-*) ;;
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199 echo "$as_me: error: invalid value of canonical host" >&2;}
2200 { (exit 1); exit 1; }; };;
2201 esac
2202 host=$ac_cv_host
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_host
2205 shift
2206 host_cpu=$1
2207 host_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 host_os=$*
2212 IFS=$ac_save_IFS
2213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2217 # check existence of the package
2220 # specify output header file
2221 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2228 cat >>confdefs.h <<\_ACEOF
2229 #define _GNU_SOURCE 1
2230 _ACEOF
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238 if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2260 done
2261 done
2262 IFS=$as_save_IFS
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 { echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6; }
2270 else
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2277 if test -z "$ac_cv_prog_CC"; then
2278 ac_ct_CC=$CC
2279 # Extract the first word of "gcc", so it can be a program name with args.
2280 set dummy gcc; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$ac_ct_CC"; then
2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_ac_ct_CC="gcc"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6; }
2310 else
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319 yes:)
2320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&5
2323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328 CC=$ac_ct_CC
2330 else
2331 CC="$ac_cv_prog_CC"
2334 if test -z "$CC"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}cc; 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}cc"
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; }
2375 if test -z "$CC"; then
2376 # Extract the first word of "cc", so it can be a program name with args.
2377 set dummy cc; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 ac_prog_rejected=no
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2395 ac_prog_rejected=yes
2396 continue
2398 ac_cv_prog_CC="cc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2406 if test $ac_prog_rejected = yes; then
2407 # We found a bogon in the path, so make sure we never use it.
2408 set dummy $ac_cv_prog_CC
2409 shift
2410 if test $# != 0; then
2411 # We chose a different compiler from the bogus one.
2412 # However, it has the same basename, so the bogon will be chosen
2413 # first if we set CC to just the basename; use the full file name.
2414 shift
2415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 for ac_prog in cl.exe
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2456 done
2457 done
2458 IFS=$as_save_IFS
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2472 test -n "$CC" && break
2473 done
2475 if test -z "$CC"; then
2476 ac_ct_CC=$CC
2477 for ac_prog in cl.exe
2479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2480 set dummy $ac_prog; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_CC="$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2500 done
2501 done
2502 IFS=$as_save_IFS
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 else
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2516 test -n "$ac_ct_CC" && break
2517 done
2519 if test "x$ac_ct_CC" = x; then
2520 CC=""
2521 else
2522 case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532 CC=$ac_ct_CC
2539 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2540 See \`config.log' for more details." >&5
2541 echo "$as_me: error: no acceptable C compiler found in \$PATH
2542 See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2545 # Provide some information about the compiler.
2546 echo "$as_me:$LINENO: checking for C compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (ac_try="$ac_compiler --version >&5"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compiler --version >&5") 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2558 { (ac_try="$ac_compiler -v >&5"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compiler -v >&5") 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }
2568 { (ac_try="$ac_compiler -V >&5"
2569 case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compiler -V >&5") 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2587 main ()
2591 return 0;
2593 _ACEOF
2594 ac_clean_files_save=$ac_clean_files
2595 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2596 # Try to create an executable without -o first, disregard a.out.
2597 # It will help us diagnose broken compilers, and finding out an intuition
2598 # of exeext.
2599 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2600 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2601 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2603 # List of possible output files, starting from the most likely.
2604 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2605 # only as a last resort. b.out is created by i960 compilers.
2606 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2608 # The IRIX 6 linker writes into existing files which may not be
2609 # executable, retaining their permissions. Remove them first so a
2610 # subsequent execution test works.
2611 ac_rmfiles=
2612 for ac_file in $ac_files
2614 case $ac_file in
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2617 esac
2618 done
2619 rm -f $ac_rmfiles
2621 if { (ac_try="$ac_link_default"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_link_default") 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; then
2631 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2632 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2633 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2634 # so that the user can short-circuit this test for compilers unknown to
2635 # Autoconf.
2636 for ac_file in $ac_files ''
2638 test -f "$ac_file" || continue
2639 case $ac_file in
2640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2642 [ab].out )
2643 # We found the default executable, but exeext='' is most
2644 # certainly right.
2645 break;;
2646 *.* )
2647 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2648 then :; else
2649 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651 # We set ac_cv_exeext here because the later test for it is not
2652 # safe: cross compilers may not add the suffix if given an `-o'
2653 # argument, so we may need to know it at that point already.
2654 # Even if this section looks crufty: it has the advantage of
2655 # actually working.
2656 break;;
2658 break;;
2659 esac
2660 done
2661 test "$ac_cv_exeext" = no && ac_cv_exeext=
2663 else
2664 ac_file=''
2667 { echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6; }
2669 if test -z "$ac_file"; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: C compiler cannot create executables
2676 See \`config.log' for more details." >&2;}
2677 { (exit 77); exit 77; }; }
2680 ac_exeext=$ac_cv_exeext
2682 # Check that the compiler produces executables we can run. If not, either
2683 # the compiler is broken, or we cross compile.
2684 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2687 # If not cross compiling, check that we can run a simple program.
2688 if test "$cross_compiling" != yes; then
2689 if { ac_try='./$ac_file'
2690 { (case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_try") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 cross_compiling=no
2700 else
2701 if test "$cross_compiling" = maybe; then
2702 cross_compiling=yes
2703 else
2704 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot run C compiled programs.
2708 If you meant to cross compile, use \`--host'.
2709 See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2714 { echo "$as_me:$LINENO: result: yes" >&5
2715 echo "${ECHO_T}yes" >&6; }
2717 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2718 ac_clean_files=$ac_clean_files_save
2719 # Check that the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2722 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2723 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2724 echo "${ECHO_T}$cross_compiling" >&6; }
2726 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2727 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2728 if { (ac_try="$ac_link"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_link") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2740 # work properly (i.e., refer to `conftest.exe'), while it won't with
2741 # `rm'.
2742 for ac_file in conftest.exe conftest conftest.*; do
2743 test -f "$ac_file" || continue
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 break;;
2748 * ) break;;
2749 esac
2750 done
2751 else
2752 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2755 See \`config.log' for more details." >&2;}
2756 { (exit 1); exit 1; }; }
2759 rm -f conftest$ac_cv_exeext
2760 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2761 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2763 rm -f conftest.$ac_ext
2764 EXEEXT=$ac_cv_exeext
2765 ac_exeext=$EXEEXT
2766 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2767 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2768 if test "${ac_cv_objext+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.o conftest.obj
2787 if { (ac_try="$ac_compile"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compile") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; then
2797 for ac_file in conftest.o conftest.obj conftest.*; do
2798 test -f "$ac_file" || continue;
2799 case $ac_file in
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2802 break;;
2803 esac
2804 done
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2812 See \`config.log' for more details." >&2;}
2813 { (exit 1); exit 1; }; }
2816 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2818 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2819 echo "${ECHO_T}$ac_cv_objext" >&6; }
2820 OBJEXT=$ac_cv_objext
2821 ac_objext=$OBJEXT
2822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
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 ()
2837 #ifndef __GNUC__
2838 choke me
2839 #endif
2842 return 0;
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (ac_try="$ac_compile"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_compile") 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } && {
2859 test -z "$ac_c_werror_flag" ||
2860 test ! -s conftest.err
2861 } && test -s conftest.$ac_objext; then
2862 ac_compiler_gnu=yes
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 ac_compiler_gnu=no
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2874 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2875 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2876 GCC=`test $ac_compiler_gnu = yes && echo yes`
2877 ac_test_CFLAGS=${CFLAGS+set}
2878 ac_save_CFLAGS=$CFLAGS
2879 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2880 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_cc_g+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_save_c_werror_flag=$ac_c_werror_flag
2885 ac_c_werror_flag=yes
2886 ac_cv_prog_cc_g=no
2887 CFLAGS="-g"
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2896 main ()
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest.$ac_objext; then
2920 ac_cv_prog_cc_g=yes
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 CFLAGS=""
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 ac_c_werror_flag=$ac_save_c_werror_flag
2964 CFLAGS="-g"
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2973 main ()
2977 return 0;
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_cv_prog_cc_g=yes
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_c_werror_flag=$ac_save_c_werror_flag
3014 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3015 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3016 if test "$ac_test_CFLAGS" = set; then
3017 CFLAGS=$ac_save_CFLAGS
3018 elif test $ac_cv_prog_cc_g = yes; then
3019 if test "$GCC" = yes; then
3020 CFLAGS="-g -O2"
3021 else
3022 CFLAGS="-g"
3024 else
3025 if test "$GCC" = yes; then
3026 CFLAGS="-O2"
3027 else
3028 CFLAGS=
3031 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3032 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_cc_c89+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 ac_cv_prog_cc_c89=no
3037 ac_save_CC=$CC
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3044 #include <stdarg.h>
3045 #include <stdio.h>
3046 #include <sys/types.h>
3047 #include <sys/stat.h>
3048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3049 struct buf { int x; };
3050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3051 static char *e (p, i)
3052 char **p;
3053 int i;
3055 return p[i];
3057 static char *f (char * (*g) (char **, int), char **p, ...)
3059 char *s;
3060 va_list v;
3061 va_start (v,p);
3062 s = g (p, va_arg (v,int));
3063 va_end (v);
3064 return s;
3067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3068 function prototypes and stuff, but not '\xHH' hex character constants.
3069 These don't provoke an error unfortunately, instead are silently treated
3070 as 'x'. The following induces an error, until -std is added to get
3071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3072 array size at least. It's necessary to write '\x00'==0 to get something
3073 that's true only with -std. */
3074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3077 inside strings and character constants. */
3078 #define FOO(x) 'x'
3079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3081 int test (int i, double x);
3082 struct s1 {int (*f) (int a);};
3083 struct s2 {int (*f) (double a);};
3084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3085 int argc;
3086 char **argv;
3088 main ()
3090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3092 return 0;
3094 _ACEOF
3095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3098 CC="$ac_save_CC $ac_arg"
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3116 ac_cv_prog_cc_c89=$ac_arg
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3124 rm -f core conftest.err conftest.$ac_objext
3125 test "x$ac_cv_prog_cc_c89" != "xno" && break
3126 done
3127 rm -f conftest.$ac_ext
3128 CC=$ac_save_CC
3131 # AC_CACHE_VAL
3132 case "x$ac_cv_prog_cc_c89" in
3134 { echo "$as_me:$LINENO: result: none needed" >&5
3135 echo "${ECHO_T}none needed" >&6; } ;;
3136 xno)
3137 { echo "$as_me:$LINENO: result: unsupported" >&5
3138 echo "${ECHO_T}unsupported" >&6; } ;;
3140 CC="$CC $ac_cv_prog_cc_c89"
3141 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3142 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3143 esac
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3159 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3160 # On Suns, sometimes $CPP names a directory.
3161 if test -n "$CPP" && test -d "$CPP"; then
3162 CPP=
3164 if test -z "$CPP"; then
3165 if test "${ac_cv_prog_CPP+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 # Double quotes because CPP needs to be expanded
3169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3171 ac_preproc_ok=false
3172 for ac_c_preproc_warn_flag in '' yes
3174 # Use a header file that comes with gcc, so configuring glibc
3175 # with a fresh cross-compiler works.
3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177 # <limits.h> exists even on freestanding compilers.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #ifdef __STDC__
3187 # include <limits.h>
3188 #else
3189 # include <assert.h>
3190 #endif
3191 Syntax error
3192 _ACEOF
3193 if { (ac_try="$ac_cpp conftest.$ac_ext"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null && {
3206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 }; then
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Broken: fails on valid input.
3215 continue
3218 rm -f conftest.err conftest.$ac_ext
3220 # OK, works on sane cases. Now check whether nonexistent headers
3221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <ac_nonexistent.h>
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null && {
3243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 }; then
3246 # Broken: success on invalid input.
3247 continue
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 # Passes both tests.
3253 ac_preproc_ok=:
3254 break
3257 rm -f conftest.err conftest.$ac_ext
3259 done
3260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3261 rm -f conftest.err conftest.$ac_ext
3262 if $ac_preproc_ok; then
3263 break
3266 done
3267 ac_cv_prog_CPP=$CPP
3270 CPP=$ac_cv_prog_CPP
3271 else
3272 ac_cv_prog_CPP=$CPP
3274 { echo "$as_me:$LINENO: result: $CPP" >&5
3275 echo "${ECHO_T}$CPP" >&6; }
3276 ac_preproc_ok=false
3277 for ac_c_preproc_warn_flag in '' yes
3279 # Use a header file that comes with gcc, so configuring glibc
3280 # with a fresh cross-compiler works.
3281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3282 # <limits.h> exists even on freestanding compilers.
3283 # On the NeXT, cc -E runs the code through the compiler's parser,
3284 # not just through cpp. "Syntax error" is here to catch this case.
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #ifdef __STDC__
3292 # include <limits.h>
3293 #else
3294 # include <assert.h>
3295 #endif
3296 Syntax error
3297 _ACEOF
3298 if { (ac_try="$ac_cpp conftest.$ac_ext"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null && {
3311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 }; then
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Broken: fails on valid input.
3320 continue
3323 rm -f conftest.err conftest.$ac_ext
3325 # OK, works on sane cases. Now check whether nonexistent headers
3326 # can be detected and how.
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <ac_nonexistent.h>
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null && {
3348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 }; then
3351 # Broken: success on invalid input.
3352 continue
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 # Passes both tests.
3358 ac_preproc_ok=:
3359 break
3362 rm -f conftest.err conftest.$ac_ext
3364 done
3365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3366 rm -f conftest.err conftest.$ac_ext
3367 if $ac_preproc_ok; then
3369 else
3370 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3385 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3386 if test "${ac_cv_path_GREP+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 # Extract the first word of "grep ggrep" to use in msg output
3390 if test -z "$GREP"; then
3391 set dummy grep ggrep; ac_prog_name=$2
3392 if test "${ac_cv_path_GREP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 ac_path_GREP_found=false
3396 # Loop through the user's path and test for each of PROGNAME-LIST
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_prog in grep ggrep; do
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3405 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3406 # Check for GNU ac_path_GREP and select it if it is found.
3407 # Check for GNU $ac_path_GREP
3408 case `"$ac_path_GREP" --version 2>&1` in
3409 *GNU*)
3410 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3412 ac_count=0
3413 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3414 while :
3416 cat "conftest.in" "conftest.in" >"conftest.tmp"
3417 mv "conftest.tmp" "conftest.in"
3418 cp "conftest.in" "conftest.nl"
3419 echo 'GREP' >> "conftest.nl"
3420 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3422 ac_count=`expr $ac_count + 1`
3423 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3424 # Best one so far, save it but keep looking for a better one
3425 ac_cv_path_GREP="$ac_path_GREP"
3426 ac_path_GREP_max=$ac_count
3428 # 10*(2^10) chars as input seems more than enough
3429 test $ac_count -gt 10 && break
3430 done
3431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3432 esac
3435 $ac_path_GREP_found && break 3
3436 done
3437 done
3439 done
3440 IFS=$as_save_IFS
3445 GREP="$ac_cv_path_GREP"
3446 if test -z "$GREP"; then
3447 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3448 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3449 { (exit 1); exit 1; }; }
3452 else
3453 ac_cv_path_GREP=$GREP
3458 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3459 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3460 GREP="$ac_cv_path_GREP"
3463 { echo "$as_me:$LINENO: checking for egrep" >&5
3464 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3465 if test "${ac_cv_path_EGREP+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3469 then ac_cv_path_EGREP="$GREP -E"
3470 else
3471 # Extract the first word of "egrep" to use in msg output
3472 if test -z "$EGREP"; then
3473 set dummy egrep; ac_prog_name=$2
3474 if test "${ac_cv_path_EGREP+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 ac_path_EGREP_found=false
3478 # Loop through the user's path and test for each of PROGNAME-LIST
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_prog in egrep; do
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3487 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3488 # Check for GNU ac_path_EGREP and select it if it is found.
3489 # Check for GNU $ac_path_EGREP
3490 case `"$ac_path_EGREP" --version 2>&1` in
3491 *GNU*)
3492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3494 ac_count=0
3495 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3496 while :
3498 cat "conftest.in" "conftest.in" >"conftest.tmp"
3499 mv "conftest.tmp" "conftest.in"
3500 cp "conftest.in" "conftest.nl"
3501 echo 'EGREP' >> "conftest.nl"
3502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3504 ac_count=`expr $ac_count + 1`
3505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3506 # Best one so far, save it but keep looking for a better one
3507 ac_cv_path_EGREP="$ac_path_EGREP"
3508 ac_path_EGREP_max=$ac_count
3510 # 10*(2^10) chars as input seems more than enough
3511 test $ac_count -gt 10 && break
3512 done
3513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514 esac
3517 $ac_path_EGREP_found && break 3
3518 done
3519 done
3521 done
3522 IFS=$as_save_IFS
3527 EGREP="$ac_cv_path_EGREP"
3528 if test -z "$EGREP"; then
3529 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3530 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3531 { (exit 1); exit 1; }; }
3534 else
3535 ac_cv_path_EGREP=$EGREP
3541 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3542 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3543 EGREP="$ac_cv_path_EGREP"
3547 { echo "$as_me:$LINENO: checking for AIX" >&5
3548 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #ifdef _AIX
3557 #endif
3559 _ACEOF
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "yes" >/dev/null 2>&1; then
3562 { echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6; }
3564 cat >>confdefs.h <<\_ACEOF
3565 #define _ALL_SOURCE 1
3566 _ACEOF
3568 else
3569 { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3572 rm -f conftest*
3575 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3577 if test "${ac_cv_header_stdc+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <stdlib.h>
3587 #include <stdarg.h>
3588 #include <string.h>
3589 #include <float.h>
3592 main ()
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_header_stdc=yes
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 ac_cv_header_stdc=no
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 if test $ac_cv_header_stdc = yes; then
3627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <string.h>
3636 _ACEOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 $EGREP "memchr" >/dev/null 2>&1; then
3640 else
3641 ac_cv_header_stdc=no
3643 rm -f conftest*
3647 if test $ac_cv_header_stdc = yes; then
3648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 #include <stdlib.h>
3657 _ACEOF
3658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659 $EGREP "free" >/dev/null 2>&1; then
3661 else
3662 ac_cv_header_stdc=no
3664 rm -f conftest*
3668 if test $ac_cv_header_stdc = yes; then
3669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3670 if test "$cross_compiling" = yes; then
3672 else
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <ctype.h>
3680 #include <stdlib.h>
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3684 #else
3685 # define ISLOWER(c) \
3686 (('a' <= (c) && (c) <= 'i') \
3687 || ('j' <= (c) && (c) <= 'r') \
3688 || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3690 #endif
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 main ()
3696 int i;
3697 for (i = 0; i < 256; i++)
3698 if (XOR (islower (i), ISLOWER (i))
3699 || toupper (i) != TOUPPER (i))
3700 return 2;
3701 return 0;
3703 _ACEOF
3704 rm -f conftest$ac_exeext
3705 if { (ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_link") 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3715 { (case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_try") 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3725 else
3726 echo "$as_me: program exited with status $ac_status" >&5
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 ( exit $ac_status )
3731 ac_cv_header_stdc=no
3733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3739 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3740 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3741 if test $ac_cv_header_stdc = yes; then
3743 cat >>confdefs.h <<\_ACEOF
3744 #define STDC_HEADERS 1
3745 _ACEOF
3749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3760 inttypes.h stdint.h unistd.h
3762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3776 #include <$ac_header>
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 eval "$as_ac_Header=yes"
3796 else
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 eval "$as_ac_Header=no"
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 ac_res=`eval echo '${'$as_ac_Header'}'`
3806 { echo "$as_me:$LINENO: result: $ac_res" >&5
3807 echo "${ECHO_T}$ac_res" >&6; }
3808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3809 cat >>confdefs.h <<_ACEOF
3810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 _ACEOF
3815 done
3818 if test "${ac_cv_header_minix_config_h+set}" = set; then
3819 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3820 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3821 if test "${ac_cv_header_minix_config_h+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3825 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3826 else
3827 # Is the header compilable?
3828 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3829 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 $ac_includes_default
3837 #include <minix/config.h>
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_compile") 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } && {
3853 test -z "$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 } && test -s conftest.$ac_objext; then
3856 ac_header_compiler=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_header_compiler=no
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6; }
3868 # Is the header present?
3869 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3870 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <minix/config.h>
3878 _ACEOF
3879 if { (ac_try="$ac_cpp conftest.$ac_ext"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } >/dev/null && {
3892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3893 test ! -s conftest.err
3894 }; then
3895 ac_header_preproc=yes
3896 else
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3900 ac_header_preproc=no
3903 rm -f conftest.err conftest.$ac_ext
3904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3905 echo "${ECHO_T}$ac_header_preproc" >&6; }
3907 # So? What about this header?
3908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3909 yes:no: )
3910 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3911 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3913 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3914 ac_header_preproc=yes
3916 no:yes:* )
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3918 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3920 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3921 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3922 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3924 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3925 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3926 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3927 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3928 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3929 ( cat <<\_ASBOX
3930 ## ------------------------------- ##
3931 ## Report this to www.asterisk.org ##
3932 ## ------------------------------- ##
3933 _ASBOX
3934 ) | sed "s/^/$as_me: WARNING: /" >&2
3936 esac
3937 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3938 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3939 if test "${ac_cv_header_minix_config_h+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_cv_header_minix_config_h=$ac_header_preproc
3944 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3945 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3948 if test $ac_cv_header_minix_config_h = yes; then
3949 MINIX=yes
3950 else
3951 MINIX=
3955 if test "$MINIX" = yes; then
3957 cat >>confdefs.h <<\_ACEOF
3958 #define _POSIX_SOURCE 1
3959 _ACEOF
3962 cat >>confdefs.h <<\_ACEOF
3963 #define _POSIX_1_SOURCE 2
3964 _ACEOF
3967 cat >>confdefs.h <<\_ACEOF
3968 #define _MINIX 1
3969 _ACEOF
3983 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3984 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3985 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3995 # define __EXTENSIONS__ 1
3996 $ac_includes_default
3998 main ()
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 ac_cv_safe_to_define___extensions__=yes
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_safe_to_define___extensions__=no
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4033 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4034 test $ac_cv_safe_to_define___extensions__ = yes &&
4035 cat >>confdefs.h <<\_ACEOF
4036 #define __EXTENSIONS__ 1
4037 _ACEOF
4039 cat >>confdefs.h <<\_ACEOF
4040 #define _POSIX_PTHREAD_SEMANTICS 1
4041 _ACEOF
4043 cat >>confdefs.h <<\_ACEOF
4044 #define _TANDEM_SOURCE 1
4045 _ACEOF
4047 # note- does not work on FreeBSD
4049 case "${host_os}" in
4050 freebsd*)
4051 ac_default_prefix=/usr/local
4052 CPPFLAGS=-I/usr/local/include
4053 LDFLAGS=-L/usr/local/lib
4057 ac_default_prefix=/usr
4058 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4059 if test ${sysconfdir} = '${prefix}/etc'; then
4060 sysconfdir=/etc
4062 if test ${mandir} = '${prefix}/man'; then
4063 mandir=/usr/share/man
4067 esac
4069 if test ${localstatedir} = '${prefix}/var'; then
4070 localstatedir=/var
4073 BUILD_PLATFORM=${build}
4074 BUILD_CPU=${build_cpu}
4075 BUILD_VENDOR=${build_vendor}
4076 BUILD_OS=${build_os}
4083 HOST_PLATFORM=${host}
4084 HOST_CPU=${host_cpu}
4085 HOST_VENDOR=${host_vendor}
4086 HOST_OS=${host_os}
4093 WINARCH=0
4095 case "${host_os}" in
4096 freebsd*)
4097 OSARCH=FreeBSD
4099 netbsd*)
4100 OSARCH=NetBSD
4102 openbsd*)
4103 OSARCH=OpenBSD
4105 solaris*)
4106 OSARCH=SunOS
4108 mingw32)
4109 OSARCH=mingw32
4110 WINARCH=1
4112 cygwin)
4113 OSARCH=cygwin
4114 WINARCH=1
4117 OSARCH=${host_os}
4119 esac
4124 # check for uname
4125 if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4127 set dummy ${ac_tool_prefix}uname; ac_word=$2
4128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4130 if test "${ac_cv_path_UNAME+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 case $UNAME in
4134 [\\/]* | ?:[\\/]*)
4135 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4154 esac
4156 UNAME=$ac_cv_path_UNAME
4157 if test -n "$UNAME"; then
4158 { echo "$as_me:$LINENO: result: $UNAME" >&5
4159 echo "${ECHO_T}$UNAME" >&6; }
4160 else
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_path_UNAME"; then
4168 ac_pt_UNAME=$UNAME
4169 # Extract the first word of "uname", so it can be a program name with args.
4170 set dummy uname; 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_path_ac_pt_UNAME+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 case $ac_pt_UNAME in
4177 [\\/]* | ?:[\\/]*)
4178 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4197 esac
4199 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4200 if test -n "$ac_pt_UNAME"; then
4201 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4202 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4203 else
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4208 if test "x$ac_pt_UNAME" = x; then
4209 UNAME="No"
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { echo "$as_me:$LINENO: 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." >&5
4216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4217 whose name does not start with the host triplet. If you think this
4218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221 UNAME=$ac_pt_UNAME
4223 else
4224 UNAME="$ac_cv_path_UNAME"
4227 if test ! x"${UNAME}" = xNo; then
4228 PBX_OSREV=$(${UNAME} -r)
4238 # cross-compile checks
4239 if test "${cross_compiling}" = "yes";
4240 then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 CC=$ac_cv_prog_CC
4270 if test -n "$CC"; then
4271 { echo "$as_me:$LINENO: result: $CC" >&5
4272 echo "${ECHO_T}$CC" >&6; }
4273 else
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4280 if test -z "$ac_cv_prog_CC"; then
4281 ac_ct_CC=$CC
4282 # Extract the first word of "gcc", so it can be a program name with args.
4283 set dummy gcc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_ac_ct_CC="gcc"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4312 echo "${ECHO_T}$ac_ct_CC" >&6; }
4313 else
4314 { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4318 if test "x$ac_ct_CC" = x; then
4319 CC=":"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4324 whose name does not start with the host triplet. If you think this
4325 configuration is useful to you, please write to autoconf@gnu.org." >&5
4326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4327 whose name does not start with the host triplet. If you think this
4328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4329 ac_tool_warned=yes ;;
4330 esac
4331 CC=$ac_ct_CC
4333 else
4334 CC="$ac_cv_prog_CC"
4337 if test -n "$ac_tool_prefix"; then
4338 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4339 set dummy ${ac_tool_prefix}g++; ac_word=$2
4340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4342 if test "${ac_cv_prog_CXX+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 if test -n "$CXX"; then
4346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4359 done
4360 done
4361 IFS=$as_save_IFS
4365 CXX=$ac_cv_prog_CXX
4366 if test -n "$CXX"; then
4367 { echo "$as_me:$LINENO: result: $CXX" >&5
4368 echo "${ECHO_T}$CXX" >&6; }
4369 else
4370 { echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6; }
4376 if test -z "$ac_cv_prog_CXX"; then
4377 ac_ct_CXX=$CXX
4378 # Extract the first word of "g++", so it can be a program name with args.
4379 set dummy g++; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test -n "$ac_ct_CXX"; then
4386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_ac_ct_CXX="g++"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4401 IFS=$as_save_IFS
4405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4406 if test -n "$ac_ct_CXX"; then
4407 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4408 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4409 else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4414 if test "x$ac_ct_CXX" = x; then
4415 CXX=":"
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4420 whose name does not start with the host triplet. If you think this
4421 configuration is useful to you, please write to autoconf@gnu.org." >&5
4422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4423 whose name does not start with the host triplet. If you think this
4424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 CXX=$ac_ct_CXX
4429 else
4430 CXX="$ac_cv_prog_CXX"
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}ld; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_LD+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if test -n "$LD"; then
4442 ac_cv_prog_LD="$LD" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_LD="${ac_tool_prefix}ld"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 LD=$ac_cv_prog_LD
4462 if test -n "$LD"; then
4463 { echo "$as_me:$LINENO: result: $LD" >&5
4464 echo "${ECHO_T}$LD" >&6; }
4465 else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4472 if test -z "$ac_cv_prog_LD"; then
4473 ac_ct_LD=$LD
4474 # Extract the first word of "ld", so it can be a program name with args.
4475 set dummy ld; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$ac_ct_LD"; then
4482 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_ac_ct_LD="ld"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4502 if test -n "$ac_ct_LD"; then
4503 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4504 echo "${ECHO_T}$ac_ct_LD" >&6; }
4505 else
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4510 if test "x$ac_ct_LD" = x; then
4511 LD=":"
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4516 whose name does not start with the host triplet. If you think this
4517 configuration is useful to you, please write to autoconf@gnu.org." >&5
4518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4519 whose name does not start with the host triplet. If you think this
4520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4521 ac_tool_warned=yes ;;
4522 esac
4523 LD=$ac_ct_LD
4525 else
4526 LD="$ac_cv_prog_LD"
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4534 if test "${ac_cv_prog_RANLIB+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 if test -n "$RANLIB"; then
4538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4551 done
4552 done
4553 IFS=$as_save_IFS
4557 RANLIB=$ac_cv_prog_RANLIB
4558 if test -n "$RANLIB"; then
4559 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4560 echo "${ECHO_T}$RANLIB" >&6; }
4561 else
4562 { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4568 if test -z "$ac_cv_prog_RANLIB"; then
4569 ac_ct_RANLIB=$RANLIB
4570 # Extract the first word of "ranlib", so it can be a program name with args.
4571 set dummy ranlib; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 if test -n "$ac_ct_RANLIB"; then
4578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_RANLIB="ranlib"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4598 if test -n "$ac_ct_RANLIB"; then
4599 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4600 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4601 else
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4606 if test "x$ac_ct_RANLIB" = x; then
4607 RANLIB=":"
4608 else
4609 case $cross_compiling:$ac_tool_warned in
4610 yes:)
4611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4612 whose name does not start with the host triplet. If you think this
4613 configuration is useful to you, please write to autoconf@gnu.org." >&5
4614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4615 whose name does not start with the host triplet. If you think this
4616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 RANLIB=$ac_ct_RANLIB
4621 else
4622 RANLIB="$ac_cv_prog_RANLIB"
4627 # Checks for programs.
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638 if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4655 done
4656 done
4657 IFS=$as_save_IFS
4661 CC=$ac_cv_prog_CC
4662 if test -n "$CC"; then
4663 { echo "$as_me:$LINENO: result: $CC" >&5
4664 echo "${ECHO_T}$CC" >&6; }
4665 else
4666 { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4672 if test -z "$ac_cv_prog_CC"; then
4673 ac_ct_CC=$CC
4674 # Extract the first word of "gcc", so it can be a program name with args.
4675 set dummy gcc; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$ac_ct_CC"; then
4682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_ac_ct_CC="gcc"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4702 if test -n "$ac_ct_CC"; then
4703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4704 echo "${ECHO_T}$ac_ct_CC" >&6; }
4705 else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4710 if test "x$ac_ct_CC" = x; then
4711 CC=""
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714 yes:)
4715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4716 whose name does not start with the host triplet. If you think this
4717 configuration is useful to you, please write to autoconf@gnu.org." >&5
4718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet. If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4721 ac_tool_warned=yes ;;
4722 esac
4723 CC=$ac_ct_CC
4725 else
4726 CC="$ac_cv_prog_CC"
4729 if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}cc; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if test -n "$CC"; then
4739 ac_cv_prog_CC="$CC" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_CC="${ac_tool_prefix}cc"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 CC=$ac_cv_prog_CC
4759 if test -n "$CC"; then
4760 { echo "$as_me:$LINENO: result: $CC" >&5
4761 echo "${ECHO_T}$CC" >&6; }
4762 else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4770 if test -z "$CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778 if test -n "$CC"; then
4779 ac_cv_prog_CC="$CC" # Let the user override the test.
4780 else
4781 ac_prog_rejected=no
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4791 continue
4793 ac_cv_prog_CC="cc"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4801 if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_CC
4804 shift
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set CC to just the basename; use the full file name.
4809 shift
4810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4815 CC=$ac_cv_prog_CC
4816 if test -n "$CC"; then
4817 { echo "$as_me:$LINENO: result: $CC" >&5
4818 echo "${ECHO_T}$CC" >&6; }
4819 else
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4826 if test -z "$CC"; then
4827 if test -n "$ac_tool_prefix"; then
4828 for ac_prog in cl.exe
4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_CC+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 if test -n "$CC"; then
4838 ac_cv_prog_CC="$CC" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 CC=$ac_cv_prog_CC
4858 if test -n "$CC"; then
4859 { echo "$as_me:$LINENO: result: $CC" >&5
4860 echo "${ECHO_T}$CC" >&6; }
4861 else
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4867 test -n "$CC" && break
4868 done
4870 if test -z "$CC"; then
4871 ac_ct_CC=$CC
4872 for ac_prog in cl.exe
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 if test -n "$ac_ct_CC"; then
4882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_ac_ct_CC="$ac_prog"
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4902 if test -n "$ac_ct_CC"; then
4903 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4904 echo "${ECHO_T}$ac_ct_CC" >&6; }
4905 else
4906 { echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6; }
4911 test -n "$ac_ct_CC" && break
4912 done
4914 if test "x$ac_ct_CC" = x; then
4915 CC=""
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet. If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet. If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927 CC=$ac_ct_CC
4934 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: no acceptable C compiler found in \$PATH
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4940 # Provide some information about the compiler.
4941 echo "$as_me:$LINENO: checking for C compiler version" >&5
4942 ac_compiler=`set X $ac_compile; echo $2`
4943 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }
4953 { (ac_try="$ac_compiler -v >&5"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_compiler -v >&5") 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }
4963 { (ac_try="$ac_compiler -V >&5"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compiler -V >&5") 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }
4974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4987 main ()
4989 #ifndef __GNUC__
4990 choke me
4991 #endif
4994 return 0;
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
4999 case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_compiler_gnu=yes
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 ac_compiler_gnu=no
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5026 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5028 GCC=`test $ac_compiler_gnu = yes && echo yes`
5029 ac_test_CFLAGS=${CFLAGS+set}
5030 ac_save_CFLAGS=$CFLAGS
5031 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_cc_g+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 ac_save_c_werror_flag=$ac_c_werror_flag
5037 ac_c_werror_flag=yes
5038 ac_cv_prog_cc_g=no
5039 CFLAGS="-g"
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5048 main ()
5052 return 0;
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_cv_prog_cc_g=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 CFLAGS=""
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 main ()
5090 return 0;
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5116 CFLAGS="-g"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5125 main ()
5129 return 0;
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest.$ac_objext; then
5149 ac_cv_prog_cc_g=yes
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ac_c_werror_flag=$ac_save_c_werror_flag
5166 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5168 if test "$ac_test_CFLAGS" = set; then
5169 CFLAGS=$ac_save_CFLAGS
5170 elif test $ac_cv_prog_cc_g = yes; then
5171 if test "$GCC" = yes; then
5172 CFLAGS="-g -O2"
5173 else
5174 CFLAGS="-g"
5176 else
5177 if test "$GCC" = yes; then
5178 CFLAGS="-O2"
5179 else
5180 CFLAGS=
5183 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5184 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5185 if test "${ac_cv_prog_cc_c89+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 ac_cv_prog_cc_c89=no
5189 ac_save_CC=$CC
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <stdarg.h>
5197 #include <stdio.h>
5198 #include <sys/types.h>
5199 #include <sys/stat.h>
5200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5201 struct buf { int x; };
5202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5203 static char *e (p, i)
5204 char **p;
5205 int i;
5207 return p[i];
5209 static char *f (char * (*g) (char **, int), char **p, ...)
5211 char *s;
5212 va_list v;
5213 va_start (v,p);
5214 s = g (p, va_arg (v,int));
5215 va_end (v);
5216 return s;
5219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5220 function prototypes and stuff, but not '\xHH' hex character constants.
5221 These don't provoke an error unfortunately, instead are silently treated
5222 as 'x'. The following induces an error, until -std is added to get
5223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5224 array size at least. It's necessary to write '\x00'==0 to get something
5225 that's true only with -std. */
5226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5229 inside strings and character constants. */
5230 #define FOO(x) 'x'
5231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5233 int test (int i, double x);
5234 struct s1 {int (*f) (int a);};
5235 struct s2 {int (*f) (double a);};
5236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5237 int argc;
5238 char **argv;
5240 main ()
5242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5244 return 0;
5246 _ACEOF
5247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5250 CC="$ac_save_CC $ac_arg"
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_cv_prog_cc_c89=$ac_arg
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5276 rm -f core conftest.err conftest.$ac_objext
5277 test "x$ac_cv_prog_cc_c89" != "xno" && break
5278 done
5279 rm -f conftest.$ac_ext
5280 CC=$ac_save_CC
5283 # AC_CACHE_VAL
5284 case "x$ac_cv_prog_cc_c89" in
5286 { echo "$as_me:$LINENO: result: none needed" >&5
5287 echo "${ECHO_T}none needed" >&6; } ;;
5288 xno)
5289 { echo "$as_me:$LINENO: result: unsupported" >&5
5290 echo "${ECHO_T}unsupported" >&6; } ;;
5292 CC="$CC $ac_cv_prog_cc_c89"
5293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5295 esac
5298 ac_ext=c
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 ac_ext=cpp
5305 ac_cpp='$CXXCPP $CPPFLAGS'
5306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5309 if test -z "$CXX"; then
5310 if test -n "$CCC"; then
5311 CXX=$CCC
5312 else
5313 if test -n "$ac_tool_prefix"; then
5314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_prog_CXX+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$CXX"; then
5324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 CXX=$ac_cv_prog_CXX
5344 if test -n "$CXX"; then
5345 { echo "$as_me:$LINENO: result: $CXX" >&5
5346 echo "${ECHO_T}$CXX" >&6; }
5347 else
5348 { echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6; }
5353 test -n "$CXX" && break
5354 done
5356 if test -z "$CXX"; then
5357 ac_ct_CXX=$CXX
5358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5360 # Extract the first word of "$ac_prog", so it can be a program name with args.
5361 set dummy $ac_prog; ac_word=$2
5362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -n "$ac_ct_CXX"; then
5368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_ac_ct_CXX="$ac_prog"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5388 if test -n "$ac_ct_CXX"; then
5389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5391 else
5392 { echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6; }
5397 test -n "$ac_ct_CXX" && break
5398 done
5400 if test "x$ac_ct_CXX" = x; then
5401 CXX="g++"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5406 whose name does not start with the host triplet. If you think this
5407 configuration is useful to you, please write to autoconf@gnu.org." >&5
5408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5409 whose name does not start with the host triplet. If you think this
5410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413 CXX=$ac_ct_CXX
5419 # Provide some information about the compiler.
5420 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5421 ac_compiler=`set X $ac_compile; echo $2`
5422 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }
5432 { (ac_try="$ac_compiler -v >&5"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compiler -v >&5") 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }
5442 { (ac_try="$ac_compiler -V >&5"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compiler -V >&5") 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }
5453 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5466 main ()
5468 #ifndef __GNUC__
5469 choke me
5470 #endif
5473 return 0;
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && {
5490 test -z "$ac_cxx_werror_flag" ||
5491 test ! -s conftest.err
5492 } && test -s conftest.$ac_objext; then
5493 ac_compiler_gnu=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_compiler_gnu=no
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5505 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5506 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5507 GXX=`test $ac_compiler_gnu = yes && echo yes`
5508 ac_test_CXXFLAGS=${CXXFLAGS+set}
5509 ac_save_CXXFLAGS=$CXXFLAGS
5510 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5512 if test "${ac_cv_prog_cxx_g+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5516 ac_cxx_werror_flag=yes
5517 ac_cv_prog_cxx_g=no
5518 CXXFLAGS="-g"
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5527 main ()
5531 return 0;
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_cxx_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_cv_prog_cxx_g=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 CXXFLAGS=""
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5565 main ()
5569 return 0;
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_cxx_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5595 CXXFLAGS="-g"
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5604 main ()
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_cxx_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_prog_cxx_g=yes
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5646 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5647 if test "$ac_test_CXXFLAGS" = set; then
5648 CXXFLAGS=$ac_save_CXXFLAGS
5649 elif test $ac_cv_prog_cxx_g = yes; then
5650 if test "$GXX" = yes; then
5651 CXXFLAGS="-g -O2"
5652 else
5653 CXXFLAGS="-g"
5655 else
5656 if test "$GXX" = yes; then
5657 CXXFLAGS="-O2"
5658 else
5659 CXXFLAGS=
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5675 # On Suns, sometimes $CPP names a directory.
5676 if test -n "$CPP" && test -d "$CPP"; then
5677 CPP=
5679 if test -z "$CPP"; then
5680 if test "${ac_cv_prog_CPP+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 # Double quotes because CPP needs to be expanded
5684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5686 ac_preproc_ok=false
5687 for ac_c_preproc_warn_flag in '' yes
5689 # Use a header file that comes with gcc, so configuring glibc
5690 # with a fresh cross-compiler works.
5691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 # <limits.h> exists even on freestanding compilers.
5693 # On the NeXT, cc -E runs the code through the compiler's parser,
5694 # not just through cpp. "Syntax error" is here to catch this case.
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #ifdef __STDC__
5702 # include <limits.h>
5703 #else
5704 # include <assert.h>
5705 #endif
5706 Syntax error
5707 _ACEOF
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5709 case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 }; then
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 # Broken: fails on valid input.
5730 continue
5733 rm -f conftest.err conftest.$ac_ext
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5744 _ACEOF
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 }; then
5761 # Broken: success on invalid input.
5762 continue
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Passes both tests.
5768 ac_preproc_ok=:
5769 break
5772 rm -f conftest.err conftest.$ac_ext
5774 done
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then
5778 break
5781 done
5782 ac_cv_prog_CPP=$CPP
5785 CPP=$ac_cv_prog_CPP
5786 else
5787 ac_cv_prog_CPP=$CPP
5789 { echo "$as_me:$LINENO: result: $CPP" >&5
5790 echo "${ECHO_T}$CPP" >&6; }
5791 ac_preproc_ok=false
5792 for ac_c_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 #ifdef __STDC__
5807 # include <limits.h>
5808 #else
5809 # include <assert.h>
5810 #endif
5811 Syntax error
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 }; then
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 # Broken: fails on valid input.
5835 continue
5838 rm -f conftest.err conftest.$ac_ext
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <ac_nonexistent.h>
5849 _ACEOF
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 # Broken: success on invalid input.
5867 continue
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 # Passes both tests.
5873 ac_preproc_ok=:
5874 break
5877 rm -f conftest.err conftest.$ac_ext
5879 done
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.err conftest.$ac_ext
5882 if $ac_preproc_ok; then
5884 else
5885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5886 See \`config.log' for more details." >&5
5887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5888 See \`config.log' for more details." >&2;}
5889 { (exit 1); exit 1; }; }
5892 ac_ext=c
5893 ac_cpp='$CPP $CPPFLAGS'
5894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898 ac_ext=cpp
5899 ac_cpp='$CXXCPP $CPPFLAGS'
5900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5903 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5904 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5905 if test -z "$CXXCPP"; then
5906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 # Double quotes because CXXCPP needs to be expanded
5910 for CXXCPP in "$CXX -E" "/lib/cpp"
5912 ac_preproc_ok=false
5913 for ac_cxx_preproc_warn_flag in '' yes
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #ifdef __STDC__
5928 # include <limits.h>
5929 #else
5930 # include <assert.h>
5931 #endif
5932 Syntax error
5933 _ACEOF
5934 if { (ac_try="$ac_cpp conftest.$ac_ext"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 }; then
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 # Broken: fails on valid input.
5956 continue
5959 rm -f conftest.err conftest.$ac_ext
5961 # OK, works on sane cases. Now check whether nonexistent headers
5962 # can be detected and how.
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5970 _ACEOF
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null && {
5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5986 }; then
5987 # Broken: success on invalid input.
5988 continue
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 # Passes both tests.
5994 ac_preproc_ok=:
5995 break
5998 rm -f conftest.err conftest.$ac_ext
6000 done
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.$ac_ext
6003 if $ac_preproc_ok; then
6004 break
6007 done
6008 ac_cv_prog_CXXCPP=$CXXCPP
6011 CXXCPP=$ac_cv_prog_CXXCPP
6012 else
6013 ac_cv_prog_CXXCPP=$CXXCPP
6015 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6016 echo "${ECHO_T}$CXXCPP" >&6; }
6017 ac_preproc_ok=false
6018 for ac_cxx_preproc_warn_flag in '' yes
6020 # Use a header file that comes with gcc, so configuring glibc
6021 # with a fresh cross-compiler works.
6022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6023 # <limits.h> exists even on freestanding compilers.
6024 # On the NeXT, cc -E runs the code through the compiler's parser,
6025 # not just through cpp. "Syntax error" is here to catch this case.
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #ifdef __STDC__
6033 # include <limits.h>
6034 #else
6035 # include <assert.h>
6036 #endif
6037 Syntax error
6038 _ACEOF
6039 if { (ac_try="$ac_cpp conftest.$ac_ext"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null && {
6052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6053 test ! -s conftest.err
6054 }; then
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 # Broken: fails on valid input.
6061 continue
6064 rm -f conftest.err conftest.$ac_ext
6066 # OK, works on sane cases. Now check whether nonexistent headers
6067 # can be detected and how.
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if { (ac_try="$ac_cpp conftest.$ac_ext"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } >/dev/null && {
6089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6090 test ! -s conftest.err
6091 }; then
6092 # Broken: success on invalid input.
6093 continue
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 # Passes both tests.
6099 ac_preproc_ok=:
6100 break
6103 rm -f conftest.err conftest.$ac_ext
6105 done
6106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6107 rm -f conftest.err conftest.$ac_ext
6108 if $ac_preproc_ok; then
6110 else
6111 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6112 See \`config.log' for more details." >&5
6113 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6114 See \`config.log' for more details." >&2;}
6115 { (exit 1); exit 1; }; }
6118 ac_ext=c
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6124 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6125 # the developers regenerating the configure script don't have to install libtool.
6126 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6127 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6128 if test "${ac_cv_path_SED+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6132 for ac_i in 1 2 3 4 5 6 7; do
6133 ac_script="$ac_script$as_nl$ac_script"
6134 done
6135 echo "$ac_script" | sed 99q >conftest.sed
6136 $as_unset ac_script || ac_script=
6137 # Extract the first word of "sed gsed" to use in msg output
6138 if test -z "$SED"; then
6139 set dummy sed gsed; ac_prog_name=$2
6140 if test "${ac_cv_path_SED+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 ac_path_SED_found=false
6144 # Loop through the user's path and test for each of PROGNAME-LIST
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_prog in sed gsed; do
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6153 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6154 # Check for GNU ac_path_SED and select it if it is found.
6155 # Check for GNU $ac_path_SED
6156 case `"$ac_path_SED" --version 2>&1` in
6157 *GNU*)
6158 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6160 ac_count=0
6161 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6162 while :
6164 cat "conftest.in" "conftest.in" >"conftest.tmp"
6165 mv "conftest.tmp" "conftest.in"
6166 cp "conftest.in" "conftest.nl"
6167 echo '' >> "conftest.nl"
6168 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6170 ac_count=`expr $ac_count + 1`
6171 if test $ac_count -gt ${ac_path_SED_max-0}; then
6172 # Best one so far, save it but keep looking for a better one
6173 ac_cv_path_SED="$ac_path_SED"
6174 ac_path_SED_max=$ac_count
6176 # 10*(2^10) chars as input seems more than enough
6177 test $ac_count -gt 10 && break
6178 done
6179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6180 esac
6183 $ac_path_SED_found && break 3
6184 done
6185 done
6187 done
6188 IFS=$as_save_IFS
6193 SED="$ac_cv_path_SED"
6194 if test -z "$SED"; then
6195 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6196 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6197 { (exit 1); exit 1; }; }
6200 else
6201 ac_cv_path_SED=$SED
6205 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6206 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6207 SED="$ac_cv_path_SED"
6208 rm -f conftest.sed
6210 { echo "$as_me:$LINENO: checking for egrep" >&5
6211 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6212 if test "${ac_cv_prog_egrep+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6216 then ac_cv_prog_egrep='grep -E'
6217 else ac_cv_prog_egrep='egrep'
6220 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6221 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6222 EGREP=$ac_cv_prog_egrep
6226 # Check whether --with-gnu-ld was given.
6227 if test "${with_gnu_ld+set}" = set; then
6228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6229 else
6230 with_gnu_ld=no
6233 ac_prog=ld
6234 if test "$GCC" = yes; then
6235 # Check if gcc -print-prog-name=ld gives a path.
6236 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6237 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6238 case $host in
6239 *-*-mingw*)
6240 # gcc leaves a trailing carriage return which upsets mingw
6241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6244 esac
6245 case $ac_prog in
6246 # Accept absolute paths.
6247 [\\/]* | ?:[\\/]*)
6248 re_direlt='/[^/][^/]*/\.\./'
6249 # Canonicalize the pathname of ld
6250 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6252 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6253 done
6254 test -z "$LD" && LD="$ac_prog"
6257 # If it fails, then pretend we aren't using GCC.
6258 ac_prog=ld
6261 # If it is relative, then search for the first ld in PATH.
6262 with_gnu_ld=unknown
6264 esac
6265 elif test "$with_gnu_ld" = yes; then
6266 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6267 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6268 else
6269 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6270 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6272 if test "${lt_cv_path_LD+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 if test -z "$LD"; then
6276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277 for ac_dir in $PATH; do
6278 IFS="$lt_save_ifs"
6279 test -z "$ac_dir" && ac_dir=.
6280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6281 lt_cv_path_LD="$ac_dir/$ac_prog"
6282 # Check to see if the program is GNU ld. I'd rather use --version,
6283 # but apparently some variants of GNU ld only accept -v.
6284 # Break only if it was the GNU/non-GNU ld that we prefer.
6285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6286 *GNU* | *'with BFD'*)
6287 test "$with_gnu_ld" != no && break
6290 test "$with_gnu_ld" != yes && break
6292 esac
6294 done
6295 IFS="$lt_save_ifs"
6296 else
6297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6301 LD="$lt_cv_path_LD"
6302 if test -n "$LD"; then
6303 { echo "$as_me:$LINENO: result: $LD" >&5
6304 echo "${ECHO_T}$LD" >&6; }
6305 else
6306 { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6309 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6310 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6311 { (exit 1); exit 1; }; }
6312 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6313 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6314 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6318 case `$LD -v 2>&1 </dev/null` in
6319 *GNU* | *'with BFD'*)
6320 lt_cv_prog_gnu_ld=yes
6323 lt_cv_prog_gnu_ld=no
6325 esac
6327 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6328 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6329 with_gnu_ld=$lt_cv_prog_gnu_ld
6331 # note, does not work on FreeBSD
6332 for ac_prog in gawk mawk nawk awk
6334 # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_prog_AWK+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 if test -n "$AWK"; then
6342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_AWK="$ac_prog"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 AWK=$ac_cv_prog_AWK
6362 if test -n "$AWK"; then
6363 { echo "$as_me:$LINENO: result: $AWK" >&5
6364 echo "${ECHO_T}$AWK" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6371 test -n "$AWK" && break
6372 done
6374 # Find a good install program. We prefer a C program (faster),
6375 # so one script is as good as another. But avoid the broken or
6376 # incompatible versions:
6377 # SysV /etc/install, /usr/sbin/install
6378 # SunOS /usr/etc/install
6379 # IRIX /sbin/install
6380 # AIX /bin/install
6381 # AmigaOS /C/install, which installs bootblocks on floppy discs
6382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6385 # OS/2's system install, which has a completely different semantic
6386 # ./install, which can be erroneously created by make from ./install.sh.
6387 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6389 if test -z "$INSTALL"; then
6390 if test "${ac_cv_path_install+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 # Account for people who put trailing slashes in PATH elements.
6399 case $as_dir/ in
6400 ./ | .// | /cC/* | \
6401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6402 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6403 /usr/ucb/* ) ;;
6405 # OSF1 and SCO ODT 3.0 have their own names for install.
6406 # Don't use installbsd from OSF since it installs stuff as root
6407 # by default.
6408 for ac_prog in ginstall scoinst install; do
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6411 if test $ac_prog = install &&
6412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6413 # AIX install. It has an incompatible calling convention.
6415 elif test $ac_prog = install &&
6416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6417 # program-specific install script used by HP pwplus--don't use.
6419 else
6420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6421 break 3
6424 done
6425 done
6427 esac
6428 done
6429 IFS=$as_save_IFS
6433 if test "${ac_cv_path_install+set}" = set; then
6434 INSTALL=$ac_cv_path_install
6435 else
6436 # As a last resort, use the slow shell script. Don't cache a
6437 # value for INSTALL within a source directory, because that will
6438 # break other packages using the cache if that directory is
6439 # removed, or if the value is a relative name.
6440 INSTALL=$ac_install_sh
6443 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6444 echo "${ECHO_T}$INSTALL" >&6; }
6446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6447 # It thinks the first close brace ends the variable substitution.
6448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6454 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6456 LN_S=$as_ln_s
6457 if test "$LN_S" = "ln -s"; then
6458 { echo "$as_me:$LINENO: result: yes" >&5
6459 echo "${ECHO_T}yes" >&6; }
6460 else
6461 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6462 echo "${ECHO_T}no, using $LN_S" >&6; }
6465 if test -n "$ac_tool_prefix"; then
6466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6467 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_prog_RANLIB+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 if test -n "$RANLIB"; then
6474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6487 done
6488 done
6489 IFS=$as_save_IFS
6493 RANLIB=$ac_cv_prog_RANLIB
6494 if test -n "$RANLIB"; then
6495 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6496 echo "${ECHO_T}$RANLIB" >&6; }
6497 else
6498 { echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6; }
6504 if test -z "$ac_cv_prog_RANLIB"; then
6505 ac_ct_RANLIB=$RANLIB
6506 # Extract the first word of "ranlib", so it can be a program name with args.
6507 set dummy ranlib; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 if test -n "$ac_ct_RANLIB"; then
6514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_ac_ct_RANLIB="ranlib"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6527 done
6528 done
6529 IFS=$as_save_IFS
6533 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6534 if test -n "$ac_ct_RANLIB"; then
6535 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6536 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6537 else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6542 if test "x$ac_ct_RANLIB" = x; then
6543 RANLIB=":"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6548 whose name does not start with the host triplet. If you think this
6549 configuration is useful to you, please write to autoconf@gnu.org." >&5
6550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6551 whose name does not start with the host triplet. If you think this
6552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555 RANLIB=$ac_ct_RANLIB
6557 else
6558 RANLIB="$ac_cv_prog_RANLIB"
6561 { echo "$as_me:$LINENO: checking for GNU make" >&5
6562 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6563 if test "${GNU_MAKE+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 GNU_MAKE='Not Found' ;
6567 GNU_MAKE_VERSION_MAJOR=0 ;
6568 GNU_MAKE_VERSION_MINOR=0 ;
6569 for a in make gmake gnumake ; do
6570 if test -z "$a" ; then continue ; fi ;
6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6572 GNU_MAKE=$a ;
6573 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6574 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6575 break;
6577 done ;
6580 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6581 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6582 if test "x$GNU_MAKE" = "xNot Found" ; then
6583 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6584 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6585 { (exit 1); exit 1; }; }
6586 exit 1
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}strip; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_STRIP+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 case $STRIP in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6620 esac
6622 STRIP=$ac_cv_path_STRIP
6623 if test -n "$STRIP"; then
6624 { echo "$as_me:$LINENO: result: $STRIP" >&5
6625 echo "${ECHO_T}$STRIP" >&6; }
6626 else
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6633 if test -z "$ac_cv_path_STRIP"; then
6634 ac_pt_STRIP=$STRIP
6635 # Extract the first word of "strip", so it can be a program name with args.
6636 set dummy strip; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 case $ac_pt_STRIP in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6658 done
6659 done
6660 IFS=$as_save_IFS
6663 esac
6665 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6666 if test -n "$ac_pt_STRIP"; then
6667 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6668 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6669 else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6674 if test "x$ac_pt_STRIP" = x; then
6675 STRIP=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&5
6682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet. If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687 STRIP=$ac_pt_STRIP
6689 else
6690 STRIP="$ac_cv_path_STRIP"
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}ar; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_AR+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 case $AR in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6722 esac
6724 AR=$ac_cv_path_AR
6725 if test -n "$AR"; then
6726 { echo "$as_me:$LINENO: result: $AR" >&5
6727 echo "${ECHO_T}$AR" >&6; }
6728 else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6735 if test -z "$ac_cv_path_AR"; then
6736 ac_pt_AR=$AR
6737 # Extract the first word of "ar", so it can be a program name with args.
6738 set dummy ar; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 case $ac_pt_AR in
6745 [\\/]* | ?:[\\/]*)
6746 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6765 esac
6767 ac_pt_AR=$ac_cv_path_ac_pt_AR
6768 if test -n "$ac_pt_AR"; then
6769 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6770 echo "${ECHO_T}$ac_pt_AR" >&6; }
6771 else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6776 if test "x$ac_pt_AR" = x; then
6777 AR=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&5
6784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet. If you think this
6786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 AR=$ac_pt_AR
6791 else
6792 AR="$ac_cv_path_AR"
6796 GNU_LD=0
6797 if test "x$with_gnu_ld" = "xyes" ; then
6798 GNU_LD=1
6802 # Extract the first word of "grep", so it can be a program name with args.
6803 set dummy grep; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_GREP+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 case $GREP in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6825 done
6826 done
6827 IFS=$as_save_IFS
6829 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6831 esac
6833 GREP=$ac_cv_path_GREP
6834 if test -n "$GREP"; then
6835 { echo "$as_me:$LINENO: result: $GREP" >&5
6836 echo "${ECHO_T}$GREP" >&6; }
6837 else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 # Extract the first word of "find", so it can be a program name with args.
6844 set dummy find; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_FIND+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 case $FIND in
6851 [\\/]* | ?:[\\/]*)
6852 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6866 done
6867 done
6868 IFS=$as_save_IFS
6870 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6872 esac
6874 FIND=$ac_cv_path_FIND
6875 if test -n "$FIND"; then
6876 { echo "$as_me:$LINENO: result: $FIND" >&5
6877 echo "${ECHO_T}$FIND" >&6; }
6878 else
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6884 # Extract the first word of "compress", so it can be a program name with args.
6885 set dummy compress; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_COMPRESS+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 case $COMPRESS in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6907 done
6908 done
6909 IFS=$as_save_IFS
6911 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6913 esac
6915 COMPRESS=$ac_cv_path_COMPRESS
6916 if test -n "$COMPRESS"; then
6917 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6918 echo "${ECHO_T}$COMPRESS" >&6; }
6919 else
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6925 # Extract the first word of "basename", so it can be a program name with args.
6926 set dummy basename; ac_word=$2
6927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929 if test "${ac_cv_path_BASENAME+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 case $BASENAME in
6933 [\\/]* | ?:[\\/]*)
6934 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6948 done
6949 done
6950 IFS=$as_save_IFS
6952 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6954 esac
6956 BASENAME=$ac_cv_path_BASENAME
6957 if test -n "$BASENAME"; then
6958 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6959 echo "${ECHO_T}$BASENAME" >&6; }
6960 else
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6966 # Extract the first word of "id", so it can be a program name with args.
6967 set dummy id; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_ID+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 case $ID in
6974 [\\/]* | ?:[\\/]*)
6975 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6993 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6995 esac
6997 ID=$ac_cv_path_ID
6998 if test -n "$ID"; then
6999 { echo "$as_me:$LINENO: result: $ID" >&5
7000 echo "${ECHO_T}$ID" >&6; }
7001 else
7002 { echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6; }
7007 # Extract the first word of "dirname", so it can be a program name with args.
7008 set dummy dirname; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_path_DIRNAME+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 case $DIRNAME in
7015 [\\/]* | ?:[\\/]*)
7016 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7030 done
7031 done
7032 IFS=$as_save_IFS
7034 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7036 esac
7038 DIRNAME=$ac_cv_path_DIRNAME
7039 if test -n "$DIRNAME"; then
7040 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7041 echo "${ECHO_T}$DIRNAME" >&6; }
7042 else
7043 { echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6; }
7048 # Extract the first word of "sh", so it can be a program name with args.
7049 set dummy sh; ac_word=$2
7050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052 if test "${ac_cv_path_SHELL+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 case $SHELL in
7056 [\\/]* | ?:[\\/]*)
7057 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7075 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7077 esac
7079 SHELL=$ac_cv_path_SHELL
7080 if test -n "$SHELL"; then
7081 { echo "$as_me:$LINENO: result: $SHELL" >&5
7082 echo "${ECHO_T}$SHELL" >&6; }
7083 else
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 # Extract the first word of "ln", so it can be a program name with args.
7090 set dummy ln; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_LN+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 case $LN in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7116 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7118 esac
7120 LN=$ac_cv_path_LN
7121 if test -n "$LN"; then
7122 { echo "$as_me:$LINENO: result: $LN" >&5
7123 echo "${ECHO_T}$LN" >&6; }
7124 else
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7130 # Extract the first word of "dot", so it can be a program name with args.
7131 set dummy dot; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_DOT+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 case $DOT in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7153 done
7154 done
7155 IFS=$as_save_IFS
7157 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7159 esac
7161 DOT=$ac_cv_path_DOT
7162 if test -n "$DOT"; then
7163 { echo "$as_me:$LINENO: result: $DOT" >&5
7164 echo "${ECHO_T}$DOT" >&6; }
7165 else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "wget", so it can be a program name with args.
7172 set dummy wget; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_WGET+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 case $WGET in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7194 done
7195 done
7196 IFS=$as_save_IFS
7198 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7200 esac
7202 WGET=$ac_cv_path_WGET
7203 if test -n "$WGET"; then
7204 { echo "$as_me:$LINENO: result: $WGET" >&5
7205 echo "${ECHO_T}$WGET" >&6; }
7206 else
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "rubber", so it can be a program name with args.
7213 set dummy rubber; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_RUBBER+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 case $RUBBER in
7220 [\\/]* | ?:[\\/]*)
7221 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7235 done
7236 done
7237 IFS=$as_save_IFS
7239 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7241 esac
7243 RUBBER=$ac_cv_path_RUBBER
7244 if test -n "$RUBBER"; then
7245 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7246 echo "${ECHO_T}$RUBBER" >&6; }
7247 else
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 # Extract the first word of "kpsewhich", so it can be a program name with args.
7254 set dummy kpsewhich; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 case $KPATHSEA in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7276 done
7277 done
7278 IFS=$as_save_IFS
7280 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7282 esac
7284 KPATHSEA=$ac_cv_path_KPATHSEA
7285 if test -n "$KPATHSEA"; then
7286 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7287 echo "${ECHO_T}$KPATHSEA" >&6; }
7288 else
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7294 if test "${WGET}" != ":" ; then
7295 DOWNLOAD=${WGET}
7296 else
7297 # Extract the first word of "fetch", so it can be a program name with args.
7298 set dummy fetch; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_FETCH+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 case $FETCH in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7322 IFS=$as_save_IFS
7324 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7326 esac
7328 FETCH=$ac_cv_path_FETCH
7329 if test -n "$FETCH"; then
7330 { echo "$as_me:$LINENO: result: $FETCH" >&5
7331 echo "${ECHO_T}$FETCH" >&6; }
7332 else
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7338 DOWNLOAD=${FETCH}
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 if test -n "$SOXMIX"; then
7351 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7364 done
7365 done
7366 IFS=$as_save_IFS
7370 SOXMIX=$ac_cv_prog_SOXMIX
7371 if test -n "$SOXMIX"; then
7372 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7373 echo "${ECHO_T}$SOXMIX" >&6; }
7374 else
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7381 if test -z "$ac_cv_prog_SOXMIX"; then
7382 ac_ct_SOXMIX=$SOXMIX
7383 # Extract the first word of "soxmix", so it can be a program name with args.
7384 set dummy soxmix; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 if test -n "$ac_ct_SOXMIX"; then
7391 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7406 IFS=$as_save_IFS
7410 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7411 if test -n "$ac_ct_SOXMIX"; then
7412 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7413 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7414 else
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7419 if test "x$ac_ct_SOXMIX" = x; then
7420 SOXMIX=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet. If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&5
7427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7428 whose name does not start with the host triplet. If you think this
7429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 SOXMIX=$ac_ct_SOXMIX
7434 else
7435 SOXMIX="$ac_cv_prog_SOXMIX"
7438 if test "${SOXMIX}" != ":" ; then
7440 cat >>confdefs.h <<\_ACEOF
7441 #define HAVE_SOXMIX 1
7442 _ACEOF
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455 acx_pthread_ok=no
7457 # We used to check for pthread.h first, but this fails if pthread.h
7458 # requires special compiler flags (e.g. on True64 or Sequent).
7459 # It gets checked for in the link test anyway.
7461 # First of all, check if the user has set any of the PTHREAD_LIBS,
7462 # etcetera environment variables, and if threads linking works using
7463 # them:
7464 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7465 save_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7467 save_LIBS="$LIBS"
7468 LIBS="$PTHREAD_LIBS $LIBS"
7469 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7470 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any GCC internal prototype to avoid an error.
7479 Use char because int might match the return type of a GCC
7480 builtin and then its argument prototype would still apply. */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 char pthread_join ();
7486 main ()
7488 return pthread_join ();
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (ac_try="$ac_link"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_link") 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest$ac_exeext &&
7510 $as_test_x conftest$ac_exeext; then
7511 acx_pthread_ok=yes
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7520 conftest$ac_exeext conftest.$ac_ext
7521 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7522 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7523 if test x"$acx_pthread_ok" = xno; then
7524 PTHREAD_LIBS=""
7525 PTHREAD_CFLAGS=""
7527 LIBS="$save_LIBS"
7528 CFLAGS="$save_CFLAGS"
7531 # We must check for the threads library under a number of different
7532 # names; the ordering is very important because some systems
7533 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7534 # libraries is broken (non-POSIX).
7536 # Create a list of thread flags to try. Items starting with a "-" are
7537 # C compiler flags, and other items are library names, except for "none"
7538 # which indicates that we try without any flags at all, and "pthread-config"
7539 # which is a program returning the flags for the Pth emulation library.
7541 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7543 # The ordering *is* (sometimes) important. Some notes on the
7544 # individual items follow:
7546 # pthreads: AIX (must check this before -lpthread)
7547 # none: in case threads are in libc; should be tried before -Kthread and
7548 # other compiler flags to prevent continual compiler warnings
7549 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7550 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7551 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7552 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7553 # -pthreads: Solaris/gcc
7554 # -mthreads: Mingw32/gcc, Lynx/gcc
7555 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7556 # doesn't hurt to check since this sometimes defines pthreads too;
7557 # also defines -D_REENTRANT)
7558 # ... -mt is also the pthreads flag for HP/aCC
7559 # pthread: Linux, etcetera
7560 # --thread-safe: KAI C++
7561 # pthread-config: use pthread-config program (for GNU Pth library)
7563 case "${host_cpu}-${host_os}" in
7564 *solaris*)
7566 # On Solaris (at least, for some versions), libc contains stubbed
7567 # (non-functional) versions of the pthreads routines, so link-based
7568 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7569 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7570 # a function called by this macro, so we could check for that, but
7571 # who knows whether they'll stub that too in a future libc.) So,
7572 # we'll just look for -pthreads and -lpthread first:
7574 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7576 esac
7578 if test x"$acx_pthread_ok" = xno; then
7579 for flag in $acx_pthread_flags; do
7581 case $flag in
7582 none)
7583 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7584 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7588 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7589 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7590 PTHREAD_CFLAGS="$flag"
7593 pthread-config)
7594 # Extract the first word of "pthread-config", so it can be a program name with args.
7595 set dummy pthread-config; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 if test -n "$acx_pthread_config"; then
7602 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_acx_pthread_config="yes"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7619 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7622 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7623 if test -n "$acx_pthread_config"; then
7624 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7625 echo "${ECHO_T}$acx_pthread_config" >&6; }
7626 else
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 if test x"$acx_pthread_config" = xno; then continue; fi
7633 PTHREAD_CFLAGS="`pthread-config --cflags`"
7634 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7638 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7639 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7640 PTHREAD_LIBS="-l$flag"
7642 esac
7644 save_LIBS="$LIBS"
7645 save_CFLAGS="$CFLAGS"
7646 LIBS="$PTHREAD_LIBS $LIBS"
7647 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7649 # Check for various functions. We must include pthread.h,
7650 # since some functions may be macros. (On the Sequent, we
7651 # need a special flag -Kthread to make this header compile.)
7652 # We check for pthread_join because it is in -lpthread on IRIX
7653 # while pthread_create is in libc. We check for pthread_attr_init
7654 # due to DEC craziness with -lpthreads. We check for
7655 # pthread_cleanup_push because it is one of the few pthread
7656 # functions on Solaris that doesn't have a non-functional libc stub.
7657 # We try pthread_create on general principles.
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 #include <pthread.h>
7666 main ()
7668 pthread_t th; pthread_join(th, 0);
7669 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7670 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest$ac_exeext &&
7692 $as_test_x conftest$ac_exeext; then
7693 acx_pthread_ok=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7702 conftest$ac_exeext conftest.$ac_ext
7704 LIBS="$save_LIBS"
7705 CFLAGS="$save_CFLAGS"
7707 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7708 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7709 if test "x$acx_pthread_ok" = xyes; then
7710 break;
7713 PTHREAD_LIBS=""
7714 PTHREAD_CFLAGS=""
7715 done
7718 # Various other checks:
7719 if test "x$acx_pthread_ok" = xyes; then
7720 save_LIBS="$LIBS"
7721 LIBS="$PTHREAD_LIBS $LIBS"
7722 save_CFLAGS="$CFLAGS"
7723 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7725 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7726 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7727 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7728 attr_name=unknown
7729 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #include <pthread.h>
7738 main ()
7740 int attr=$attr; return attr;
7742 return 0;
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_link") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest$ac_exeext &&
7762 $as_test_x conftest$ac_exeext; then
7763 attr_name=$attr; break
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772 conftest$ac_exeext conftest.$ac_ext
7773 done
7774 { echo "$as_me:$LINENO: result: $attr_name" >&5
7775 echo "${ECHO_T}$attr_name" >&6; }
7776 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7778 cat >>confdefs.h <<_ACEOF
7779 #define PTHREAD_CREATE_JOINABLE $attr_name
7780 _ACEOF
7784 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7785 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7786 flag=no
7787 case "${host_cpu}-${host_os}" in
7788 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7789 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7790 esac
7791 { echo "$as_me:$LINENO: result: ${flag}" >&5
7792 echo "${ECHO_T}${flag}" >&6; }
7793 if test "x$flag" != xno; then
7794 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7797 LIBS="$save_LIBS"
7798 CFLAGS="$save_CFLAGS"
7800 # More AIX lossage: must compile with xlc_r or cc_r
7801 if test x"$GCC" != xyes; then
7802 for ac_prog in xlc_r cc_r
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 if test -n "$PTHREAD_CC"; then
7812 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_PTHREAD_CC="$ac_prog"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7831 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7832 if test -n "$PTHREAD_CC"; then
7833 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7834 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7835 else
7836 { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7841 test -n "$PTHREAD_CC" && break
7842 done
7843 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7845 else
7846 PTHREAD_CC=$CC
7848 else
7849 PTHREAD_CC="$CC"
7856 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7857 if test x"$acx_pthread_ok" = xyes; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_PTHREAD 1
7861 _ACEOF
7864 else
7865 acx_pthread_ok=no
7868 ac_ext=c
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 # Check whether --enable-dev-mode was given.
7884 if test "${enable_dev_mode+set}" = set; then
7885 enableval=$enable_dev_mode; case "${enableval}" in
7886 y|ye|yes) AST_DEVMODE=yes ;;
7887 n|no) AST_DEVMODE=no ;;
7888 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7889 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7890 { (exit 1); exit 1; }; } ;;
7891 esac
7896 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7897 # various packages.
7898 # $1 is the prefix for the variables in makeopts and autoconfig.h
7899 # $2 is the short comment, $4 is the long comment
7900 # $3 is the name used in --with- or --without- flags for configure.
7902 # Package option names should be in alphabetical order
7903 # by the --with option name (the third field),
7904 # to make things easier for the users.
7907 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7908 ALSA_OPTION="asound"
7910 # Check whether --with-asound was given.
7911 if test "${with_asound+set}" = set; then
7912 withval=$with_asound;
7913 case ${withval} in
7914 n|no)
7915 USE_ALSA=no
7917 y|ye|yes)
7918 ac_mandatory_list="${ac_mandatory_list} ALSA"
7921 ALSA_DIR="${withval}"
7922 ac_mandatory_list="${ac_mandatory_list} ALSA"
7924 esac
7928 PBX_ALSA=0
7935 # BKTR is used for backtrace support on platforms that do not
7936 # have it natively.
7938 BKTR_DESCRIP="Stack Backtrace support"
7939 BKTR_OPTION="execinfo"
7941 # Check whether --with-execinfo was given.
7942 if test "${with_execinfo+set}" = set; then
7943 withval=$with_execinfo;
7944 case ${withval} in
7945 n|no)
7946 USE_BKTR=no
7948 y|ye|yes)
7949 ac_mandatory_list="${ac_mandatory_list} BKTR"
7952 BKTR_DIR="${withval}"
7953 ac_mandatory_list="${ac_mandatory_list} BKTR"
7955 esac
7959 PBX_BKTR=0
7966 CAP_DESCRIP="POSIX 1.e capabilities"
7967 CAP_OPTION="cap"
7969 # Check whether --with-cap was given.
7970 if test "${with_cap+set}" = set; then
7971 withval=$with_cap;
7972 case ${withval} in
7973 n|no)
7974 USE_CAP=no
7976 y|ye|yes)
7977 ac_mandatory_list="${ac_mandatory_list} CAP"
7980 CAP_DIR="${withval}"
7981 ac_mandatory_list="${ac_mandatory_list} CAP"
7983 esac
7987 PBX_CAP=0
7994 CURL_DESCRIP="cURL"
7995 CURL_OPTION="curl"
7997 # Check whether --with-curl was given.
7998 if test "${with_curl+set}" = set; then
7999 withval=$with_curl;
8000 case ${withval} in
8001 n|no)
8002 USE_CURL=no
8004 y|ye|yes)
8005 ac_mandatory_list="${ac_mandatory_list} CURL"
8008 CURL_DIR="${withval}"
8009 ac_mandatory_list="${ac_mandatory_list} CURL"
8011 esac
8015 PBX_CURL=0
8022 CURSES_DESCRIP="curses"
8023 CURSES_OPTION="curses"
8025 # Check whether --with-curses was given.
8026 if test "${with_curses+set}" = set; then
8027 withval=$with_curses;
8028 case ${withval} in
8029 n|no)
8030 USE_CURSES=no
8032 y|ye|yes)
8033 ac_mandatory_list="${ac_mandatory_list} CURSES"
8036 CURSES_DIR="${withval}"
8037 ac_mandatory_list="${ac_mandatory_list} CURSES"
8039 esac
8043 PBX_CURSES=0
8050 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8051 CRYPTO_OPTION="crypto"
8053 # Check whether --with-crypto was given.
8054 if test "${with_crypto+set}" = set; then
8055 withval=$with_crypto;
8056 case ${withval} in
8057 n|no)
8058 USE_CRYPTO=no
8060 y|ye|yes)
8061 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8064 CRYPTO_DIR="${withval}"
8065 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8067 esac
8071 PBX_CRYPTO=0
8078 DAHDI_DESCRIP="DAHDI"
8079 DAHDI_OPTION="dahdi"
8081 # Check whether --with-dahdi was given.
8082 if test "${with_dahdi+set}" = set; then
8083 withval=$with_dahdi;
8084 case ${withval} in
8085 n|no)
8086 USE_DAHDI=no
8088 y|ye|yes)
8089 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8092 DAHDI_DIR="${withval}"
8093 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8095 esac
8099 PBX_DAHDI=0
8106 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8107 FFMPEG_OPTION="avcodec"
8109 # Check whether --with-avcodec was given.
8110 if test "${with_avcodec+set}" = set; then
8111 withval=$with_avcodec;
8112 case ${withval} in
8113 n|no)
8114 USE_FFMPEG=no
8116 y|ye|yes)
8117 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8120 FFMPEG_DIR="${withval}"
8121 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8123 esac
8127 PBX_FFMPEG=0
8134 GSM_DESCRIP="External GSM library"
8135 GSM_OPTION="gsm"
8137 # Check whether --with-gsm was given.
8138 if test "${with_gsm+set}" = set; then
8139 withval=$with_gsm;
8140 case ${withval} in
8141 n|no)
8142 USE_GSM=no
8144 y|ye|yes)
8145 ac_mandatory_list="${ac_mandatory_list} GSM"
8148 GSM_DIR="${withval}"
8149 ac_mandatory_list="${ac_mandatory_list} GSM"
8151 esac
8155 PBX_GSM=0
8162 GTK_DESCRIP="gtk libraries"
8163 GTK_OPTION="gtk"
8165 # Check whether --with-gtk was given.
8166 if test "${with_gtk+set}" = set; then
8167 withval=$with_gtk;
8168 case ${withval} in
8169 n|no)
8170 USE_GTK=no
8172 y|ye|yes)
8173 ac_mandatory_list="${ac_mandatory_list} GTK"
8176 GTK_DIR="${withval}"
8177 ac_mandatory_list="${ac_mandatory_list} GTK"
8179 esac
8183 PBX_GTK=0
8190 GTK2_DESCRIP="gtk2 libraries"
8191 GTK2_OPTION="gtk2"
8193 # Check whether --with-gtk2 was given.
8194 if test "${with_gtk2+set}" = set; then
8195 withval=$with_gtk2;
8196 case ${withval} in
8197 n|no)
8198 USE_GTK2=no
8200 y|ye|yes)
8201 ac_mandatory_list="${ac_mandatory_list} GTK2"
8204 GTK2_DIR="${withval}"
8205 ac_mandatory_list="${ac_mandatory_list} GTK2"
8207 esac
8211 PBX_GTK2=0
8218 GMIME_DESCRIP="GMime library"
8219 GMIME_OPTION="gmime"
8221 # Check whether --with-gmime was given.
8222 if test "${with_gmime+set}" = set; then
8223 withval=$with_gmime;
8224 case ${withval} in
8225 n|no)
8226 USE_GMIME=no
8228 y|ye|yes)
8229 ac_mandatory_list="${ac_mandatory_list} GMIME"
8232 GMIME_DIR="${withval}"
8233 ac_mandatory_list="${ac_mandatory_list} GMIME"
8235 esac
8239 PBX_GMIME=0
8246 HOARD_DESCRIP="Hoard Memory Allocator"
8247 HOARD_OPTION="hoard"
8249 # Check whether --with-hoard was given.
8250 if test "${with_hoard+set}" = set; then
8251 withval=$with_hoard;
8252 case ${withval} in
8253 n|no)
8254 USE_HOARD=no
8256 y|ye|yes)
8257 ac_mandatory_list="${ac_mandatory_list} HOARD"
8260 HOARD_DIR="${withval}"
8261 ac_mandatory_list="${ac_mandatory_list} HOARD"
8263 esac
8267 PBX_HOARD=0
8274 ICONV_DESCRIP="Iconv Library"
8275 ICONV_OPTION="iconv"
8277 # Check whether --with-iconv was given.
8278 if test "${with_iconv+set}" = set; then
8279 withval=$with_iconv;
8280 case ${withval} in
8281 n|no)
8282 USE_ICONV=no
8284 y|ye|yes)
8285 ac_mandatory_list="${ac_mandatory_list} ICONV"
8288 ICONV_DIR="${withval}"
8289 ac_mandatory_list="${ac_mandatory_list} ICONV"
8291 esac
8295 PBX_ICONV=0
8302 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8303 IKSEMEL_OPTION="iksemel"
8305 # Check whether --with-iksemel was given.
8306 if test "${with_iksemel+set}" = set; then
8307 withval=$with_iksemel;
8308 case ${withval} in
8309 n|no)
8310 USE_IKSEMEL=no
8312 y|ye|yes)
8313 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8316 IKSEMEL_DIR="${withval}"
8317 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8319 esac
8323 PBX_IKSEMEL=0
8330 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8331 IMAP_TK_OPTION="imap"
8333 # Check whether --with-imap was given.
8334 if test "${with_imap+set}" = set; then
8335 withval=$with_imap;
8336 case ${withval} in
8337 n|no)
8338 USE_IMAP_TK=no
8340 y|ye|yes)
8341 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8344 IMAP_TK_DIR="${withval}"
8345 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8347 esac
8351 PBX_IMAP_TK=0
8358 ISDNNET_DESCRIP="ISDN4Linux Library"
8359 ISDNNET_OPTION="isdnnet"
8361 # Check whether --with-isdnnet was given.
8362 if test "${with_isdnnet+set}" = set; then
8363 withval=$with_isdnnet;
8364 case ${withval} in
8365 n|no)
8366 USE_ISDNNET=no
8368 y|ye|yes)
8369 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8372 ISDNNET_DIR="${withval}"
8373 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8375 esac
8379 PBX_ISDNNET=0
8386 JACK_DESCRIP="Jack Audio Connection Kit"
8387 JACK_OPTION="jack"
8389 # Check whether --with-jack was given.
8390 if test "${with_jack+set}" = set; then
8391 withval=$with_jack;
8392 case ${withval} in
8393 n|no)
8394 USE_JACK=no
8396 y|ye|yes)
8397 ac_mandatory_list="${ac_mandatory_list} JACK"
8400 JACK_DIR="${withval}"
8401 ac_mandatory_list="${ac_mandatory_list} JACK"
8403 esac
8407 PBX_JACK=0
8414 LDAP_DESCRIP="OpenLDAP"
8415 LDAP_OPTION="ldap"
8417 # Check whether --with-ldap was given.
8418 if test "${with_ldap+set}" = set; then
8419 withval=$with_ldap;
8420 case ${withval} in
8421 n|no)
8422 USE_LDAP=no
8424 y|ye|yes)
8425 ac_mandatory_list="${ac_mandatory_list} LDAP"
8428 LDAP_DIR="${withval}"
8429 ac_mandatory_list="${ac_mandatory_list} LDAP"
8431 esac
8435 PBX_LDAP=0
8442 LTDL_DESCRIP="libtool"
8443 LTDL_OPTION="ltdl"
8445 # Check whether --with-ltdl was given.
8446 if test "${with_ltdl+set}" = set; then
8447 withval=$with_ltdl;
8448 case ${withval} in
8449 n|no)
8450 USE_LTDL=no
8452 y|ye|yes)
8453 ac_mandatory_list="${ac_mandatory_list} LTDL"
8456 LTDL_DIR="${withval}"
8457 ac_mandatory_list="${ac_mandatory_list} LTDL"
8459 esac
8463 PBX_LTDL=0
8470 LUA_DESCRIP="Lua"
8471 LUA_OPTION="lua"
8473 # Check whether --with-lua was given.
8474 if test "${with_lua+set}" = set; then
8475 withval=$with_lua;
8476 case ${withval} in
8477 n|no)
8478 USE_LUA=no
8480 y|ye|yes)
8481 ac_mandatory_list="${ac_mandatory_list} LUA"
8484 LUA_DIR="${withval}"
8485 ac_mandatory_list="${ac_mandatory_list} LUA"
8487 esac
8491 PBX_LUA=0
8498 MISDN_DESCRIP="mISDN User Library"
8499 MISDN_OPTION="misdn"
8501 # Check whether --with-misdn was given.
8502 if test "${with_misdn+set}" = set; then
8503 withval=$with_misdn;
8504 case ${withval} in
8505 n|no)
8506 USE_MISDN=no
8508 y|ye|yes)
8509 ac_mandatory_list="${ac_mandatory_list} MISDN"
8512 MISDN_DIR="${withval}"
8513 ac_mandatory_list="${ac_mandatory_list} MISDN"
8515 esac
8519 PBX_MISDN=0
8526 NBS_DESCRIP="Network Broadcast Sound"
8527 NBS_OPTION="nbs"
8529 # Check whether --with-nbs was given.
8530 if test "${with_nbs+set}" = set; then
8531 withval=$with_nbs;
8532 case ${withval} in
8533 n|no)
8534 USE_NBS=no
8536 y|ye|yes)
8537 ac_mandatory_list="${ac_mandatory_list} NBS"
8540 NBS_DIR="${withval}"
8541 ac_mandatory_list="${ac_mandatory_list} NBS"
8543 esac
8547 PBX_NBS=0
8554 NCURSES_DESCRIP="ncurses"
8555 NCURSES_OPTION="ncurses"
8557 # Check whether --with-ncurses was given.
8558 if test "${with_ncurses+set}" = set; then
8559 withval=$with_ncurses;
8560 case ${withval} in
8561 n|no)
8562 USE_NCURSES=no
8564 y|ye|yes)
8565 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8568 NCURSES_DIR="${withval}"
8569 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8571 esac
8575 PBX_NCURSES=0
8582 NETSNMP_DESCRIP="Net-SNMP"
8583 NETSNMP_OPTION="netsnmp"
8585 # Check whether --with-netsnmp was given.
8586 if test "${with_netsnmp+set}" = set; then
8587 withval=$with_netsnmp;
8588 case ${withval} in
8589 n|no)
8590 USE_NETSNMP=no
8592 y|ye|yes)
8593 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8596 NETSNMP_DIR="${withval}"
8597 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8599 esac
8603 PBX_NETSNMP=0
8610 NEWT_DESCRIP="newt"
8611 NEWT_OPTION="newt"
8613 # Check whether --with-newt was given.
8614 if test "${with_newt+set}" = set; then
8615 withval=$with_newt;
8616 case ${withval} in
8617 n|no)
8618 USE_NEWT=no
8620 y|ye|yes)
8621 ac_mandatory_list="${ac_mandatory_list} NEWT"
8624 NEWT_DIR="${withval}"
8625 ac_mandatory_list="${ac_mandatory_list} NEWT"
8627 esac
8631 PBX_NEWT=0
8638 UNIXODBC_DESCRIP="unixODBC"
8639 UNIXODBC_OPTION="odbc"
8641 # Check whether --with-odbc was given.
8642 if test "${with_odbc+set}" = set; then
8643 withval=$with_odbc;
8644 case ${withval} in
8645 n|no)
8646 USE_UNIXODBC=no
8648 y|ye|yes)
8649 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8652 UNIXODBC_DIR="${withval}"
8653 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8655 esac
8659 PBX_UNIXODBC=0
8666 OGG_DESCRIP="OGG"
8667 OGG_OPTION="ogg"
8669 # Check whether --with-ogg was given.
8670 if test "${with_ogg+set}" = set; then
8671 withval=$with_ogg;
8672 case ${withval} in
8673 n|no)
8674 USE_OGG=no
8676 y|ye|yes)
8677 ac_mandatory_list="${ac_mandatory_list} OGG"
8680 OGG_DIR="${withval}"
8681 ac_mandatory_list="${ac_mandatory_list} OGG"
8683 esac
8687 PBX_OGG=0
8694 OSPTK_DESCRIP="OSP Toolkit"
8695 OSPTK_OPTION="osptk"
8697 # Check whether --with-osptk was given.
8698 if test "${with_osptk+set}" = set; then
8699 withval=$with_osptk;
8700 case ${withval} in
8701 n|no)
8702 USE_OSPTK=no
8704 y|ye|yes)
8705 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8708 OSPTK_DIR="${withval}"
8709 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8711 esac
8715 PBX_OSPTK=0
8722 OSS_DESCRIP="Open Sound System"
8723 OSS_OPTION="oss"
8725 # Check whether --with-oss was given.
8726 if test "${with_oss+set}" = set; then
8727 withval=$with_oss;
8728 case ${withval} in
8729 n|no)
8730 USE_OSS=no
8732 y|ye|yes)
8733 ac_mandatory_list="${ac_mandatory_list} OSS"
8736 OSS_DIR="${withval}"
8737 ac_mandatory_list="${ac_mandatory_list} OSS"
8739 esac
8743 PBX_OSS=0
8750 PGSQL_DESCRIP="PostgreSQL"
8751 PGSQL_OPTION="postgres"
8753 # Check whether --with-postgres was given.
8754 if test "${with_postgres+set}" = set; then
8755 withval=$with_postgres;
8756 case ${withval} in
8757 n|no)
8758 USE_PGSQL=no
8760 y|ye|yes)
8761 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8764 PGSQL_DIR="${withval}"
8765 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8767 esac
8771 PBX_PGSQL=0
8778 POPT_DESCRIP="popt"
8779 POPT_OPTION="popt"
8781 # Check whether --with-popt was given.
8782 if test "${with_popt+set}" = set; then
8783 withval=$with_popt;
8784 case ${withval} in
8785 n|no)
8786 USE_POPT=no
8788 y|ye|yes)
8789 ac_mandatory_list="${ac_mandatory_list} POPT"
8792 POPT_DIR="${withval}"
8793 ac_mandatory_list="${ac_mandatory_list} POPT"
8795 esac
8799 PBX_POPT=0
8806 PORTAUDIO_DESCRIP="PortAudio"
8807 PORTAUDIO_OPTION="portaudio"
8809 # Check whether --with-portaudio was given.
8810 if test "${with_portaudio+set}" = set; then
8811 withval=$with_portaudio;
8812 case ${withval} in
8813 n|no)
8814 USE_PORTAUDIO=no
8816 y|ye|yes)
8817 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8820 PORTAUDIO_DIR="${withval}"
8821 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8823 esac
8827 PBX_PORTAUDIO=0
8834 PRI_DESCRIP="ISDN PRI"
8835 PRI_OPTION="pri"
8837 # Check whether --with-pri was given.
8838 if test "${with_pri+set}" = set; then
8839 withval=$with_pri;
8840 case ${withval} in
8841 n|no)
8842 USE_PRI=no
8844 y|ye|yes)
8845 ac_mandatory_list="${ac_mandatory_list} PRI"
8848 PRI_DIR="${withval}"
8849 ac_mandatory_list="${ac_mandatory_list} PRI"
8851 esac
8855 PBX_PRI=0
8862 RESAMPLE_DESCRIP="LIBRESAMPLE"
8863 RESAMPLE_OPTION="resample"
8865 # Check whether --with-resample was given.
8866 if test "${with_resample+set}" = set; then
8867 withval=$with_resample;
8868 case ${withval} in
8869 n|no)
8870 USE_RESAMPLE=no
8872 y|ye|yes)
8873 ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
8876 RESAMPLE_DIR="${withval}"
8877 ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
8879 esac
8883 PBX_RESAMPLE=0
8890 SPANDSP_DESCRIP="SPANDSP"
8891 SPANDSP_OPTION="spandsp"
8893 # Check whether --with-spandsp was given.
8894 if test "${with_spandsp+set}" = set; then
8895 withval=$with_spandsp;
8896 case ${withval} in
8897 n|no)
8898 USE_SPANDSP=no
8900 y|ye|yes)
8901 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8904 SPANDSP_DIR="${withval}"
8905 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8907 esac
8911 PBX_SPANDSP=0
8918 SS7_DESCRIP="ISDN SS7"
8919 SS7_OPTION="ss7"
8921 # Check whether --with-ss7 was given.
8922 if test "${with_ss7+set}" = set; then
8923 withval=$with_ss7;
8924 case ${withval} in
8925 n|no)
8926 USE_SS7=no
8928 y|ye|yes)
8929 ac_mandatory_list="${ac_mandatory_list} SS7"
8932 SS7_DIR="${withval}"
8933 ac_mandatory_list="${ac_mandatory_list} SS7"
8935 esac
8939 PBX_SS7=0
8946 PWLIB_DESCRIP="PWlib"
8947 PWLIB_OPTION="pwlib"
8949 # Check whether --with-pwlib was given.
8950 if test "${with_pwlib+set}" = set; then
8951 withval=$with_pwlib;
8952 case ${withval} in
8953 n|no)
8954 USE_PWLIB=no
8956 y|ye|yes)
8957 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8960 PWLIB_DIR="${withval}"
8961 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8963 esac
8967 PBX_PWLIB=0
8974 OPENH323_DESCRIP="OpenH323"
8975 OPENH323_OPTION="h323"
8977 # Check whether --with-h323 was given.
8978 if test "${with_h323+set}" = set; then
8979 withval=$with_h323;
8980 case ${withval} in
8981 n|no)
8982 USE_OPENH323=no
8984 y|ye|yes)
8985 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8988 OPENH323_DIR="${withval}"
8989 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8991 esac
8995 PBX_OPENH323=0
9002 RADIUS_DESCRIP="Radius Client"
9003 RADIUS_OPTION="radius"
9005 # Check whether --with-radius was given.
9006 if test "${with_radius+set}" = set; then
9007 withval=$with_radius;
9008 case ${withval} in
9009 n|no)
9010 USE_RADIUS=no
9012 y|ye|yes)
9013 ac_mandatory_list="${ac_mandatory_list} RADIUS"
9016 RADIUS_DIR="${withval}"
9017 ac_mandatory_list="${ac_mandatory_list} RADIUS"
9019 esac
9023 PBX_RADIUS=0
9030 SDL_DESCRIP="Sdl"
9031 SDL_OPTION="sdl"
9033 # Check whether --with-sdl was given.
9034 if test "${with_sdl+set}" = set; then
9035 withval=$with_sdl;
9036 case ${withval} in
9037 n|no)
9038 USE_SDL=no
9040 y|ye|yes)
9041 ac_mandatory_list="${ac_mandatory_list} SDL"
9044 SDL_DIR="${withval}"
9045 ac_mandatory_list="${ac_mandatory_list} SDL"
9047 esac
9051 PBX_SDL=0
9058 SDL_IMAGE_DESCRIP="Sdl Image library"
9059 SDL_IMAGE_OPTION="SDL_image"
9061 # Check whether --with-SDL_image was given.
9062 if test "${with_SDL_image+set}" = set; then
9063 withval=$with_SDL_image;
9064 case ${withval} in
9065 n|no)
9066 USE_SDL_IMAGE=no
9068 y|ye|yes)
9069 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9072 SDL_IMAGE_DIR="${withval}"
9073 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9075 esac
9079 PBX_SDL_IMAGE=0
9086 OPENAIS_DESCRIP="OpenAIS"
9087 OPENAIS_OPTION="openais"
9089 # Check whether --with-openais was given.
9090 if test "${with_openais+set}" = set; then
9091 withval=$with_openais;
9092 case ${withval} in
9093 n|no)
9094 USE_OPENAIS=no
9096 y|ye|yes)
9097 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9100 OPENAIS_DIR="${withval}"
9101 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9103 esac
9107 PBX_OPENAIS=0
9114 SPEEX_DESCRIP="Speex"
9115 SPEEX_OPTION="speex"
9117 # Check whether --with-speex was given.
9118 if test "${with_speex+set}" = set; then
9119 withval=$with_speex;
9120 case ${withval} in
9121 n|no)
9122 USE_SPEEX=no
9124 y|ye|yes)
9125 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9128 SPEEX_DIR="${withval}"
9129 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9131 esac
9135 PBX_SPEEX=0
9142 SPEEXDSP_DESCRIP="Speexdsp"
9143 SPEEXDSP_OPTION="speexdsp"
9145 # Check whether --with-speexdsp was given.
9146 if test "${with_speexdsp+set}" = set; then
9147 withval=$with_speexdsp;
9148 case ${withval} in
9149 n|no)
9150 USE_SPEEXDSP=no
9152 y|ye|yes)
9153 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9156 SPEEXDSP_DIR="${withval}"
9157 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9159 esac
9163 PBX_SPEEXDSP=0
9170 SQLITE_DESCRIP="SQLite"
9171 SQLITE_OPTION="sqlite"
9173 # Check whether --with-sqlite was given.
9174 if test "${with_sqlite+set}" = set; then
9175 withval=$with_sqlite;
9176 case ${withval} in
9177 n|no)
9178 USE_SQLITE=no
9180 y|ye|yes)
9181 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9184 SQLITE_DIR="${withval}"
9185 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9187 esac
9191 PBX_SQLITE=0
9198 SQLITE3_DESCRIP="SQLite"
9199 SQLITE3_OPTION="sqlite3"
9201 # Check whether --with-sqlite3 was given.
9202 if test "${with_sqlite3+set}" = set; then
9203 withval=$with_sqlite3;
9204 case ${withval} in
9205 n|no)
9206 USE_SQLITE3=no
9208 y|ye|yes)
9209 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9212 SQLITE3_DIR="${withval}"
9213 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9215 esac
9219 PBX_SQLITE3=0
9226 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9227 SUPPSERV_OPTION="suppserv"
9229 # Check whether --with-suppserv was given.
9230 if test "${with_suppserv+set}" = set; then
9231 withval=$with_suppserv;
9232 case ${withval} in
9233 n|no)
9234 USE_SUPPSERV=no
9236 y|ye|yes)
9237 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9240 SUPPSERV_DIR="${withval}"
9241 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9243 esac
9247 PBX_SUPPSERV=0
9254 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9255 OPENSSL_OPTION="ssl"
9257 # Check whether --with-ssl was given.
9258 if test "${with_ssl+set}" = set; then
9259 withval=$with_ssl;
9260 case ${withval} in
9261 n|no)
9262 USE_OPENSSL=no
9264 y|ye|yes)
9265 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9268 OPENSSL_DIR="${withval}"
9269 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9271 esac
9275 PBX_OPENSSL=0
9282 FREETDS_DESCRIP="FreeTDS"
9283 FREETDS_OPTION="tds"
9285 # Check whether --with-tds was given.
9286 if test "${with_tds+set}" = set; then
9287 withval=$with_tds;
9288 case ${withval} in
9289 n|no)
9290 USE_FREETDS=no
9292 y|ye|yes)
9293 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9296 FREETDS_DIR="${withval}"
9297 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9299 esac
9303 PBX_FREETDS=0
9310 TERMCAP_DESCRIP="Termcap"
9311 TERMCAP_OPTION="termcap"
9313 # Check whether --with-termcap was given.
9314 if test "${with_termcap+set}" = set; then
9315 withval=$with_termcap;
9316 case ${withval} in
9317 n|no)
9318 USE_TERMCAP=no
9320 y|ye|yes)
9321 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9324 TERMCAP_DIR="${withval}"
9325 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9327 esac
9331 PBX_TERMCAP=0
9338 TINFO_DESCRIP="Term Info"
9339 TINFO_OPTION="tinfo"
9341 # Check whether --with-tinfo was given.
9342 if test "${with_tinfo+set}" = set; then
9343 withval=$with_tinfo;
9344 case ${withval} in
9345 n|no)
9346 USE_TINFO=no
9348 y|ye|yes)
9349 ac_mandatory_list="${ac_mandatory_list} TINFO"
9352 TINFO_DIR="${withval}"
9353 ac_mandatory_list="${ac_mandatory_list} TINFO"
9355 esac
9359 PBX_TINFO=0
9366 TONEZONE_DESCRIP="tonezone"
9367 TONEZONE_OPTION="tonezone"
9369 # Check whether --with-tonezone was given.
9370 if test "${with_tonezone+set}" = set; then
9371 withval=$with_tonezone;
9372 case ${withval} in
9373 n|no)
9374 USE_TONEZONE=no
9376 y|ye|yes)
9377 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9380 TONEZONE_DIR="${withval}"
9381 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9383 esac
9387 PBX_TONEZONE=0
9394 USB_DESCRIP="usb"
9395 USB_OPTION="usb"
9397 # Check whether --with-usb was given.
9398 if test "${with_usb+set}" = set; then
9399 withval=$with_usb;
9400 case ${withval} in
9401 n|no)
9402 USE_USB=no
9404 y|ye|yes)
9405 ac_mandatory_list="${ac_mandatory_list} USB"
9408 USB_DIR="${withval}"
9409 ac_mandatory_list="${ac_mandatory_list} USB"
9411 esac
9415 PBX_USB=0
9422 VORBIS_DESCRIP="Vorbis"
9423 VORBIS_OPTION="vorbis"
9425 # Check whether --with-vorbis was given.
9426 if test "${with_vorbis+set}" = set; then
9427 withval=$with_vorbis;
9428 case ${withval} in
9429 n|no)
9430 USE_VORBIS=no
9432 y|ye|yes)
9433 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9436 VORBIS_DIR="${withval}"
9437 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9439 esac
9443 PBX_VORBIS=0
9450 VPB_DESCRIP="Voicetronix API"
9451 VPB_OPTION="vpb"
9453 # Check whether --with-vpb was given.
9454 if test "${with_vpb+set}" = set; then
9455 withval=$with_vpb;
9456 case ${withval} in
9457 n|no)
9458 USE_VPB=no
9460 y|ye|yes)
9461 ac_mandatory_list="${ac_mandatory_list} VPB"
9464 VPB_DIR="${withval}"
9465 ac_mandatory_list="${ac_mandatory_list} VPB"
9467 esac
9471 PBX_VPB=0
9478 X11_DESCRIP="X11 support"
9479 X11_OPTION="x11"
9481 # Check whether --with-x11 was given.
9482 if test "${with_x11+set}" = set; then
9483 withval=$with_x11;
9484 case ${withval} in
9485 n|no)
9486 USE_X11=no
9488 y|ye|yes)
9489 ac_mandatory_list="${ac_mandatory_list} X11"
9492 X11_DIR="${withval}"
9493 ac_mandatory_list="${ac_mandatory_list} X11"
9495 esac
9499 PBX_X11=0
9506 ZLIB_DESCRIP="zlib"
9507 ZLIB_OPTION="z"
9509 # Check whether --with-z was given.
9510 if test "${with_z+set}" = set; then
9511 withval=$with_z;
9512 case ${withval} in
9513 n|no)
9514 USE_ZLIB=no
9516 y|ye|yes)
9517 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9520 ZLIB_DIR="${withval}"
9521 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9523 esac
9527 PBX_ZLIB=0
9534 # check for basic system features and functionality before
9535 # checking for package libraries
9537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9538 # for constant arguments. Useless!
9539 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9541 if test "${ac_cv_working_alloca_h+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <alloca.h>
9552 main ()
9554 char *p = (char *) alloca (2 * sizeof (int));
9555 if (p) return 0;
9557 return 0;
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
9578 ac_cv_working_alloca_h=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_cv_working_alloca_h=no
9586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587 conftest$ac_exeext conftest.$ac_ext
9589 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9591 if test $ac_cv_working_alloca_h = yes; then
9593 cat >>confdefs.h <<\_ACEOF
9594 #define HAVE_ALLOCA_H 1
9595 _ACEOF
9599 { echo "$as_me:$LINENO: checking for alloca" >&5
9600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9601 if test "${ac_cv_func_alloca_works+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #ifdef __GNUC__
9611 # define alloca __builtin_alloca
9612 #else
9613 # ifdef _MSC_VER
9614 # include <malloc.h>
9615 # define alloca _alloca
9616 # else
9617 # ifdef HAVE_ALLOCA_H
9618 # include <alloca.h>
9619 # else
9620 # ifdef _AIX
9621 #pragma alloca
9622 # else
9623 # ifndef alloca /* predefined by HP cc +Olibcalls */
9624 char *alloca ();
9625 # endif
9626 # endif
9627 # endif
9628 # endif
9629 #endif
9632 main ()
9634 char *p = (char *) alloca (1);
9635 if (p) return 0;
9637 return 0;
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9642 case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645 esac
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_link") 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } && {
9654 test -z "$ac_c_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest$ac_exeext &&
9657 $as_test_x conftest$ac_exeext; then
9658 ac_cv_func_alloca_works=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_cv_func_alloca_works=no
9666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9667 conftest$ac_exeext conftest.$ac_ext
9669 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9670 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9672 if test $ac_cv_func_alloca_works = yes; then
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_ALLOCA 1
9676 _ACEOF
9678 else
9679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9680 # that cause trouble. Some versions do not even contain alloca or
9681 # contain a buggy version. If you still want to use their alloca,
9682 # use ar to extract alloca.o from them instead of compiling alloca.c.
9684 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9686 cat >>confdefs.h <<\_ACEOF
9687 #define C_ALLOCA 1
9688 _ACEOF
9691 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9692 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9693 if test "${ac_cv_os_cray+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 #if defined CRAY && ! defined CRAY2
9703 webecray
9704 #else
9705 wenotbecray
9706 #endif
9708 _ACEOF
9709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9710 $EGREP "webecray" >/dev/null 2>&1; then
9711 ac_cv_os_cray=yes
9712 else
9713 ac_cv_os_cray=no
9715 rm -f conftest*
9718 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9719 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9720 if test $ac_cv_os_cray = yes; then
9721 for ac_func in _getb67 GETB67 getb67; do
9722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9736 #define $ac_func innocuous_$ac_func
9738 /* System header to define __stub macros and hopefully few prototypes,
9739 which can conflict with char $ac_func (); below.
9740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741 <limits.h> exists even on freestanding compilers. */
9743 #ifdef __STDC__
9744 # include <limits.h>
9745 #else
9746 # include <assert.h>
9747 #endif
9749 #undef $ac_func
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char $ac_func ();
9758 /* The GNU C library defines this for functions which it implements
9759 to always fail with ENOSYS. Some functions are actually named
9760 something starting with __ and the normal name is an alias. */
9761 #if defined __stub_$ac_func || defined __stub___$ac_func
9762 choke me
9763 #endif
9766 main ()
9768 return $ac_func ();
9770 return 0;
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext &&
9790 $as_test_x conftest$ac_exeext; then
9791 eval "$as_ac_var=yes"
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 eval "$as_ac_var=no"
9799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9800 conftest$ac_exeext conftest.$ac_ext
9802 ac_res=`eval echo '${'$as_ac_var'}'`
9803 { echo "$as_me:$LINENO: result: $ac_res" >&5
9804 echo "${ECHO_T}$ac_res" >&6; }
9805 if test `eval echo '${'$as_ac_var'}'` = yes; then
9807 cat >>confdefs.h <<_ACEOF
9808 #define CRAY_STACKSEG_END $ac_func
9809 _ACEOF
9811 break
9814 done
9817 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9818 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9819 if test "${ac_cv_c_stack_direction+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 if test "$cross_compiling" = yes; then
9823 ac_cv_c_stack_direction=0
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9833 find_stack_direction ()
9835 static char *addr = 0;
9836 auto char dummy;
9837 if (addr == 0)
9839 addr = &dummy;
9840 return find_stack_direction ();
9842 else
9843 return (&dummy > addr) ? 1 : -1;
9847 main ()
9849 return find_stack_direction () < 0;
9851 _ACEOF
9852 rm -f conftest$ac_exeext
9853 if { (ac_try="$ac_link"
9854 case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_link") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_c_stack_direction=1
9873 else
9874 echo "$as_me: program exited with status $ac_status" >&5
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ( exit $ac_status )
9879 ac_cv_c_stack_direction=-1
9881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9887 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9889 cat >>confdefs.h <<_ACEOF
9890 #define STACK_DIRECTION $ac_cv_c_stack_direction
9891 _ACEOF
9901 ac_header_dirent=no
9902 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9903 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9904 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9905 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 #include <sys/types.h>
9916 #include <$ac_hdr>
9919 main ()
9921 if ((DIR *) 0)
9922 return 0;
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (ac_try="$ac_compile"
9929 case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_compile") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest.$ac_objext; then
9944 eval "$as_ac_Header=yes"
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 eval "$as_ac_Header=no"
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 ac_res=`eval echo '${'$as_ac_Header'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9960 _ACEOF
9962 ac_header_dirent=$ac_hdr; break
9965 done
9966 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9967 if test $ac_header_dirent = dirent.h; then
9968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9969 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9970 if test "${ac_cv_search_opendir+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 ac_func_search_save_LIBS=$LIBS
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char opendir ();
9989 main ()
9991 return opendir ();
9993 return 0;
9995 _ACEOF
9996 for ac_lib in '' dir; do
9997 if test -z "$ac_lib"; then
9998 ac_res="none required"
9999 else
10000 ac_res=-l$ac_lib
10001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext &&
10020 $as_test_x conftest$ac_exeext; then
10021 ac_cv_search_opendir=$ac_res
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext
10031 if test "${ac_cv_search_opendir+set}" = set; then
10032 break
10034 done
10035 if test "${ac_cv_search_opendir+set}" = set; then
10037 else
10038 ac_cv_search_opendir=no
10040 rm conftest.$ac_ext
10041 LIBS=$ac_func_search_save_LIBS
10043 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10044 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10045 ac_res=$ac_cv_search_opendir
10046 if test "$ac_res" != no; then
10047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10051 else
10052 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10053 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10054 if test "${ac_cv_search_opendir+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057 ac_func_search_save_LIBS=$LIBS
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any GCC internal prototype to avoid an error.
10066 Use char because int might match the return type of a GCC
10067 builtin and then its argument prototype would still apply. */
10068 #ifdef __cplusplus
10069 extern "C"
10070 #endif
10071 char opendir ();
10073 main ()
10075 return opendir ();
10077 return 0;
10079 _ACEOF
10080 for ac_lib in '' x; do
10081 if test -z "$ac_lib"; then
10082 ac_res="none required"
10083 else
10084 ac_res=-l$ac_lib
10085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext &&
10104 $as_test_x conftest$ac_exeext; then
10105 ac_cv_search_opendir=$ac_res
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114 conftest$ac_exeext
10115 if test "${ac_cv_search_opendir+set}" = set; then
10116 break
10118 done
10119 if test "${ac_cv_search_opendir+set}" = set; then
10121 else
10122 ac_cv_search_opendir=no
10124 rm conftest.$ac_ext
10125 LIBS=$ac_func_search_save_LIBS
10127 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10128 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10129 ac_res=$ac_cv_search_opendir
10130 if test "$ac_res" != no; then
10131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10137 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10138 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10139 if test "${ac_cv_header_stdc+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10149 #include <stdarg.h>
10150 #include <string.h>
10151 #include <float.h>
10154 main ()
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext
10162 if { (ac_try="$ac_compile"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_compile") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest.$ac_objext; then
10178 ac_cv_header_stdc=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_header_stdc=no
10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 if test $ac_cv_header_stdc = yes; then
10189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 #include <string.h>
10198 _ACEOF
10199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10200 $EGREP "memchr" >/dev/null 2>&1; then
10202 else
10203 ac_cv_header_stdc=no
10205 rm -f conftest*
10209 if test $ac_cv_header_stdc = yes; then
10210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 #include <stdlib.h>
10219 _ACEOF
10220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10221 $EGREP "free" >/dev/null 2>&1; then
10223 else
10224 ac_cv_header_stdc=no
10226 rm -f conftest*
10230 if test $ac_cv_header_stdc = yes; then
10231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10232 if test "$cross_compiling" = yes; then
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. */
10241 #include <ctype.h>
10242 #include <stdlib.h>
10243 #if ((' ' & 0x0FF) == 0x020)
10244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10246 #else
10247 # define ISLOWER(c) \
10248 (('a' <= (c) && (c) <= 'i') \
10249 || ('j' <= (c) && (c) <= 'r') \
10250 || ('s' <= (c) && (c) <= 'z'))
10251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10252 #endif
10254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10256 main ()
10258 int i;
10259 for (i = 0; i < 256; i++)
10260 if (XOR (islower (i), ISLOWER (i))
10261 || toupper (i) != TOUPPER (i))
10262 return 2;
10263 return 0;
10265 _ACEOF
10266 rm -f conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10277 { (case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_try") 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10287 else
10288 echo "$as_me: program exited with status $ac_status" >&5
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ( exit $ac_status )
10293 ac_cv_header_stdc=no
10295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10301 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10302 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10303 if test $ac_cv_header_stdc = yes; then
10305 cat >>confdefs.h <<\_ACEOF
10306 #define STDC_HEADERS 1
10307 _ACEOF
10311 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10312 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <sys/types.h>
10323 #include <sys/wait.h>
10324 #ifndef WEXITSTATUS
10325 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10326 #endif
10327 #ifndef WIFEXITED
10328 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10329 #endif
10332 main ()
10334 int s;
10335 wait (&s);
10336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_cv_header_sys_wait_h=yes
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_header_sys_wait_h=no
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10369 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10370 if test $ac_cv_header_sys_wait_h = yes; then
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_SYS_WAIT_H 1
10374 _ACEOF
10402 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 arpa/nameser.h
10404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 ac_res=`eval echo '${'$as_ac_Header'}'`
10412 { echo "$as_me:$LINENO: result: $ac_res" >&5
10413 echo "${ECHO_T}$ac_res" >&6; }
10414 else
10415 # Is the header compilable?
10416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 $ac_includes_default
10425 #include <$ac_header>
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (ac_try="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_header_compiler=yes
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_header_compiler=no
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10454 echo "${ECHO_T}$ac_header_compiler" >&6; }
10456 # Is the header present?
10457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 #include <$ac_header>
10466 _ACEOF
10467 if { (ac_try="$ac_cpp conftest.$ac_ext"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null && {
10480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 }; then
10483 ac_header_preproc=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_header_preproc=no
10491 rm -f conftest.err conftest.$ac_ext
10492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10493 echo "${ECHO_T}$ac_header_preproc" >&6; }
10495 # So? What about this header?
10496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10497 yes:no: )
10498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10502 ac_header_preproc=yes
10504 no:yes:* )
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10517 ( cat <<\_ASBOX
10518 ## ------------------------------- ##
10519 ## Report this to www.asterisk.org ##
10520 ## ------------------------------- ##
10521 _ASBOX
10522 ) | sed "s/^/$as_me: WARNING: /" >&2
10524 esac
10525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 eval "$as_ac_Header=\$ac_header_preproc"
10532 ac_res=`eval echo '${'$as_ac_Header'}'`
10533 { echo "$as_me:$LINENO: result: $ac_res" >&5
10534 echo "${ECHO_T}$ac_res" >&6; }
10537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540 _ACEOF
10544 done
10549 for ac_header in winsock.h winsock2.h
10551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561 else
10562 # Is the header compilable?
10563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 $ac_includes_default
10572 #include <$ac_header>
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_header_compiler=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_compiler=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10601 echo "${ECHO_T}$ac_header_compiler" >&6; }
10603 # Is the header present?
10604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 #include <$ac_header>
10613 _ACEOF
10614 if { (ac_try="$ac_cpp conftest.$ac_ext"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } >/dev/null && {
10627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 }; then
10630 ac_header_preproc=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 ac_header_preproc=no
10638 rm -f conftest.err conftest.$ac_ext
10639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10640 echo "${ECHO_T}$ac_header_preproc" >&6; }
10642 # So? What about this header?
10643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10644 yes:no: )
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10649 ac_header_preproc=yes
10651 no:yes:* )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10664 ( cat <<\_ASBOX
10665 ## ------------------------------- ##
10666 ## Report this to www.asterisk.org ##
10667 ## ------------------------------- ##
10668 _ASBOX
10669 ) | sed "s/^/$as_me: WARNING: /" >&2
10671 esac
10672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 eval "$as_ac_Header=\$ac_header_preproc"
10679 ac_res=`eval echo '${'$as_ac_Header'}'`
10680 { echo "$as_me:$LINENO: result: $ac_res" >&5
10681 echo "${ECHO_T}$ac_res" >&6; }
10684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687 _ACEOF
10691 done
10694 # Check whether --enable-largefile was given.
10695 if test "${enable_largefile+set}" = set; then
10696 enableval=$enable_largefile;
10699 if test "$enable_largefile" != no; then
10701 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10702 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10703 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 ac_cv_sys_largefile_CC=no
10707 if test "$GCC" != yes; then
10708 ac_save_CC=$CC
10709 while :; do
10710 # IRIX 6.2 and later do not support large files by default,
10711 # so use the C compiler's -n32 option if that helps.
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <sys/types.h>
10719 /* Check that off_t can represent 2**63 - 1 correctly.
10720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10721 since some C++ compilers masquerading as C compilers
10722 incorrectly reject 9223372036854775807. */
10723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10725 && LARGE_OFF_T % 2147483647 == 1)
10726 ? 1 : -1];
10728 main ()
10732 return 0;
10734 _ACEOF
10735 rm -f conftest.$ac_objext
10736 if { (ac_try="$ac_compile"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_compile") 2>conftest.er1
10743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } && {
10749 test -z "$ac_c_werror_flag" ||
10750 test ! -s conftest.err
10751 } && test -s conftest.$ac_objext; then
10752 break
10753 else
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10760 rm -f core conftest.err conftest.$ac_objext
10761 CC="$CC -n32"
10762 rm -f conftest.$ac_objext
10763 if { (ac_try="$ac_compile"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_compile") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest.$ac_objext; then
10779 ac_cv_sys_largefile_CC=' -n32'; break
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10787 rm -f core conftest.err conftest.$ac_objext
10788 break
10789 done
10790 CC=$ac_save_CC
10791 rm -f conftest.$ac_ext
10794 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10795 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10796 if test "$ac_cv_sys_largefile_CC" != no; then
10797 CC=$CC$ac_cv_sys_largefile_CC
10800 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10801 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10802 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 while :; do
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 #include <sys/types.h>
10813 /* Check that off_t can represent 2**63 - 1 correctly.
10814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10815 since some C++ compilers masquerading as C compilers
10816 incorrectly reject 9223372036854775807. */
10817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10819 && LARGE_OFF_T % 2147483647 == 1)
10820 ? 1 : -1];
10822 main ()
10826 return 0;
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 ac_cv_sys_file_offset_bits=no; break
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 #define _FILE_OFFSET_BITS 64
10862 #include <sys/types.h>
10863 /* Check that off_t can represent 2**63 - 1 correctly.
10864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10865 since some C++ compilers masquerading as C compilers
10866 incorrectly reject 9223372036854775807. */
10867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10869 && LARGE_OFF_T % 2147483647 == 1)
10870 ? 1 : -1];
10872 main ()
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
10896 ac_cv_sys_file_offset_bits=64; break
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 ac_cv_sys_file_offset_bits=unknown
10906 break
10907 done
10909 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10910 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10911 case $ac_cv_sys_file_offset_bits in #(
10912 no | unknown) ;;
10914 cat >>confdefs.h <<_ACEOF
10915 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10916 _ACEOF
10918 esac
10919 rm -f conftest*
10920 if test $ac_cv_sys_file_offset_bits = unknown; then
10921 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10922 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10923 if test "${ac_cv_sys_large_files+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 while :; do
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 #include <sys/types.h>
10934 /* Check that off_t can represent 2**63 - 1 correctly.
10935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10936 since some C++ compilers masquerading as C compilers
10937 incorrectly reject 9223372036854775807. */
10938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10940 && LARGE_OFF_T % 2147483647 == 1)
10941 ? 1 : -1];
10943 main ()
10947 return 0;
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.$ac_objext; then
10967 ac_cv_sys_large_files=no; break
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #define _LARGE_FILES 1
10983 #include <sys/types.h>
10984 /* Check that off_t can represent 2**63 - 1 correctly.
10985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10986 since some C++ compilers masquerading as C compilers
10987 incorrectly reject 9223372036854775807. */
10988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10990 && LARGE_OFF_T % 2147483647 == 1)
10991 ? 1 : -1];
10993 main ()
10997 return 0;
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11017 ac_cv_sys_large_files=1; break
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 ac_cv_sys_large_files=unknown
11027 break
11028 done
11030 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11031 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
11032 case $ac_cv_sys_large_files in #(
11033 no | unknown) ;;
11035 cat >>confdefs.h <<_ACEOF
11036 #define _LARGE_FILES $ac_cv_sys_large_files
11037 _ACEOF
11039 esac
11040 rm -f conftest*
11045 # Checks for typedefs, structures, and compiler characteristics.
11046 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11047 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11048 if test "${ac_cv_header_stdbool_h+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 #include <stdbool.h>
11059 #ifndef bool
11060 "error: bool is not defined"
11061 #endif
11062 #ifndef false
11063 "error: false is not defined"
11064 #endif
11065 #if false
11066 "error: false is not 0"
11067 #endif
11068 #ifndef true
11069 "error: true is not defined"
11070 #endif
11071 #if true != 1
11072 "error: true is not 1"
11073 #endif
11074 #ifndef __bool_true_false_are_defined
11075 "error: __bool_true_false_are_defined is not defined"
11076 #endif
11078 struct s { _Bool s: 1; _Bool t; } s;
11080 char a[true == 1 ? 1 : -1];
11081 char b[false == 0 ? 1 : -1];
11082 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11083 char d[(bool) 0.5 == true ? 1 : -1];
11084 bool e = &s;
11085 char f[(_Bool) 0.0 == false ? 1 : -1];
11086 char g[true];
11087 char h[sizeof (_Bool)];
11088 char i[sizeof s.t];
11089 enum { j = false, k = true, l = false * true, m = true * 256 };
11090 _Bool n[m];
11091 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11092 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11093 # if defined __xlc__ || defined __GNUC__
11094 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11095 reported by James Lemley on 2005-10-05; see
11096 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11097 This test is not quite right, since xlc is allowed to
11098 reject this program, as the initializer for xlcbug is
11099 not one of the forms that C requires support for.
11100 However, doing the test right would require a runtime
11101 test, and that would make cross-compilation harder.
11102 Let us hope that IBM fixes the xlc bug, and also adds
11103 support for this kind of constant expression. In the
11104 meantime, this test will reject xlc, which is OK, since
11105 our stdbool.h substitute should suffice. We also test
11106 this with GCC, where it should work, to detect more
11107 quickly whether someone messes up the test in the
11108 future. */
11109 char digs[] = "0123456789";
11110 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11111 # endif
11112 /* Catch a bug in an HP-UX C compiler. See
11113 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11114 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11116 _Bool q = true;
11117 _Bool *pq = &q;
11120 main ()
11123 *pq |= q;
11124 *pq |= ! q;
11125 /* Refer to every declared value, to avoid compiler optimizations. */
11126 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11127 + !m + !n + !o + !p + !q + !pq);
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext
11134 if { (ac_try="$ac_compile"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_compile") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest.$ac_objext; then
11150 ac_cv_header_stdbool_h=yes
11151 else
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_header_stdbool_h=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11161 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11162 { echo "$as_me:$LINENO: checking for _Bool" >&5
11163 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11164 if test "${ac_cv_type__Bool+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11174 typedef _Bool ac__type_new_;
11176 main ()
11178 if ((ac__type_new_ *) 0)
11179 return 0;
11180 if (sizeof (ac__type_new_))
11181 return 0;
11183 return 0;
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest.$ac_objext; then
11203 ac_cv_type__Bool=yes
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 ac_cv_type__Bool=no
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11214 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11215 if test $ac_cv_type__Bool = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define HAVE__BOOL 1
11219 _ACEOF
11224 if test $ac_cv_header_stdbool_h = yes; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_STDBOOL_H 1
11228 _ACEOF
11232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11234 if test "${ac_cv_c_const+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11245 main ()
11247 /* FIXME: Include the comments suggested by Paul. */
11248 #ifndef __cplusplus
11249 /* Ultrix mips cc rejects this. */
11250 typedef int charset[2];
11251 const charset cs;
11252 /* SunOS 4.1.1 cc rejects this. */
11253 char const *const *pcpcc;
11254 char **ppc;
11255 /* NEC SVR4.0.2 mips cc rejects this. */
11256 struct point {int x, y;};
11257 static struct point const zero = {0,0};
11258 /* AIX XL C 1.02.0.0 rejects this.
11259 It does not let you subtract one const X* pointer from another in
11260 an arm of an if-expression whose if-part is not a constant
11261 expression */
11262 const char *g = "string";
11263 pcpcc = &g + (g ? g-g : 0);
11264 /* HPUX 7.0 cc rejects these. */
11265 ++pcpcc;
11266 ppc = (char**) pcpcc;
11267 pcpcc = (char const *const *) ppc;
11268 { /* SCO 3.2v4 cc rejects this. */
11269 char *t;
11270 char const *s = 0 ? (char *) 0 : (char const *) 0;
11272 *t++ = 0;
11273 if (s) return 0;
11275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11276 int x[] = {25, 17};
11277 const int *foo = &x[0];
11278 ++foo;
11280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11281 typedef const int *iptr;
11282 iptr p = 0;
11283 ++p;
11285 { /* AIX XL C 1.02.0.0 rejects this saying
11286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11287 struct s { int j; const int *ap[3]; };
11288 struct s *b; b->j = 5;
11290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11291 const int foo = 10;
11292 if (!foo) return 0;
11294 return !cs[0] && !zero.x;
11295 #endif
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && {
11315 test -z "$ac_c_werror_flag" ||
11316 test ! -s conftest.err
11317 } && test -s conftest.$ac_objext; then
11318 ac_cv_c_const=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_cv_c_const=no
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11329 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11330 if test $ac_cv_c_const = no; then
11332 cat >>confdefs.h <<\_ACEOF
11333 #define const
11334 _ACEOF
11338 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11339 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11340 if test "${ac_cv_type_uid_t+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <sys/types.h>
11351 _ACEOF
11352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11353 $EGREP "uid_t" >/dev/null 2>&1; then
11354 ac_cv_type_uid_t=yes
11355 else
11356 ac_cv_type_uid_t=no
11358 rm -f conftest*
11361 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11362 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11363 if test $ac_cv_type_uid_t = no; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define uid_t int
11367 _ACEOF
11370 cat >>confdefs.h <<\_ACEOF
11371 #define gid_t int
11372 _ACEOF
11376 { echo "$as_me:$LINENO: checking for inline" >&5
11377 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11378 if test "${ac_cv_c_inline+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 ac_cv_c_inline=no
11382 for ac_kw in inline __inline__ __inline; do
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #ifndef __cplusplus
11390 typedef int foo_t;
11391 static $ac_kw foo_t static_foo () {return 0; }
11392 $ac_kw foo_t foo () {return 0; }
11393 #endif
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 ac_cv_c_inline=$ac_kw
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 test "$ac_cv_c_inline" != no && break
11423 done
11426 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11427 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11430 case $ac_cv_c_inline in
11431 inline | yes) ;;
11433 case $ac_cv_c_inline in
11434 no) ac_val=;;
11435 *) ac_val=$ac_cv_c_inline;;
11436 esac
11437 cat >>confdefs.h <<_ACEOF
11438 #ifndef __cplusplus
11439 #define inline $ac_val
11440 #endif
11441 _ACEOF
11443 esac
11445 { echo "$as_me:$LINENO: checking for mode_t" >&5
11446 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11447 if test "${ac_cv_type_mode_t+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 $ac_includes_default
11457 typedef mode_t ac__type_new_;
11459 main ()
11461 if ((ac__type_new_ *) 0)
11462 return 0;
11463 if (sizeof (ac__type_new_))
11464 return 0;
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (ac_try="$ac_compile"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_compile") 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest.$ac_objext; then
11486 ac_cv_type_mode_t=yes
11487 else
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_cv_type_mode_t=no
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11497 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11498 if test $ac_cv_type_mode_t = yes; then
11500 else
11502 cat >>confdefs.h <<_ACEOF
11503 #define mode_t int
11504 _ACEOF
11508 { echo "$as_me:$LINENO: checking for off_t" >&5
11509 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11510 if test "${ac_cv_type_off_t+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 $ac_includes_default
11520 typedef off_t ac__type_new_;
11522 main ()
11524 if ((ac__type_new_ *) 0)
11525 return 0;
11526 if (sizeof (ac__type_new_))
11527 return 0;
11529 return 0;
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11549 ac_cv_type_off_t=yes
11550 else
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_type_off_t=no
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11560 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11561 if test $ac_cv_type_off_t = yes; then
11563 else
11565 cat >>confdefs.h <<_ACEOF
11566 #define off_t long int
11567 _ACEOF
11571 { echo "$as_me:$LINENO: checking for pid_t" >&5
11572 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11573 if test "${ac_cv_type_pid_t+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 $ac_includes_default
11583 typedef pid_t ac__type_new_;
11585 main ()
11587 if ((ac__type_new_ *) 0)
11588 return 0;
11589 if (sizeof (ac__type_new_))
11590 return 0;
11592 return 0;
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (ac_try="$ac_compile"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_compile") 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_c_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest.$ac_objext; then
11612 ac_cv_type_pid_t=yes
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_type_pid_t=no
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11623 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11624 if test $ac_cv_type_pid_t = yes; then
11626 else
11628 cat >>confdefs.h <<_ACEOF
11629 #define pid_t int
11630 _ACEOF
11634 { echo "$as_me:$LINENO: checking for size_t" >&5
11635 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11636 if test "${ac_cv_type_size_t+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 typedef size_t ac__type_new_;
11648 main ()
11650 if ((ac__type_new_ *) 0)
11651 return 0;
11652 if (sizeof (ac__type_new_))
11653 return 0;
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (ac_try="$ac_compile"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_compile") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } && {
11672 test -z "$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11674 } && test -s conftest.$ac_objext; then
11675 ac_cv_type_size_t=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_type_size_t=no
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11686 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11687 if test $ac_cv_type_size_t = yes; then
11689 else
11691 cat >>confdefs.h <<_ACEOF
11692 #define size_t unsigned int
11693 _ACEOF
11697 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11698 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11699 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11710 main ()
11712 static struct stat ac_aggr;
11713 if (ac_aggr.st_blksize)
11714 return 0;
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_compile") 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && {
11733 test -z "$ac_c_werror_flag" ||
11734 test ! -s conftest.err
11735 } && test -s conftest.$ac_objext; then
11736 ac_cv_member_struct_stat_st_blksize=yes
11737 else
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11749 main ()
11751 static struct stat ac_aggr;
11752 if (sizeof ac_aggr.st_blksize)
11753 return 0;
11755 return 0;
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest.$ac_objext; then
11775 ac_cv_member_struct_stat_st_blksize=yes
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_member_struct_stat_st_blksize=no
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11789 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11790 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11792 cat >>confdefs.h <<_ACEOF
11793 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11794 _ACEOF
11799 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11800 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11801 if test "${ac_cv_header_time+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <sys/types.h>
11811 #include <sys/time.h>
11812 #include <time.h>
11815 main ()
11817 if ((struct tm *) 0)
11818 return 0;
11820 return 0;
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.$ac_objext; then
11840 ac_cv_header_time=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_cv_header_time=no
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11851 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11852 if test $ac_cv_header_time = yes; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define TIME_WITH_SYS_TIME 1
11856 _ACEOF
11860 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11861 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11862 if test "${ac_cv_struct_tm+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <sys/types.h>
11872 #include <time.h>
11875 main ()
11877 struct tm tm;
11878 int *p = &tm.tm_sec;
11879 return !p;
11881 return 0;
11883 _ACEOF
11884 rm -f conftest.$ac_objext
11885 if { (ac_try="$ac_compile"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_compile") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest.$ac_objext; then
11901 ac_cv_struct_tm=time.h
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_struct_tm=sys/time.h
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11912 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11913 if test $ac_cv_struct_tm = sys/time.h; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define TM_IN_SYS_TIME 1
11917 _ACEOF
11921 { echo "$as_me:$LINENO: checking for working volatile" >&5
11922 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11923 if test "${ac_cv_c_volatile+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11934 main ()
11937 volatile int x;
11938 int * volatile y = (int *) 0;
11939 return !x && !y;
11941 return 0;
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (ac_try="$ac_compile"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.$ac_objext; then
11961 ac_cv_c_volatile=yes
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_cv_c_volatile=no
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11972 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11973 if test $ac_cv_c_volatile = no; then
11975 cat >>confdefs.h <<\_ACEOF
11976 #define volatile
11977 _ACEOF
11981 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11982 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11983 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 $ac_includes_default
11993 typedef ptrdiff_t ac__type_new_;
11995 main ()
11997 if ((ac__type_new_ *) 0)
11998 return 0;
11999 if (sizeof (ac__type_new_))
12000 return 0;
12002 return 0;
12004 _ACEOF
12005 rm -f conftest.$ac_objext
12006 if { (ac_try="$ac_compile"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_compile") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } && {
12019 test -z "$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 } && test -s conftest.$ac_objext; then
12022 ac_cv_type_ptrdiff_t=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_cv_type_ptrdiff_t=no
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12033 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12034 if test $ac_cv_type_ptrdiff_t = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define HAVE_PTRDIFF_T 1
12038 _ACEOF
12044 # Checks for library functions.
12046 for ac_header in unistd.h
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_res=`eval echo '${'$as_ac_Header'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 else
12059 # Is the header compilable?
12060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12069 #include <$ac_header>
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (ac_try="$ac_compile"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 ac_header_compiler=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_header_compiler=no
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12098 echo "${ECHO_T}$ac_header_compiler" >&6; }
12100 # Is the header present?
12101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 #include <$ac_header>
12110 _ACEOF
12111 if { (ac_try="$ac_cpp conftest.$ac_ext"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } >/dev/null && {
12124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 }; then
12127 ac_header_preproc=yes
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_header_preproc=no
12135 rm -f conftest.err conftest.$ac_ext
12136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137 echo "${ECHO_T}$ac_header_preproc" >&6; }
12139 # So? What about this header?
12140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 yes:no: )
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc=yes
12148 no:yes:* )
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12161 ( cat <<\_ASBOX
12162 ## ------------------------------- ##
12163 ## Report this to www.asterisk.org ##
12164 ## ------------------------------- ##
12165 _ASBOX
12166 ) | sed "s/^/$as_me: WARNING: /" >&2
12168 esac
12169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 eval "$as_ac_Header=\$ac_header_preproc"
12176 ac_res=`eval echo '${'$as_ac_Header'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12182 cat >>confdefs.h <<_ACEOF
12183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12184 _ACEOF
12188 done
12190 { echo "$as_me:$LINENO: checking for working chown" >&5
12191 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12192 if test "${ac_cv_func_chown_works+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195 if test "$cross_compiling" = yes; then
12196 ac_cv_func_chown_works=no
12197 else
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <fcntl.h>
12208 main ()
12210 char *f = "conftest.chown";
12211 struct stat before, after;
12213 if (creat (f, 0600) < 0)
12214 return 1;
12215 if (stat (f, &before) < 0)
12216 return 1;
12217 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12218 return 1;
12219 if (stat (f, &after) < 0)
12220 return 1;
12221 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12224 return 0;
12226 _ACEOF
12227 rm -f conftest$ac_exeext
12228 if { (ac_try="$ac_link"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_link") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_func_chown_works=yes
12248 else
12249 echo "$as_me: program exited with status $ac_status" >&5
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ( exit $ac_status )
12254 ac_cv_func_chown_works=no
12256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12260 rm -f conftest.chown
12263 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12264 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12265 if test $ac_cv_func_chown_works = yes; then
12267 cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_CHOWN 1
12269 _ACEOF
12273 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12274 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12275 if test "${ac_cv_func_closedir_void+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 if test "$cross_compiling" = yes; then
12279 ac_cv_func_closedir_void=yes
12280 else
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12288 #include <$ac_header_dirent>
12289 #ifndef __cplusplus
12290 int closedir ();
12291 #endif
12294 main ()
12296 return closedir (opendir (".")) != 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_closedir_void=no
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_closedir_void=yes
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_closedir_void" >&5
12336 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12337 if test $ac_cv_func_closedir_void = yes; then
12339 cat >>confdefs.h <<\_ACEOF
12340 #define CLOSEDIR_VOID 1
12341 _ACEOF
12345 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12346 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12347 if test "${ac_cv_lib_error_at_line+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 #include <error.h>
12358 main ()
12360 error_at_line (0, 0, "", 0, "an error occurred");
12362 return 0;
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest$ac_exeext &&
12382 $as_test_x conftest$ac_exeext; then
12383 ac_cv_lib_error_at_line=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_lib_error_at_line=no
12391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12392 conftest$ac_exeext conftest.$ac_ext
12394 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12395 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12396 if test $ac_cv_lib_error_at_line = no; then
12397 case " $LIBOBJS " in
12398 *" error.$ac_objext "* ) ;;
12399 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12401 esac
12406 for ac_header in vfork.h
12408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 ac_res=`eval echo '${'$as_ac_Header'}'`
12416 { echo "$as_me:$LINENO: result: $ac_res" >&5
12417 echo "${ECHO_T}$ac_res" >&6; }
12418 else
12419 # Is the header compilable?
12420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 $ac_includes_default
12429 #include <$ac_header>
12430 _ACEOF
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.$ac_objext; then
12448 ac_header_compiler=yes
12449 else
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_header_compiler=no
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12458 echo "${ECHO_T}$ac_header_compiler" >&6; }
12460 # Is the header present?
12461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 #include <$ac_header>
12470 _ACEOF
12471 if { (ac_try="$ac_cpp conftest.$ac_ext"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } >/dev/null && {
12484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 }; then
12487 ac_header_preproc=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_header_preproc=no
12495 rm -f conftest.err conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12497 echo "${ECHO_T}$ac_header_preproc" >&6; }
12499 # So? What about this header?
12500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12501 yes:no: )
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12506 ac_header_preproc=yes
12508 no:yes:* )
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12521 ( cat <<\_ASBOX
12522 ## ------------------------------- ##
12523 ## Report this to www.asterisk.org ##
12524 ## ------------------------------- ##
12525 _ASBOX
12526 ) | sed "s/^/$as_me: WARNING: /" >&2
12528 esac
12529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 eval "$as_ac_Header=\$ac_header_preproc"
12536 ac_res=`eval echo '${'$as_ac_Header'}'`
12537 { echo "$as_me:$LINENO: result: $ac_res" >&5
12538 echo "${ECHO_T}$ac_res" >&6; }
12541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12544 _ACEOF
12548 done
12552 for ac_func in fork vfork
12554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define $ac_func innocuous_$ac_func
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12581 #undef $ac_func
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char $ac_func ();
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined __stub_$ac_func || defined __stub___$ac_func
12594 choke me
12595 #endif
12598 main ()
12600 return $ac_func ();
12602 return 0;
12604 _ACEOF
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_link") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && {
12619 test -z "$ac_c_werror_flag" ||
12620 test ! -s conftest.err
12621 } && test -s conftest$ac_exeext &&
12622 $as_test_x conftest$ac_exeext; then
12623 eval "$as_ac_var=yes"
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 eval "$as_ac_var=no"
12631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12632 conftest$ac_exeext conftest.$ac_ext
12634 ac_res=`eval echo '${'$as_ac_var'}'`
12635 { echo "$as_me:$LINENO: result: $ac_res" >&5
12636 echo "${ECHO_T}$ac_res" >&6; }
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12640 _ACEOF
12643 done
12645 if test "x$ac_cv_func_fork" = xyes; then
12646 { echo "$as_me:$LINENO: checking for working fork" >&5
12647 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12648 if test "${ac_cv_func_fork_works+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 if test "$cross_compiling" = yes; then
12652 ac_cv_func_fork_works=cross
12653 else
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12662 main ()
12665 /* By Ruediger Kuhlmann. */
12666 return fork () < 0;
12669 return 0;
12671 _ACEOF
12672 rm -f conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_link") 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_func_fork_works=yes
12693 else
12694 echo "$as_me: program exited with status $ac_status" >&5
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ( exit $ac_status )
12699 ac_cv_func_fork_works=no
12701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12706 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12707 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12709 else
12710 ac_cv_func_fork_works=$ac_cv_func_fork
12712 if test "x$ac_cv_func_fork_works" = xcross; then
12713 case $host in
12714 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12715 # Override, as these systems have only a dummy fork() stub
12716 ac_cv_func_fork_works=no
12719 ac_cv_func_fork_works=yes
12721 esac
12722 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12723 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12725 ac_cv_func_vfork_works=$ac_cv_func_vfork
12726 if test "x$ac_cv_func_vfork" = xyes; then
12727 { echo "$as_me:$LINENO: checking for working vfork" >&5
12728 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12729 if test "${ac_cv_func_vfork_works+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 if test "$cross_compiling" = yes; then
12733 ac_cv_func_vfork_works=cross
12734 else
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 /* Thanks to Paul Eggert for this test. */
12742 $ac_includes_default
12743 #include <sys/wait.h>
12744 #ifdef HAVE_VFORK_H
12745 # include <vfork.h>
12746 #endif
12747 /* On some sparc systems, changes by the child to local and incoming
12748 argument registers are propagated back to the parent. The compiler
12749 is told about this with #include <vfork.h>, but some compilers
12750 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12751 static variable whose address is put into a register that is
12752 clobbered by the vfork. */
12753 static void
12754 #ifdef __cplusplus
12755 sparc_address_test (int arg)
12756 # else
12757 sparc_address_test (arg) int arg;
12758 #endif
12760 static pid_t child;
12761 if (!child) {
12762 child = vfork ();
12763 if (child < 0) {
12764 perror ("vfork");
12765 _exit(2);
12767 if (!child) {
12768 arg = getpid();
12769 write(-1, "", 0);
12770 _exit (arg);
12776 main ()
12778 pid_t parent = getpid ();
12779 pid_t child;
12781 sparc_address_test (0);
12783 child = vfork ();
12785 if (child == 0) {
12786 /* Here is another test for sparc vfork register problems. This
12787 test uses lots of local variables, at least as many local
12788 variables as main has allocated so far including compiler
12789 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12790 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12791 reuse the register of parent for one of the local variables,
12792 since it will think that parent can't possibly be used any more
12793 in this routine. Assigning to the local variable will thus
12794 munge parent in the parent process. */
12795 pid_t
12796 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12797 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12798 /* Convince the compiler that p..p7 are live; otherwise, it might
12799 use the same hardware register for all 8 local variables. */
12800 if (p != p1 || p != p2 || p != p3 || p != p4
12801 || p != p5 || p != p6 || p != p7)
12802 _exit(1);
12804 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12805 from child file descriptors. If the child closes a descriptor
12806 before it execs or exits, this munges the parent's descriptor
12807 as well. Test for this by closing stdout in the child. */
12808 _exit(close(fileno(stdout)) != 0);
12809 } else {
12810 int status;
12811 struct stat st;
12813 while (wait(&status) != child)
12815 return (
12816 /* Was there some problem with vforking? */
12817 child < 0
12819 /* Did the child fail? (This shouldn't happen.) */
12820 || status
12822 /* Did the vfork/compiler bug occur? */
12823 || parent != getpid()
12825 /* Did the file descriptor bug occur? */
12826 || fstat(fileno(stdout), &st) != 0
12830 _ACEOF
12831 rm -f conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_cv_func_vfork_works=yes
12852 else
12853 echo "$as_me: program exited with status $ac_status" >&5
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ( exit $ac_status )
12858 ac_cv_func_vfork_works=no
12860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12865 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12866 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12869 if test "x$ac_cv_func_fork_works" = xcross; then
12870 ac_cv_func_vfork_works=$ac_cv_func_vfork
12871 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12872 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12875 if test "x$ac_cv_func_vfork_works" = xyes; then
12877 cat >>confdefs.h <<\_ACEOF
12878 #define HAVE_WORKING_VFORK 1
12879 _ACEOF
12881 else
12883 cat >>confdefs.h <<\_ACEOF
12884 #define vfork fork
12885 _ACEOF
12888 if test "x$ac_cv_func_fork_works" = xyes; then
12890 cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_WORKING_FORK 1
12892 _ACEOF
12896 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12897 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12898 if test "${ac_cv_sys_largefile_source+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 while :; do
12902 cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h. */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 #include <stdio.h>
12910 main ()
12912 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12914 return 0;
12916 _ACEOF
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_link") 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest$ac_exeext &&
12934 $as_test_x conftest$ac_exeext; then
12935 ac_cv_sys_largefile_source=no; break
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944 conftest$ac_exeext conftest.$ac_ext
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #define _LARGEFILE_SOURCE 1
12952 #include <stdio.h>
12954 main ()
12956 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12958 return 0;
12960 _ACEOF
12961 rm -f conftest.$ac_objext conftest$ac_exeext
12962 if { (ac_try="$ac_link"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_link") 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest$ac_exeext &&
12978 $as_test_x conftest$ac_exeext; then
12979 ac_cv_sys_largefile_source=1; break
12980 else
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12988 conftest$ac_exeext conftest.$ac_ext
12989 ac_cv_sys_largefile_source=unknown
12990 break
12991 done
12993 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12994 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12995 case $ac_cv_sys_largefile_source in #(
12996 no | unknown) ;;
12998 cat >>confdefs.h <<_ACEOF
12999 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13000 _ACEOF
13002 esac
13003 rm -f conftest*
13005 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13006 # in glibc 2.1.3, but that breaks too many other things.
13007 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13008 if test $ac_cv_sys_largefile_source != unknown; then
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_FSEEKO 1
13012 _ACEOF
13016 if test $ac_cv_c_compiler_gnu = yes; then
13017 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13018 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 ac_pattern="Autoconf.*'x'"
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 #include <sgtty.h>
13030 Autoconf TIOCGETP
13031 _ACEOF
13032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13034 ac_cv_prog_gcc_traditional=yes
13035 else
13036 ac_cv_prog_gcc_traditional=no
13038 rm -f conftest*
13041 if test $ac_cv_prog_gcc_traditional = no; then
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 #include <termio.h>
13049 Autoconf TCGETA
13050 _ACEOF
13051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13052 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13053 ac_cv_prog_gcc_traditional=yes
13055 rm -f conftest*
13059 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13060 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13061 if test $ac_cv_prog_gcc_traditional = yes; then
13062 CC="$CC -traditional"
13066 # XXX: these are commented out until we determine whether it matters if our malloc()
13067 # acts exactly like glibc's or not
13068 # AC_FUNC_MALLOC
13069 # AC_FUNC_REALLOC
13070 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13071 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13072 if test "${ac_cv_func_memcmp_working+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 if test "$cross_compiling" = yes; then
13076 ac_cv_func_memcmp_working=no
13077 else
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13086 main ()
13089 /* Some versions of memcmp are not 8-bit clean. */
13090 char c0 = '\100', c1 = '\200', c2 = '\201';
13091 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13092 return 1;
13094 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13095 or more and with at least one buffer not starting on a 4-byte boundary.
13096 William Lewis provided this test program. */
13098 char foo[21];
13099 char bar[21];
13100 int i;
13101 for (i = 0; i < 4; i++)
13103 char *a = foo + i;
13104 char *b = bar + i;
13105 strcpy (a, "--------01111111");
13106 strcpy (b, "--------10000000");
13107 if (memcmp (a, b, 16) >= 0)
13108 return 1;
13110 return 0;
13114 return 0;
13116 _ACEOF
13117 rm -f conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_cv_func_memcmp_working=yes
13138 else
13139 echo "$as_me: program exited with status $ac_status" >&5
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ( exit $ac_status )
13144 ac_cv_func_memcmp_working=no
13146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13152 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13153 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13154 *" memcmp.$ac_objext "* ) ;;
13155 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13157 esac
13162 for ac_header in stdlib.h unistd.h
13164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ac_res=`eval echo '${'$as_ac_Header'}'`
13172 { echo "$as_me:$LINENO: result: $ac_res" >&5
13173 echo "${ECHO_T}$ac_res" >&6; }
13174 else
13175 # Is the header compilable?
13176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h. */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13185 #include <$ac_header>
13186 _ACEOF
13187 rm -f conftest.$ac_objext
13188 if { (ac_try="$ac_compile"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_compile") 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } && {
13201 test -z "$ac_c_werror_flag" ||
13202 test ! -s conftest.err
13203 } && test -s conftest.$ac_objext; then
13204 ac_header_compiler=yes
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 ac_header_compiler=no
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13214 echo "${ECHO_T}$ac_header_compiler" >&6; }
13216 # Is the header present?
13217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 #include <$ac_header>
13226 _ACEOF
13227 if { (ac_try="$ac_cpp conftest.$ac_ext"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } >/dev/null && {
13240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 }; then
13243 ac_header_preproc=yes
13244 else
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_header_preproc=no
13251 rm -f conftest.err conftest.$ac_ext
13252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13253 echo "${ECHO_T}$ac_header_preproc" >&6; }
13255 # So? What about this header?
13256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13257 yes:no: )
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13262 ac_header_preproc=yes
13264 no:yes:* )
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13277 ( cat <<\_ASBOX
13278 ## ------------------------------- ##
13279 ## Report this to www.asterisk.org ##
13280 ## ------------------------------- ##
13281 _ASBOX
13282 ) | sed "s/^/$as_me: WARNING: /" >&2
13284 esac
13285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 eval "$as_ac_Header=\$ac_header_preproc"
13292 ac_res=`eval echo '${'$as_ac_Header'}'`
13293 { echo "$as_me:$LINENO: result: $ac_res" >&5
13294 echo "${ECHO_T}$ac_res" >&6; }
13297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13300 _ACEOF
13304 done
13307 for ac_func in getpagesize
13309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13323 #define $ac_func innocuous_$ac_func
13325 /* System header to define __stub macros and hopefully few prototypes,
13326 which can conflict with char $ac_func (); below.
13327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13328 <limits.h> exists even on freestanding compilers. */
13330 #ifdef __STDC__
13331 # include <limits.h>
13332 #else
13333 # include <assert.h>
13334 #endif
13336 #undef $ac_func
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13341 #ifdef __cplusplus
13342 extern "C"
13343 #endif
13344 char $ac_func ();
13345 /* The GNU C library defines this for functions which it implements
13346 to always fail with ENOSYS. Some functions are actually named
13347 something starting with __ and the normal name is an alias. */
13348 #if defined __stub_$ac_func || defined __stub___$ac_func
13349 choke me
13350 #endif
13353 main ()
13355 return $ac_func ();
13357 return 0;
13359 _ACEOF
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (ac_try="$ac_link"
13362 case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_link") 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && {
13374 test -z "$ac_c_werror_flag" ||
13375 test ! -s conftest.err
13376 } && test -s conftest$ac_exeext &&
13377 $as_test_x conftest$ac_exeext; then
13378 eval "$as_ac_var=yes"
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 eval "$as_ac_var=no"
13386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13387 conftest$ac_exeext conftest.$ac_ext
13389 ac_res=`eval echo '${'$as_ac_var'}'`
13390 { echo "$as_me:$LINENO: result: $ac_res" >&5
13391 echo "${ECHO_T}$ac_res" >&6; }
13392 if test `eval echo '${'$as_ac_var'}'` = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13395 _ACEOF
13398 done
13400 { echo "$as_me:$LINENO: checking for working mmap" >&5
13401 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13402 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405 if test "$cross_compiling" = yes; then
13406 ac_cv_func_mmap_fixed_mapped=no
13407 else
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h. */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 $ac_includes_default
13415 /* malloc might have been renamed as rpl_malloc. */
13416 #undef malloc
13418 /* Thanks to Mike Haertel and Jim Avera for this test.
13419 Here is a matrix of mmap possibilities:
13420 mmap private not fixed
13421 mmap private fixed at somewhere currently unmapped
13422 mmap private fixed at somewhere already mapped
13423 mmap shared not fixed
13424 mmap shared fixed at somewhere currently unmapped
13425 mmap shared fixed at somewhere already mapped
13426 For private mappings, we should verify that changes cannot be read()
13427 back from the file, nor mmap's back from the file at a different
13428 address. (There have been systems where private was not correctly
13429 implemented like the infamous i386 svr4.0, and systems where the
13430 VM page cache was not coherent with the file system buffer cache
13431 like early versions of FreeBSD and possibly contemporary NetBSD.)
13432 For shared mappings, we should conversely verify that changes get
13433 propagated back to all the places they're supposed to be.
13435 Grep wants private fixed already mapped.
13436 The main things grep needs to know about mmap are:
13437 * does it exist and is it safe to write into the mmap'd area
13438 * how to use it (BSD variants) */
13440 #include <fcntl.h>
13441 #include <sys/mman.h>
13443 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13444 char *malloc ();
13445 #endif
13447 /* This mess was copied from the GNU getpagesize.h. */
13448 #ifndef HAVE_GETPAGESIZE
13449 /* Assume that all systems that can run configure have sys/param.h. */
13450 # ifndef HAVE_SYS_PARAM_H
13451 # define HAVE_SYS_PARAM_H 1
13452 # endif
13454 # ifdef _SC_PAGESIZE
13455 # define getpagesize() sysconf(_SC_PAGESIZE)
13456 # else /* no _SC_PAGESIZE */
13457 # ifdef HAVE_SYS_PARAM_H
13458 # include <sys/param.h>
13459 # ifdef EXEC_PAGESIZE
13460 # define getpagesize() EXEC_PAGESIZE
13461 # else /* no EXEC_PAGESIZE */
13462 # ifdef NBPG
13463 # define getpagesize() NBPG * CLSIZE
13464 # ifndef CLSIZE
13465 # define CLSIZE 1
13466 # endif /* no CLSIZE */
13467 # else /* no NBPG */
13468 # ifdef NBPC
13469 # define getpagesize() NBPC
13470 # else /* no NBPC */
13471 # ifdef PAGESIZE
13472 # define getpagesize() PAGESIZE
13473 # endif /* PAGESIZE */
13474 # endif /* no NBPC */
13475 # endif /* no NBPG */
13476 # endif /* no EXEC_PAGESIZE */
13477 # else /* no HAVE_SYS_PARAM_H */
13478 # define getpagesize() 8192 /* punt totally */
13479 # endif /* no HAVE_SYS_PARAM_H */
13480 # endif /* no _SC_PAGESIZE */
13482 #endif /* no HAVE_GETPAGESIZE */
13485 main ()
13487 char *data, *data2, *data3;
13488 int i, pagesize;
13489 int fd;
13491 pagesize = getpagesize ();
13493 /* First, make a file with some known garbage in it. */
13494 data = (char *) malloc (pagesize);
13495 if (!data)
13496 return 1;
13497 for (i = 0; i < pagesize; ++i)
13498 *(data + i) = rand ();
13499 umask (0);
13500 fd = creat ("conftest.mmap", 0600);
13501 if (fd < 0)
13502 return 1;
13503 if (write (fd, data, pagesize) != pagesize)
13504 return 1;
13505 close (fd);
13507 /* Next, try to mmap the file at a fixed address which already has
13508 something else allocated at it. If we can, also make sure that
13509 we see the same garbage. */
13510 fd = open ("conftest.mmap", O_RDWR);
13511 if (fd < 0)
13512 return 1;
13513 data2 = (char *) malloc (2 * pagesize);
13514 if (!data2)
13515 return 1;
13516 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13517 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13518 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13519 return 1;
13520 for (i = 0; i < pagesize; ++i)
13521 if (*(data + i) != *(data2 + i))
13522 return 1;
13524 /* Finally, make sure that changes to the mapped area do not
13525 percolate back to the file as seen by read(). (This is a bug on
13526 some variants of i386 svr4.0.) */
13527 for (i = 0; i < pagesize; ++i)
13528 *(data2 + i) = *(data2 + i) + 1;
13529 data3 = (char *) malloc (pagesize);
13530 if (!data3)
13531 return 1;
13532 if (read (fd, data3, pagesize) != pagesize)
13533 return 1;
13534 for (i = 0; i < pagesize; ++i)
13535 if (*(data + i) != *(data3 + i))
13536 return 1;
13537 close (fd);
13538 return 0;
13540 _ACEOF
13541 rm -f conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_func_mmap_fixed_mapped=yes
13562 else
13563 echo "$as_me: program exited with status $ac_status" >&5
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ( exit $ac_status )
13568 ac_cv_func_mmap_fixed_mapped=no
13570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13575 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13576 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13577 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13579 cat >>confdefs.h <<\_ACEOF
13580 #define HAVE_MMAP 1
13581 _ACEOF
13584 rm -f conftest.mmap
13588 for ac_header in sys/select.h sys/socket.h
13590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 ac_res=`eval echo '${'$as_ac_Header'}'`
13598 { echo "$as_me:$LINENO: result: $ac_res" >&5
13599 echo "${ECHO_T}$ac_res" >&6; }
13600 else
13601 # Is the header compilable?
13602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13611 #include <$ac_header>
13612 _ACEOF
13613 rm -f conftest.$ac_objext
13614 if { (ac_try="$ac_compile"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_compile") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_c_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest.$ac_objext; then
13630 ac_header_compiler=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_header_compiler=no
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13640 echo "${ECHO_T}$ac_header_compiler" >&6; }
13642 # Is the header present?
13643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 #include <$ac_header>
13652 _ACEOF
13653 if { (ac_try="$ac_cpp conftest.$ac_ext"
13654 case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } >/dev/null && {
13666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13667 test ! -s conftest.err
13668 }; then
13669 ac_header_preproc=yes
13670 else
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_header_preproc=no
13677 rm -f conftest.err conftest.$ac_ext
13678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6; }
13681 # So? What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683 yes:no: )
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc=yes
13690 no:yes:* )
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13703 ( cat <<\_ASBOX
13704 ## ------------------------------- ##
13705 ## Report this to www.asterisk.org ##
13706 ## ------------------------------- ##
13707 _ASBOX
13708 ) | sed "s/^/$as_me: WARNING: /" >&2
13710 esac
13711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716 eval "$as_ac_Header=\$ac_header_preproc"
13718 ac_res=`eval echo '${'$as_ac_Header'}'`
13719 { echo "$as_me:$LINENO: result: $ac_res" >&5
13720 echo "${ECHO_T}$ac_res" >&6; }
13723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13724 cat >>confdefs.h <<_ACEOF
13725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13726 _ACEOF
13730 done
13732 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13733 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13734 if test "${ac_cv_func_select_args+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13738 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13739 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13747 #ifdef HAVE_SYS_SELECT_H
13748 # include <sys/select.h>
13749 #endif
13750 #ifdef HAVE_SYS_SOCKET_H
13751 # include <sys/socket.h>
13752 #endif
13755 main ()
13757 extern int select ($ac_arg1,
13758 $ac_arg234, $ac_arg234, $ac_arg234,
13759 $ac_arg5);
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (ac_try="$ac_compile"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_compile") 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && {
13778 test -z "$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 } && test -s conftest.$ac_objext; then
13781 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 done
13791 done
13792 done
13793 # Provide a safe default value.
13794 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13797 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13798 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13799 ac_save_IFS=$IFS; IFS=','
13800 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13801 IFS=$ac_save_IFS
13802 shift
13804 cat >>confdefs.h <<_ACEOF
13805 #define SELECT_TYPE_ARG1 $1
13806 _ACEOF
13809 cat >>confdefs.h <<_ACEOF
13810 #define SELECT_TYPE_ARG234 ($2)
13811 _ACEOF
13814 cat >>confdefs.h <<_ACEOF
13815 #define SELECT_TYPE_ARG5 ($3)
13816 _ACEOF
13818 rm -f conftest*
13820 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13821 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13822 if test "$ac_cv_prog_cc_c89" != no; then
13823 { echo "$as_me:$LINENO: result: yes" >&5
13824 echo "${ECHO_T}yes" >&6; }
13826 cat >>confdefs.h <<\_ACEOF
13827 #define PROTOTYPES 1
13828 _ACEOF
13831 cat >>confdefs.h <<\_ACEOF
13832 #define __PROTOTYPES 1
13833 _ACEOF
13835 else
13836 { echo "$as_me:$LINENO: result: no" >&5
13837 echo "${ECHO_T}no" >&6; }
13840 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13841 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13842 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 ac_cv_func_setvbuf_reversed=no
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 #include <stdio.h>
13853 # ifdef PROTOTYPES
13854 int (setvbuf) (FILE *, int, char *, size_t);
13855 # endif
13857 main ()
13859 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 #include <stdio.h>
13889 # ifdef PROTOTYPES
13890 int (setvbuf) (FILE *, int, char *, size_t);
13891 # endif
13893 main ()
13895 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13897 return 0;
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13918 # It compiles and links either way, so it must not be declared
13919 # with a prototype and most likely this is a K&R C compiler.
13920 # Try running it.
13921 if test "$cross_compiling" = yes; then
13922 : # Assume setvbuf is not reversed when cross-compiling.
13923 else
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13932 main ()
13934 /* This call has the arguments reversed.
13935 A reversed system may check and see that the address of buf
13936 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13937 char buf;
13938 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13939 return 1;
13940 putchar ('\r');
13941 return 0; /* Non-reversed systems SEGV here. */
13943 return 0;
13945 _ACEOF
13946 rm -f conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_func_setvbuf_reversed=yes
13967 else
13968 echo "$as_me: program exited with status $ac_status" >&5
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13977 ac_cv_func_setvbuf_reversed=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13986 conftest$ac_exeext conftest.$ac_ext
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13995 conftest$ac_exeext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13998 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13999 if test $ac_cv_func_setvbuf_reversed = yes; then
14001 cat >>confdefs.h <<\_ACEOF
14002 #define SETVBUF_REVERSED 1
14003 _ACEOF
14007 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14008 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14009 if test "${ac_cv_type_signal+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h. */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #include <sys/types.h>
14019 #include <signal.h>
14022 main ()
14024 return *(signal (0, 0)) (0) == 1;
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest.$ac_objext; then
14046 ac_cv_type_signal=int
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_cv_type_signal=void
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14057 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14059 cat >>confdefs.h <<_ACEOF
14060 #define RETSIGTYPE $ac_cv_type_signal
14061 _ACEOF
14064 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14065 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14066 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 rm -f conftest.sym conftest.file
14070 echo >conftest.file
14071 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14072 if test "$cross_compiling" = yes; then
14073 ac_cv_func_lstat_dereferences_slashed_symlink=no
14074 else
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 $ac_includes_default
14083 main ()
14085 struct stat sbuf;
14086 /* Linux will dereference the symlink and fail.
14087 That is better in the sense that it means we will not
14088 have to compile and use the lstat wrapper. */
14089 return lstat ("conftest.sym/", &sbuf) == 0;
14091 return 0;
14093 _ACEOF
14094 rm -f conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14105 { (case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_try") 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14115 else
14116 echo "$as_me: program exited with status $ac_status" >&5
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ( exit $ac_status )
14121 ac_cv_func_lstat_dereferences_slashed_symlink=no
14123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14127 else
14128 # If the `ln -s' command failed, then we probably don't even
14129 # have an lstat function.
14130 ac_cv_func_lstat_dereferences_slashed_symlink=no
14132 rm -f conftest.sym conftest.file
14135 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14136 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14138 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14140 cat >>confdefs.h <<_ACEOF
14141 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14142 _ACEOF
14145 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14146 case " $LIBOBJS " in
14147 *" lstat.$ac_objext "* ) ;;
14148 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14150 esac
14154 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14155 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14156 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 if test "$cross_compiling" = yes; then
14160 ac_cv_func_stat_empty_string_bug=yes
14161 else
14162 cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h. */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 $ac_includes_default
14170 main ()
14172 struct stat sbuf;
14173 return stat ("", &sbuf) == 0;
14175 return 0;
14177 _ACEOF
14178 rm -f conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_link") 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_func_stat_empty_string_bug=no
14199 else
14200 echo "$as_me: program exited with status $ac_status" >&5
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ( exit $ac_status )
14205 ac_cv_func_stat_empty_string_bug=yes
14207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14212 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14213 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14214 if test $ac_cv_func_stat_empty_string_bug = yes; then
14215 case " $LIBOBJS " in
14216 *" stat.$ac_objext "* ) ;;
14217 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14219 esac
14222 cat >>confdefs.h <<_ACEOF
14223 #define HAVE_STAT_EMPTY_STRING_BUG 1
14224 _ACEOF
14228 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14229 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14230 if test "${ac_cv_func_strcoll_works+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 if test "$cross_compiling" = yes; then
14234 ac_cv_func_strcoll_works=no
14235 else
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14244 main ()
14246 return (strcoll ("abc", "def") >= 0 ||
14247 strcoll ("ABC", "DEF") >= 0 ||
14248 strcoll ("123", "456") >= 0)
14250 return 0;
14252 _ACEOF
14253 rm -f conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14264 { (case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_try") 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_func_strcoll_works=yes
14274 else
14275 echo "$as_me: program exited with status $ac_status" >&5
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ( exit $ac_status )
14280 ac_cv_func_strcoll_works=no
14282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14287 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14288 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14289 if test $ac_cv_func_strcoll_works = yes; then
14291 cat >>confdefs.h <<\_ACEOF
14292 #define HAVE_STRCOLL 1
14293 _ACEOF
14298 for ac_func in strftime
14300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314 #define $ac_func innocuous_$ac_func
14316 /* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14321 #ifdef __STDC__
14322 # include <limits.h>
14323 #else
14324 # include <assert.h>
14325 #endif
14327 #undef $ac_func
14329 /* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 char $ac_func ();
14336 /* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339 #if defined __stub_$ac_func || defined __stub___$ac_func
14340 choke me
14341 #endif
14344 main ()
14346 return $ac_func ();
14348 return 0;
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 eval "$as_ac_var=yes"
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 eval "$as_ac_var=no"
14377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14380 ac_res=`eval echo '${'$as_ac_var'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382 echo "${ECHO_T}$ac_res" >&6; }
14383 if test `eval echo '${'$as_ac_var'}'` = yes; then
14384 cat >>confdefs.h <<_ACEOF
14385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14386 _ACEOF
14388 else
14389 # strftime is in -lintl on SCO UNIX.
14390 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14391 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14392 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395 ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-lintl $LIBS"
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 /* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14407 #ifdef __cplusplus
14408 extern "C"
14409 #endif
14410 char strftime ();
14412 main ()
14414 return strftime ();
14416 return 0;
14418 _ACEOF
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_link") 2>conftest.er1
14427 ac_status=$?
14428 grep -v '^ *+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } && {
14433 test -z "$ac_c_werror_flag" ||
14434 test ! -s conftest.err
14435 } && test -s conftest$ac_exeext &&
14436 $as_test_x conftest$ac_exeext; then
14437 ac_cv_lib_intl_strftime=yes
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 ac_cv_lib_intl_strftime=no
14445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14446 conftest$ac_exeext conftest.$ac_ext
14447 LIBS=$ac_check_lib_save_LIBS
14449 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14450 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14451 if test $ac_cv_lib_intl_strftime = yes; then
14452 cat >>confdefs.h <<\_ACEOF
14453 #define HAVE_STRFTIME 1
14454 _ACEOF
14456 LIBS="-lintl $LIBS"
14460 done
14462 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14463 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14464 if test "${ac_cv_func_strnlen_working+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 if test "$cross_compiling" = yes; then
14468 ac_cv_func_strnlen_working=no
14469 else
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 $ac_includes_default
14478 main ()
14481 #define S "foobar"
14482 #define S_LEN (sizeof S - 1)
14484 /* At least one implementation is buggy: that of AIX 4.3 would
14485 give strnlen (S, 1) == 3. */
14487 int i;
14488 for (i = 0; i < S_LEN + 1; ++i)
14490 int expected = i <= S_LEN ? i : S_LEN;
14491 if (strnlen (S, i) != expected)
14492 return 1;
14494 return 0;
14497 return 0;
14499 _ACEOF
14500 rm -f conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_link") 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14511 { (case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14514 esac
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_try") 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_func_strnlen_working=yes
14521 else
14522 echo "$as_me: program exited with status $ac_status" >&5
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ( exit $ac_status )
14527 ac_cv_func_strnlen_working=no
14529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14535 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14536 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14537 *" strnlen.$ac_objext "* ) ;;
14538 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14540 esac
14543 { echo "$as_me:$LINENO: checking for working strtod" >&5
14544 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14545 if test "${ac_cv_func_strtod+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548 if test "$cross_compiling" = yes; then
14549 ac_cv_func_strtod=no
14550 else
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 $ac_includes_default
14559 #ifndef strtod
14560 double strtod ();
14561 #endif
14563 main()
14566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14567 char *string = " +69";
14568 char *term;
14569 double value;
14570 value = strtod (string, &term);
14571 if (value != 69 || term != (string + 4))
14572 return 1;
14576 /* Under Solaris 2.4, strtod returns the wrong value for the
14577 terminating character under some conditions. */
14578 char *string = "NaN";
14579 char *term;
14580 strtod (string, &term);
14581 if (term != string && *(term - 1) == 0)
14582 return 1;
14584 return 0;
14587 _ACEOF
14588 rm -f conftest$ac_exeext
14589 if { (ac_try="$ac_link"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_link") 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14599 { (case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_try") 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_cv_func_strtod=yes
14609 else
14610 echo "$as_me: program exited with status $ac_status" >&5
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ( exit $ac_status )
14615 ac_cv_func_strtod=no
14617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14622 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14623 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14624 if test $ac_cv_func_strtod = no; then
14625 case " $LIBOBJS " in
14626 *" strtod.$ac_objext "* ) ;;
14627 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14629 esac
14631 { echo "$as_me:$LINENO: checking for pow" >&5
14632 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14633 if test "${ac_cv_func_pow+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 else
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14644 #define pow innocuous_pow
14646 /* System header to define __stub macros and hopefully few prototypes,
14647 which can conflict with char pow (); below.
14648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14649 <limits.h> exists even on freestanding compilers. */
14651 #ifdef __STDC__
14652 # include <limits.h>
14653 #else
14654 # include <assert.h>
14655 #endif
14657 #undef pow
14659 /* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
14662 #ifdef __cplusplus
14663 extern "C"
14664 #endif
14665 char pow ();
14666 /* The GNU C library defines this for functions which it implements
14667 to always fail with ENOSYS. Some functions are actually named
14668 something starting with __ and the normal name is an alias. */
14669 #if defined __stub_pow || defined __stub___pow
14670 choke me
14671 #endif
14674 main ()
14676 return pow ();
14678 return 0;
14680 _ACEOF
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest$ac_exeext &&
14698 $as_test_x conftest$ac_exeext; then
14699 ac_cv_func_pow=yes
14700 else
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 ac_cv_func_pow=no
14707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14708 conftest$ac_exeext conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14711 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14713 if test $ac_cv_func_pow = no; then
14714 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14715 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14716 if test "${ac_cv_lib_m_pow+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 ac_check_lib_save_LIBS=$LIBS
14720 LIBS="-lm $LIBS"
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h. */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14728 /* Override any GCC internal prototype to avoid an error.
14729 Use char because int might match the return type of a GCC
14730 builtin and then its argument prototype would still apply. */
14731 #ifdef __cplusplus
14732 extern "C"
14733 #endif
14734 char pow ();
14736 main ()
14738 return pow ();
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 ac_cv_lib_m_pow=yes
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_cv_lib_m_pow=no
14769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14770 conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14773 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14774 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14775 if test $ac_cv_lib_m_pow = yes; then
14776 POW_LIB=-lm
14777 else
14778 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14779 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14790 for ac_header in $ac_header_list
14792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14802 else
14803 # Is the header compilable?
14804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14813 #include <$ac_header>
14814 _ACEOF
14815 rm -f conftest.$ac_objext
14816 if { (ac_try="$ac_compile"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_compile") 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest.$ac_objext; then
14832 ac_header_compiler=yes
14833 else
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_header_compiler=no
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842 echo "${ECHO_T}$ac_header_compiler" >&6; }
14844 # Is the header present?
14845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <$ac_header>
14854 _ACEOF
14855 if { (ac_try="$ac_cpp conftest.$ac_ext"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } >/dev/null && {
14868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 }; then
14871 ac_header_preproc=yes
14872 else
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 ac_header_preproc=no
14879 rm -f conftest.err conftest.$ac_ext
14880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881 echo "${ECHO_T}$ac_header_preproc" >&6; }
14883 # So? What about this header?
14884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885 yes:no: )
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890 ac_header_preproc=yes
14892 no:yes:* )
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905 ( cat <<\_ASBOX
14906 ## ------------------------------- ##
14907 ## Report this to www.asterisk.org ##
14908 ## ------------------------------- ##
14909 _ASBOX
14910 ) | sed "s/^/$as_me: WARNING: /" >&2
14912 esac
14913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 eval "$as_ac_Header=\$ac_header_preproc"
14920 ac_res=`eval echo '${'$as_ac_Header'}'`
14921 { echo "$as_me:$LINENO: result: $ac_res" >&5
14922 echo "${ECHO_T}$ac_res" >&6; }
14925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928 _ACEOF
14932 done
14942 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14943 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14944 if test "${ac_cv_func_utime_null+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 rm -f conftest.data; >conftest.data
14948 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14949 if test "$cross_compiling" = yes; then
14950 ac_cv_func_utime_null=no
14951 else
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #ifdef HAVE_UTIME_H
14960 # include <utime.h>
14961 #endif
14963 main ()
14965 struct stat s, t;
14966 return ! (stat ("conftest.data", &s) == 0
14967 && utime ("conftest.data", 0) == 0
14968 && stat ("conftest.data", &t) == 0
14969 && t.st_mtime >= s.st_mtime
14970 && t.st_mtime - s.st_mtime < 120);
14972 return 0;
14974 _ACEOF
14975 rm -f conftest$ac_exeext
14976 if { (ac_try="$ac_link"
14977 case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_link") 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_cv_func_utime_null=yes
14996 else
14997 echo "$as_me: program exited with status $ac_status" >&5
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ( exit $ac_status )
15002 ac_cv_func_utime_null=no
15004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15009 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15010 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15011 if test $ac_cv_func_utime_null = yes; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_UTIME_NULL 1
15015 _ACEOF
15018 rm -f conftest.data
15021 for ac_func in vprintf
15023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15037 #define $ac_func innocuous_$ac_func
15039 /* System header to define __stub macros and hopefully few prototypes,
15040 which can conflict with char $ac_func (); below.
15041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042 <limits.h> exists even on freestanding compilers. */
15044 #ifdef __STDC__
15045 # include <limits.h>
15046 #else
15047 # include <assert.h>
15048 #endif
15050 #undef $ac_func
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15055 #ifdef __cplusplus
15056 extern "C"
15057 #endif
15058 char $ac_func ();
15059 /* The GNU C library defines this for functions which it implements
15060 to always fail with ENOSYS. Some functions are actually named
15061 something starting with __ and the normal name is an alias. */
15062 #if defined __stub_$ac_func || defined __stub___$ac_func
15063 choke me
15064 #endif
15067 main ()
15069 return $ac_func ();
15071 return 0;
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
15092 eval "$as_ac_var=yes"
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 eval "$as_ac_var=no"
15100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15101 conftest$ac_exeext conftest.$ac_ext
15103 ac_res=`eval echo '${'$as_ac_var'}'`
15104 { echo "$as_me:$LINENO: result: $ac_res" >&5
15105 echo "${ECHO_T}$ac_res" >&6; }
15106 if test `eval echo '${'$as_ac_var'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15109 _ACEOF
15111 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15112 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15113 if test "${ac_cv_func__doprnt+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15124 #define _doprnt innocuous__doprnt
15126 /* System header to define __stub macros and hopefully few prototypes,
15127 which can conflict with char _doprnt (); below.
15128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15129 <limits.h> exists even on freestanding compilers. */
15131 #ifdef __STDC__
15132 # include <limits.h>
15133 #else
15134 # include <assert.h>
15135 #endif
15137 #undef _doprnt
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char _doprnt ();
15146 /* The GNU C library defines this for functions which it implements
15147 to always fail with ENOSYS. Some functions are actually named
15148 something starting with __ and the normal name is an alias. */
15149 #if defined __stub__doprnt || defined __stub____doprnt
15150 choke me
15151 #endif
15154 main ()
15156 return _doprnt ();
15158 return 0;
15160 _ACEOF
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext &&
15178 $as_test_x conftest$ac_exeext; then
15179 ac_cv_func__doprnt=yes
15180 else
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ac_cv_func__doprnt=no
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188 conftest$ac_exeext conftest.$ac_ext
15190 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15191 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15192 if test $ac_cv_func__doprnt = yes; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_DOPRNT 1
15196 _ACEOF
15201 done
15249 for ac_func in asprintf atexit bzero dup2 endpwent ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
15251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15265 #define $ac_func innocuous_$ac_func
15267 /* System header to define __stub macros and hopefully few prototypes,
15268 which can conflict with char $ac_func (); below.
15269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15270 <limits.h> exists even on freestanding compilers. */
15272 #ifdef __STDC__
15273 # include <limits.h>
15274 #else
15275 # include <assert.h>
15276 #endif
15278 #undef $ac_func
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char $ac_func ();
15287 /* The GNU C library defines this for functions which it implements
15288 to always fail with ENOSYS. Some functions are actually named
15289 something starting with __ and the normal name is an alias. */
15290 #if defined __stub_$ac_func || defined __stub___$ac_func
15291 choke me
15292 #endif
15295 main ()
15297 return $ac_func ();
15299 return 0;
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_link") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest$ac_exeext &&
15319 $as_test_x conftest$ac_exeext; then
15320 eval "$as_ac_var=yes"
15321 else
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 eval "$as_ac_var=no"
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329 conftest$ac_exeext conftest.$ac_ext
15331 ac_res=`eval echo '${'$as_ac_var'}'`
15332 { echo "$as_me:$LINENO: result: $ac_res" >&5
15333 echo "${ECHO_T}$ac_res" >&6; }
15334 if test `eval echo '${'$as_ac_var'}'` = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15337 _ACEOF
15340 done
15344 for ac_func in glob
15346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h. */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15360 #define $ac_func innocuous_$ac_func
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func (); below.
15364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15365 <limits.h> exists even on freestanding compilers. */
15367 #ifdef __STDC__
15368 # include <limits.h>
15369 #else
15370 # include <assert.h>
15371 #endif
15373 #undef $ac_func
15375 /* Override any GCC internal prototype to avoid an error.
15376 Use char because int might match the return type of a GCC
15377 builtin and then its argument prototype would still apply. */
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char $ac_func ();
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined __stub_$ac_func || defined __stub___$ac_func
15386 choke me
15387 #endif
15390 main ()
15392 return $ac_func ();
15394 return 0;
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 eval "$as_ac_var=yes"
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 eval "$as_ac_var=no"
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15426 ac_res=`eval echo '${'$as_ac_var'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15429 if test `eval echo '${'$as_ac_var'}'` = yes; then
15430 cat >>confdefs.h <<_ACEOF
15431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15432 _ACEOF
15435 done
15438 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15439 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <sys/time.h>
15448 main ()
15450 struct timeval *a; timersub(a, a, a);
15452 return 0;
15454 _ACEOF
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (ac_try="$ac_link"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_link") 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } && {
15469 test -z "$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15471 } && test -s conftest$ac_exeext &&
15472 $as_test_x conftest$ac_exeext; then
15473 { echo "$as_me:$LINENO: result: yes" >&5
15474 echo "${ECHO_T}yes" >&6; }
15476 cat >>confdefs.h <<\_ACEOF
15477 #define HAVE_TIMERSUB 1
15478 _ACEOF
15480 else
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 { echo "$as_me:$LINENO: result: no" >&5
15485 echo "${ECHO_T}no" >&6; }
15489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15490 conftest$ac_exeext conftest.$ac_ext
15492 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15493 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15494 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15495 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15499 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15500 else
15501 # Is the header compilable?
15502 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15503 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15511 #include <sys/poll.h>
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (ac_try="$ac_compile"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15530 ac_header_compiler=yes
15531 else
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_header_compiler=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 echo "${ECHO_T}$ac_header_compiler" >&6; }
15542 # Is the header present?
15543 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15544 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <sys/poll.h>
15552 _ACEOF
15553 if { (ac_try="$ac_cpp conftest.$ac_ext"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } >/dev/null && {
15566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 }; then
15569 ac_header_preproc=yes
15570 else
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 ac_header_preproc=no
15577 rm -f conftest.err conftest.$ac_ext
15578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15579 echo "${ECHO_T}$ac_header_preproc" >&6; }
15581 # So? What about this header?
15582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15583 yes:no: )
15584 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15585 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15587 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15588 ac_header_preproc=yes
15590 no:yes:* )
15591 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15592 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15594 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15596 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15598 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15600 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15602 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15603 ( cat <<\_ASBOX
15604 ## ------------------------------- ##
15605 ## Report this to www.asterisk.org ##
15606 ## ------------------------------- ##
15607 _ASBOX
15608 ) | sed "s/^/$as_me: WARNING: /" >&2
15610 esac
15611 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15612 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15613 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 ac_cv_header_sys_poll_h=$ac_header_preproc
15618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15619 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15622 if test $ac_cv_header_sys_poll_h = yes; then
15623 HAS_POLL=1
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE_SYS_POLL_H 1
15627 _ACEOF
15633 # Check whether --enable-internal-poll was given.
15634 if test "${enable_internal_poll+set}" = set; then
15635 enableval=$enable_internal_poll; case "${enableval}" in
15636 y|ye|yes) HAS_POLL="";;
15637 n|no) HAS_POLL="${HAS_POLL}" ;;
15638 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-internal-poll" >&5
15639 echo "$as_me: error: bad value ${enableval} for --enable-internal-poll" >&2;}
15640 { (exit 1); exit 1; }; } ;;
15641 esac
15648 # https support (in main/http.c) uses funopen on BSD systems,
15649 # fopencookie on linux
15652 for ac_func in funopen fopencookie
15654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15668 #define $ac_func innocuous_$ac_func
15670 /* System header to define __stub macros and hopefully few prototypes,
15671 which can conflict with char $ac_func (); below.
15672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15673 <limits.h> exists even on freestanding compilers. */
15675 #ifdef __STDC__
15676 # include <limits.h>
15677 #else
15678 # include <assert.h>
15679 #endif
15681 #undef $ac_func
15683 /* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
15686 #ifdef __cplusplus
15687 extern "C"
15688 #endif
15689 char $ac_func ();
15690 /* The GNU C library defines this for functions which it implements
15691 to always fail with ENOSYS. Some functions are actually named
15692 something starting with __ and the normal name is an alias. */
15693 #if defined __stub_$ac_func || defined __stub___$ac_func
15694 choke me
15695 #endif
15698 main ()
15700 return $ac_func ();
15702 return 0;
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
15713 ac_status=$?
15714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } && {
15719 test -z "$ac_c_werror_flag" ||
15720 test ! -s conftest.err
15721 } && test -s conftest$ac_exeext &&
15722 $as_test_x conftest$ac_exeext; then
15723 eval "$as_ac_var=yes"
15724 else
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 eval "$as_ac_var=no"
15731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15732 conftest$ac_exeext conftest.$ac_ext
15734 ac_res=`eval echo '${'$as_ac_var'}'`
15735 { echo "$as_me:$LINENO: result: $ac_res" >&5
15736 echo "${ECHO_T}$ac_res" >&6; }
15737 if test `eval echo '${'$as_ac_var'}'` = yes; then
15738 cat >>confdefs.h <<_ACEOF
15739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15740 _ACEOF
15743 done
15747 for ac_func in inet_aton
15749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15763 #define $ac_func innocuous_$ac_func
15765 /* System header to define __stub macros and hopefully few prototypes,
15766 which can conflict with char $ac_func (); below.
15767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15768 <limits.h> exists even on freestanding compilers. */
15770 #ifdef __STDC__
15771 # include <limits.h>
15772 #else
15773 # include <assert.h>
15774 #endif
15776 #undef $ac_func
15778 /* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15781 #ifdef __cplusplus
15782 extern "C"
15783 #endif
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined __stub_$ac_func || defined __stub___$ac_func
15789 choke me
15790 #endif
15793 main ()
15795 return $ac_func ();
15797 return 0;
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (ac_try="$ac_link"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_link") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext &&
15817 $as_test_x conftest$ac_exeext; then
15818 eval "$as_ac_var=yes"
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 eval "$as_ac_var=no"
15826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15827 conftest$ac_exeext conftest.$ac_ext
15829 ac_res=`eval echo '${'$as_ac_var'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15832 if test `eval echo '${'$as_ac_var'}'` = yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15835 _ACEOF
15838 done
15841 # check if we have IP_PKTINFO constant defined
15842 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15843 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 #include <netinet/in.h>
15852 main ()
15854 int pi = IP_PKTINFO;
15856 return 0;
15858 _ACEOF
15859 rm -f conftest.$ac_objext conftest$ac_exeext
15860 if { (ac_try="$ac_link"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_link") 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } && {
15873 test -z "$ac_c_werror_flag" ||
15874 test ! -s conftest.err
15875 } && test -s conftest$ac_exeext &&
15876 $as_test_x conftest$ac_exeext; then
15877 { echo "$as_me:$LINENO: result: yes" >&5
15878 echo "${ECHO_T}yes" >&6; }
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE_PKTINFO 1
15882 _ACEOF
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 { echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6; }
15893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15894 conftest$ac_exeext conftest.$ac_ext
15896 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15897 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15898 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15899 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 ac_func_search_save_LIBS=$LIBS
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15910 /* Override any GCC internal prototype to avoid an error.
15911 Use char because int might match the return type of a GCC
15912 builtin and then its argument prototype would still apply. */
15913 #ifdef __cplusplus
15914 extern "C"
15915 #endif
15916 char gethostbyname_r ();
15918 main ()
15920 return gethostbyname_r ();
15922 return 0;
15924 _ACEOF
15925 for ac_lib in '' socket nsl; do
15926 if test -z "$ac_lib"; then
15927 ac_res="none required"
15928 else
15929 ac_res=-l$ac_lib
15930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15932 rm -f conftest.$ac_objext conftest$ac_exeext
15933 if { (ac_try="$ac_link"
15934 case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_link") 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && {
15946 test -z "$ac_c_werror_flag" ||
15947 test ! -s conftest.err
15948 } && test -s conftest$ac_exeext &&
15949 $as_test_x conftest$ac_exeext; then
15950 ac_cv_search_gethostbyname_r=$ac_res
15951 else
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15959 conftest$ac_exeext
15960 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15961 break
15963 done
15964 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15966 else
15967 ac_cv_search_gethostbyname_r=no
15969 rm conftest.$ac_ext
15970 LIBS=$ac_func_search_save_LIBS
15972 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15973 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15974 ac_res=$ac_cv_search_gethostbyname_r
15975 if test "$ac_res" != no; then
15976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15981 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15982 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h. */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <stdlib.h>
15990 #include <netdb.h>
15992 main ()
15994 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15996 return 0;
15998 _ACEOF
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } && {
16013 test -z "$ac_c_werror_flag" ||
16014 test ! -s conftest.err
16015 } && test -s conftest$ac_exeext &&
16016 $as_test_x conftest$ac_exeext; then
16017 { echo "$as_me:$LINENO: result: yes" >&5
16018 echo "${ECHO_T}yes" >&6; }
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_GETHOSTBYNAME_R_6 1
16022 _ACEOF
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 { echo "$as_me:$LINENO: result: no" >&5
16029 echo "${ECHO_T}no" >&6; }
16033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16034 conftest$ac_exeext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
16037 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <stdlib.h>
16045 #include <netdb.h>
16047 main ()
16049 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16051 return 0;
16053 _ACEOF
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (ac_try="$ac_link"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_link") 2>conftest.er1
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest$ac_exeext &&
16071 $as_test_x conftest$ac_exeext; then
16072 { echo "$as_me:$LINENO: result: yes" >&5
16073 echo "${ECHO_T}yes" >&6; }
16075 cat >>confdefs.h <<\_ACEOF
16076 #define HAVE_GETHOSTBYNAME_R_5 1
16077 _ACEOF
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 { echo "$as_me:$LINENO: result: no" >&5
16084 echo "${ECHO_T}no" >&6; }
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16091 if test "${ac_cv_header_byteswap_h+set}" = set; then
16092 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16093 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16094 if test "${ac_cv_header_byteswap_h+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16098 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16099 else
16100 # Is the header compilable?
16101 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
16102 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h. */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16110 #include <byteswap.h>
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16120 ac_status=$?
16121 grep -v '^ *+' conftest.er1 >conftest.err
16122 rm -f conftest.er1
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16129 ac_header_compiler=yes
16130 else
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_header_compiler=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16139 echo "${ECHO_T}$ac_header_compiler" >&6; }
16141 # Is the header present?
16142 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16143 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h. */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 #include <byteswap.h>
16151 _ACEOF
16152 if { (ac_try="$ac_cpp conftest.$ac_ext"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } >/dev/null && {
16165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16166 test ! -s conftest.err
16167 }; then
16168 ac_header_preproc=yes
16169 else
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ac_header_preproc=no
16176 rm -f conftest.err conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16178 echo "${ECHO_T}$ac_header_preproc" >&6; }
16180 # So? What about this header?
16181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16182 yes:no: )
16183 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16184 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16186 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16187 ac_header_preproc=yes
16189 no:yes:* )
16190 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16191 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16193 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16195 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16197 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16199 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16201 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16202 ( cat <<\_ASBOX
16203 ## ------------------------------- ##
16204 ## Report this to www.asterisk.org ##
16205 ## ------------------------------- ##
16206 _ASBOX
16207 ) | sed "s/^/$as_me: WARNING: /" >&2
16209 esac
16210 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16211 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16212 if test "${ac_cv_header_byteswap_h+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215 ac_cv_header_byteswap_h=$ac_header_preproc
16217 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16218 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16221 if test $ac_cv_header_byteswap_h = yes; then
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_BYTESWAP_H 1
16225 _ACEOF
16231 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16232 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <sys/endian.h>
16241 main ()
16243 int a = 1; int b = __swap16(a);
16245 return 0;
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (ac_try="$ac_link"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16266 { echo "$as_me:$LINENO: result: yes" >&5
16267 echo "${ECHO_T}yes" >&6; }
16269 cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_SYS_ENDIAN_SWAP16 1
16271 _ACEOF
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16286 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <sys/endian.h>
16295 main ()
16297 int a = 1; int b = bswap16(a);
16299 return 0;
16301 _ACEOF
16302 rm -f conftest.$ac_objext conftest$ac_exeext
16303 if { (ac_try="$ac_link"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_link") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest$ac_exeext &&
16319 $as_test_x conftest$ac_exeext; then
16320 { echo "$as_me:$LINENO: result: yes" >&5
16321 echo "${ECHO_T}yes" >&6; }
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_SYS_ENDIAN_BSWAP16 1
16325 _ACEOF
16327 else
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337 conftest$ac_exeext conftest.$ac_ext
16339 if test "${cross_compiling}" = "no";
16340 then
16341 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16342 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16343 if test "${ac_cv_file__dev_urandom+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 test "$cross_compiling" = yes &&
16347 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16348 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16349 { (exit 1); exit 1; }; }
16350 if test -r "/dev/urandom"; then
16351 ac_cv_file__dev_urandom=yes
16352 else
16353 ac_cv_file__dev_urandom=no
16356 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16357 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16358 if test $ac_cv_file__dev_urandom = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_DEV_URANDOM 1
16362 _ACEOF
16369 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16370 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16371 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16372 saved_cppflags="${CPPFLAGS}"
16373 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16374 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16376 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 #include <pthread.h>
16386 main ()
16388 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16389 int foo = 0;
16390 #else
16391 int foo = bar;
16392 #endif
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_compile") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest.$ac_objext; then
16416 { echo "$as_me:$LINENO: result: yes" >&5
16417 echo "${ECHO_T}yes" >&6; }
16418 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16420 cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16422 _ACEOF
16425 cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16427 _ACEOF
16430 else
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16434 { echo "$as_me:$LINENO: result: no" >&5
16435 echo "${ECHO_T}no" >&6; }
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 CPPFLAGS="${saved_cppflags}"
16445 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16446 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 #include <pthread.h>
16455 main ()
16457 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16459 return 0;
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467 esac
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_link") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest$ac_exeext &&
16479 $as_test_x conftest$ac_exeext; then
16480 { echo "$as_me:$LINENO: result: yes" >&5
16481 echo "${ECHO_T}yes" >&6; }
16483 cat >>confdefs.h <<\_ACEOF
16484 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16485 _ACEOF
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 { echo "$as_me:$LINENO: result: no" >&5
16492 echo "${ECHO_T}no" >&6; }
16496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16497 conftest$ac_exeext conftest.$ac_ext
16499 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16500 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 #include <pthread.h>
16509 main ()
16511 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16513 return 0;
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16539 _ACEOF
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16551 conftest$ac_exeext conftest.$ac_ext
16554 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16555 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16556 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16557 saved_cppflags="${CPPFLAGS}"
16558 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16559 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16561 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <pthread.h>
16571 main ()
16573 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16574 int foo = 0;
16575 #else
16576 int foo = bar;
16577 #endif
16581 return 0;
16583 _ACEOF
16584 rm -f conftest.$ac_objext
16585 if { (ac_try="$ac_compile"
16586 case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_compile") 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && {
16598 test -z "$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 } && test -s conftest.$ac_objext; then
16601 { echo "$as_me:$LINENO: result: yes" >&5
16602 echo "${ECHO_T}yes" >&6; }
16603 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16607 _ACEOF
16610 cat >>confdefs.h <<\_ACEOF
16611 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16612 _ACEOF
16615 else
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 { echo "$as_me:$LINENO: result: no" >&5
16620 echo "${ECHO_T}no" >&6; }
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 CPPFLAGS="${saved_cppflags}"
16630 #if test "${cross_compiling}" = "no";
16631 #then
16632 #AC_MSG_CHECKING(for working epoll support)
16633 #AC_LINK_IFELSE(
16634 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16635 # if (res < 0)
16636 # return 1;
16637 # close (res);
16638 # return 0;]),
16639 #AC_MSG_RESULT(yes)
16640 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16641 #AC_MSG_RESULT(no)
16645 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16646 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h. */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16655 main ()
16657 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16659 return 0;
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (ac_try="$ac_link"
16664 case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_link") 2>conftest.er1
16670 ac_status=$?
16671 grep -v '^ *+' conftest.er1 >conftest.err
16672 rm -f conftest.er1
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest$ac_exeext &&
16679 $as_test_x conftest$ac_exeext; then
16680 { echo "$as_me:$LINENO: result: yes" >&5
16681 echo "${ECHO_T}yes" >&6; }
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_GCC_ATOMICS 1
16685 _ACEOF
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 { echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6; }
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16697 conftest$ac_exeext conftest.$ac_ext
16700 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16701 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16702 saved_CFLAGS="$CFLAGS"
16703 CFLAGS="$CFLAGS -Werror"
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 static void __attribute__((pure)) *test(void *muffin, ...) {}
16712 main ()
16716 return 0;
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.$ac_objext; then
16736 { echo "$as_me:$LINENO: result: yes" >&5
16737 echo "${ECHO_T}yes" >&6; }
16739 cat >>confdefs.h <<_ACEOF
16740 #define HAVE_ATTRIBUTE_pure 1
16741 _ACEOF
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 { echo "$as_me:$LINENO: result: no" >&5
16748 echo "${ECHO_T}no" >&6; }
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 CFLAGS="$saved_CFLAGS"
16756 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16757 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16758 saved_CFLAGS="$CFLAGS"
16759 CFLAGS="$CFLAGS -Werror"
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16768 main ()
16772 return 0;
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (ac_try="$ac_compile"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_compile") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } && {
16789 test -z "$ac_c_werror_flag" ||
16790 test ! -s conftest.err
16791 } && test -s conftest.$ac_objext; then
16792 { echo "$as_me:$LINENO: result: yes" >&5
16793 echo "${ECHO_T}yes" >&6; }
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_ATTRIBUTE_malloc 1
16797 _ACEOF
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 { echo "$as_me:$LINENO: result: no" >&5
16804 echo "${ECHO_T}no" >&6; }
16807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809 CFLAGS="$saved_CFLAGS"
16812 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16813 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16814 saved_CFLAGS="$CFLAGS"
16815 CFLAGS="$CFLAGS -Werror"
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 static void __attribute__((const)) *test(void *muffin, ...) {}
16824 main ()
16828 return 0;
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest.$ac_objext; then
16848 { echo "$as_me:$LINENO: result: yes" >&5
16849 echo "${ECHO_T}yes" >&6; }
16851 cat >>confdefs.h <<_ACEOF
16852 #define HAVE_ATTRIBUTE_const 1
16853 _ACEOF
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 { echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6; }
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 CFLAGS="$saved_CFLAGS"
16868 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16869 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16870 saved_CFLAGS="$CFLAGS"
16871 CFLAGS="$CFLAGS -Werror"
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h. */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 static void __attribute__((unused)) *test(void *muffin, ...) {}
16880 main ()
16884 return 0;
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (ac_try="$ac_compile"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_compile") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } && {
16901 test -z "$ac_c_werror_flag" ||
16902 test ! -s conftest.err
16903 } && test -s conftest.$ac_objext; then
16904 { echo "$as_me:$LINENO: result: yes" >&5
16905 echo "${ECHO_T}yes" >&6; }
16907 cat >>confdefs.h <<_ACEOF
16908 #define HAVE_ATTRIBUTE_unused 1
16909 _ACEOF
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 { echo "$as_me:$LINENO: result: no" >&5
16916 echo "${ECHO_T}no" >&6; }
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 CFLAGS="$saved_CFLAGS"
16924 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16925 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16926 saved_CFLAGS="$CFLAGS"
16927 CFLAGS="$CFLAGS -Werror"
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16936 main ()
16940 return 0;
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_compile") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest.$ac_objext; then
16960 { echo "$as_me:$LINENO: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6; }
16963 cat >>confdefs.h <<_ACEOF
16964 #define HAVE_ATTRIBUTE_always_inline 1
16965 _ACEOF
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 { echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6; }
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977 CFLAGS="$saved_CFLAGS"
16980 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16981 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16982 saved_CFLAGS="$CFLAGS"
16983 CFLAGS="$CFLAGS -Werror"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16992 main ()
16996 return 0;
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (ac_try="$ac_compile"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_compile") 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } && {
17013 test -z "$ac_c_werror_flag" ||
17014 test ! -s conftest.err
17015 } && test -s conftest.$ac_objext; then
17016 { echo "$as_me:$LINENO: result: yes" >&5
17017 echo "${ECHO_T}yes" >&6; }
17019 cat >>confdefs.h <<_ACEOF
17020 #define HAVE_ATTRIBUTE_deprecated 1
17021 _ACEOF
17023 else
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 { echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6; }
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 CFLAGS="$saved_CFLAGS"
17036 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
17037 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
17038 saved_CFLAGS="$CFLAGS"
17039 CFLAGS="$CFLAGS -Werror"
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
17048 main ()
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (ac_try="$ac_compile"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_compile") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest.$ac_objext; then
17072 { echo "$as_me:$LINENO: result: yes" >&5
17073 echo "${ECHO_T}yes" >&6; }
17075 cat >>confdefs.h <<_ACEOF
17076 #define HAVE_ATTRIBUTE_sentinel 1
17077 _ACEOF
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 { echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6; }
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17089 CFLAGS="$saved_CFLAGS"
17092 { echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
17093 echo $ECHO_N "checking for compiler 'attribute warn_unused_result' support... $ECHO_C" >&6; }
17094 saved_CFLAGS="$CFLAGS"
17095 CFLAGS="$CFLAGS -Werror"
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 static void __attribute__((warn_unused_result)) *test(void *muffin, ...) {}
17104 main ()
17108 return 0;
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (ac_try="$ac_compile"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_compile") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest.$ac_objext; then
17128 { echo "$as_me:$LINENO: result: yes" >&5
17129 echo "${ECHO_T}yes" >&6; }
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_ATTRIBUTE_warn_unused_result 1
17133 _ACEOF
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 { echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6; }
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 CFLAGS="$saved_CFLAGS"
17148 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17149 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17150 saved_CFLAGS="${CFLAGS}"
17151 CFLAGS="${CFLAGS} -ffunction-sections"
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17160 main ()
17162 int x = 1;
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_compile") 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && {
17181 test -z "$ac_c_werror_flag" ||
17182 test ! -s conftest.err
17183 } && test -s conftest.$ac_objext; then
17184 { echo "$as_me:$LINENO: result: yes" >&5
17185 echo "${ECHO_T}yes" >&6; }
17186 saved_LDFLAGS="${LDFLAGS}"
17187 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17188 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17189 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17198 main ()
17200 int x = 1;
17202 return 0;
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
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_link") 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); } && {
17219 test -z "$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 } && test -s conftest$ac_exeext &&
17222 $as_test_x conftest$ac_exeext; then
17223 { echo "$as_me:$LINENO: result: yes" >&5
17224 echo "${ECHO_T}yes" >&6; }
17225 GC_CFLAGS="-ffunction-sections"
17226 GC_LDFLAGS="-Wl,--gc-sections"
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17237 conftest$ac_exeext conftest.$ac_ext
17238 LDFLAGS="${saved_LDFLAGS}"
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 { echo "$as_me:$LINENO: result: no" >&5
17244 echo "${ECHO_T}no" >&6; }
17248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17249 CFLAGS="${saved_CFLAGS}"
17253 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17254 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17255 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17256 { echo "$as_me:$LINENO: result: yes" >&5
17257 echo "${ECHO_T}yes" >&6; }
17258 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17259 else
17260 { echo "$as_me:$LINENO: result: no" >&5
17261 echo "${ECHO_T}no" >&6; }
17262 AST_DECLARATION_AFTER_STATEMENT=
17266 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17267 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17268 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17269 { echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6; }
17271 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17272 else
17273 { echo "$as_me:$LINENO: result: no" >&5
17274 echo "${ECHO_T}no" >&6; }
17275 AST_NO_STRICT_OVERFLOW=
17279 { echo "$as_me:$LINENO: checking for -Wshadow" >&5
17280 echo $ECHO_N "checking for -Wshadow... $ECHO_C" >&6; }
17281 if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17282 { echo "$as_me:$LINENO: result: yes" >&5
17283 echo "${ECHO_T}yes" >&6; }
17284 AST_SHADOW_WARNINGS=-Wshadow
17285 else
17286 { echo "$as_me:$LINENO: result: no" >&5
17287 echo "${ECHO_T}no" >&6; }
17288 AST_SHADOW_WARNINGS=
17292 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17293 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #include <sys/sysinfo.h>
17302 main ()
17304 struct sysinfo sys_info; int uptime = sys_info.uptime
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327 { echo "$as_me:$LINENO: result: yes" >&5
17328 echo "${ECHO_T}yes" >&6; }
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_SYSINFO 1
17332 _ACEOF
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 { echo "$as_me:$LINENO: result: no" >&5
17339 echo "${ECHO_T}no" >&6; }
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17346 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17347 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17348 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351 ac_func_search_save_LIBS=$LIBS
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h. */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 /* Override any GCC internal prototype to avoid an error.
17360 Use char because int might match the return type of a GCC
17361 builtin and then its argument prototype would still apply. */
17362 #ifdef __cplusplus
17363 extern "C"
17364 #endif
17365 char res_9_ninit ();
17367 main ()
17369 return res_9_ninit ();
17371 return 0;
17373 _ACEOF
17374 for ac_lib in '' resolv; do
17375 if test -z "$ac_lib"; then
17376 ac_res="none required"
17377 else
17378 ac_res=-l$ac_lib
17379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && {
17395 test -z "$ac_c_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest$ac_exeext &&
17398 $as_test_x conftest$ac_exeext; then
17399 ac_cv_search_res_9_ninit=$ac_res
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17408 conftest$ac_exeext
17409 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17410 break
17412 done
17413 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17415 else
17416 ac_cv_search_res_9_ninit=no
17418 rm conftest.$ac_ext
17419 LIBS=$ac_func_search_save_LIBS
17421 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17422 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17423 ac_res=$ac_cv_search_res_9_ninit
17424 if test "$ac_res" != no; then
17425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17429 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17430 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17438 #ifdef HAVE_SYS_SOCKET_H
17439 #include <sys/socket.h>
17440 #endif
17441 #ifdef HAVE_NETINET_IN_H
17442 #include <netinet/in.h>
17443 #endif
17444 #ifdef HAVE_ARPA_NAMESER_H
17445 #include <arpa/nameser.h>
17446 #endif
17447 #include <resolv.h>
17449 main ()
17451 int foo = res_ninit(NULL);
17453 return 0;
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest$ac_exeext &&
17473 $as_test_x conftest$ac_exeext; then
17474 { echo "$as_me:$LINENO: result: yes" >&5
17475 echo "${ECHO_T}yes" >&6; }
17477 cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_RES_NINIT 1
17479 _ACEOF
17481 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17482 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17483 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486 ac_func_search_save_LIBS=$LIBS
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17494 /* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17497 #ifdef __cplusplus
17498 extern "C"
17499 #endif
17500 char res_9_ndestroy ();
17502 main ()
17504 return res_9_ndestroy ();
17506 return 0;
17508 _ACEOF
17509 for ac_lib in '' resolv; do
17510 if test -z "$ac_lib"; then
17511 ac_res="none required"
17512 else
17513 ac_res=-l$ac_lib
17514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 ac_cv_search_res_9_ndestroy=$ac_res
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543 conftest$ac_exeext
17544 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17545 break
17547 done
17548 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17550 else
17551 ac_cv_search_res_9_ndestroy=no
17553 rm conftest.$ac_ext
17554 LIBS=$ac_func_search_save_LIBS
17556 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17557 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17558 ac_res=$ac_cv_search_res_9_ndestroy
17559 if test "$ac_res" != no; then
17560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17564 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17565 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17566 cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h. */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17573 #ifdef HAVE_SYS_SOCKET_H
17574 #include <sys/socket.h>
17575 #endif
17576 #ifdef HAVE_NETINET_IN_H
17577 #include <netinet/in.h>
17578 #endif
17579 #ifdef HAVE_ARPA_NAMESER_H
17580 #include <arpa/nameser.h>
17581 #endif
17582 #include <resolv.h>
17584 main ()
17586 res_ndestroy(NULL);
17588 return 0;
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_link") 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && {
17605 test -z "$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17607 } && test -s conftest$ac_exeext &&
17608 $as_test_x conftest$ac_exeext; then
17609 { echo "$as_me:$LINENO: result: yes" >&5
17610 echo "${ECHO_T}yes" >&6; }
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_RES_NDESTROY 1
17614 _ACEOF
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 { echo "$as_me:$LINENO: result: no" >&5
17621 echo "${ECHO_T}no" >&6; }
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 { echo "$as_me:$LINENO: result: no" >&5
17632 echo "${ECHO_T}no" >&6; }
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17640 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17641 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17642 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17643 saved_cppflags="${CPPFLAGS}"
17644 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17645 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17647 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 #include <dlfcn.h>
17657 main ()
17659 #if defined(RTLD_NOLOAD)
17660 int foo = 0;
17661 #else
17662 int foo = bar;
17663 #endif
17667 return 0;
17669 _ACEOF
17670 rm -f conftest.$ac_objext
17671 if { (ac_try="$ac_compile"
17672 case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_compile") 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && {
17684 test -z "$ac_c_werror_flag" ||
17685 test ! -s conftest.err
17686 } && test -s conftest.$ac_objext; then
17687 { echo "$as_me:$LINENO: result: yes" >&5
17688 echo "${ECHO_T}yes" >&6; }
17689 PBX_RTLD_NOLOAD=1
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_RTLD_NOLOAD 1
17693 _ACEOF
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_RTLD_NOLOAD_VERSION
17698 _ACEOF
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 { echo "$as_me:$LINENO: result: no" >&5
17706 echo "${ECHO_T}no" >&6; }
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 CPPFLAGS="${saved_cppflags}"
17717 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17718 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17719 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17720 saved_cppflags="${CPPFLAGS}"
17721 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17722 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17724 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #include <netinet/in.h>
17734 main ()
17736 #if defined(IP_MTU_DISCOVER)
17737 int foo = 0;
17738 #else
17739 int foo = bar;
17740 #endif
17744 return 0;
17746 _ACEOF
17747 rm -f conftest.$ac_objext
17748 if { (ac_try="$ac_compile"
17749 case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_compile") 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } && {
17761 test -z "$ac_c_werror_flag" ||
17762 test ! -s conftest.err
17763 } && test -s conftest.$ac_objext; then
17764 { echo "$as_me:$LINENO: result: yes" >&5
17765 echo "${ECHO_T}yes" >&6; }
17766 PBX_IP_MTU_DISCOVER=1
17768 cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_IP_MTU_DISCOVER 1
17770 _ACEOF
17773 cat >>confdefs.h <<\_ACEOF
17774 #define HAVE_IP_MTU_DISCOVER_VERSION
17775 _ACEOF
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 { echo "$as_me:$LINENO: result: no" >&5
17783 echo "${ECHO_T}no" >&6; }
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 CPPFLAGS="${saved_cppflags}"
17793 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17794 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17795 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17796 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17800 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17801 else
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17804 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 #include <libkern/OSAtomic.h>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.$ac_objext; then
17831 ac_header_compiler=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_compiler=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17841 echo "${ECHO_T}$ac_header_compiler" >&6; }
17843 # Is the header present?
17844 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17845 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 #include <libkern/OSAtomic.h>
17853 _ACEOF
17854 if { (ac_try="$ac_cpp conftest.$ac_ext"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev/null && {
17867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 }; then
17870 ac_header_preproc=yes
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_header_preproc=no
17878 rm -f conftest.err conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17880 echo "${ECHO_T}$ac_header_preproc" >&6; }
17882 # So? What about this header?
17883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17884 yes:no: )
17885 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17886 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17888 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17889 ac_header_preproc=yes
17891 no:yes:* )
17892 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17893 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17895 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17897 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17899 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17901 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17903 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17904 ( cat <<\_ASBOX
17905 ## ------------------------------- ##
17906 ## Report this to www.asterisk.org ##
17907 ## ------------------------------- ##
17908 _ASBOX
17909 ) | sed "s/^/$as_me: WARNING: /" >&2
17911 esac
17912 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17913 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17914 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17919 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17920 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17923 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define HAVE_OSX_ATOMICS 1
17927 _ACEOF
17933 { echo "$as_me:$LINENO: checking for int" >&5
17934 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17935 if test "${ac_cv_type_int+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 $ac_includes_default
17945 typedef int ac__type_new_;
17947 main ()
17949 if ((ac__type_new_ *) 0)
17950 return 0;
17951 if (sizeof (ac__type_new_))
17952 return 0;
17954 return 0;
17956 _ACEOF
17957 rm -f conftest.$ac_objext
17958 if { (ac_try="$ac_compile"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_compile") 2>conftest.er1
17965 ac_status=$?
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && {
17971 test -z "$ac_c_werror_flag" ||
17972 test ! -s conftest.err
17973 } && test -s conftest.$ac_objext; then
17974 ac_cv_type_int=yes
17975 else
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_cv_type_int=no
17982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17985 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17987 # The cast to long int works around a bug in the HP C Compiler
17988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17990 # This bug is HP SR number 8606223364.
17991 { echo "$as_me:$LINENO: checking size of int" >&5
17992 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17993 if test "${ac_cv_sizeof_int+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996 if test "$cross_compiling" = yes; then
17997 # Depending upon the size, compute the lo and hi bounds.
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 $ac_includes_default
18005 typedef int ac__type_sizeof_;
18007 main ()
18009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18010 test_array [0] = 0
18013 return 0;
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (ac_try="$ac_compile"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest.$ac_objext; then
18033 ac_lo=0 ac_mid=0
18034 while :; do
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h. */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18041 $ac_includes_default
18042 typedef int ac__type_sizeof_;
18044 main ()
18046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18047 test_array [0] = 0
18050 return 0;
18052 _ACEOF
18053 rm -f conftest.$ac_objext
18054 if { (ac_try="$ac_compile"
18055 case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058 esac
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_compile") 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } && {
18067 test -z "$ac_c_werror_flag" ||
18068 test ! -s conftest.err
18069 } && test -s conftest.$ac_objext; then
18070 ac_hi=$ac_mid; break
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 ac_lo=`expr $ac_mid + 1`
18076 if test $ac_lo -le $ac_mid; then
18077 ac_lo= ac_hi=
18078 break
18080 ac_mid=`expr 2 '*' $ac_mid + 1`
18083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18084 done
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h. */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 $ac_includes_default
18096 typedef int ac__type_sizeof_;
18098 main ()
18100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18101 test_array [0] = 0
18104 return 0;
18106 _ACEOF
18107 rm -f conftest.$ac_objext
18108 if { (ac_try="$ac_compile"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_compile") 2>conftest.er1
18115 ac_status=$?
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } && {
18121 test -z "$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 } && test -s conftest.$ac_objext; then
18124 ac_hi=-1 ac_mid=-1
18125 while :; do
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h. */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132 $ac_includes_default
18133 typedef int ac__type_sizeof_;
18135 main ()
18137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18138 test_array [0] = 0
18141 return 0;
18143 _ACEOF
18144 rm -f conftest.$ac_objext
18145 if { (ac_try="$ac_compile"
18146 case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_compile") 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } && {
18158 test -z "$ac_c_werror_flag" ||
18159 test ! -s conftest.err
18160 } && test -s conftest.$ac_objext; then
18161 ac_lo=$ac_mid; break
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 ac_hi=`expr '(' $ac_mid ')' - 1`
18167 if test $ac_mid -le $ac_hi; then
18168 ac_lo= ac_hi=
18169 break
18171 ac_mid=`expr 2 '*' $ac_mid`
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175 done
18176 else
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_lo= ac_hi=
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187 # Binary search between lo and hi bounds.
18188 while test "x$ac_lo" != "x$ac_hi"; do
18189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 $ac_includes_default
18197 typedef int ac__type_sizeof_;
18199 main ()
18201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18202 test_array [0] = 0
18205 return 0;
18207 _ACEOF
18208 rm -f conftest.$ac_objext
18209 if { (ac_try="$ac_compile"
18210 case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_compile") 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } && {
18222 test -z "$ac_c_werror_flag" ||
18223 test ! -s conftest.err
18224 } && test -s conftest.$ac_objext; then
18225 ac_hi=$ac_mid
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ac_lo=`expr '(' $ac_mid ')' + 1`
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 done
18235 case $ac_lo in
18236 ?*) ac_cv_sizeof_int=$ac_lo;;
18237 '') if test "$ac_cv_type_int" = yes; then
18238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18239 See \`config.log' for more details." >&5
18240 echo "$as_me: error: cannot compute sizeof (int)
18241 See \`config.log' for more details." >&2;}
18242 { (exit 77); exit 77; }; }
18243 else
18244 ac_cv_sizeof_int=0
18245 fi ;;
18246 esac
18247 else
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 $ac_includes_default
18255 typedef int ac__type_sizeof_;
18256 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18257 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18258 #include <stdio.h>
18259 #include <stdlib.h>
18261 main ()
18264 FILE *f = fopen ("conftest.val", "w");
18265 if (! f)
18266 return 1;
18267 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18269 long int i = longval ();
18270 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18271 return 1;
18272 fprintf (f, "%ld\n", i);
18274 else
18276 unsigned long int i = ulongval ();
18277 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18278 return 1;
18279 fprintf (f, "%lu\n", i);
18281 return ferror (f) || fclose (f) != 0;
18284 return 0;
18286 _ACEOF
18287 rm -f conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_link") 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_sizeof_int=`cat conftest.val`
18308 else
18309 echo "$as_me: program exited with status $ac_status" >&5
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ( exit $ac_status )
18314 if test "$ac_cv_type_int" = yes; then
18315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18316 See \`config.log' for more details." >&5
18317 echo "$as_me: error: cannot compute sizeof (int)
18318 See \`config.log' for more details." >&2;}
18319 { (exit 77); exit 77; }; }
18320 else
18321 ac_cv_sizeof_int=0
18324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18326 rm -f conftest.val
18328 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18329 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18333 cat >>confdefs.h <<_ACEOF
18334 #define SIZEOF_INT $ac_cv_sizeof_int
18335 _ACEOF
18339 # do the package library checks now
18342 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18343 pbxlibdir=""
18344 # if --with-ALSA=DIR has been specified, use it.
18345 if test "x${ALSA_DIR}" != "x"; then
18346 if test -d ${ALSA_DIR}/lib; then
18347 pbxlibdir="-L${ALSA_DIR}/lib"
18348 else
18349 pbxlibdir="-L${ALSA_DIR}"
18352 pbxfuncname="snd_spcm_init"
18353 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18354 AST_ALSA_FOUND=yes
18355 else
18356 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18357 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18358 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18359 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any GCC internal prototype to avoid an error.
18372 Use char because int might match the return type of a GCC
18373 builtin and then its argument prototype would still apply. */
18374 #ifdef __cplusplus
18375 extern "C"
18376 #endif
18377 char ${pbxfuncname} ();
18379 main ()
18381 return ${pbxfuncname} ();
18383 return 0;
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_link") 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest$ac_exeext &&
18403 $as_test_x conftest$ac_exeext; then
18404 eval "$as_ac_Lib=yes"
18405 else
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 eval "$as_ac_Lib=no"
18412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18413 conftest$ac_exeext conftest.$ac_ext
18414 LIBS=$ac_check_lib_save_LIBS
18416 ac_res=`eval echo '${'$as_ac_Lib'}'`
18417 { echo "$as_me:$LINENO: result: $ac_res" >&5
18418 echo "${ECHO_T}$ac_res" >&6; }
18419 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18420 AST_ALSA_FOUND=yes
18421 else
18422 AST_ALSA_FOUND=no
18427 # now check for the header.
18428 if test "${AST_ALSA_FOUND}" = "yes"; then
18429 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18430 # if --with-ALSA=DIR has been specified, use it.
18431 if test "x${ALSA_DIR}" != "x"; then
18432 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18434 ALSA_INCLUDE="${ALSA_INCLUDE} "
18435 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18436 ALSA_HEADER_FOUND="1"
18437 else # check for the header
18438 saved_cppflags="${CPPFLAGS}"
18439 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
18440 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18441 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18442 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18443 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18447 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18448 else
18449 # Is the header compilable?
18450 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18451 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 $ac_includes_default
18459 #include <alsa/asoundlib.h>
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (ac_try="$ac_compile"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_compile") 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest.$ac_objext; then
18478 ac_header_compiler=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_header_compiler=no
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18488 echo "${ECHO_T}$ac_header_compiler" >&6; }
18490 # Is the header present?
18491 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18492 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499 #include <alsa/asoundlib.h>
18500 _ACEOF
18501 if { (ac_try="$ac_cpp conftest.$ac_ext"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18508 ac_status=$?
18509 grep -v '^ *+' conftest.er1 >conftest.err
18510 rm -f conftest.er1
18511 cat conftest.err >&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } >/dev/null && {
18514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18515 test ! -s conftest.err
18516 }; then
18517 ac_header_preproc=yes
18518 else
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_header_preproc=no
18525 rm -f conftest.err conftest.$ac_ext
18526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18527 echo "${ECHO_T}$ac_header_preproc" >&6; }
18529 # So? What about this header?
18530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18531 yes:no: )
18532 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18533 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18534 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18535 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18536 ac_header_preproc=yes
18538 no:yes:* )
18539 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18540 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18541 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18542 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18543 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18544 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18545 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18546 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18547 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18548 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18549 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18550 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18551 ( cat <<\_ASBOX
18552 ## ------------------------------- ##
18553 ## Report this to www.asterisk.org ##
18554 ## ------------------------------- ##
18555 _ASBOX
18556 ) | sed "s/^/$as_me: WARNING: /" >&2
18558 esac
18559 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18560 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18561 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18566 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18567 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18570 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18571 ALSA_HEADER_FOUND=1
18572 else
18573 ALSA_HEADER_FOUND=0
18577 CPPFLAGS="${saved_cppflags}"
18579 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18580 ALSA_LIB=""
18581 ALSA_INCLUDE=""
18582 else
18583 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18584 ALSA_LIB=""
18586 PBX_ALSA=1
18587 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18589 cat >>confdefs.h <<_ACEOF
18590 #define HAVE_ALSA 1
18591 _ACEOF
18594 cat >>confdefs.h <<_ACEOF
18595 #define HAVE_ALSA_VERSION
18596 _ACEOF
18604 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18605 pbxlibdir=""
18606 # if --with-CURSES=DIR has been specified, use it.
18607 if test "x${CURSES_DIR}" != "x"; then
18608 if test -d ${CURSES_DIR}/lib; then
18609 pbxlibdir="-L${CURSES_DIR}/lib"
18610 else
18611 pbxlibdir="-L${CURSES_DIR}"
18614 pbxfuncname="initscr"
18615 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18616 AST_CURSES_FOUND=yes
18617 else
18618 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18619 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18620 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624 ac_check_lib_save_LIBS=$LIBS
18625 LIBS="-lcurses ${pbxlibdir} $LIBS"
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18633 /* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18636 #ifdef __cplusplus
18637 extern "C"
18638 #endif
18639 char ${pbxfuncname} ();
18641 main ()
18643 return ${pbxfuncname} ();
18645 return 0;
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 eval "$as_ac_Lib=yes"
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 eval "$as_ac_Lib=no"
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18676 LIBS=$ac_check_lib_save_LIBS
18678 ac_res=`eval echo '${'$as_ac_Lib'}'`
18679 { echo "$as_me:$LINENO: result: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18682 AST_CURSES_FOUND=yes
18683 else
18684 AST_CURSES_FOUND=no
18689 # now check for the header.
18690 if test "${AST_CURSES_FOUND}" = "yes"; then
18691 CURSES_LIB="${pbxlibdir} -lcurses "
18692 # if --with-CURSES=DIR has been specified, use it.
18693 if test "x${CURSES_DIR}" != "x"; then
18694 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18696 CURSES_INCLUDE="${CURSES_INCLUDE} "
18697 if test "xcurses.h" = "x" ; then # no header, assume found
18698 CURSES_HEADER_FOUND="1"
18699 else # check for the header
18700 saved_cppflags="${CPPFLAGS}"
18701 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
18702 if test "${ac_cv_header_curses_h+set}" = set; then
18703 { echo "$as_me:$LINENO: checking for curses.h" >&5
18704 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18705 if test "${ac_cv_header_curses_h+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18709 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18710 else
18711 # Is the header compilable?
18712 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18713 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 $ac_includes_default
18721 #include <curses.h>
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_compile") 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest.$ac_objext; then
18740 ac_header_compiler=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_header_compiler=no
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18750 echo "${ECHO_T}$ac_header_compiler" >&6; }
18752 # Is the header present?
18753 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18754 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 #include <curses.h>
18762 _ACEOF
18763 if { (ac_try="$ac_cpp conftest.$ac_ext"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } >/dev/null && {
18776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 }; then
18779 ac_header_preproc=yes
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_header_preproc=no
18787 rm -f conftest.err conftest.$ac_ext
18788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18789 echo "${ECHO_T}$ac_header_preproc" >&6; }
18791 # So? What about this header?
18792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18793 yes:no: )
18794 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18795 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18797 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18798 ac_header_preproc=yes
18800 no:yes:* )
18801 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18802 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18803 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18804 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18806 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18808 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18810 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18812 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18813 ( cat <<\_ASBOX
18814 ## ------------------------------- ##
18815 ## Report this to www.asterisk.org ##
18816 ## ------------------------------- ##
18817 _ASBOX
18818 ) | sed "s/^/$as_me: WARNING: /" >&2
18820 esac
18821 { echo "$as_me:$LINENO: checking for curses.h" >&5
18822 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18823 if test "${ac_cv_header_curses_h+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 ac_cv_header_curses_h=$ac_header_preproc
18828 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18829 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18832 if test $ac_cv_header_curses_h = yes; then
18833 CURSES_HEADER_FOUND=1
18834 else
18835 CURSES_HEADER_FOUND=0
18839 CPPFLAGS="${saved_cppflags}"
18841 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18842 CURSES_LIB=""
18843 CURSES_INCLUDE=""
18844 else
18845 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18846 CURSES_LIB=""
18848 PBX_CURSES=1
18849 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18851 cat >>confdefs.h <<_ACEOF
18852 #define HAVE_CURSES 1
18853 _ACEOF
18856 cat >>confdefs.h <<_ACEOF
18857 #define HAVE_CURSES_VERSION
18858 _ACEOF
18865 if test "x${host_os}" = "xlinux-gnu" ; then
18867 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18868 pbxlibdir=""
18869 # if --with-CAP=DIR has been specified, use it.
18870 if test "x${CAP_DIR}" != "x"; then
18871 if test -d ${CAP_DIR}/lib; then
18872 pbxlibdir="-L${CAP_DIR}/lib"
18873 else
18874 pbxlibdir="-L${CAP_DIR}"
18877 pbxfuncname="cap_from_text"
18878 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18879 AST_CAP_FOUND=yes
18880 else
18881 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18882 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18883 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18884 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lcap ${pbxlibdir} $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char ${pbxfuncname} ();
18904 main ()
18906 return ${pbxfuncname} ();
18908 return 0;
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext &&
18928 $as_test_x conftest$ac_exeext; then
18929 eval "$as_ac_Lib=yes"
18930 else
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 eval "$as_ac_Lib=no"
18937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18938 conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18941 ac_res=`eval echo '${'$as_ac_Lib'}'`
18942 { echo "$as_me:$LINENO: result: $ac_res" >&5
18943 echo "${ECHO_T}$ac_res" >&6; }
18944 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18945 AST_CAP_FOUND=yes
18946 else
18947 AST_CAP_FOUND=no
18952 # now check for the header.
18953 if test "${AST_CAP_FOUND}" = "yes"; then
18954 CAP_LIB="${pbxlibdir} -lcap "
18955 # if --with-CAP=DIR has been specified, use it.
18956 if test "x${CAP_DIR}" != "x"; then
18957 CAP_INCLUDE="-I${CAP_DIR}/include"
18959 CAP_INCLUDE="${CAP_INCLUDE} "
18960 if test "xsys/capability.h" = "x" ; then # no header, assume found
18961 CAP_HEADER_FOUND="1"
18962 else # check for the header
18963 saved_cppflags="${CPPFLAGS}"
18964 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
18965 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18966 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18967 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18968 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18972 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18973 else
18974 # Is the header compilable?
18975 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18976 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 $ac_includes_default
18984 #include <sys/capability.h>
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
19003 ac_header_compiler=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_header_compiler=no
19011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19013 echo "${ECHO_T}$ac_header_compiler" >&6; }
19015 # Is the header present?
19016 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
19017 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 #include <sys/capability.h>
19025 _ACEOF
19026 if { (ac_try="$ac_cpp conftest.$ac_ext"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } >/dev/null && {
19039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19040 test ! -s conftest.err
19041 }; then
19042 ac_header_preproc=yes
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_header_preproc=no
19050 rm -f conftest.err conftest.$ac_ext
19051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19052 echo "${ECHO_T}$ac_header_preproc" >&6; }
19054 # So? What about this header?
19055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056 yes:no: )
19057 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19058 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19059 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
19060 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
19061 ac_header_preproc=yes
19063 no:yes:* )
19064 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
19065 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
19066 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
19067 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
19069 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19071 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
19073 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
19075 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
19076 ( cat <<\_ASBOX
19077 ## ------------------------------- ##
19078 ## Report this to www.asterisk.org ##
19079 ## ------------------------------- ##
19080 _ASBOX
19081 ) | sed "s/^/$as_me: WARNING: /" >&2
19083 esac
19084 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19085 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19086 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089 ac_cv_header_sys_capability_h=$ac_header_preproc
19091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19092 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19095 if test $ac_cv_header_sys_capability_h = yes; then
19096 CAP_HEADER_FOUND=1
19097 else
19098 CAP_HEADER_FOUND=0
19102 CPPFLAGS="${saved_cppflags}"
19104 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19105 CAP_LIB=""
19106 CAP_INCLUDE=""
19107 else
19108 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19109 CAP_LIB=""
19111 PBX_CAP=1
19112 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_CAP 1
19116 _ACEOF
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_CAP_VERSION
19121 _ACEOF
19130 if test "x${PBX_DAHDI}" != "x1"; then
19131 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
19132 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
19133 saved_cppflags="${CPPFLAGS}"
19134 if test "x${DAHDI_DIR}" != "x"; then
19135 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
19137 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <dahdi/user.h>
19147 main ()
19149 #if defined(DAHDI_CODE)
19150 int foo = 0;
19151 #else
19152 int foo = bar;
19153 #endif
19157 return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (ac_try="$ac_compile"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 { echo "$as_me:$LINENO: result: yes" >&5
19178 echo "${ECHO_T}yes" >&6; }
19179 PBX_DAHDI=1
19181 cat >>confdefs.h <<\_ACEOF
19182 #define HAVE_DAHDI 1
19183 _ACEOF
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_DAHDI_VERSION
19188 _ACEOF
19191 else
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 { echo "$as_me:$LINENO: result: no" >&5
19196 echo "${ECHO_T}no" >&6; }
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201 CPPFLAGS="${saved_cppflags}"
19206 # BSD might not have exp2, and/or log2
19208 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
19209 pbxlibdir=""
19210 # if --with-EXP2L=DIR has been specified, use it.
19211 if test "x${EXP2L_DIR}" != "x"; then
19212 if test -d ${EXP2L_DIR}/lib; then
19213 pbxlibdir="-L${EXP2L_DIR}/lib"
19214 else
19215 pbxlibdir="-L${EXP2L_DIR}"
19218 pbxfuncname="exp2l"
19219 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19220 AST_EXP2L_FOUND=yes
19221 else
19222 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19223 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19224 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19225 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lm ${pbxlibdir} $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char ${pbxfuncname} ();
19245 main ()
19247 return ${pbxfuncname} ();
19249 return 0;
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 eval "$as_ac_Lib=yes"
19271 else
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 eval "$as_ac_Lib=no"
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 ac_res=`eval echo '${'$as_ac_Lib'}'`
19283 { echo "$as_me:$LINENO: result: $ac_res" >&5
19284 echo "${ECHO_T}$ac_res" >&6; }
19285 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19286 AST_EXP2L_FOUND=yes
19287 else
19288 AST_EXP2L_FOUND=no
19293 # now check for the header.
19294 if test "${AST_EXP2L_FOUND}" = "yes"; then
19295 EXP2L_LIB="${pbxlibdir} -lm "
19296 # if --with-EXP2L=DIR has been specified, use it.
19297 if test "x${EXP2L_DIR}" != "x"; then
19298 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19300 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19301 if test "x" = "x" ; then # no header, assume found
19302 EXP2L_HEADER_FOUND="1"
19303 else # check for the header
19304 saved_cppflags="${CPPFLAGS}"
19305 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE}"
19306 if test "${ac_cv_header_+set}" = set; then
19307 { echo "$as_me:$LINENO: checking for " >&5
19308 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19309 if test "${ac_cv_header_+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19313 echo "${ECHO_T}$ac_cv_header_" >&6; }
19314 else
19315 # Is the header compilable?
19316 { echo "$as_me:$LINENO: checking usability" >&5
19317 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19318 cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h. */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19324 $ac_includes_default
19325 #include <>
19326 _ACEOF
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest.$ac_objext; then
19344 ac_header_compiler=yes
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_header_compiler=no
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19354 echo "${ECHO_T}$ac_header_compiler" >&6; }
19356 # Is the header present?
19357 { echo "$as_me:$LINENO: checking presence" >&5
19358 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 #include <>
19366 _ACEOF
19367 if { (ac_try="$ac_cpp conftest.$ac_ext"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } >/dev/null && {
19380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 }; then
19383 ac_header_preproc=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_preproc=no
19391 rm -f conftest.err conftest.$ac_ext
19392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19393 echo "${ECHO_T}$ac_header_preproc" >&6; }
19395 # So? What about this header?
19396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19397 yes:no: )
19398 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19399 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19401 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19402 ac_header_preproc=yes
19404 no:yes:* )
19405 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19406 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19408 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19410 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19412 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19416 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19417 ( cat <<\_ASBOX
19418 ## ------------------------------- ##
19419 ## Report this to www.asterisk.org ##
19420 ## ------------------------------- ##
19421 _ASBOX
19422 ) | sed "s/^/$as_me: WARNING: /" >&2
19424 esac
19425 { echo "$as_me:$LINENO: checking for " >&5
19426 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19427 if test "${ac_cv_header_+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430 ac_cv_header_=$ac_header_preproc
19432 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19433 echo "${ECHO_T}$ac_cv_header_" >&6; }
19436 if test $ac_cv_header_ = yes; then
19437 EXP2L_HEADER_FOUND=1
19438 else
19439 EXP2L_HEADER_FOUND=0
19443 CPPFLAGS="${saved_cppflags}"
19445 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19446 EXP2L_LIB=""
19447 EXP2L_INCLUDE=""
19448 else
19449 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19450 EXP2L_LIB=""
19452 PBX_EXP2L=1
19453 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19455 cat >>confdefs.h <<_ACEOF
19456 #define HAVE_EXP2L 1
19457 _ACEOF
19460 cat >>confdefs.h <<_ACEOF
19461 #define HAVE_EXP2L_VERSION
19462 _ACEOF
19469 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19470 pbxlibdir=""
19471 # if --with-LOG2L=DIR has been specified, use it.
19472 if test "x${LOG2L_DIR}" != "x"; then
19473 if test -d ${LOG2L_DIR}/lib; then
19474 pbxlibdir="-L${LOG2L_DIR}/lib"
19475 else
19476 pbxlibdir="-L${LOG2L_DIR}"
19479 pbxfuncname="log2l"
19480 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19481 AST_LOG2L_FOUND=yes
19482 else
19483 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19484 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19485 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19486 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 ac_check_lib_save_LIBS=$LIBS
19490 LIBS="-lm ${pbxlibdir} $LIBS"
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any GCC internal prototype to avoid an error.
19499 Use char because int might match the return type of a GCC
19500 builtin and then its argument prototype would still apply. */
19501 #ifdef __cplusplus
19502 extern "C"
19503 #endif
19504 char ${pbxfuncname} ();
19506 main ()
19508 return ${pbxfuncname} ();
19510 return 0;
19512 _ACEOF
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (ac_try="$ac_link"
19515 case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_link") 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && {
19527 test -z "$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19529 } && test -s conftest$ac_exeext &&
19530 $as_test_x conftest$ac_exeext; then
19531 eval "$as_ac_Lib=yes"
19532 else
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 eval "$as_ac_Lib=no"
19539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19540 conftest$ac_exeext conftest.$ac_ext
19541 LIBS=$ac_check_lib_save_LIBS
19543 ac_res=`eval echo '${'$as_ac_Lib'}'`
19544 { echo "$as_me:$LINENO: result: $ac_res" >&5
19545 echo "${ECHO_T}$ac_res" >&6; }
19546 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19547 AST_LOG2L_FOUND=yes
19548 else
19549 AST_LOG2L_FOUND=no
19554 # now check for the header.
19555 if test "${AST_LOG2L_FOUND}" = "yes"; then
19556 LOG2L_LIB="${pbxlibdir} -lm "
19557 # if --with-LOG2L=DIR has been specified, use it.
19558 if test "x${LOG2L_DIR}" != "x"; then
19559 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19561 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19562 if test "x" = "x" ; then # no header, assume found
19563 LOG2L_HEADER_FOUND="1"
19564 else # check for the header
19565 saved_cppflags="${CPPFLAGS}"
19566 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE}"
19567 if test "${ac_cv_header_+set}" = set; then
19568 { echo "$as_me:$LINENO: checking for " >&5
19569 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19570 if test "${ac_cv_header_+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19574 echo "${ECHO_T}$ac_cv_header_" >&6; }
19575 else
19576 # Is the header compilable?
19577 { echo "$as_me:$LINENO: checking usability" >&5
19578 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <>
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_compile") 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } && {
19602 test -z "$ac_c_werror_flag" ||
19603 test ! -s conftest.err
19604 } && test -s conftest.$ac_objext; then
19605 ac_header_compiler=yes
19606 else
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_header_compiler=no
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19615 echo "${ECHO_T}$ac_header_compiler" >&6; }
19617 # Is the header present?
19618 { echo "$as_me:$LINENO: checking presence" >&5
19619 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h. */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 #include <>
19627 _ACEOF
19628 if { (ac_try="$ac_cpp conftest.$ac_ext"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } >/dev/null && {
19641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 }; then
19644 ac_header_preproc=yes
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_header_preproc=no
19652 rm -f conftest.err conftest.$ac_ext
19653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19654 echo "${ECHO_T}$ac_header_preproc" >&6; }
19656 # So? What about this header?
19657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19658 yes:no: )
19659 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19660 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19662 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19663 ac_header_preproc=yes
19665 no:yes:* )
19666 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19667 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19669 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19671 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19673 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19675 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19677 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19678 ( cat <<\_ASBOX
19679 ## ------------------------------- ##
19680 ## Report this to www.asterisk.org ##
19681 ## ------------------------------- ##
19682 _ASBOX
19683 ) | sed "s/^/$as_me: WARNING: /" >&2
19685 esac
19686 { echo "$as_me:$LINENO: checking for " >&5
19687 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19688 if test "${ac_cv_header_+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691 ac_cv_header_=$ac_header_preproc
19693 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19694 echo "${ECHO_T}$ac_cv_header_" >&6; }
19697 if test $ac_cv_header_ = yes; then
19698 LOG2L_HEADER_FOUND=1
19699 else
19700 LOG2L_HEADER_FOUND=0
19704 CPPFLAGS="${saved_cppflags}"
19706 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19707 LOG2L_LIB=""
19708 LOG2L_INCLUDE=""
19709 else
19710 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19711 LOG2L_LIB=""
19713 PBX_LOG2L=1
19714 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_LOG2L 1
19718 _ACEOF
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_LOG2L_VERSION
19723 _ACEOF
19730 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19731 pbxlibdir=""
19732 # if --with-EXP10L=DIR has been specified, use it.
19733 if test "x${EXP10L_DIR}" != "x"; then
19734 if test -d ${EXP10L_DIR}/lib; then
19735 pbxlibdir="-L${EXP10L_DIR}/lib"
19736 else
19737 pbxlibdir="-L${EXP10L_DIR}"
19740 pbxfuncname="exp10l"
19741 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19742 AST_EXP10L_FOUND=yes
19743 else
19744 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19745 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19746 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19747 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750 ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-lm ${pbxlibdir} $LIBS"
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19759 /* Override any GCC internal prototype to avoid an error.
19760 Use char because int might match the return type of a GCC
19761 builtin and then its argument prototype would still apply. */
19762 #ifdef __cplusplus
19763 extern "C"
19764 #endif
19765 char ${pbxfuncname} ();
19767 main ()
19769 return ${pbxfuncname} ();
19771 return 0;
19773 _ACEOF
19774 rm -f conftest.$ac_objext conftest$ac_exeext
19775 if { (ac_try="$ac_link"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_link") 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest$ac_exeext &&
19791 $as_test_x conftest$ac_exeext; then
19792 eval "$as_ac_Lib=yes"
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 eval "$as_ac_Lib=no"
19800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19801 conftest$ac_exeext conftest.$ac_ext
19802 LIBS=$ac_check_lib_save_LIBS
19804 ac_res=`eval echo '${'$as_ac_Lib'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19808 AST_EXP10L_FOUND=yes
19809 else
19810 AST_EXP10L_FOUND=no
19815 # now check for the header.
19816 if test "${AST_EXP10L_FOUND}" = "yes"; then
19817 EXP10L_LIB="${pbxlibdir} -lm "
19818 # if --with-EXP10L=DIR has been specified, use it.
19819 if test "x${EXP10L_DIR}" != "x"; then
19820 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19822 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19823 if test "x" = "x" ; then # no header, assume found
19824 EXP10L_HEADER_FOUND="1"
19825 else # check for the header
19826 saved_cppflags="${CPPFLAGS}"
19827 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE}"
19828 if test "${ac_cv_header_+set}" = set; then
19829 { echo "$as_me:$LINENO: checking for " >&5
19830 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19831 if test "${ac_cv_header_+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19835 echo "${ECHO_T}$ac_cv_header_" >&6; }
19836 else
19837 # Is the header compilable?
19838 { echo "$as_me:$LINENO: checking usability" >&5
19839 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 $ac_includes_default
19847 #include <>
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest.$ac_objext; then
19866 ac_header_compiler=yes
19867 else
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_header_compiler=no
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19876 echo "${ECHO_T}$ac_header_compiler" >&6; }
19878 # Is the header present?
19879 { echo "$as_me:$LINENO: checking presence" >&5
19880 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <>
19888 _ACEOF
19889 if { (ac_try="$ac_cpp conftest.$ac_ext"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 }; then
19905 ac_header_preproc=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 yes:no: )
19920 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19926 no:yes:* )
19927 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19939 ( cat <<\_ASBOX
19940 ## ------------------------------- ##
19941 ## Report this to www.asterisk.org ##
19942 ## ------------------------------- ##
19943 _ASBOX
19944 ) | sed "s/^/$as_me: WARNING: /" >&2
19946 esac
19947 { echo "$as_me:$LINENO: checking for " >&5
19948 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19949 if test "${ac_cv_header_+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 ac_cv_header_=$ac_header_preproc
19954 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19955 echo "${ECHO_T}$ac_cv_header_" >&6; }
19958 if test $ac_cv_header_ = yes; then
19959 EXP10L_HEADER_FOUND=1
19960 else
19961 EXP10L_HEADER_FOUND=0
19965 CPPFLAGS="${saved_cppflags}"
19967 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19968 EXP10L_LIB=""
19969 EXP10L_INCLUDE=""
19970 else
19971 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19972 EXP10L_LIB=""
19974 PBX_EXP10L=1
19975 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_EXP10L 1
19979 _ACEOF
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_EXP10L_VERSION
19984 _ACEOF
19991 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19992 pbxlibdir=""
19993 # if --with-LOG10L=DIR has been specified, use it.
19994 if test "x${LOG10L_DIR}" != "x"; then
19995 if test -d ${LOG10L_DIR}/lib; then
19996 pbxlibdir="-L${LOG10L_DIR}/lib"
19997 else
19998 pbxlibdir="-L${LOG10L_DIR}"
20001 pbxfuncname="log10l"
20002 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20003 AST_LOG10L_FOUND=yes
20004 else
20005 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20006 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20007 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20008 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lm ${pbxlibdir} $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char ${pbxfuncname} ();
20028 main ()
20030 return ${pbxfuncname} ();
20032 return 0;
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest$ac_exeext &&
20052 $as_test_x conftest$ac_exeext; then
20053 eval "$as_ac_Lib=yes"
20054 else
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 eval "$as_ac_Lib=no"
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 ac_res=`eval echo '${'$as_ac_Lib'}'`
20066 { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20068 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20069 AST_LOG10L_FOUND=yes
20070 else
20071 AST_LOG10L_FOUND=no
20076 # now check for the header.
20077 if test "${AST_LOG10L_FOUND}" = "yes"; then
20078 LOG10L_LIB="${pbxlibdir} -lm "
20079 # if --with-LOG10L=DIR has been specified, use it.
20080 if test "x${LOG10L_DIR}" != "x"; then
20081 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
20083 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
20084 if test "x" = "x" ; then # no header, assume found
20085 LOG10L_HEADER_FOUND="1"
20086 else # check for the header
20087 saved_cppflags="${CPPFLAGS}"
20088 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE}"
20089 if test "${ac_cv_header_+set}" = set; then
20090 { echo "$as_me:$LINENO: checking for " >&5
20091 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20092 if test "${ac_cv_header_+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20096 echo "${ECHO_T}$ac_cv_header_" >&6; }
20097 else
20098 # Is the header compilable?
20099 { echo "$as_me:$LINENO: checking usability" >&5
20100 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h. */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 $ac_includes_default
20108 #include <>
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_compile") 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } && {
20124 test -z "$ac_c_werror_flag" ||
20125 test ! -s conftest.err
20126 } && test -s conftest.$ac_objext; then
20127 ac_header_compiler=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_header_compiler=no
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20137 echo "${ECHO_T}$ac_header_compiler" >&6; }
20139 # Is the header present?
20140 { echo "$as_me:$LINENO: checking presence" >&5
20141 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <>
20149 _ACEOF
20150 if { (ac_try="$ac_cpp conftest.$ac_ext"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } >/dev/null && {
20163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 }; then
20166 ac_header_preproc=yes
20167 else
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_preproc=no
20174 rm -f conftest.err conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20176 echo "${ECHO_T}$ac_header_preproc" >&6; }
20178 # So? What about this header?
20179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20180 yes:no: )
20181 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20182 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20184 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20185 ac_header_preproc=yes
20187 no:yes:* )
20188 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20189 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20190 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20191 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20192 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20193 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20195 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20197 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20199 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20200 ( cat <<\_ASBOX
20201 ## ------------------------------- ##
20202 ## Report this to www.asterisk.org ##
20203 ## ------------------------------- ##
20204 _ASBOX
20205 ) | sed "s/^/$as_me: WARNING: /" >&2
20207 esac
20208 { echo "$as_me:$LINENO: checking for " >&5
20209 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20210 if test "${ac_cv_header_+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213 ac_cv_header_=$ac_header_preproc
20215 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20216 echo "${ECHO_T}$ac_cv_header_" >&6; }
20219 if test $ac_cv_header_ = yes; then
20220 LOG10L_HEADER_FOUND=1
20221 else
20222 LOG10L_HEADER_FOUND=0
20226 CPPFLAGS="${saved_cppflags}"
20228 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20229 LOG10L_LIB=""
20230 LOG10L_INCLUDE=""
20231 else
20232 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20233 LOG10L_LIB=""
20235 PBX_LOG10L=1
20236 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_LOG10L 1
20240 _ACEOF
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_LOG10L_VERSION
20245 _ACEOF
20252 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20253 pbxlibdir=""
20254 # if --with-SINL=DIR has been specified, use it.
20255 if test "x${SINL_DIR}" != "x"; then
20256 if test -d ${SINL_DIR}/lib; then
20257 pbxlibdir="-L${SINL_DIR}/lib"
20258 else
20259 pbxlibdir="-L${SINL_DIR}"
20262 pbxfuncname="sinl"
20263 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20264 AST_SINL_FOUND=yes
20265 else
20266 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20267 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20268 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20269 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-lm ${pbxlibdir} $LIBS"
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 /* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20284 #ifdef __cplusplus
20285 extern "C"
20286 #endif
20287 char ${pbxfuncname} ();
20289 main ()
20291 return ${pbxfuncname} ();
20293 return 0;
20295 _ACEOF
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_link") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest$ac_exeext &&
20313 $as_test_x conftest$ac_exeext; then
20314 eval "$as_ac_Lib=yes"
20315 else
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 eval "$as_ac_Lib=no"
20322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 ac_res=`eval echo '${'$as_ac_Lib'}'`
20327 { echo "$as_me:$LINENO: result: $ac_res" >&5
20328 echo "${ECHO_T}$ac_res" >&6; }
20329 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20330 AST_SINL_FOUND=yes
20331 else
20332 AST_SINL_FOUND=no
20337 # now check for the header.
20338 if test "${AST_SINL_FOUND}" = "yes"; then
20339 SINL_LIB="${pbxlibdir} -lm "
20340 # if --with-SINL=DIR has been specified, use it.
20341 if test "x${SINL_DIR}" != "x"; then
20342 SINL_INCLUDE="-I${SINL_DIR}/include"
20344 SINL_INCLUDE="${SINL_INCLUDE} "
20345 if test "x" = "x" ; then # no header, assume found
20346 SINL_HEADER_FOUND="1"
20347 else # check for the header
20348 saved_cppflags="${CPPFLAGS}"
20349 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE}"
20350 if test "${ac_cv_header_+set}" = set; then
20351 { echo "$as_me:$LINENO: checking for " >&5
20352 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20353 if test "${ac_cv_header_+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20357 echo "${ECHO_T}$ac_cv_header_" >&6; }
20358 else
20359 # Is the header compilable?
20360 { echo "$as_me:$LINENO: checking usability" >&5
20361 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 $ac_includes_default
20369 #include <>
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_compile") 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && {
20385 test -z "$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20387 } && test -s conftest.$ac_objext; then
20388 ac_header_compiler=yes
20389 else
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ac_header_compiler=no
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20398 echo "${ECHO_T}$ac_header_compiler" >&6; }
20400 # Is the header present?
20401 { echo "$as_me:$LINENO: checking presence" >&5
20402 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 #include <>
20410 _ACEOF
20411 if { (ac_try="$ac_cpp conftest.$ac_ext"
20412 case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } >/dev/null && {
20424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20425 test ! -s conftest.err
20426 }; then
20427 ac_header_preproc=yes
20428 else
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_header_preproc=no
20435 rm -f conftest.err conftest.$ac_ext
20436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6; }
20439 # So? What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20441 yes:no: )
20442 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20446 ac_header_preproc=yes
20448 no:yes:* )
20449 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20459 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20461 ( cat <<\_ASBOX
20462 ## ------------------------------- ##
20463 ## Report this to www.asterisk.org ##
20464 ## ------------------------------- ##
20465 _ASBOX
20466 ) | sed "s/^/$as_me: WARNING: /" >&2
20468 esac
20469 { echo "$as_me:$LINENO: checking for " >&5
20470 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20471 if test "${ac_cv_header_+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474 ac_cv_header_=$ac_header_preproc
20476 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20477 echo "${ECHO_T}$ac_cv_header_" >&6; }
20480 if test $ac_cv_header_ = yes; then
20481 SINL_HEADER_FOUND=1
20482 else
20483 SINL_HEADER_FOUND=0
20487 CPPFLAGS="${saved_cppflags}"
20489 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20490 SINL_LIB=""
20491 SINL_INCLUDE=""
20492 else
20493 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20494 SINL_LIB=""
20496 PBX_SINL=1
20497 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_SINL 1
20501 _ACEOF
20504 cat >>confdefs.h <<_ACEOF
20505 #define HAVE_SINL_VERSION
20506 _ACEOF
20513 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20514 pbxlibdir=""
20515 # if --with-COSL=DIR has been specified, use it.
20516 if test "x${COSL_DIR}" != "x"; then
20517 if test -d ${COSL_DIR}/lib; then
20518 pbxlibdir="-L${COSL_DIR}/lib"
20519 else
20520 pbxlibdir="-L${COSL_DIR}"
20523 pbxfuncname="cosl"
20524 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20525 AST_COSL_FOUND=yes
20526 else
20527 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20528 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20529 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20530 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533 ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-lm ${pbxlibdir} $LIBS"
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* Override any GCC internal prototype to avoid an error.
20543 Use char because int might match the return type of a GCC
20544 builtin and then its argument prototype would still apply. */
20545 #ifdef __cplusplus
20546 extern "C"
20547 #endif
20548 char ${pbxfuncname} ();
20550 main ()
20552 return ${pbxfuncname} ();
20554 return 0;
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest$ac_exeext &&
20574 $as_test_x conftest$ac_exeext; then
20575 eval "$as_ac_Lib=yes"
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 eval "$as_ac_Lib=no"
20583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20584 conftest$ac_exeext conftest.$ac_ext
20585 LIBS=$ac_check_lib_save_LIBS
20587 ac_res=`eval echo '${'$as_ac_Lib'}'`
20588 { echo "$as_me:$LINENO: result: $ac_res" >&5
20589 echo "${ECHO_T}$ac_res" >&6; }
20590 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20591 AST_COSL_FOUND=yes
20592 else
20593 AST_COSL_FOUND=no
20598 # now check for the header.
20599 if test "${AST_COSL_FOUND}" = "yes"; then
20600 COSL_LIB="${pbxlibdir} -lm "
20601 # if --with-COSL=DIR has been specified, use it.
20602 if test "x${COSL_DIR}" != "x"; then
20603 COSL_INCLUDE="-I${COSL_DIR}/include"
20605 COSL_INCLUDE="${COSL_INCLUDE} "
20606 if test "x" = "x" ; then # no header, assume found
20607 COSL_HEADER_FOUND="1"
20608 else # check for the header
20609 saved_cppflags="${CPPFLAGS}"
20610 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE}"
20611 if test "${ac_cv_header_+set}" = set; then
20612 { echo "$as_me:$LINENO: checking for " >&5
20613 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20614 if test "${ac_cv_header_+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20618 echo "${ECHO_T}$ac_cv_header_" >&6; }
20619 else
20620 # Is the header compilable?
20621 { echo "$as_me:$LINENO: checking usability" >&5
20622 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 $ac_includes_default
20630 #include <>
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest.$ac_objext; then
20649 ac_header_compiler=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_compiler=no
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20659 echo "${ECHO_T}$ac_header_compiler" >&6; }
20661 # Is the header present?
20662 { echo "$as_me:$LINENO: checking presence" >&5
20663 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h. */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <>
20671 _ACEOF
20672 if { (ac_try="$ac_cpp conftest.$ac_ext"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } >/dev/null && {
20685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 }; then
20688 ac_header_preproc=yes
20689 else
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20700 # So? What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702 yes:no: )
20703 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20707 ac_header_preproc=yes
20709 no:yes:* )
20710 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20722 ( cat <<\_ASBOX
20723 ## ------------------------------- ##
20724 ## Report this to www.asterisk.org ##
20725 ## ------------------------------- ##
20726 _ASBOX
20727 ) | sed "s/^/$as_me: WARNING: /" >&2
20729 esac
20730 { echo "$as_me:$LINENO: checking for " >&5
20731 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20732 if test "${ac_cv_header_+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735 ac_cv_header_=$ac_header_preproc
20737 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20738 echo "${ECHO_T}$ac_cv_header_" >&6; }
20741 if test $ac_cv_header_ = yes; then
20742 COSL_HEADER_FOUND=1
20743 else
20744 COSL_HEADER_FOUND=0
20748 CPPFLAGS="${saved_cppflags}"
20750 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20751 COSL_LIB=""
20752 COSL_INCLUDE=""
20753 else
20754 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20755 COSL_LIB=""
20757 PBX_COSL=1
20758 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20760 cat >>confdefs.h <<_ACEOF
20761 #define HAVE_COSL 1
20762 _ACEOF
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_COSL_VERSION
20767 _ACEOF
20774 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20775 pbxlibdir=""
20776 # if --with-TANL=DIR has been specified, use it.
20777 if test "x${TANL_DIR}" != "x"; then
20778 if test -d ${TANL_DIR}/lib; then
20779 pbxlibdir="-L${TANL_DIR}/lib"
20780 else
20781 pbxlibdir="-L${TANL_DIR}"
20784 pbxfuncname="tanl"
20785 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20786 AST_TANL_FOUND=yes
20787 else
20788 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20789 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20790 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20791 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794 ac_check_lib_save_LIBS=$LIBS
20795 LIBS="-lm ${pbxlibdir} $LIBS"
20796 cat >conftest.$ac_ext <<_ACEOF
20797 /* confdefs.h. */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20803 /* Override any GCC internal prototype to avoid an error.
20804 Use char because int might match the return type of a GCC
20805 builtin and then its argument prototype would still apply. */
20806 #ifdef __cplusplus
20807 extern "C"
20808 #endif
20809 char ${pbxfuncname} ();
20811 main ()
20813 return ${pbxfuncname} ();
20815 return 0;
20817 _ACEOF
20818 rm -f conftest.$ac_objext conftest$ac_exeext
20819 if { (ac_try="$ac_link"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_link") 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest$ac_exeext &&
20835 $as_test_x conftest$ac_exeext; then
20836 eval "$as_ac_Lib=yes"
20837 else
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 eval "$as_ac_Lib=no"
20844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20845 conftest$ac_exeext conftest.$ac_ext
20846 LIBS=$ac_check_lib_save_LIBS
20848 ac_res=`eval echo '${'$as_ac_Lib'}'`
20849 { echo "$as_me:$LINENO: result: $ac_res" >&5
20850 echo "${ECHO_T}$ac_res" >&6; }
20851 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20852 AST_TANL_FOUND=yes
20853 else
20854 AST_TANL_FOUND=no
20859 # now check for the header.
20860 if test "${AST_TANL_FOUND}" = "yes"; then
20861 TANL_LIB="${pbxlibdir} -lm "
20862 # if --with-TANL=DIR has been specified, use it.
20863 if test "x${TANL_DIR}" != "x"; then
20864 TANL_INCLUDE="-I${TANL_DIR}/include"
20866 TANL_INCLUDE="${TANL_INCLUDE} "
20867 if test "x" = "x" ; then # no header, assume found
20868 TANL_HEADER_FOUND="1"
20869 else # check for the header
20870 saved_cppflags="${CPPFLAGS}"
20871 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE}"
20872 if test "${ac_cv_header_+set}" = set; then
20873 { echo "$as_me:$LINENO: checking for " >&5
20874 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20875 if test "${ac_cv_header_+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20879 echo "${ECHO_T}$ac_cv_header_" >&6; }
20880 else
20881 # Is the header compilable?
20882 { echo "$as_me:$LINENO: checking usability" >&5
20883 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20884 cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h. */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 $ac_includes_default
20891 #include <>
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 ac_header_compiler=yes
20911 else
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_header_compiler=no
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20920 echo "${ECHO_T}$ac_header_compiler" >&6; }
20922 # Is the header present?
20923 { echo "$as_me:$LINENO: checking presence" >&5
20924 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <>
20932 _ACEOF
20933 if { (ac_try="$ac_cpp conftest.$ac_ext"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } >/dev/null && {
20946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 }; then
20949 ac_header_preproc=yes
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ac_header_preproc=no
20957 rm -f conftest.err conftest.$ac_ext
20958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20959 echo "${ECHO_T}$ac_header_preproc" >&6; }
20961 # So? What about this header?
20962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20963 yes:no: )
20964 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20965 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20967 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20968 ac_header_preproc=yes
20970 no:yes:* )
20971 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20972 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20974 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20976 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20978 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20980 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20982 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20983 ( cat <<\_ASBOX
20984 ## ------------------------------- ##
20985 ## Report this to www.asterisk.org ##
20986 ## ------------------------------- ##
20987 _ASBOX
20988 ) | sed "s/^/$as_me: WARNING: /" >&2
20990 esac
20991 { echo "$as_me:$LINENO: checking for " >&5
20992 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20993 if test "${ac_cv_header_+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996 ac_cv_header_=$ac_header_preproc
20998 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20999 echo "${ECHO_T}$ac_cv_header_" >&6; }
21002 if test $ac_cv_header_ = yes; then
21003 TANL_HEADER_FOUND=1
21004 else
21005 TANL_HEADER_FOUND=0
21009 CPPFLAGS="${saved_cppflags}"
21011 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
21012 TANL_LIB=""
21013 TANL_INCLUDE=""
21014 else
21015 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21016 TANL_LIB=""
21018 PBX_TANL=1
21019 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21021 cat >>confdefs.h <<_ACEOF
21022 #define HAVE_TANL 1
21023 _ACEOF
21026 cat >>confdefs.h <<_ACEOF
21027 #define HAVE_TANL_VERSION
21028 _ACEOF
21035 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
21036 pbxlibdir=""
21037 # if --with-ASINL=DIR has been specified, use it.
21038 if test "x${ASINL_DIR}" != "x"; then
21039 if test -d ${ASINL_DIR}/lib; then
21040 pbxlibdir="-L${ASINL_DIR}/lib"
21041 else
21042 pbxlibdir="-L${ASINL_DIR}"
21045 pbxfuncname="asinl"
21046 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21047 AST_ASINL_FOUND=yes
21048 else
21049 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21050 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21051 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21052 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 else
21055 ac_check_lib_save_LIBS=$LIBS
21056 LIBS="-lm ${pbxlibdir} $LIBS"
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h. */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 /* Override any GCC internal prototype to avoid an error.
21065 Use char because int might match the return type of a GCC
21066 builtin and then its argument prototype would still apply. */
21067 #ifdef __cplusplus
21068 extern "C"
21069 #endif
21070 char ${pbxfuncname} ();
21072 main ()
21074 return ${pbxfuncname} ();
21076 return 0;
21078 _ACEOF
21079 rm -f conftest.$ac_objext conftest$ac_exeext
21080 if { (ac_try="$ac_link"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_link") 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest$ac_exeext &&
21096 $as_test_x conftest$ac_exeext; then
21097 eval "$as_ac_Lib=yes"
21098 else
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 eval "$as_ac_Lib=no"
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106 conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21109 ac_res=`eval echo '${'$as_ac_Lib'}'`
21110 { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21112 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21113 AST_ASINL_FOUND=yes
21114 else
21115 AST_ASINL_FOUND=no
21120 # now check for the header.
21121 if test "${AST_ASINL_FOUND}" = "yes"; then
21122 ASINL_LIB="${pbxlibdir} -lm "
21123 # if --with-ASINL=DIR has been specified, use it.
21124 if test "x${ASINL_DIR}" != "x"; then
21125 ASINL_INCLUDE="-I${ASINL_DIR}/include"
21127 ASINL_INCLUDE="${ASINL_INCLUDE} "
21128 if test "x" = "x" ; then # no header, assume found
21129 ASINL_HEADER_FOUND="1"
21130 else # check for the header
21131 saved_cppflags="${CPPFLAGS}"
21132 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE}"
21133 if test "${ac_cv_header_+set}" = set; then
21134 { echo "$as_me:$LINENO: checking for " >&5
21135 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21136 if test "${ac_cv_header_+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21140 echo "${ECHO_T}$ac_cv_header_" >&6; }
21141 else
21142 # Is the header compilable?
21143 { echo "$as_me:$LINENO: checking usability" >&5
21144 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 $ac_includes_default
21152 #include <>
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest.$ac_objext; then
21171 ac_header_compiler=yes
21172 else
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 ac_header_compiler=no
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21181 echo "${ECHO_T}$ac_header_compiler" >&6; }
21183 # Is the header present?
21184 { echo "$as_me:$LINENO: checking presence" >&5
21185 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h. */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <>
21193 _ACEOF
21194 if { (ac_try="$ac_cpp conftest.$ac_ext"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } >/dev/null && {
21207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 }; then
21210 ac_header_preproc=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_header_preproc=no
21218 rm -f conftest.err conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21220 echo "${ECHO_T}$ac_header_preproc" >&6; }
21222 # So? What about this header?
21223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21224 yes:no: )
21225 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21226 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21228 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21229 ac_header_preproc=yes
21231 no:yes:* )
21232 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21233 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21235 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21237 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21239 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21241 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21243 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21244 ( cat <<\_ASBOX
21245 ## ------------------------------- ##
21246 ## Report this to www.asterisk.org ##
21247 ## ------------------------------- ##
21248 _ASBOX
21249 ) | sed "s/^/$as_me: WARNING: /" >&2
21251 esac
21252 { echo "$as_me:$LINENO: checking for " >&5
21253 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21254 if test "${ac_cv_header_+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257 ac_cv_header_=$ac_header_preproc
21259 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21260 echo "${ECHO_T}$ac_cv_header_" >&6; }
21263 if test $ac_cv_header_ = yes; then
21264 ASINL_HEADER_FOUND=1
21265 else
21266 ASINL_HEADER_FOUND=0
21270 CPPFLAGS="${saved_cppflags}"
21272 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21273 ASINL_LIB=""
21274 ASINL_INCLUDE=""
21275 else
21276 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21277 ASINL_LIB=""
21279 PBX_ASINL=1
21280 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21282 cat >>confdefs.h <<_ACEOF
21283 #define HAVE_ASINL 1
21284 _ACEOF
21287 cat >>confdefs.h <<_ACEOF
21288 #define HAVE_ASINL_VERSION
21289 _ACEOF
21296 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21297 pbxlibdir=""
21298 # if --with-ACOSL=DIR has been specified, use it.
21299 if test "x${ACOSL_DIR}" != "x"; then
21300 if test -d ${ACOSL_DIR}/lib; then
21301 pbxlibdir="-L${ACOSL_DIR}/lib"
21302 else
21303 pbxlibdir="-L${ACOSL_DIR}"
21306 pbxfuncname="acosl"
21307 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21308 AST_ACOSL_FOUND=yes
21309 else
21310 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21311 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21312 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21313 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316 ac_check_lib_save_LIBS=$LIBS
21317 LIBS="-lm ${pbxlibdir} $LIBS"
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21325 /* Override any GCC internal prototype to avoid an error.
21326 Use char because int might match the return type of a GCC
21327 builtin and then its argument prototype would still apply. */
21328 #ifdef __cplusplus
21329 extern "C"
21330 #endif
21331 char ${pbxfuncname} ();
21333 main ()
21335 return ${pbxfuncname} ();
21337 return 0;
21339 _ACEOF
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345 esac
21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext &&
21357 $as_test_x conftest$ac_exeext; then
21358 eval "$as_ac_Lib=yes"
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 eval "$as_ac_Lib=no"
21366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21367 conftest$ac_exeext conftest.$ac_ext
21368 LIBS=$ac_check_lib_save_LIBS
21370 ac_res=`eval echo '${'$as_ac_Lib'}'`
21371 { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21373 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21374 AST_ACOSL_FOUND=yes
21375 else
21376 AST_ACOSL_FOUND=no
21381 # now check for the header.
21382 if test "${AST_ACOSL_FOUND}" = "yes"; then
21383 ACOSL_LIB="${pbxlibdir} -lm "
21384 # if --with-ACOSL=DIR has been specified, use it.
21385 if test "x${ACOSL_DIR}" != "x"; then
21386 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21388 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21389 if test "x" = "x" ; then # no header, assume found
21390 ACOSL_HEADER_FOUND="1"
21391 else # check for the header
21392 saved_cppflags="${CPPFLAGS}"
21393 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE}"
21394 if test "${ac_cv_header_+set}" = set; then
21395 { echo "$as_me:$LINENO: checking for " >&5
21396 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21397 if test "${ac_cv_header_+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21401 echo "${ECHO_T}$ac_cv_header_" >&6; }
21402 else
21403 # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking usability" >&5
21405 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h. */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21413 #include <>
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_header_compiler=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_header_compiler=no
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442 echo "${ECHO_T}$ac_header_compiler" >&6; }
21444 # Is the header present?
21445 { echo "$as_me:$LINENO: checking presence" >&5
21446 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <>
21454 _ACEOF
21455 if { (ac_try="$ac_cpp conftest.$ac_ext"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev/null && {
21468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 }; then
21471 ac_header_preproc=yes
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 yes:no: )
21486 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21492 no:yes:* )
21493 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21505 ( cat <<\_ASBOX
21506 ## ------------------------------- ##
21507 ## Report this to www.asterisk.org ##
21508 ## ------------------------------- ##
21509 _ASBOX
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21512 esac
21513 { echo "$as_me:$LINENO: checking for " >&5
21514 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21515 if test "${ac_cv_header_+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 ac_cv_header_=$ac_header_preproc
21520 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21521 echo "${ECHO_T}$ac_cv_header_" >&6; }
21524 if test $ac_cv_header_ = yes; then
21525 ACOSL_HEADER_FOUND=1
21526 else
21527 ACOSL_HEADER_FOUND=0
21531 CPPFLAGS="${saved_cppflags}"
21533 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21534 ACOSL_LIB=""
21535 ACOSL_INCLUDE=""
21536 else
21537 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21538 ACOSL_LIB=""
21540 PBX_ACOSL=1
21541 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_ACOSL 1
21545 _ACEOF
21548 cat >>confdefs.h <<_ACEOF
21549 #define HAVE_ACOSL_VERSION
21550 _ACEOF
21557 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21558 pbxlibdir=""
21559 # if --with-ATANL=DIR has been specified, use it.
21560 if test "x${ATANL_DIR}" != "x"; then
21561 if test -d ${ATANL_DIR}/lib; then
21562 pbxlibdir="-L${ATANL_DIR}/lib"
21563 else
21564 pbxlibdir="-L${ATANL_DIR}"
21567 pbxfuncname="atanl"
21568 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21569 AST_ATANL_FOUND=yes
21570 else
21571 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21572 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21573 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21574 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 ac_check_lib_save_LIBS=$LIBS
21578 LIBS="-lm ${pbxlibdir} $LIBS"
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 /* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21589 #ifdef __cplusplus
21590 extern "C"
21591 #endif
21592 char ${pbxfuncname} ();
21594 main ()
21596 return ${pbxfuncname} ();
21598 return 0;
21600 _ACEOF
21601 rm -f conftest.$ac_objext conftest$ac_exeext
21602 if { (ac_try="$ac_link"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_link") 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest$ac_exeext &&
21618 $as_test_x conftest$ac_exeext; then
21619 eval "$as_ac_Lib=yes"
21620 else
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 eval "$as_ac_Lib=no"
21627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21628 conftest$ac_exeext conftest.$ac_ext
21629 LIBS=$ac_check_lib_save_LIBS
21631 ac_res=`eval echo '${'$as_ac_Lib'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21634 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21635 AST_ATANL_FOUND=yes
21636 else
21637 AST_ATANL_FOUND=no
21642 # now check for the header.
21643 if test "${AST_ATANL_FOUND}" = "yes"; then
21644 ATANL_LIB="${pbxlibdir} -lm "
21645 # if --with-ATANL=DIR has been specified, use it.
21646 if test "x${ATANL_DIR}" != "x"; then
21647 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21649 ATANL_INCLUDE="${ATANL_INCLUDE} "
21650 if test "x" = "x" ; then # no header, assume found
21651 ATANL_HEADER_FOUND="1"
21652 else # check for the header
21653 saved_cppflags="${CPPFLAGS}"
21654 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE}"
21655 if test "${ac_cv_header_+set}" = set; then
21656 { echo "$as_me:$LINENO: checking for " >&5
21657 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21658 if test "${ac_cv_header_+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21662 echo "${ECHO_T}$ac_cv_header_" >&6; }
21663 else
21664 # Is the header compilable?
21665 { echo "$as_me:$LINENO: checking usability" >&5
21666 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 $ac_includes_default
21674 #include <>
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21693 ac_header_compiler=yes
21694 else
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ac_header_compiler=no
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21703 echo "${ECHO_T}$ac_header_compiler" >&6; }
21705 # Is the header present?
21706 { echo "$as_me:$LINENO: checking presence" >&5
21707 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21708 cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h. */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 #include <>
21715 _ACEOF
21716 if { (ac_try="$ac_cpp conftest.$ac_ext"
21717 case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720 esac
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21723 ac_status=$?
21724 grep -v '^ *+' conftest.er1 >conftest.err
21725 rm -f conftest.er1
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } >/dev/null && {
21729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 }; then
21732 ac_header_preproc=yes
21733 else
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_header_preproc=no
21740 rm -f conftest.err conftest.$ac_ext
21741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21742 echo "${ECHO_T}$ac_header_preproc" >&6; }
21744 # So? What about this header?
21745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21746 yes:no: )
21747 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21748 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21750 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21751 ac_header_preproc=yes
21753 no:yes:* )
21754 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21755 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21757 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21759 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21761 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21763 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21765 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21766 ( cat <<\_ASBOX
21767 ## ------------------------------- ##
21768 ## Report this to www.asterisk.org ##
21769 ## ------------------------------- ##
21770 _ASBOX
21771 ) | sed "s/^/$as_me: WARNING: /" >&2
21773 esac
21774 { echo "$as_me:$LINENO: checking for " >&5
21775 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21776 if test "${ac_cv_header_+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 ac_cv_header_=$ac_header_preproc
21781 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21782 echo "${ECHO_T}$ac_cv_header_" >&6; }
21785 if test $ac_cv_header_ = yes; then
21786 ATANL_HEADER_FOUND=1
21787 else
21788 ATANL_HEADER_FOUND=0
21792 CPPFLAGS="${saved_cppflags}"
21794 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21795 ATANL_LIB=""
21796 ATANL_INCLUDE=""
21797 else
21798 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21799 ATANL_LIB=""
21801 PBX_ATANL=1
21802 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21804 cat >>confdefs.h <<_ACEOF
21805 #define HAVE_ATANL 1
21806 _ACEOF
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_ATANL_VERSION
21811 _ACEOF
21818 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21819 pbxlibdir=""
21820 # if --with-ATAN2L=DIR has been specified, use it.
21821 if test "x${ATAN2L_DIR}" != "x"; then
21822 if test -d ${ATAN2L_DIR}/lib; then
21823 pbxlibdir="-L${ATAN2L_DIR}/lib"
21824 else
21825 pbxlibdir="-L${ATAN2L_DIR}"
21828 pbxfuncname="atan2l"
21829 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21830 AST_ATAN2L_FOUND=yes
21831 else
21832 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21833 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21834 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838 ac_check_lib_save_LIBS=$LIBS
21839 LIBS="-lm ${pbxlibdir} $LIBS"
21840 cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h. */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21847 /* Override any GCC internal prototype to avoid an error.
21848 Use char because int might match the return type of a GCC
21849 builtin and then its argument prototype would still apply. */
21850 #ifdef __cplusplus
21851 extern "C"
21852 #endif
21853 char ${pbxfuncname} ();
21855 main ()
21857 return ${pbxfuncname} ();
21859 return 0;
21861 _ACEOF
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21879 $as_test_x conftest$ac_exeext; then
21880 eval "$as_ac_Lib=yes"
21881 else
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 eval "$as_ac_Lib=no"
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21892 ac_res=`eval echo '${'$as_ac_Lib'}'`
21893 { echo "$as_me:$LINENO: result: $ac_res" >&5
21894 echo "${ECHO_T}$ac_res" >&6; }
21895 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21896 AST_ATAN2L_FOUND=yes
21897 else
21898 AST_ATAN2L_FOUND=no
21903 # now check for the header.
21904 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21905 ATAN2L_LIB="${pbxlibdir} -lm "
21906 # if --with-ATAN2L=DIR has been specified, use it.
21907 if test "x${ATAN2L_DIR}" != "x"; then
21908 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21910 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21911 if test "x" = "x" ; then # no header, assume found
21912 ATAN2L_HEADER_FOUND="1"
21913 else # check for the header
21914 saved_cppflags="${CPPFLAGS}"
21915 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE}"
21916 if test "${ac_cv_header_+set}" = set; then
21917 { echo "$as_me:$LINENO: checking for " >&5
21918 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21919 if test "${ac_cv_header_+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21923 echo "${ECHO_T}$ac_cv_header_" >&6; }
21924 else
21925 # Is the header compilable?
21926 { echo "$as_me:$LINENO: checking usability" >&5
21927 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21928 cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h. */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21934 $ac_includes_default
21935 #include <>
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_compile") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest.$ac_objext; then
21954 ac_header_compiler=yes
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_header_compiler=no
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21964 echo "${ECHO_T}$ac_header_compiler" >&6; }
21966 # Is the header present?
21967 { echo "$as_me:$LINENO: checking presence" >&5
21968 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21969 cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h. */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975 #include <>
21976 _ACEOF
21977 if { (ac_try="$ac_cpp conftest.$ac_ext"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } >/dev/null && {
21990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 }; then
21993 ac_header_preproc=yes
21994 else
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21998 ac_header_preproc=no
22001 rm -f conftest.err conftest.$ac_ext
22002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22003 echo "${ECHO_T}$ac_header_preproc" >&6; }
22005 # So? What about this header?
22006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22007 yes:no: )
22008 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22009 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22011 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22012 ac_header_preproc=yes
22014 no:yes:* )
22015 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22016 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22017 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22018 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22019 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22020 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22021 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22022 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22023 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22024 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22026 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22027 ( cat <<\_ASBOX
22028 ## ------------------------------- ##
22029 ## Report this to www.asterisk.org ##
22030 ## ------------------------------- ##
22031 _ASBOX
22032 ) | sed "s/^/$as_me: WARNING: /" >&2
22034 esac
22035 { echo "$as_me:$LINENO: checking for " >&5
22036 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22037 if test "${ac_cv_header_+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040 ac_cv_header_=$ac_header_preproc
22042 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22043 echo "${ECHO_T}$ac_cv_header_" >&6; }
22046 if test $ac_cv_header_ = yes; then
22047 ATAN2L_HEADER_FOUND=1
22048 else
22049 ATAN2L_HEADER_FOUND=0
22053 CPPFLAGS="${saved_cppflags}"
22055 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
22056 ATAN2L_LIB=""
22057 ATAN2L_INCLUDE=""
22058 else
22059 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22060 ATAN2L_LIB=""
22062 PBX_ATAN2L=1
22063 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22065 cat >>confdefs.h <<_ACEOF
22066 #define HAVE_ATAN2L 1
22067 _ACEOF
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_ATAN2L_VERSION
22072 _ACEOF
22079 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
22080 pbxlibdir=""
22081 # if --with-POWL=DIR has been specified, use it.
22082 if test "x${POWL_DIR}" != "x"; then
22083 if test -d ${POWL_DIR}/lib; then
22084 pbxlibdir="-L${POWL_DIR}/lib"
22085 else
22086 pbxlibdir="-L${POWL_DIR}"
22089 pbxfuncname="powl"
22090 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22091 AST_POWL_FOUND=yes
22092 else
22093 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22094 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22095 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22096 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099 ac_check_lib_save_LIBS=$LIBS
22100 LIBS="-lm ${pbxlibdir} $LIBS"
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22108 /* Override any GCC internal prototype to avoid an error.
22109 Use char because int might match the return type of a GCC
22110 builtin and then its argument prototype would still apply. */
22111 #ifdef __cplusplus
22112 extern "C"
22113 #endif
22114 char ${pbxfuncname} ();
22116 main ()
22118 return ${pbxfuncname} ();
22120 return 0;
22122 _ACEOF
22123 rm -f conftest.$ac_objext conftest$ac_exeext
22124 if { (ac_try="$ac_link"
22125 case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_link") 2>conftest.er1
22131 ac_status=$?
22132 grep -v '^ *+' conftest.er1 >conftest.err
22133 rm -f conftest.er1
22134 cat conftest.err >&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && {
22137 test -z "$ac_c_werror_flag" ||
22138 test ! -s conftest.err
22139 } && test -s conftest$ac_exeext &&
22140 $as_test_x conftest$ac_exeext; then
22141 eval "$as_ac_Lib=yes"
22142 else
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 eval "$as_ac_Lib=no"
22149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22150 conftest$ac_exeext conftest.$ac_ext
22151 LIBS=$ac_check_lib_save_LIBS
22153 ac_res=`eval echo '${'$as_ac_Lib'}'`
22154 { echo "$as_me:$LINENO: result: $ac_res" >&5
22155 echo "${ECHO_T}$ac_res" >&6; }
22156 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22157 AST_POWL_FOUND=yes
22158 else
22159 AST_POWL_FOUND=no
22164 # now check for the header.
22165 if test "${AST_POWL_FOUND}" = "yes"; then
22166 POWL_LIB="${pbxlibdir} -lm "
22167 # if --with-POWL=DIR has been specified, use it.
22168 if test "x${POWL_DIR}" != "x"; then
22169 POWL_INCLUDE="-I${POWL_DIR}/include"
22171 POWL_INCLUDE="${POWL_INCLUDE} "
22172 if test "x" = "x" ; then # no header, assume found
22173 POWL_HEADER_FOUND="1"
22174 else # check for the header
22175 saved_cppflags="${CPPFLAGS}"
22176 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE}"
22177 if test "${ac_cv_header_+set}" = set; then
22178 { echo "$as_me:$LINENO: checking for " >&5
22179 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22180 if test "${ac_cv_header_+set}" = set; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22184 echo "${ECHO_T}$ac_cv_header_" >&6; }
22185 else
22186 # Is the header compilable?
22187 { echo "$as_me:$LINENO: checking usability" >&5
22188 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 #include <>
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_header_compiler=yes
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_header_compiler=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6; }
22227 # Is the header present?
22228 { echo "$as_me:$LINENO: checking presence" >&5
22229 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <>
22237 _ACEOF
22238 if { (ac_try="$ac_cpp conftest.$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 }; then
22254 ac_header_preproc=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_header_preproc=no
22262 rm -f conftest.err conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22264 echo "${ECHO_T}$ac_header_preproc" >&6; }
22266 # So? What about this header?
22267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22268 yes:no: )
22269 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22270 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22271 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22272 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22273 ac_header_preproc=yes
22275 no:yes:* )
22276 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22277 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22279 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22281 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22282 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22283 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22285 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22287 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22288 ( cat <<\_ASBOX
22289 ## ------------------------------- ##
22290 ## Report this to www.asterisk.org ##
22291 ## ------------------------------- ##
22292 _ASBOX
22293 ) | sed "s/^/$as_me: WARNING: /" >&2
22295 esac
22296 { echo "$as_me:$LINENO: checking for " >&5
22297 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22298 if test "${ac_cv_header_+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 ac_cv_header_=$ac_header_preproc
22303 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22304 echo "${ECHO_T}$ac_cv_header_" >&6; }
22307 if test $ac_cv_header_ = yes; then
22308 POWL_HEADER_FOUND=1
22309 else
22310 POWL_HEADER_FOUND=0
22314 CPPFLAGS="${saved_cppflags}"
22316 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22317 POWL_LIB=""
22318 POWL_INCLUDE=""
22319 else
22320 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22321 POWL_LIB=""
22323 PBX_POWL=1
22324 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22326 cat >>confdefs.h <<_ACEOF
22327 #define HAVE_POWL 1
22328 _ACEOF
22331 cat >>confdefs.h <<_ACEOF
22332 #define HAVE_POWL_VERSION
22333 _ACEOF
22340 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22341 pbxlibdir=""
22342 # if --with-SQRTL=DIR has been specified, use it.
22343 if test "x${SQRTL_DIR}" != "x"; then
22344 if test -d ${SQRTL_DIR}/lib; then
22345 pbxlibdir="-L${SQRTL_DIR}/lib"
22346 else
22347 pbxlibdir="-L${SQRTL_DIR}"
22350 pbxfuncname="sqrtl"
22351 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22352 AST_SQRTL_FOUND=yes
22353 else
22354 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22355 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22356 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22357 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360 ac_check_lib_save_LIBS=$LIBS
22361 LIBS="-lm ${pbxlibdir} $LIBS"
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 /* Override any GCC internal prototype to avoid an error.
22370 Use char because int might match the return type of a GCC
22371 builtin and then its argument prototype would still apply. */
22372 #ifdef __cplusplus
22373 extern "C"
22374 #endif
22375 char ${pbxfuncname} ();
22377 main ()
22379 return ${pbxfuncname} ();
22381 return 0;
22383 _ACEOF
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_link") 2>conftest.er1
22392 ac_status=$?
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest$ac_exeext &&
22401 $as_test_x conftest$ac_exeext; then
22402 eval "$as_ac_Lib=yes"
22403 else
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 eval "$as_ac_Lib=no"
22410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22411 conftest$ac_exeext conftest.$ac_ext
22412 LIBS=$ac_check_lib_save_LIBS
22414 ac_res=`eval echo '${'$as_ac_Lib'}'`
22415 { echo "$as_me:$LINENO: result: $ac_res" >&5
22416 echo "${ECHO_T}$ac_res" >&6; }
22417 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22418 AST_SQRTL_FOUND=yes
22419 else
22420 AST_SQRTL_FOUND=no
22425 # now check for the header.
22426 if test "${AST_SQRTL_FOUND}" = "yes"; then
22427 SQRTL_LIB="${pbxlibdir} -lm "
22428 # if --with-SQRTL=DIR has been specified, use it.
22429 if test "x${SQRTL_DIR}" != "x"; then
22430 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22432 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22433 if test "x" = "x" ; then # no header, assume found
22434 SQRTL_HEADER_FOUND="1"
22435 else # check for the header
22436 saved_cppflags="${CPPFLAGS}"
22437 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE}"
22438 if test "${ac_cv_header_+set}" = set; then
22439 { echo "$as_me:$LINENO: checking for " >&5
22440 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22441 if test "${ac_cv_header_+set}" = set; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22444 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22445 echo "${ECHO_T}$ac_cv_header_" >&6; }
22446 else
22447 # Is the header compilable?
22448 { echo "$as_me:$LINENO: checking usability" >&5
22449 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22457 #include <>
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_header_compiler=yes
22477 else
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_header_compiler=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22486 echo "${ECHO_T}$ac_header_compiler" >&6; }
22488 # Is the header present?
22489 { echo "$as_me:$LINENO: checking presence" >&5
22490 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22491 cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 #include <>
22498 _ACEOF
22499 if { (ac_try="$ac_cpp conftest.$ac_ext"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } >/dev/null && {
22512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 }; then
22515 ac_header_preproc=yes
22516 else
22517 echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_header_preproc=no
22523 rm -f conftest.err conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22525 echo "${ECHO_T}$ac_header_preproc" >&6; }
22527 # So? What about this header?
22528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22529 yes:no: )
22530 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22531 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22533 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22534 ac_header_preproc=yes
22536 no:yes:* )
22537 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22538 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22540 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22541 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22542 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22543 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22544 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22545 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22546 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22547 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22548 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22549 ( cat <<\_ASBOX
22550 ## ------------------------------- ##
22551 ## Report this to www.asterisk.org ##
22552 ## ------------------------------- ##
22553 _ASBOX
22554 ) | sed "s/^/$as_me: WARNING: /" >&2
22556 esac
22557 { echo "$as_me:$LINENO: checking for " >&5
22558 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22559 if test "${ac_cv_header_+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562 ac_cv_header_=$ac_header_preproc
22564 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22565 echo "${ECHO_T}$ac_cv_header_" >&6; }
22568 if test $ac_cv_header_ = yes; then
22569 SQRTL_HEADER_FOUND=1
22570 else
22571 SQRTL_HEADER_FOUND=0
22575 CPPFLAGS="${saved_cppflags}"
22577 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22578 SQRTL_LIB=""
22579 SQRTL_INCLUDE=""
22580 else
22581 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22582 SQRTL_LIB=""
22584 PBX_SQRTL=1
22585 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22587 cat >>confdefs.h <<_ACEOF
22588 #define HAVE_SQRTL 1
22589 _ACEOF
22592 cat >>confdefs.h <<_ACEOF
22593 #define HAVE_SQRTL_VERSION
22594 _ACEOF
22601 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22602 pbxlibdir=""
22603 # if --with-RINTL=DIR has been specified, use it.
22604 if test "x${RINTL_DIR}" != "x"; then
22605 if test -d ${RINTL_DIR}/lib; then
22606 pbxlibdir="-L${RINTL_DIR}/lib"
22607 else
22608 pbxlibdir="-L${RINTL_DIR}"
22611 pbxfuncname="rintl"
22612 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22613 AST_RINTL_FOUND=yes
22614 else
22615 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22616 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22617 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621 ac_check_lib_save_LIBS=$LIBS
22622 LIBS="-lm ${pbxlibdir} $LIBS"
22623 cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h. */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633 #ifdef __cplusplus
22634 extern "C"
22635 #endif
22636 char ${pbxfuncname} ();
22638 main ()
22640 return ${pbxfuncname} ();
22642 return 0;
22644 _ACEOF
22645 rm -f conftest.$ac_objext conftest$ac_exeext
22646 if { (ac_try="$ac_link"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_link") 2>conftest.er1
22653 ac_status=$?
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest$ac_exeext &&
22662 $as_test_x conftest$ac_exeext; then
22663 eval "$as_ac_Lib=yes"
22664 else
22665 echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22668 eval "$as_ac_Lib=no"
22671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22672 conftest$ac_exeext conftest.$ac_ext
22673 LIBS=$ac_check_lib_save_LIBS
22675 ac_res=`eval echo '${'$as_ac_Lib'}'`
22676 { echo "$as_me:$LINENO: result: $ac_res" >&5
22677 echo "${ECHO_T}$ac_res" >&6; }
22678 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22679 AST_RINTL_FOUND=yes
22680 else
22681 AST_RINTL_FOUND=no
22686 # now check for the header.
22687 if test "${AST_RINTL_FOUND}" = "yes"; then
22688 RINTL_LIB="${pbxlibdir} -lm "
22689 # if --with-RINTL=DIR has been specified, use it.
22690 if test "x${RINTL_DIR}" != "x"; then
22691 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22693 RINTL_INCLUDE="${RINTL_INCLUDE} "
22694 if test "x" = "x" ; then # no header, assume found
22695 RINTL_HEADER_FOUND="1"
22696 else # check for the header
22697 saved_cppflags="${CPPFLAGS}"
22698 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE}"
22699 if test "${ac_cv_header_+set}" = set; then
22700 { echo "$as_me:$LINENO: checking for " >&5
22701 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22702 if test "${ac_cv_header_+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22706 echo "${ECHO_T}$ac_cv_header_" >&6; }
22707 else
22708 # Is the header compilable?
22709 { echo "$as_me:$LINENO: checking usability" >&5
22710 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 $ac_includes_default
22718 #include <>
22719 _ACEOF
22720 rm -f conftest.$ac_objext
22721 if { (ac_try="$ac_compile"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_compile") 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest.$ac_objext; then
22737 ac_header_compiler=yes
22738 else
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ac_header_compiler=no
22745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22747 echo "${ECHO_T}$ac_header_compiler" >&6; }
22749 # Is the header present?
22750 { echo "$as_me:$LINENO: checking presence" >&5
22751 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22752 cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h. */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22758 #include <>
22759 _ACEOF
22760 if { (ac_try="$ac_cpp conftest.$ac_ext"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } >/dev/null && {
22773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 }; then
22776 ac_header_preproc=yes
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 ac_header_preproc=no
22784 rm -f conftest.err conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22786 echo "${ECHO_T}$ac_header_preproc" >&6; }
22788 # So? What about this header?
22789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22790 yes:no: )
22791 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22792 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22794 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22795 ac_header_preproc=yes
22797 no:yes:* )
22798 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22799 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22800 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22801 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22802 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22803 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22804 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22805 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22806 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22807 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22808 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22809 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22810 ( cat <<\_ASBOX
22811 ## ------------------------------- ##
22812 ## Report this to www.asterisk.org ##
22813 ## ------------------------------- ##
22814 _ASBOX
22815 ) | sed "s/^/$as_me: WARNING: /" >&2
22817 esac
22818 { echo "$as_me:$LINENO: checking for " >&5
22819 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22820 if test "${ac_cv_header_+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823 ac_cv_header_=$ac_header_preproc
22825 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22826 echo "${ECHO_T}$ac_cv_header_" >&6; }
22829 if test $ac_cv_header_ = yes; then
22830 RINTL_HEADER_FOUND=1
22831 else
22832 RINTL_HEADER_FOUND=0
22836 CPPFLAGS="${saved_cppflags}"
22838 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22839 RINTL_LIB=""
22840 RINTL_INCLUDE=""
22841 else
22842 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22843 RINTL_LIB=""
22845 PBX_RINTL=1
22846 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22848 cat >>confdefs.h <<_ACEOF
22849 #define HAVE_RINTL 1
22850 _ACEOF
22853 cat >>confdefs.h <<_ACEOF
22854 #define HAVE_RINTL_VERSION
22855 _ACEOF
22862 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22863 pbxlibdir=""
22864 # if --with-EXPL=DIR has been specified, use it.
22865 if test "x${EXPL_DIR}" != "x"; then
22866 if test -d ${EXPL_DIR}/lib; then
22867 pbxlibdir="-L${EXPL_DIR}/lib"
22868 else
22869 pbxlibdir="-L${EXPL_DIR}"
22872 pbxfuncname="expl"
22873 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22874 AST_EXPL_FOUND=yes
22875 else
22876 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22877 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22878 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22879 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22881 else
22882 ac_check_lib_save_LIBS=$LIBS
22883 LIBS="-lm ${pbxlibdir} $LIBS"
22884 cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h. */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22891 /* Override any GCC internal prototype to avoid an error.
22892 Use char because int might match the return type of a GCC
22893 builtin and then its argument prototype would still apply. */
22894 #ifdef __cplusplus
22895 extern "C"
22896 #endif
22897 char ${pbxfuncname} ();
22899 main ()
22901 return ${pbxfuncname} ();
22903 return 0;
22905 _ACEOF
22906 rm -f conftest.$ac_objext conftest$ac_exeext
22907 if { (ac_try="$ac_link"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22911 esac
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_link") 2>conftest.er1
22914 ac_status=$?
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } && {
22920 test -z "$ac_c_werror_flag" ||
22921 test ! -s conftest.err
22922 } && test -s conftest$ac_exeext &&
22923 $as_test_x conftest$ac_exeext; then
22924 eval "$as_ac_Lib=yes"
22925 else
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 eval "$as_ac_Lib=no"
22932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22933 conftest$ac_exeext conftest.$ac_ext
22934 LIBS=$ac_check_lib_save_LIBS
22936 ac_res=`eval echo '${'$as_ac_Lib'}'`
22937 { echo "$as_me:$LINENO: result: $ac_res" >&5
22938 echo "${ECHO_T}$ac_res" >&6; }
22939 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22940 AST_EXPL_FOUND=yes
22941 else
22942 AST_EXPL_FOUND=no
22947 # now check for the header.
22948 if test "${AST_EXPL_FOUND}" = "yes"; then
22949 EXPL_LIB="${pbxlibdir} -lm "
22950 # if --with-EXPL=DIR has been specified, use it.
22951 if test "x${EXPL_DIR}" != "x"; then
22952 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22954 EXPL_INCLUDE="${EXPL_INCLUDE} "
22955 if test "x" = "x" ; then # no header, assume found
22956 EXPL_HEADER_FOUND="1"
22957 else # check for the header
22958 saved_cppflags="${CPPFLAGS}"
22959 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE}"
22960 if test "${ac_cv_header_+set}" = set; then
22961 { echo "$as_me:$LINENO: checking for " >&5
22962 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22963 if test "${ac_cv_header_+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22967 echo "${ECHO_T}$ac_cv_header_" >&6; }
22968 else
22969 # Is the header compilable?
22970 { echo "$as_me:$LINENO: checking usability" >&5
22971 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h. */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978 $ac_includes_default
22979 #include <>
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_compile") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest.$ac_objext; then
22998 ac_header_compiler=yes
22999 else
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_header_compiler=no
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23008 echo "${ECHO_T}$ac_header_compiler" >&6; }
23010 # Is the header present?
23011 { echo "$as_me:$LINENO: checking presence" >&5
23012 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h. */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 #include <>
23020 _ACEOF
23021 if { (ac_try="$ac_cpp conftest.$ac_ext"
23022 case "(($ac_try" in
23023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024 *) ac_try_echo=$ac_try;;
23025 esac
23026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23028 ac_status=$?
23029 grep -v '^ *+' conftest.er1 >conftest.err
23030 rm -f conftest.er1
23031 cat conftest.err >&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } >/dev/null && {
23034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23035 test ! -s conftest.err
23036 }; then
23037 ac_header_preproc=yes
23038 else
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_header_preproc=no
23045 rm -f conftest.err conftest.$ac_ext
23046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23047 echo "${ECHO_T}$ac_header_preproc" >&6; }
23049 # So? What about this header?
23050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23051 yes:no: )
23052 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23053 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23055 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23056 ac_header_preproc=yes
23058 no:yes:* )
23059 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23060 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23062 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23064 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23065 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23066 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23067 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23068 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23070 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23071 ( cat <<\_ASBOX
23072 ## ------------------------------- ##
23073 ## Report this to www.asterisk.org ##
23074 ## ------------------------------- ##
23075 _ASBOX
23076 ) | sed "s/^/$as_me: WARNING: /" >&2
23078 esac
23079 { echo "$as_me:$LINENO: checking for " >&5
23080 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23081 if test "${ac_cv_header_+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 ac_cv_header_=$ac_header_preproc
23086 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23087 echo "${ECHO_T}$ac_cv_header_" >&6; }
23090 if test $ac_cv_header_ = yes; then
23091 EXPL_HEADER_FOUND=1
23092 else
23093 EXPL_HEADER_FOUND=0
23097 CPPFLAGS="${saved_cppflags}"
23099 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
23100 EXPL_LIB=""
23101 EXPL_INCLUDE=""
23102 else
23103 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23104 EXPL_LIB=""
23106 PBX_EXPL=1
23107 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23109 cat >>confdefs.h <<_ACEOF
23110 #define HAVE_EXPL 1
23111 _ACEOF
23114 cat >>confdefs.h <<_ACEOF
23115 #define HAVE_EXPL_VERSION
23116 _ACEOF
23123 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
23124 pbxlibdir=""
23125 # if --with-LOGL=DIR has been specified, use it.
23126 if test "x${LOGL_DIR}" != "x"; then
23127 if test -d ${LOGL_DIR}/lib; then
23128 pbxlibdir="-L${LOGL_DIR}/lib"
23129 else
23130 pbxlibdir="-L${LOGL_DIR}"
23133 pbxfuncname="logl"
23134 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23135 AST_LOGL_FOUND=yes
23136 else
23137 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23138 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23139 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23140 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143 ac_check_lib_save_LIBS=$LIBS
23144 LIBS="-lm ${pbxlibdir} $LIBS"
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h. */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23152 /* Override any GCC internal prototype to avoid an error.
23153 Use char because int might match the return type of a GCC
23154 builtin and then its argument prototype would still apply. */
23155 #ifdef __cplusplus
23156 extern "C"
23157 #endif
23158 char ${pbxfuncname} ();
23160 main ()
23162 return ${pbxfuncname} ();
23164 return 0;
23166 _ACEOF
23167 rm -f conftest.$ac_objext conftest$ac_exeext
23168 if { (ac_try="$ac_link"
23169 case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_link") 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } && {
23181 test -z "$ac_c_werror_flag" ||
23182 test ! -s conftest.err
23183 } && test -s conftest$ac_exeext &&
23184 $as_test_x conftest$ac_exeext; then
23185 eval "$as_ac_Lib=yes"
23186 else
23187 echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23190 eval "$as_ac_Lib=no"
23193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23194 conftest$ac_exeext conftest.$ac_ext
23195 LIBS=$ac_check_lib_save_LIBS
23197 ac_res=`eval echo '${'$as_ac_Lib'}'`
23198 { echo "$as_me:$LINENO: result: $ac_res" >&5
23199 echo "${ECHO_T}$ac_res" >&6; }
23200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23201 AST_LOGL_FOUND=yes
23202 else
23203 AST_LOGL_FOUND=no
23208 # now check for the header.
23209 if test "${AST_LOGL_FOUND}" = "yes"; then
23210 LOGL_LIB="${pbxlibdir} -lm "
23211 # if --with-LOGL=DIR has been specified, use it.
23212 if test "x${LOGL_DIR}" != "x"; then
23213 LOGL_INCLUDE="-I${LOGL_DIR}/include"
23215 LOGL_INCLUDE="${LOGL_INCLUDE} "
23216 if test "x" = "x" ; then # no header, assume found
23217 LOGL_HEADER_FOUND="1"
23218 else # check for the header
23219 saved_cppflags="${CPPFLAGS}"
23220 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE}"
23221 if test "${ac_cv_header_+set}" = set; then
23222 { echo "$as_me:$LINENO: checking for " >&5
23223 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23224 if test "${ac_cv_header_+set}" = set; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23228 echo "${ECHO_T}$ac_cv_header_" >&6; }
23229 else
23230 # Is the header compilable?
23231 { echo "$as_me:$LINENO: checking usability" >&5
23232 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23233 cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h. */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23239 $ac_includes_default
23240 #include <>
23241 _ACEOF
23242 rm -f conftest.$ac_objext
23243 if { (ac_try="$ac_compile"
23244 case "(($ac_try" in
23245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23246 *) ac_try_echo=$ac_try;;
23247 esac
23248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23249 (eval "$ac_compile") 2>conftest.er1
23250 ac_status=$?
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && {
23256 test -z "$ac_c_werror_flag" ||
23257 test ! -s conftest.err
23258 } && test -s conftest.$ac_objext; then
23259 ac_header_compiler=yes
23260 else
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23264 ac_header_compiler=no
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23269 echo "${ECHO_T}$ac_header_compiler" >&6; }
23271 # Is the header present?
23272 { echo "$as_me:$LINENO: checking presence" >&5
23273 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h. */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 #include <>
23281 _ACEOF
23282 if { (ac_try="$ac_cpp conftest.$ac_ext"
23283 case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23289 ac_status=$?
23290 grep -v '^ *+' conftest.er1 >conftest.err
23291 rm -f conftest.er1
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } >/dev/null && {
23295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23296 test ! -s conftest.err
23297 }; then
23298 ac_header_preproc=yes
23299 else
23300 echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 ac_header_preproc=no
23306 rm -f conftest.err conftest.$ac_ext
23307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23308 echo "${ECHO_T}$ac_header_preproc" >&6; }
23310 # So? What about this header?
23311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23312 yes:no: )
23313 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23314 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23315 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23316 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23317 ac_header_preproc=yes
23319 no:yes:* )
23320 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23321 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23322 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23323 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23324 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23325 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23326 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23327 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23328 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23329 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23330 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23331 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23332 ( cat <<\_ASBOX
23333 ## ------------------------------- ##
23334 ## Report this to www.asterisk.org ##
23335 ## ------------------------------- ##
23336 _ASBOX
23337 ) | sed "s/^/$as_me: WARNING: /" >&2
23339 esac
23340 { echo "$as_me:$LINENO: checking for " >&5
23341 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23342 if test "${ac_cv_header_+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 else
23345 ac_cv_header_=$ac_header_preproc
23347 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23348 echo "${ECHO_T}$ac_cv_header_" >&6; }
23351 if test $ac_cv_header_ = yes; then
23352 LOGL_HEADER_FOUND=1
23353 else
23354 LOGL_HEADER_FOUND=0
23358 CPPFLAGS="${saved_cppflags}"
23360 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23361 LOGL_LIB=""
23362 LOGL_INCLUDE=""
23363 else
23364 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23365 LOGL_LIB=""
23367 PBX_LOGL=1
23368 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_LOGL 1
23372 _ACEOF
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_LOGL_VERSION
23377 _ACEOF
23384 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23385 pbxlibdir=""
23386 # if --with-REMAINDERL=DIR has been specified, use it.
23387 if test "x${REMAINDERL_DIR}" != "x"; then
23388 if test -d ${REMAINDERL_DIR}/lib; then
23389 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23390 else
23391 pbxlibdir="-L${REMAINDERL_DIR}"
23394 pbxfuncname="remainderl"
23395 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23396 AST_REMAINDERL_FOUND=yes
23397 else
23398 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23399 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23400 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23401 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23402 echo $ECHO_N "(cached) $ECHO_C" >&6
23403 else
23404 ac_check_lib_save_LIBS=$LIBS
23405 LIBS="-lm ${pbxlibdir} $LIBS"
23406 cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h. */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23413 /* Override any GCC internal prototype to avoid an error.
23414 Use char because int might match the return type of a GCC
23415 builtin and then its argument prototype would still apply. */
23416 #ifdef __cplusplus
23417 extern "C"
23418 #endif
23419 char ${pbxfuncname} ();
23421 main ()
23423 return ${pbxfuncname} ();
23425 return 0;
23427 _ACEOF
23428 rm -f conftest.$ac_objext conftest$ac_exeext
23429 if { (ac_try="$ac_link"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_link") 2>conftest.er1
23436 ac_status=$?
23437 grep -v '^ *+' conftest.er1 >conftest.err
23438 rm -f conftest.er1
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest$ac_exeext &&
23445 $as_test_x conftest$ac_exeext; then
23446 eval "$as_ac_Lib=yes"
23447 else
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 eval "$as_ac_Lib=no"
23454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23455 conftest$ac_exeext conftest.$ac_ext
23456 LIBS=$ac_check_lib_save_LIBS
23458 ac_res=`eval echo '${'$as_ac_Lib'}'`
23459 { echo "$as_me:$LINENO: result: $ac_res" >&5
23460 echo "${ECHO_T}$ac_res" >&6; }
23461 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23462 AST_REMAINDERL_FOUND=yes
23463 else
23464 AST_REMAINDERL_FOUND=no
23469 # now check for the header.
23470 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23471 REMAINDERL_LIB="${pbxlibdir} -lm "
23472 # if --with-REMAINDERL=DIR has been specified, use it.
23473 if test "x${REMAINDERL_DIR}" != "x"; then
23474 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23476 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23477 if test "x" = "x" ; then # no header, assume found
23478 REMAINDERL_HEADER_FOUND="1"
23479 else # check for the header
23480 saved_cppflags="${CPPFLAGS}"
23481 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE}"
23482 if test "${ac_cv_header_+set}" = set; then
23483 { echo "$as_me:$LINENO: checking for " >&5
23484 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23485 if test "${ac_cv_header_+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23489 echo "${ECHO_T}$ac_cv_header_" >&6; }
23490 else
23491 # Is the header compilable?
23492 { echo "$as_me:$LINENO: checking usability" >&5
23493 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23494 cat >conftest.$ac_ext <<_ACEOF
23495 /* confdefs.h. */
23496 _ACEOF
23497 cat confdefs.h >>conftest.$ac_ext
23498 cat >>conftest.$ac_ext <<_ACEOF
23499 /* end confdefs.h. */
23500 $ac_includes_default
23501 #include <>
23502 _ACEOF
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_compile") 2>conftest.er1
23511 ac_status=$?
23512 grep -v '^ *+' conftest.er1 >conftest.err
23513 rm -f conftest.er1
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest.$ac_objext; then
23520 ac_header_compiler=yes
23521 else
23522 echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23525 ac_header_compiler=no
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23530 echo "${ECHO_T}$ac_header_compiler" >&6; }
23532 # Is the header present?
23533 { echo "$as_me:$LINENO: checking presence" >&5
23534 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h. */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 #include <>
23542 _ACEOF
23543 if { (ac_try="$ac_cpp conftest.$ac_ext"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23550 ac_status=$?
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } >/dev/null && {
23556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23557 test ! -s conftest.err
23558 }; then
23559 ac_header_preproc=yes
23560 else
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_header_preproc=no
23567 rm -f conftest.err conftest.$ac_ext
23568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23569 echo "${ECHO_T}$ac_header_preproc" >&6; }
23571 # So? What about this header?
23572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23573 yes:no: )
23574 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23575 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23576 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23577 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23578 ac_header_preproc=yes
23580 no:yes:* )
23581 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23582 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23583 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23584 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23585 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23586 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23587 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23588 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23589 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23590 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23591 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23592 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23593 ( cat <<\_ASBOX
23594 ## ------------------------------- ##
23595 ## Report this to www.asterisk.org ##
23596 ## ------------------------------- ##
23597 _ASBOX
23598 ) | sed "s/^/$as_me: WARNING: /" >&2
23600 esac
23601 { echo "$as_me:$LINENO: checking for " >&5
23602 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23603 if test "${ac_cv_header_+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606 ac_cv_header_=$ac_header_preproc
23608 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23609 echo "${ECHO_T}$ac_cv_header_" >&6; }
23612 if test $ac_cv_header_ = yes; then
23613 REMAINDERL_HEADER_FOUND=1
23614 else
23615 REMAINDERL_HEADER_FOUND=0
23619 CPPFLAGS="${saved_cppflags}"
23621 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23622 REMAINDERL_LIB=""
23623 REMAINDERL_INCLUDE=""
23624 else
23625 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23626 REMAINDERL_LIB=""
23628 PBX_REMAINDERL=1
23629 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23631 cat >>confdefs.h <<_ACEOF
23632 #define HAVE_REMAINDERL 1
23633 _ACEOF
23636 cat >>confdefs.h <<_ACEOF
23637 #define HAVE_REMAINDERL_VERSION
23638 _ACEOF
23645 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23646 pbxlibdir=""
23647 # if --with-FMODL=DIR has been specified, use it.
23648 if test "x${FMODL_DIR}" != "x"; then
23649 if test -d ${FMODL_DIR}/lib; then
23650 pbxlibdir="-L${FMODL_DIR}/lib"
23651 else
23652 pbxlibdir="-L${FMODL_DIR}"
23655 pbxfuncname="fmodl"
23656 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23657 AST_FMODL_FOUND=yes
23658 else
23659 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23660 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23661 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23662 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 else
23665 ac_check_lib_save_LIBS=$LIBS
23666 LIBS="-lm ${pbxlibdir} $LIBS"
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23674 /* Override any GCC internal prototype to avoid an error.
23675 Use char because int might match the return type of a GCC
23676 builtin and then its argument prototype would still apply. */
23677 #ifdef __cplusplus
23678 extern "C"
23679 #endif
23680 char ${pbxfuncname} ();
23682 main ()
23684 return ${pbxfuncname} ();
23686 return 0;
23688 _ACEOF
23689 rm -f conftest.$ac_objext conftest$ac_exeext
23690 if { (ac_try="$ac_link"
23691 case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_link") 2>conftest.er1
23697 ac_status=$?
23698 grep -v '^ *+' conftest.er1 >conftest.err
23699 rm -f conftest.er1
23700 cat conftest.err >&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && {
23703 test -z "$ac_c_werror_flag" ||
23704 test ! -s conftest.err
23705 } && test -s conftest$ac_exeext &&
23706 $as_test_x conftest$ac_exeext; then
23707 eval "$as_ac_Lib=yes"
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 eval "$as_ac_Lib=no"
23715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23716 conftest$ac_exeext conftest.$ac_ext
23717 LIBS=$ac_check_lib_save_LIBS
23719 ac_res=`eval echo '${'$as_ac_Lib'}'`
23720 { echo "$as_me:$LINENO: result: $ac_res" >&5
23721 echo "${ECHO_T}$ac_res" >&6; }
23722 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23723 AST_FMODL_FOUND=yes
23724 else
23725 AST_FMODL_FOUND=no
23730 # now check for the header.
23731 if test "${AST_FMODL_FOUND}" = "yes"; then
23732 FMODL_LIB="${pbxlibdir} -lm "
23733 # if --with-FMODL=DIR has been specified, use it.
23734 if test "x${FMODL_DIR}" != "x"; then
23735 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23737 FMODL_INCLUDE="${FMODL_INCLUDE} "
23738 if test "x" = "x" ; then # no header, assume found
23739 FMODL_HEADER_FOUND="1"
23740 else # check for the header
23741 saved_cppflags="${CPPFLAGS}"
23742 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE}"
23743 if test "${ac_cv_header_+set}" = set; then
23744 { echo "$as_me:$LINENO: checking for " >&5
23745 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23746 if test "${ac_cv_header_+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23749 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23750 echo "${ECHO_T}$ac_cv_header_" >&6; }
23751 else
23752 # Is the header compilable?
23753 { echo "$as_me:$LINENO: checking usability" >&5
23754 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 $ac_includes_default
23762 #include <>
23763 _ACEOF
23764 rm -f conftest.$ac_objext
23765 if { (ac_try="$ac_compile"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771 (eval "$ac_compile") 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && {
23778 test -z "$ac_c_werror_flag" ||
23779 test ! -s conftest.err
23780 } && test -s conftest.$ac_objext; then
23781 ac_header_compiler=yes
23782 else
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23786 ac_header_compiler=no
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23791 echo "${ECHO_T}$ac_header_compiler" >&6; }
23793 # Is the header present?
23794 { echo "$as_me:$LINENO: checking presence" >&5
23795 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h. */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 #include <>
23803 _ACEOF
23804 if { (ac_try="$ac_cpp conftest.$ac_ext"
23805 case "(($ac_try" in
23806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807 *) ac_try_echo=$ac_try;;
23808 esac
23809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } >/dev/null && {
23817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 }; then
23820 ac_header_preproc=yes
23821 else
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 ac_header_preproc=no
23828 rm -f conftest.err conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23830 echo "${ECHO_T}$ac_header_preproc" >&6; }
23832 # So? What about this header?
23833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23834 yes:no: )
23835 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23836 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23838 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23839 ac_header_preproc=yes
23841 no:yes:* )
23842 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23843 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23845 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23847 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23848 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23849 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23850 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23851 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23852 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23853 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23854 ( cat <<\_ASBOX
23855 ## ------------------------------- ##
23856 ## Report this to www.asterisk.org ##
23857 ## ------------------------------- ##
23858 _ASBOX
23859 ) | sed "s/^/$as_me: WARNING: /" >&2
23861 esac
23862 { echo "$as_me:$LINENO: checking for " >&5
23863 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23864 if test "${ac_cv_header_+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867 ac_cv_header_=$ac_header_preproc
23869 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23870 echo "${ECHO_T}$ac_cv_header_" >&6; }
23873 if test $ac_cv_header_ = yes; then
23874 FMODL_HEADER_FOUND=1
23875 else
23876 FMODL_HEADER_FOUND=0
23880 CPPFLAGS="${saved_cppflags}"
23882 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23883 FMODL_LIB=""
23884 FMODL_INCLUDE=""
23885 else
23886 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23887 FMODL_LIB=""
23889 PBX_FMODL=1
23890 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23892 cat >>confdefs.h <<_ACEOF
23893 #define HAVE_FMODL 1
23894 _ACEOF
23897 cat >>confdefs.h <<_ACEOF
23898 #define HAVE_FMODL_VERSION
23899 _ACEOF
23906 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23907 pbxlibdir=""
23908 # if --with-ROUNDL=DIR has been specified, use it.
23909 if test "x${ROUNDL_DIR}" != "x"; then
23910 if test -d ${ROUNDL_DIR}/lib; then
23911 pbxlibdir="-L${ROUNDL_DIR}/lib"
23912 else
23913 pbxlibdir="-L${ROUNDL_DIR}"
23916 pbxfuncname="roundl"
23917 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23918 AST_ROUNDL_FOUND=yes
23919 else
23920 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23921 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23922 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23923 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 else
23926 ac_check_lib_save_LIBS=$LIBS
23927 LIBS="-lm ${pbxlibdir} $LIBS"
23928 cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h. */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23935 /* Override any GCC internal prototype to avoid an error.
23936 Use char because int might match the return type of a GCC
23937 builtin and then its argument prototype would still apply. */
23938 #ifdef __cplusplus
23939 extern "C"
23940 #endif
23941 char ${pbxfuncname} ();
23943 main ()
23945 return ${pbxfuncname} ();
23947 return 0;
23949 _ACEOF
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>conftest.er1
23958 ac_status=$?
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest$ac_exeext &&
23967 $as_test_x conftest$ac_exeext; then
23968 eval "$as_ac_Lib=yes"
23969 else
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 eval "$as_ac_Lib=no"
23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23977 conftest$ac_exeext conftest.$ac_ext
23978 LIBS=$ac_check_lib_save_LIBS
23980 ac_res=`eval echo '${'$as_ac_Lib'}'`
23981 { echo "$as_me:$LINENO: result: $ac_res" >&5
23982 echo "${ECHO_T}$ac_res" >&6; }
23983 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23984 AST_ROUNDL_FOUND=yes
23985 else
23986 AST_ROUNDL_FOUND=no
23991 # now check for the header.
23992 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23993 ROUNDL_LIB="${pbxlibdir} -lm "
23994 # if --with-ROUNDL=DIR has been specified, use it.
23995 if test "x${ROUNDL_DIR}" != "x"; then
23996 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23998 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23999 if test "x" = "x" ; then # no header, assume found
24000 ROUNDL_HEADER_FOUND="1"
24001 else # check for the header
24002 saved_cppflags="${CPPFLAGS}"
24003 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE}"
24004 if test "${ac_cv_header_+set}" = set; then
24005 { echo "$as_me:$LINENO: checking for " >&5
24006 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24007 if test "${ac_cv_header_+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24010 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24011 echo "${ECHO_T}$ac_cv_header_" >&6; }
24012 else
24013 # Is the header compilable?
24014 { echo "$as_me:$LINENO: checking usability" >&5
24015 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 $ac_includes_default
24023 #include <>
24024 _ACEOF
24025 rm -f conftest.$ac_objext
24026 if { (ac_try="$ac_compile"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24030 esac
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032 (eval "$ac_compile") 2>conftest.er1
24033 ac_status=$?
24034 grep -v '^ *+' conftest.er1 >conftest.err
24035 rm -f conftest.er1
24036 cat conftest.err >&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } && {
24039 test -z "$ac_c_werror_flag" ||
24040 test ! -s conftest.err
24041 } && test -s conftest.$ac_objext; then
24042 ac_header_compiler=yes
24043 else
24044 echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24047 ac_header_compiler=no
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24052 echo "${ECHO_T}$ac_header_compiler" >&6; }
24054 # Is the header present?
24055 { echo "$as_me:$LINENO: checking presence" >&5
24056 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24057 cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h. */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 #include <>
24064 _ACEOF
24065 if { (ac_try="$ac_cpp conftest.$ac_ext"
24066 case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24069 esac
24070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24072 ac_status=$?
24073 grep -v '^ *+' conftest.er1 >conftest.err
24074 rm -f conftest.er1
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } >/dev/null && {
24078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24079 test ! -s conftest.err
24080 }; then
24081 ac_header_preproc=yes
24082 else
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24086 ac_header_preproc=no
24089 rm -f conftest.err conftest.$ac_ext
24090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24091 echo "${ECHO_T}$ac_header_preproc" >&6; }
24093 # So? What about this header?
24094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24095 yes:no: )
24096 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24097 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24098 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24099 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24100 ac_header_preproc=yes
24102 no:yes:* )
24103 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24104 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24105 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24106 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24107 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24108 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24109 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24110 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24111 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24112 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24113 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24114 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24115 ( cat <<\_ASBOX
24116 ## ------------------------------- ##
24117 ## Report this to www.asterisk.org ##
24118 ## ------------------------------- ##
24119 _ASBOX
24120 ) | sed "s/^/$as_me: WARNING: /" >&2
24122 esac
24123 { echo "$as_me:$LINENO: checking for " >&5
24124 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24125 if test "${ac_cv_header_+set}" = set; then
24126 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 else
24128 ac_cv_header_=$ac_header_preproc
24130 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24131 echo "${ECHO_T}$ac_cv_header_" >&6; }
24134 if test $ac_cv_header_ = yes; then
24135 ROUNDL_HEADER_FOUND=1
24136 else
24137 ROUNDL_HEADER_FOUND=0
24141 CPPFLAGS="${saved_cppflags}"
24143 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
24144 ROUNDL_LIB=""
24145 ROUNDL_INCLUDE=""
24146 else
24147 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24148 ROUNDL_LIB=""
24150 PBX_ROUNDL=1
24151 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24153 cat >>confdefs.h <<_ACEOF
24154 #define HAVE_ROUNDL 1
24155 _ACEOF
24158 cat >>confdefs.h <<_ACEOF
24159 #define HAVE_ROUNDL_VERSION
24160 _ACEOF
24167 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
24168 pbxlibdir=""
24169 # if --with-TRUNCL=DIR has been specified, use it.
24170 if test "x${TRUNCL_DIR}" != "x"; then
24171 if test -d ${TRUNCL_DIR}/lib; then
24172 pbxlibdir="-L${TRUNCL_DIR}/lib"
24173 else
24174 pbxlibdir="-L${TRUNCL_DIR}"
24177 pbxfuncname="truncl"
24178 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24179 AST_TRUNCL_FOUND=yes
24180 else
24181 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24182 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24183 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24184 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24185 echo $ECHO_N "(cached) $ECHO_C" >&6
24186 else
24187 ac_check_lib_save_LIBS=$LIBS
24188 LIBS="-lm ${pbxlibdir} $LIBS"
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24196 /* Override any GCC internal prototype to avoid an error.
24197 Use char because int might match the return type of a GCC
24198 builtin and then its argument prototype would still apply. */
24199 #ifdef __cplusplus
24200 extern "C"
24201 #endif
24202 char ${pbxfuncname} ();
24204 main ()
24206 return ${pbxfuncname} ();
24208 return 0;
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (ac_try="$ac_link"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_link") 2>conftest.er1
24219 ac_status=$?
24220 grep -v '^ *+' conftest.er1 >conftest.err
24221 rm -f conftest.er1
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && {
24225 test -z "$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24227 } && test -s conftest$ac_exeext &&
24228 $as_test_x conftest$ac_exeext; then
24229 eval "$as_ac_Lib=yes"
24230 else
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 eval "$as_ac_Lib=no"
24237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24238 conftest$ac_exeext conftest.$ac_ext
24239 LIBS=$ac_check_lib_save_LIBS
24241 ac_res=`eval echo '${'$as_ac_Lib'}'`
24242 { echo "$as_me:$LINENO: result: $ac_res" >&5
24243 echo "${ECHO_T}$ac_res" >&6; }
24244 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24245 AST_TRUNCL_FOUND=yes
24246 else
24247 AST_TRUNCL_FOUND=no
24252 # now check for the header.
24253 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24254 TRUNCL_LIB="${pbxlibdir} -lm "
24255 # if --with-TRUNCL=DIR has been specified, use it.
24256 if test "x${TRUNCL_DIR}" != "x"; then
24257 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24259 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24260 if test "x" = "x" ; then # no header, assume found
24261 TRUNCL_HEADER_FOUND="1"
24262 else # check for the header
24263 saved_cppflags="${CPPFLAGS}"
24264 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE}"
24265 if test "${ac_cv_header_+set}" = set; then
24266 { echo "$as_me:$LINENO: checking for " >&5
24267 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24268 if test "${ac_cv_header_+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24272 echo "${ECHO_T}$ac_cv_header_" >&6; }
24273 else
24274 # Is the header compilable?
24275 { echo "$as_me:$LINENO: checking usability" >&5
24276 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24277 cat >conftest.$ac_ext <<_ACEOF
24278 /* confdefs.h. */
24279 _ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h. */
24283 $ac_includes_default
24284 #include <>
24285 _ACEOF
24286 rm -f conftest.$ac_objext
24287 if { (ac_try="$ac_compile"
24288 case "(($ac_try" in
24289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290 *) ac_try_echo=$ac_try;;
24291 esac
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293 (eval "$ac_compile") 2>conftest.er1
24294 ac_status=$?
24295 grep -v '^ *+' conftest.er1 >conftest.err
24296 rm -f conftest.er1
24297 cat conftest.err >&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && {
24300 test -z "$ac_c_werror_flag" ||
24301 test ! -s conftest.err
24302 } && test -s conftest.$ac_objext; then
24303 ac_header_compiler=yes
24304 else
24305 echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24308 ac_header_compiler=no
24311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313 echo "${ECHO_T}$ac_header_compiler" >&6; }
24315 # Is the header present?
24316 { echo "$as_me:$LINENO: checking presence" >&5
24317 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24318 cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h. */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24324 #include <>
24325 _ACEOF
24326 if { (ac_try="$ac_cpp conftest.$ac_ext"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24333 ac_status=$?
24334 grep -v '^ *+' conftest.er1 >conftest.err
24335 rm -f conftest.er1
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } >/dev/null && {
24339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 }; then
24342 ac_header_preproc=yes
24343 else
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24347 ac_header_preproc=no
24350 rm -f conftest.err conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24352 echo "${ECHO_T}$ac_header_preproc" >&6; }
24354 # So? What about this header?
24355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24356 yes:no: )
24357 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24358 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24359 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24360 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24361 ac_header_preproc=yes
24363 no:yes:* )
24364 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24365 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24366 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24367 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24369 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24371 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24373 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24374 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24375 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24376 ( cat <<\_ASBOX
24377 ## ------------------------------- ##
24378 ## Report this to www.asterisk.org ##
24379 ## ------------------------------- ##
24380 _ASBOX
24381 ) | sed "s/^/$as_me: WARNING: /" >&2
24383 esac
24384 { echo "$as_me:$LINENO: checking for " >&5
24385 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24386 if test "${ac_cv_header_+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389 ac_cv_header_=$ac_header_preproc
24391 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24392 echo "${ECHO_T}$ac_cv_header_" >&6; }
24395 if test $ac_cv_header_ = yes; then
24396 TRUNCL_HEADER_FOUND=1
24397 else
24398 TRUNCL_HEADER_FOUND=0
24402 CPPFLAGS="${saved_cppflags}"
24404 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24405 TRUNCL_LIB=""
24406 TRUNCL_INCLUDE=""
24407 else
24408 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24409 TRUNCL_LIB=""
24411 PBX_TRUNCL=1
24412 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24414 cat >>confdefs.h <<_ACEOF
24415 #define HAVE_TRUNCL 1
24416 _ACEOF
24419 cat >>confdefs.h <<_ACEOF
24420 #define HAVE_TRUNCL_VERSION
24421 _ACEOF
24428 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24429 pbxlibdir=""
24430 # if --with-STRTOLD=DIR has been specified, use it.
24431 if test "x${STRTOLD_DIR}" != "x"; then
24432 if test -d ${STRTOLD_DIR}/lib; then
24433 pbxlibdir="-L${STRTOLD_DIR}/lib"
24434 else
24435 pbxlibdir="-L${STRTOLD_DIR}"
24438 pbxfuncname="strtold"
24439 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24440 AST_STRTOLD_FOUND=yes
24441 else
24442 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24443 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24444 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24445 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 else
24448 ac_check_lib_save_LIBS=$LIBS
24449 LIBS="-lc ${pbxlibdir} $LIBS"
24450 cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h. */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24457 /* Override any GCC internal prototype to avoid an error.
24458 Use char because int might match the return type of a GCC
24459 builtin and then its argument prototype would still apply. */
24460 #ifdef __cplusplus
24461 extern "C"
24462 #endif
24463 char ${pbxfuncname} ();
24465 main ()
24467 return ${pbxfuncname} ();
24469 return 0;
24471 _ACEOF
24472 rm -f conftest.$ac_objext conftest$ac_exeext
24473 if { (ac_try="$ac_link"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_link") 2>conftest.er1
24480 ac_status=$?
24481 grep -v '^ *+' conftest.er1 >conftest.err
24482 rm -f conftest.er1
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } && {
24486 test -z "$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24488 } && test -s conftest$ac_exeext &&
24489 $as_test_x conftest$ac_exeext; then
24490 eval "$as_ac_Lib=yes"
24491 else
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24495 eval "$as_ac_Lib=no"
24498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24499 conftest$ac_exeext conftest.$ac_ext
24500 LIBS=$ac_check_lib_save_LIBS
24502 ac_res=`eval echo '${'$as_ac_Lib'}'`
24503 { echo "$as_me:$LINENO: result: $ac_res" >&5
24504 echo "${ECHO_T}$ac_res" >&6; }
24505 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24506 AST_STRTOLD_FOUND=yes
24507 else
24508 AST_STRTOLD_FOUND=no
24513 # now check for the header.
24514 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24515 STRTOLD_LIB="${pbxlibdir} -lc "
24516 # if --with-STRTOLD=DIR has been specified, use it.
24517 if test "x${STRTOLD_DIR}" != "x"; then
24518 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24520 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24521 if test "xstdlib.h" = "x" ; then # no header, assume found
24522 STRTOLD_HEADER_FOUND="1"
24523 else # check for the header
24524 saved_cppflags="${CPPFLAGS}"
24525 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE}"
24526 if test "${ac_cv_header_stdlib_h+set}" = set; then
24527 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24528 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24529 if test "${ac_cv_header_stdlib_h+set}" = set; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24533 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24534 else
24535 # Is the header compilable?
24536 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24537 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24538 cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h. */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24544 $ac_includes_default
24545 #include <stdlib.h>
24546 _ACEOF
24547 rm -f conftest.$ac_objext
24548 if { (ac_try="$ac_compile"
24549 case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_compile") 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest.$ac_objext; then
24564 ac_header_compiler=yes
24565 else
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ac_header_compiler=no
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24574 echo "${ECHO_T}$ac_header_compiler" >&6; }
24576 # Is the header present?
24577 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24578 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24579 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h. */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 #include <stdlib.h>
24586 _ACEOF
24587 if { (ac_try="$ac_cpp conftest.$ac_ext"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24594 ac_status=$?
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } >/dev/null && {
24600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24601 test ! -s conftest.err
24602 }; then
24603 ac_header_preproc=yes
24604 else
24605 echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24608 ac_header_preproc=no
24611 rm -f conftest.err conftest.$ac_ext
24612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24613 echo "${ECHO_T}$ac_header_preproc" >&6; }
24615 # So? What about this header?
24616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24617 yes:no: )
24618 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24619 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24620 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24621 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24622 ac_header_preproc=yes
24624 no:yes:* )
24625 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24626 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24627 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24628 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24629 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24630 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24632 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24633 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24634 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24635 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24636 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24637 ( cat <<\_ASBOX
24638 ## ------------------------------- ##
24639 ## Report this to www.asterisk.org ##
24640 ## ------------------------------- ##
24641 _ASBOX
24642 ) | sed "s/^/$as_me: WARNING: /" >&2
24644 esac
24645 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24646 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24647 if test "${ac_cv_header_stdlib_h+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 else
24650 ac_cv_header_stdlib_h=$ac_header_preproc
24652 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24653 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24656 if test $ac_cv_header_stdlib_h = yes; then
24657 STRTOLD_HEADER_FOUND=1
24658 else
24659 STRTOLD_HEADER_FOUND=0
24663 CPPFLAGS="${saved_cppflags}"
24665 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24666 STRTOLD_LIB=""
24667 STRTOLD_INCLUDE=""
24668 else
24669 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24670 STRTOLD_LIB=""
24672 PBX_STRTOLD=1
24673 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24675 cat >>confdefs.h <<_ACEOF
24676 #define HAVE_STRTOLD 1
24677 _ACEOF
24680 cat >>confdefs.h <<_ACEOF
24681 #define HAVE_STRTOLD_VERSION
24682 _ACEOF
24689 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24690 pbxlibdir=""
24691 # if --with-FLOORL=DIR has been specified, use it.
24692 if test "x${FLOORL_DIR}" != "x"; then
24693 if test -d ${FLOORL_DIR}/lib; then
24694 pbxlibdir="-L${FLOORL_DIR}/lib"
24695 else
24696 pbxlibdir="-L${FLOORL_DIR}"
24699 pbxfuncname="floorl"
24700 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24701 AST_FLOORL_FOUND=yes
24702 else
24703 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24704 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24705 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24706 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 else
24709 ac_check_lib_save_LIBS=$LIBS
24710 LIBS="-lm ${pbxlibdir} $LIBS"
24711 cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h. */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24718 /* Override any GCC internal prototype to avoid an error.
24719 Use char because int might match the return type of a GCC
24720 builtin and then its argument prototype would still apply. */
24721 #ifdef __cplusplus
24722 extern "C"
24723 #endif
24724 char ${pbxfuncname} ();
24726 main ()
24728 return ${pbxfuncname} ();
24730 return 0;
24732 _ACEOF
24733 rm -f conftest.$ac_objext conftest$ac_exeext
24734 if { (ac_try="$ac_link"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_link") 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest$ac_exeext &&
24750 $as_test_x conftest$ac_exeext; then
24751 eval "$as_ac_Lib=yes"
24752 else
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 eval "$as_ac_Lib=no"
24759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24760 conftest$ac_exeext conftest.$ac_ext
24761 LIBS=$ac_check_lib_save_LIBS
24763 ac_res=`eval echo '${'$as_ac_Lib'}'`
24764 { echo "$as_me:$LINENO: result: $ac_res" >&5
24765 echo "${ECHO_T}$ac_res" >&6; }
24766 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24767 AST_FLOORL_FOUND=yes
24768 else
24769 AST_FLOORL_FOUND=no
24774 # now check for the header.
24775 if test "${AST_FLOORL_FOUND}" = "yes"; then
24776 FLOORL_LIB="${pbxlibdir} -lm "
24777 # if --with-FLOORL=DIR has been specified, use it.
24778 if test "x${FLOORL_DIR}" != "x"; then
24779 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24781 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24782 if test "x" = "x" ; then # no header, assume found
24783 FLOORL_HEADER_FOUND="1"
24784 else # check for the header
24785 saved_cppflags="${CPPFLAGS}"
24786 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE}"
24787 if test "${ac_cv_header_+set}" = set; then
24788 { echo "$as_me:$LINENO: checking for " >&5
24789 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24790 if test "${ac_cv_header_+set}" = set; then
24791 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24794 echo "${ECHO_T}$ac_cv_header_" >&6; }
24795 else
24796 # Is the header compilable?
24797 { echo "$as_me:$LINENO: checking usability" >&5
24798 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24799 cat >conftest.$ac_ext <<_ACEOF
24800 /* confdefs.h. */
24801 _ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24805 $ac_includes_default
24806 #include <>
24807 _ACEOF
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815 (eval "$ac_compile") 2>conftest.er1
24816 ac_status=$?
24817 grep -v '^ *+' conftest.er1 >conftest.err
24818 rm -f conftest.er1
24819 cat conftest.err >&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest.$ac_objext; then
24825 ac_header_compiler=yes
24826 else
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ac_header_compiler=no
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24835 echo "${ECHO_T}$ac_header_compiler" >&6; }
24837 # Is the header present?
24838 { echo "$as_me:$LINENO: checking presence" >&5
24839 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h. */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 #include <>
24847 _ACEOF
24848 if { (ac_try="$ac_cpp conftest.$ac_ext"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24855 ac_status=$?
24856 grep -v '^ *+' conftest.er1 >conftest.err
24857 rm -f conftest.er1
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } >/dev/null && {
24861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 }; then
24864 ac_header_preproc=yes
24865 else
24866 echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ac_header_preproc=no
24872 rm -f conftest.err conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24874 echo "${ECHO_T}$ac_header_preproc" >&6; }
24876 # So? What about this header?
24877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24878 yes:no: )
24879 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24880 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24882 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24883 ac_header_preproc=yes
24885 no:yes:* )
24886 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24887 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24889 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24891 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24892 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24893 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24894 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24895 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24896 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24897 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24898 ( cat <<\_ASBOX
24899 ## ------------------------------- ##
24900 ## Report this to www.asterisk.org ##
24901 ## ------------------------------- ##
24902 _ASBOX
24903 ) | sed "s/^/$as_me: WARNING: /" >&2
24905 esac
24906 { echo "$as_me:$LINENO: checking for " >&5
24907 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24908 if test "${ac_cv_header_+set}" = set; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 else
24911 ac_cv_header_=$ac_header_preproc
24913 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24914 echo "${ECHO_T}$ac_cv_header_" >&6; }
24917 if test $ac_cv_header_ = yes; then
24918 FLOORL_HEADER_FOUND=1
24919 else
24920 FLOORL_HEADER_FOUND=0
24924 CPPFLAGS="${saved_cppflags}"
24926 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24927 FLOORL_LIB=""
24928 FLOORL_INCLUDE=""
24929 else
24930 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24931 FLOORL_LIB=""
24933 PBX_FLOORL=1
24934 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24936 cat >>confdefs.h <<_ACEOF
24937 #define HAVE_FLOORL 1
24938 _ACEOF
24941 cat >>confdefs.h <<_ACEOF
24942 #define HAVE_FLOORL_VERSION
24943 _ACEOF
24950 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24951 pbxlibdir=""
24952 # if --with-CEILL=DIR has been specified, use it.
24953 if test "x${CEILL_DIR}" != "x"; then
24954 if test -d ${CEILL_DIR}/lib; then
24955 pbxlibdir="-L${CEILL_DIR}/lib"
24956 else
24957 pbxlibdir="-L${CEILL_DIR}"
24960 pbxfuncname="ceill"
24961 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24962 AST_CEILL_FOUND=yes
24963 else
24964 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24965 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24966 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24967 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 else
24970 ac_check_lib_save_LIBS=$LIBS
24971 LIBS="-lm ${pbxlibdir} $LIBS"
24972 cat >conftest.$ac_ext <<_ACEOF
24973 /* confdefs.h. */
24974 _ACEOF
24975 cat confdefs.h >>conftest.$ac_ext
24976 cat >>conftest.$ac_ext <<_ACEOF
24977 /* end confdefs.h. */
24979 /* Override any GCC internal prototype to avoid an error.
24980 Use char because int might match the return type of a GCC
24981 builtin and then its argument prototype would still apply. */
24982 #ifdef __cplusplus
24983 extern "C"
24984 #endif
24985 char ${pbxfuncname} ();
24987 main ()
24989 return ${pbxfuncname} ();
24991 return 0;
24993 _ACEOF
24994 rm -f conftest.$ac_objext conftest$ac_exeext
24995 if { (ac_try="$ac_link"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999 esac
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_link") 2>conftest.er1
25002 ac_status=$?
25003 grep -v '^ *+' conftest.er1 >conftest.err
25004 rm -f conftest.er1
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest$ac_exeext &&
25011 $as_test_x conftest$ac_exeext; then
25012 eval "$as_ac_Lib=yes"
25013 else
25014 echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 eval "$as_ac_Lib=no"
25020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25021 conftest$ac_exeext conftest.$ac_ext
25022 LIBS=$ac_check_lib_save_LIBS
25024 ac_res=`eval echo '${'$as_ac_Lib'}'`
25025 { echo "$as_me:$LINENO: result: $ac_res" >&5
25026 echo "${ECHO_T}$ac_res" >&6; }
25027 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25028 AST_CEILL_FOUND=yes
25029 else
25030 AST_CEILL_FOUND=no
25035 # now check for the header.
25036 if test "${AST_CEILL_FOUND}" = "yes"; then
25037 CEILL_LIB="${pbxlibdir} -lm "
25038 # if --with-CEILL=DIR has been specified, use it.
25039 if test "x${CEILL_DIR}" != "x"; then
25040 CEILL_INCLUDE="-I${CEILL_DIR}/include"
25042 CEILL_INCLUDE="${CEILL_INCLUDE} "
25043 if test "x" = "x" ; then # no header, assume found
25044 CEILL_HEADER_FOUND="1"
25045 else # check for the header
25046 saved_cppflags="${CPPFLAGS}"
25047 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE}"
25048 if test "${ac_cv_header_+set}" = set; then
25049 { echo "$as_me:$LINENO: checking for " >&5
25050 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25051 if test "${ac_cv_header_+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25054 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25055 echo "${ECHO_T}$ac_cv_header_" >&6; }
25056 else
25057 # Is the header compilable?
25058 { echo "$as_me:$LINENO: checking usability" >&5
25059 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25060 cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h. */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 $ac_includes_default
25067 #include <>
25068 _ACEOF
25069 rm -f conftest.$ac_objext
25070 if { (ac_try="$ac_compile"
25071 case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25074 esac
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_compile") 2>conftest.er1
25077 ac_status=$?
25078 grep -v '^ *+' conftest.er1 >conftest.err
25079 rm -f conftest.er1
25080 cat conftest.err >&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } && {
25083 test -z "$ac_c_werror_flag" ||
25084 test ! -s conftest.err
25085 } && test -s conftest.$ac_objext; then
25086 ac_header_compiler=yes
25087 else
25088 echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25091 ac_header_compiler=no
25094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25096 echo "${ECHO_T}$ac_header_compiler" >&6; }
25098 # Is the header present?
25099 { echo "$as_me:$LINENO: checking presence" >&5
25100 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 #include <>
25108 _ACEOF
25109 if { (ac_try="$ac_cpp conftest.$ac_ext"
25110 case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25113 esac
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25116 ac_status=$?
25117 grep -v '^ *+' conftest.er1 >conftest.err
25118 rm -f conftest.er1
25119 cat conftest.err >&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } >/dev/null && {
25122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25123 test ! -s conftest.err
25124 }; then
25125 ac_header_preproc=yes
25126 else
25127 echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25130 ac_header_preproc=no
25133 rm -f conftest.err conftest.$ac_ext
25134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25135 echo "${ECHO_T}$ac_header_preproc" >&6; }
25137 # So? What about this header?
25138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25139 yes:no: )
25140 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25141 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25142 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25143 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25144 ac_header_preproc=yes
25146 no:yes:* )
25147 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25148 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25149 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25150 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25151 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25152 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25153 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25154 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25155 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25156 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25157 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25158 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25159 ( cat <<\_ASBOX
25160 ## ------------------------------- ##
25161 ## Report this to www.asterisk.org ##
25162 ## ------------------------------- ##
25163 _ASBOX
25164 ) | sed "s/^/$as_me: WARNING: /" >&2
25166 esac
25167 { echo "$as_me:$LINENO: checking for " >&5
25168 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25169 if test "${ac_cv_header_+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172 ac_cv_header_=$ac_header_preproc
25174 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25175 echo "${ECHO_T}$ac_cv_header_" >&6; }
25178 if test $ac_cv_header_ = yes; then
25179 CEILL_HEADER_FOUND=1
25180 else
25181 CEILL_HEADER_FOUND=0
25185 CPPFLAGS="${saved_cppflags}"
25187 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
25188 CEILL_LIB=""
25189 CEILL_INCLUDE=""
25190 else
25191 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25192 CEILL_LIB=""
25194 PBX_CEILL=1
25195 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25197 cat >>confdefs.h <<_ACEOF
25198 #define HAVE_CEILL 1
25199 _ACEOF
25202 cat >>confdefs.h <<_ACEOF
25203 #define HAVE_CEILL_VERSION
25204 _ACEOF
25211 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
25212 pbxlibdir=""
25213 # if --with-EXP2=DIR has been specified, use it.
25214 if test "x${EXP2_DIR}" != "x"; then
25215 if test -d ${EXP2_DIR}/lib; then
25216 pbxlibdir="-L${EXP2_DIR}/lib"
25217 else
25218 pbxlibdir="-L${EXP2_DIR}"
25221 pbxfuncname="exp2"
25222 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25223 AST_EXP2_FOUND=yes
25224 else
25225 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25226 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25227 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25228 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231 ac_check_lib_save_LIBS=$LIBS
25232 LIBS="-lm ${pbxlibdir} $LIBS"
25233 cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h. */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25240 /* Override any GCC internal prototype to avoid an error.
25241 Use char because int might match the return type of a GCC
25242 builtin and then its argument prototype would still apply. */
25243 #ifdef __cplusplus
25244 extern "C"
25245 #endif
25246 char ${pbxfuncname} ();
25248 main ()
25250 return ${pbxfuncname} ();
25252 return 0;
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (ac_try="$ac_link"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262 (eval "$ac_link") 2>conftest.er1
25263 ac_status=$?
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } && {
25269 test -z "$ac_c_werror_flag" ||
25270 test ! -s conftest.err
25271 } && test -s conftest$ac_exeext &&
25272 $as_test_x conftest$ac_exeext; then
25273 eval "$as_ac_Lib=yes"
25274 else
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 eval "$as_ac_Lib=no"
25281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25282 conftest$ac_exeext conftest.$ac_ext
25283 LIBS=$ac_check_lib_save_LIBS
25285 ac_res=`eval echo '${'$as_ac_Lib'}'`
25286 { echo "$as_me:$LINENO: result: $ac_res" >&5
25287 echo "${ECHO_T}$ac_res" >&6; }
25288 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25289 AST_EXP2_FOUND=yes
25290 else
25291 AST_EXP2_FOUND=no
25296 # now check for the header.
25297 if test "${AST_EXP2_FOUND}" = "yes"; then
25298 EXP2_LIB="${pbxlibdir} -lm "
25299 # if --with-EXP2=DIR has been specified, use it.
25300 if test "x${EXP2_DIR}" != "x"; then
25301 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25303 EXP2_INCLUDE="${EXP2_INCLUDE} "
25304 if test "x" = "x" ; then # no header, assume found
25305 EXP2_HEADER_FOUND="1"
25306 else # check for the header
25307 saved_cppflags="${CPPFLAGS}"
25308 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE}"
25309 if test "${ac_cv_header_+set}" = set; then
25310 { echo "$as_me:$LINENO: checking for " >&5
25311 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25312 if test "${ac_cv_header_+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25315 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25316 echo "${ECHO_T}$ac_cv_header_" >&6; }
25317 else
25318 # Is the header compilable?
25319 { echo "$as_me:$LINENO: checking usability" >&5
25320 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25321 cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h. */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 $ac_includes_default
25328 #include <>
25329 _ACEOF
25330 rm -f conftest.$ac_objext
25331 if { (ac_try="$ac_compile"
25332 case "(($ac_try" in
25333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25335 esac
25336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25337 (eval "$ac_compile") 2>conftest.er1
25338 ac_status=$?
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest.$ac_objext; then
25347 ac_header_compiler=yes
25348 else
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 ac_header_compiler=no
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25357 echo "${ECHO_T}$ac_header_compiler" >&6; }
25359 # Is the header present?
25360 { echo "$as_me:$LINENO: checking presence" >&5
25361 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25362 cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h. */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 #include <>
25369 _ACEOF
25370 if { (ac_try="$ac_cpp conftest.$ac_ext"
25371 case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25374 esac
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25377 ac_status=$?
25378 grep -v '^ *+' conftest.er1 >conftest.err
25379 rm -f conftest.er1
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } >/dev/null && {
25383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 }; then
25386 ac_header_preproc=yes
25387 else
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 ac_header_preproc=no
25394 rm -f conftest.err conftest.$ac_ext
25395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25396 echo "${ECHO_T}$ac_header_preproc" >&6; }
25398 # So? What about this header?
25399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25400 yes:no: )
25401 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25402 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25404 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25405 ac_header_preproc=yes
25407 no:yes:* )
25408 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25409 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25410 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25411 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25412 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25413 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25414 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25415 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25416 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25417 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25418 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25419 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25420 ( cat <<\_ASBOX
25421 ## ------------------------------- ##
25422 ## Report this to www.asterisk.org ##
25423 ## ------------------------------- ##
25424 _ASBOX
25425 ) | sed "s/^/$as_me: WARNING: /" >&2
25427 esac
25428 { echo "$as_me:$LINENO: checking for " >&5
25429 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25430 if test "${ac_cv_header_+set}" = set; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433 ac_cv_header_=$ac_header_preproc
25435 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25436 echo "${ECHO_T}$ac_cv_header_" >&6; }
25439 if test $ac_cv_header_ = yes; then
25440 EXP2_HEADER_FOUND=1
25441 else
25442 EXP2_HEADER_FOUND=0
25446 CPPFLAGS="${saved_cppflags}"
25448 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25449 EXP2_LIB=""
25450 EXP2_INCLUDE=""
25451 else
25452 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25453 EXP2_LIB=""
25455 PBX_EXP2=1
25456 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25458 cat >>confdefs.h <<_ACEOF
25459 #define HAVE_EXP2 1
25460 _ACEOF
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_EXP2_VERSION
25465 _ACEOF
25472 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25473 pbxlibdir=""
25474 # if --with-LOG2=DIR has been specified, use it.
25475 if test "x${LOG2_DIR}" != "x"; then
25476 if test -d ${LOG2_DIR}/lib; then
25477 pbxlibdir="-L${LOG2_DIR}/lib"
25478 else
25479 pbxlibdir="-L${LOG2_DIR}"
25482 pbxfuncname="log2"
25483 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25484 AST_LOG2_FOUND=yes
25485 else
25486 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25487 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25488 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25489 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492 ac_check_lib_save_LIBS=$LIBS
25493 LIBS="-lm ${pbxlibdir} $LIBS"
25494 cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h. */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25501 /* Override any GCC internal prototype to avoid an error.
25502 Use char because int might match the return type of a GCC
25503 builtin and then its argument prototype would still apply. */
25504 #ifdef __cplusplus
25505 extern "C"
25506 #endif
25507 char ${pbxfuncname} ();
25509 main ()
25511 return ${pbxfuncname} ();
25513 return 0;
25515 _ACEOF
25516 rm -f conftest.$ac_objext conftest$ac_exeext
25517 if { (ac_try="$ac_link"
25518 case "(($ac_try" in
25519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25520 *) ac_try_echo=$ac_try;;
25521 esac
25522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25523 (eval "$ac_link") 2>conftest.er1
25524 ac_status=$?
25525 grep -v '^ *+' conftest.er1 >conftest.err
25526 rm -f conftest.er1
25527 cat conftest.err >&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } && {
25530 test -z "$ac_c_werror_flag" ||
25531 test ! -s conftest.err
25532 } && test -s conftest$ac_exeext &&
25533 $as_test_x conftest$ac_exeext; then
25534 eval "$as_ac_Lib=yes"
25535 else
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25539 eval "$as_ac_Lib=no"
25542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25543 conftest$ac_exeext conftest.$ac_ext
25544 LIBS=$ac_check_lib_save_LIBS
25546 ac_res=`eval echo '${'$as_ac_Lib'}'`
25547 { echo "$as_me:$LINENO: result: $ac_res" >&5
25548 echo "${ECHO_T}$ac_res" >&6; }
25549 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25550 AST_LOG2_FOUND=yes
25551 else
25552 AST_LOG2_FOUND=no
25557 # now check for the header.
25558 if test "${AST_LOG2_FOUND}" = "yes"; then
25559 LOG2_LIB="${pbxlibdir} -lm "
25560 # if --with-LOG2=DIR has been specified, use it.
25561 if test "x${LOG2_DIR}" != "x"; then
25562 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25564 LOG2_INCLUDE="${LOG2_INCLUDE} "
25565 if test "x" = "x" ; then # no header, assume found
25566 LOG2_HEADER_FOUND="1"
25567 else # check for the header
25568 saved_cppflags="${CPPFLAGS}"
25569 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE}"
25570 if test "${ac_cv_header_+set}" = set; then
25571 { echo "$as_me:$LINENO: checking for " >&5
25572 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25573 if test "${ac_cv_header_+set}" = set; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25577 echo "${ECHO_T}$ac_cv_header_" >&6; }
25578 else
25579 # Is the header compilable?
25580 { echo "$as_me:$LINENO: checking usability" >&5
25581 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25582 cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h. */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 $ac_includes_default
25589 #include <>
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598 (eval "$ac_compile") 2>conftest.er1
25599 ac_status=$?
25600 grep -v '^ *+' conftest.er1 >conftest.err
25601 rm -f conftest.er1
25602 cat conftest.err >&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } && {
25605 test -z "$ac_c_werror_flag" ||
25606 test ! -s conftest.err
25607 } && test -s conftest.$ac_objext; then
25608 ac_header_compiler=yes
25609 else
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ac_header_compiler=no
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25618 echo "${ECHO_T}$ac_header_compiler" >&6; }
25620 # Is the header present?
25621 { echo "$as_me:$LINENO: checking presence" >&5
25622 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 #include <>
25630 _ACEOF
25631 if { (ac_try="$ac_cpp conftest.$ac_ext"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25635 esac
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25638 ac_status=$?
25639 grep -v '^ *+' conftest.er1 >conftest.err
25640 rm -f conftest.er1
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } >/dev/null && {
25644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25645 test ! -s conftest.err
25646 }; then
25647 ac_header_preproc=yes
25648 else
25649 echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25652 ac_header_preproc=no
25655 rm -f conftest.err conftest.$ac_ext
25656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25657 echo "${ECHO_T}$ac_header_preproc" >&6; }
25659 # So? What about this header?
25660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25661 yes:no: )
25662 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25663 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25665 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25666 ac_header_preproc=yes
25668 no:yes:* )
25669 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25670 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25671 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25672 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25673 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25674 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25675 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25676 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25678 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25679 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25680 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25681 ( cat <<\_ASBOX
25682 ## ------------------------------- ##
25683 ## Report this to www.asterisk.org ##
25684 ## ------------------------------- ##
25685 _ASBOX
25686 ) | sed "s/^/$as_me: WARNING: /" >&2
25688 esac
25689 { echo "$as_me:$LINENO: checking for " >&5
25690 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25691 if test "${ac_cv_header_+set}" = set; then
25692 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694 ac_cv_header_=$ac_header_preproc
25696 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25697 echo "${ECHO_T}$ac_cv_header_" >&6; }
25700 if test $ac_cv_header_ = yes; then
25701 LOG2_HEADER_FOUND=1
25702 else
25703 LOG2_HEADER_FOUND=0
25707 CPPFLAGS="${saved_cppflags}"
25709 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25710 LOG2_LIB=""
25711 LOG2_INCLUDE=""
25712 else
25713 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25714 LOG2_LIB=""
25716 PBX_LOG2=1
25717 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_LOG2 1
25721 _ACEOF
25724 cat >>confdefs.h <<_ACEOF
25725 #define HAVE_LOG2_VERSION
25726 _ACEOF
25733 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25734 pbxlibdir=""
25735 # if --with-EXP10=DIR has been specified, use it.
25736 if test "x${EXP10_DIR}" != "x"; then
25737 if test -d ${EXP10_DIR}/lib; then
25738 pbxlibdir="-L${EXP10_DIR}/lib"
25739 else
25740 pbxlibdir="-L${EXP10_DIR}"
25743 pbxfuncname="exp10"
25744 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25745 AST_EXP10_FOUND=yes
25746 else
25747 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25748 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25749 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25750 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 else
25753 ac_check_lib_save_LIBS=$LIBS
25754 LIBS="-lm ${pbxlibdir} $LIBS"
25755 cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h. */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25762 /* Override any GCC internal prototype to avoid an error.
25763 Use char because int might match the return type of a GCC
25764 builtin and then its argument prototype would still apply. */
25765 #ifdef __cplusplus
25766 extern "C"
25767 #endif
25768 char ${pbxfuncname} ();
25770 main ()
25772 return ${pbxfuncname} ();
25774 return 0;
25776 _ACEOF
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (ac_try="$ac_link"
25779 case "(($ac_try" in
25780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781 *) ac_try_echo=$ac_try;;
25782 esac
25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784 (eval "$ac_link") 2>conftest.er1
25785 ac_status=$?
25786 grep -v '^ *+' conftest.er1 >conftest.err
25787 rm -f conftest.er1
25788 cat conftest.err >&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } && {
25791 test -z "$ac_c_werror_flag" ||
25792 test ! -s conftest.err
25793 } && test -s conftest$ac_exeext &&
25794 $as_test_x conftest$ac_exeext; then
25795 eval "$as_ac_Lib=yes"
25796 else
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 eval "$as_ac_Lib=no"
25803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25804 conftest$ac_exeext conftest.$ac_ext
25805 LIBS=$ac_check_lib_save_LIBS
25807 ac_res=`eval echo '${'$as_ac_Lib'}'`
25808 { echo "$as_me:$LINENO: result: $ac_res" >&5
25809 echo "${ECHO_T}$ac_res" >&6; }
25810 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25811 AST_EXP10_FOUND=yes
25812 else
25813 AST_EXP10_FOUND=no
25818 # now check for the header.
25819 if test "${AST_EXP10_FOUND}" = "yes"; then
25820 EXP10_LIB="${pbxlibdir} -lm "
25821 # if --with-EXP10=DIR has been specified, use it.
25822 if test "x${EXP10_DIR}" != "x"; then
25823 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25825 EXP10_INCLUDE="${EXP10_INCLUDE} "
25826 if test "x" = "x" ; then # no header, assume found
25827 EXP10_HEADER_FOUND="1"
25828 else # check for the header
25829 saved_cppflags="${CPPFLAGS}"
25830 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE}"
25831 if test "${ac_cv_header_+set}" = set; then
25832 { echo "$as_me:$LINENO: checking for " >&5
25833 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25834 if test "${ac_cv_header_+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25838 echo "${ECHO_T}$ac_cv_header_" >&6; }
25839 else
25840 # Is the header compilable?
25841 { echo "$as_me:$LINENO: checking usability" >&5
25842 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25843 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h. */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 $ac_includes_default
25850 #include <>
25851 _ACEOF
25852 rm -f conftest.$ac_objext
25853 if { (ac_try="$ac_compile"
25854 case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859 (eval "$ac_compile") 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } && {
25866 test -z "$ac_c_werror_flag" ||
25867 test ! -s conftest.err
25868 } && test -s conftest.$ac_objext; then
25869 ac_header_compiler=yes
25870 else
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 ac_header_compiler=no
25877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25879 echo "${ECHO_T}$ac_header_compiler" >&6; }
25881 # Is the header present?
25882 { echo "$as_me:$LINENO: checking presence" >&5
25883 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25884 cat >conftest.$ac_ext <<_ACEOF
25885 /* confdefs.h. */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25890 #include <>
25891 _ACEOF
25892 if { (ac_try="$ac_cpp conftest.$ac_ext"
25893 case "(($ac_try" in
25894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895 *) ac_try_echo=$ac_try;;
25896 esac
25897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25899 ac_status=$?
25900 grep -v '^ *+' conftest.er1 >conftest.err
25901 rm -f conftest.er1
25902 cat conftest.err >&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); } >/dev/null && {
25905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25906 test ! -s conftest.err
25907 }; then
25908 ac_header_preproc=yes
25909 else
25910 echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25913 ac_header_preproc=no
25916 rm -f conftest.err conftest.$ac_ext
25917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25918 echo "${ECHO_T}$ac_header_preproc" >&6; }
25920 # So? What about this header?
25921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25922 yes:no: )
25923 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25924 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25925 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25926 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25927 ac_header_preproc=yes
25929 no:yes:* )
25930 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25931 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25933 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25934 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25935 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25936 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25937 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25939 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25940 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25941 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25942 ( cat <<\_ASBOX
25943 ## ------------------------------- ##
25944 ## Report this to www.asterisk.org ##
25945 ## ------------------------------- ##
25946 _ASBOX
25947 ) | sed "s/^/$as_me: WARNING: /" >&2
25949 esac
25950 { echo "$as_me:$LINENO: checking for " >&5
25951 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25952 if test "${ac_cv_header_+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955 ac_cv_header_=$ac_header_preproc
25957 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25958 echo "${ECHO_T}$ac_cv_header_" >&6; }
25961 if test $ac_cv_header_ = yes; then
25962 EXP10_HEADER_FOUND=1
25963 else
25964 EXP10_HEADER_FOUND=0
25968 CPPFLAGS="${saved_cppflags}"
25970 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25971 EXP10_LIB=""
25972 EXP10_INCLUDE=""
25973 else
25974 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25975 EXP10_LIB=""
25977 PBX_EXP10=1
25978 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25980 cat >>confdefs.h <<_ACEOF
25981 #define HAVE_EXP10 1
25982 _ACEOF
25985 cat >>confdefs.h <<_ACEOF
25986 #define HAVE_EXP10_VERSION
25987 _ACEOF
25994 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25995 pbxlibdir=""
25996 # if --with-LOG10=DIR has been specified, use it.
25997 if test "x${LOG10_DIR}" != "x"; then
25998 if test -d ${LOG10_DIR}/lib; then
25999 pbxlibdir="-L${LOG10_DIR}/lib"
26000 else
26001 pbxlibdir="-L${LOG10_DIR}"
26004 pbxfuncname="log10"
26005 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26006 AST_LOG10_FOUND=yes
26007 else
26008 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26009 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26010 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26011 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26012 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 else
26014 ac_check_lib_save_LIBS=$LIBS
26015 LIBS="-lm ${pbxlibdir} $LIBS"
26016 cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h. */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26023 /* Override any GCC internal prototype to avoid an error.
26024 Use char because int might match the return type of a GCC
26025 builtin and then its argument prototype would still apply. */
26026 #ifdef __cplusplus
26027 extern "C"
26028 #endif
26029 char ${pbxfuncname} ();
26031 main ()
26033 return ${pbxfuncname} ();
26035 return 0;
26037 _ACEOF
26038 rm -f conftest.$ac_objext conftest$ac_exeext
26039 if { (ac_try="$ac_link"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26043 esac
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045 (eval "$ac_link") 2>conftest.er1
26046 ac_status=$?
26047 grep -v '^ *+' conftest.er1 >conftest.err
26048 rm -f conftest.er1
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest$ac_exeext &&
26055 $as_test_x conftest$ac_exeext; then
26056 eval "$as_ac_Lib=yes"
26057 else
26058 echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26061 eval "$as_ac_Lib=no"
26064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26065 conftest$ac_exeext conftest.$ac_ext
26066 LIBS=$ac_check_lib_save_LIBS
26068 ac_res=`eval echo '${'$as_ac_Lib'}'`
26069 { echo "$as_me:$LINENO: result: $ac_res" >&5
26070 echo "${ECHO_T}$ac_res" >&6; }
26071 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26072 AST_LOG10_FOUND=yes
26073 else
26074 AST_LOG10_FOUND=no
26079 # now check for the header.
26080 if test "${AST_LOG10_FOUND}" = "yes"; then
26081 LOG10_LIB="${pbxlibdir} -lm "
26082 # if --with-LOG10=DIR has been specified, use it.
26083 if test "x${LOG10_DIR}" != "x"; then
26084 LOG10_INCLUDE="-I${LOG10_DIR}/include"
26086 LOG10_INCLUDE="${LOG10_INCLUDE} "
26087 if test "x" = "x" ; then # no header, assume found
26088 LOG10_HEADER_FOUND="1"
26089 else # check for the header
26090 saved_cppflags="${CPPFLAGS}"
26091 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE}"
26092 if test "${ac_cv_header_+set}" = set; then
26093 { echo "$as_me:$LINENO: checking for " >&5
26094 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26095 if test "${ac_cv_header_+set}" = set; then
26096 echo $ECHO_N "(cached) $ECHO_C" >&6
26098 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26099 echo "${ECHO_T}$ac_cv_header_" >&6; }
26100 else
26101 # Is the header compilable?
26102 { echo "$as_me:$LINENO: checking usability" >&5
26103 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h. */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h. */
26110 $ac_includes_default
26111 #include <>
26112 _ACEOF
26113 rm -f conftest.$ac_objext
26114 if { (ac_try="$ac_compile"
26115 case "(($ac_try" in
26116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26117 *) ac_try_echo=$ac_try;;
26118 esac
26119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26120 (eval "$ac_compile") 2>conftest.er1
26121 ac_status=$?
26122 grep -v '^ *+' conftest.er1 >conftest.err
26123 rm -f conftest.er1
26124 cat conftest.err >&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } && {
26127 test -z "$ac_c_werror_flag" ||
26128 test ! -s conftest.err
26129 } && test -s conftest.$ac_objext; then
26130 ac_header_compiler=yes
26131 else
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26135 ac_header_compiler=no
26138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26140 echo "${ECHO_T}$ac_header_compiler" >&6; }
26142 # Is the header present?
26143 { echo "$as_me:$LINENO: checking presence" >&5
26144 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h. */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 #include <>
26152 _ACEOF
26153 if { (ac_try="$ac_cpp conftest.$ac_ext"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26157 esac
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26160 ac_status=$?
26161 grep -v '^ *+' conftest.er1 >conftest.err
26162 rm -f conftest.er1
26163 cat conftest.err >&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } >/dev/null && {
26166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26167 test ! -s conftest.err
26168 }; then
26169 ac_header_preproc=yes
26170 else
26171 echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26174 ac_header_preproc=no
26177 rm -f conftest.err conftest.$ac_ext
26178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26179 echo "${ECHO_T}$ac_header_preproc" >&6; }
26181 # So? What about this header?
26182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26183 yes:no: )
26184 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26185 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26187 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26188 ac_header_preproc=yes
26190 no:yes:* )
26191 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26192 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26193 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26194 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26195 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26196 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26198 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26200 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26202 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26203 ( cat <<\_ASBOX
26204 ## ------------------------------- ##
26205 ## Report this to www.asterisk.org ##
26206 ## ------------------------------- ##
26207 _ASBOX
26208 ) | sed "s/^/$as_me: WARNING: /" >&2
26210 esac
26211 { echo "$as_me:$LINENO: checking for " >&5
26212 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26213 if test "${ac_cv_header_+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215 else
26216 ac_cv_header_=$ac_header_preproc
26218 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26219 echo "${ECHO_T}$ac_cv_header_" >&6; }
26222 if test $ac_cv_header_ = yes; then
26223 LOG10_HEADER_FOUND=1
26224 else
26225 LOG10_HEADER_FOUND=0
26229 CPPFLAGS="${saved_cppflags}"
26231 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26232 LOG10_LIB=""
26233 LOG10_INCLUDE=""
26234 else
26235 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26236 LOG10_LIB=""
26238 PBX_LOG10=1
26239 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26241 cat >>confdefs.h <<_ACEOF
26242 #define HAVE_LOG10 1
26243 _ACEOF
26246 cat >>confdefs.h <<_ACEOF
26247 #define HAVE_LOG10_VERSION
26248 _ACEOF
26255 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26256 pbxlibdir=""
26257 # if --with-SIN=DIR has been specified, use it.
26258 if test "x${SIN_DIR}" != "x"; then
26259 if test -d ${SIN_DIR}/lib; then
26260 pbxlibdir="-L${SIN_DIR}/lib"
26261 else
26262 pbxlibdir="-L${SIN_DIR}"
26265 pbxfuncname="sin"
26266 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26267 AST_SIN_FOUND=yes
26268 else
26269 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26270 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26271 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26272 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275 ac_check_lib_save_LIBS=$LIBS
26276 LIBS="-lm ${pbxlibdir} $LIBS"
26277 cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h. */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26284 /* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26287 #ifdef __cplusplus
26288 extern "C"
26289 #endif
26290 char ${pbxfuncname} ();
26292 main ()
26294 return ${pbxfuncname} ();
26296 return 0;
26298 _ACEOF
26299 rm -f conftest.$ac_objext conftest$ac_exeext
26300 if { (ac_try="$ac_link"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_link") 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } && {
26313 test -z "$ac_c_werror_flag" ||
26314 test ! -s conftest.err
26315 } && test -s conftest$ac_exeext &&
26316 $as_test_x conftest$ac_exeext; then
26317 eval "$as_ac_Lib=yes"
26318 else
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 eval "$as_ac_Lib=no"
26325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26326 conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26329 ac_res=`eval echo '${'$as_ac_Lib'}'`
26330 { echo "$as_me:$LINENO: result: $ac_res" >&5
26331 echo "${ECHO_T}$ac_res" >&6; }
26332 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26333 AST_SIN_FOUND=yes
26334 else
26335 AST_SIN_FOUND=no
26340 # now check for the header.
26341 if test "${AST_SIN_FOUND}" = "yes"; then
26342 SIN_LIB="${pbxlibdir} -lm "
26343 # if --with-SIN=DIR has been specified, use it.
26344 if test "x${SIN_DIR}" != "x"; then
26345 SIN_INCLUDE="-I${SIN_DIR}/include"
26347 SIN_INCLUDE="${SIN_INCLUDE} "
26348 if test "x" = "x" ; then # no header, assume found
26349 SIN_HEADER_FOUND="1"
26350 else # check for the header
26351 saved_cppflags="${CPPFLAGS}"
26352 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE}"
26353 if test "${ac_cv_header_+set}" = set; then
26354 { echo "$as_me:$LINENO: checking for " >&5
26355 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26356 if test "${ac_cv_header_+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26359 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26360 echo "${ECHO_T}$ac_cv_header_" >&6; }
26361 else
26362 # Is the header compilable?
26363 { echo "$as_me:$LINENO: checking usability" >&5
26364 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 $ac_includes_default
26372 #include <>
26373 _ACEOF
26374 rm -f conftest.$ac_objext
26375 if { (ac_try="$ac_compile"
26376 case "(($ac_try" in
26377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26379 esac
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381 (eval "$ac_compile") 2>conftest.er1
26382 ac_status=$?
26383 grep -v '^ *+' conftest.er1 >conftest.err
26384 rm -f conftest.er1
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } && {
26388 test -z "$ac_c_werror_flag" ||
26389 test ! -s conftest.err
26390 } && test -s conftest.$ac_objext; then
26391 ac_header_compiler=yes
26392 else
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_compiler=no
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6; }
26403 # Is the header present?
26404 { echo "$as_me:$LINENO: checking presence" >&5
26405 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26406 cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h. */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <>
26413 _ACEOF
26414 if { (ac_try="$ac_cpp conftest.$ac_ext"
26415 case "(($ac_try" in
26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417 *) ac_try_echo=$ac_try;;
26418 esac
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null && {
26427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26428 test ! -s conftest.err
26429 }; then
26430 ac_header_preproc=yes
26431 else
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26435 ac_header_preproc=no
26438 rm -f conftest.err conftest.$ac_ext
26439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26440 echo "${ECHO_T}$ac_header_preproc" >&6; }
26442 # So? What about this header?
26443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26444 yes:no: )
26445 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26446 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26448 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26449 ac_header_preproc=yes
26451 no:yes:* )
26452 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26453 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26454 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26455 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26457 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26459 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26461 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26463 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26464 ( cat <<\_ASBOX
26465 ## ------------------------------- ##
26466 ## Report this to www.asterisk.org ##
26467 ## ------------------------------- ##
26468 _ASBOX
26469 ) | sed "s/^/$as_me: WARNING: /" >&2
26471 esac
26472 { echo "$as_me:$LINENO: checking for " >&5
26473 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26474 if test "${ac_cv_header_+set}" = set; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 else
26477 ac_cv_header_=$ac_header_preproc
26479 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26480 echo "${ECHO_T}$ac_cv_header_" >&6; }
26483 if test $ac_cv_header_ = yes; then
26484 SIN_HEADER_FOUND=1
26485 else
26486 SIN_HEADER_FOUND=0
26490 CPPFLAGS="${saved_cppflags}"
26492 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26493 SIN_LIB=""
26494 SIN_INCLUDE=""
26495 else
26496 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26497 SIN_LIB=""
26499 PBX_SIN=1
26500 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26502 cat >>confdefs.h <<_ACEOF
26503 #define HAVE_SIN 1
26504 _ACEOF
26507 cat >>confdefs.h <<_ACEOF
26508 #define HAVE_SIN_VERSION
26509 _ACEOF
26516 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26517 pbxlibdir=""
26518 # if --with-COS=DIR has been specified, use it.
26519 if test "x${COS_DIR}" != "x"; then
26520 if test -d ${COS_DIR}/lib; then
26521 pbxlibdir="-L${COS_DIR}/lib"
26522 else
26523 pbxlibdir="-L${COS_DIR}"
26526 pbxfuncname="cos"
26527 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26528 AST_COS_FOUND=yes
26529 else
26530 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26531 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26532 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26533 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26534 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 else
26536 ac_check_lib_save_LIBS=$LIBS
26537 LIBS="-lm ${pbxlibdir} $LIBS"
26538 cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h. */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26545 /* Override any GCC internal prototype to avoid an error.
26546 Use char because int might match the return type of a GCC
26547 builtin and then its argument prototype would still apply. */
26548 #ifdef __cplusplus
26549 extern "C"
26550 #endif
26551 char ${pbxfuncname} ();
26553 main ()
26555 return ${pbxfuncname} ();
26557 return 0;
26559 _ACEOF
26560 rm -f conftest.$ac_objext conftest$ac_exeext
26561 if { (ac_try="$ac_link"
26562 case "(($ac_try" in
26563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26564 *) ac_try_echo=$ac_try;;
26565 esac
26566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26567 (eval "$ac_link") 2>conftest.er1
26568 ac_status=$?
26569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && {
26574 test -z "$ac_c_werror_flag" ||
26575 test ! -s conftest.err
26576 } && test -s conftest$ac_exeext &&
26577 $as_test_x conftest$ac_exeext; then
26578 eval "$as_ac_Lib=yes"
26579 else
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26583 eval "$as_ac_Lib=no"
26586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26587 conftest$ac_exeext conftest.$ac_ext
26588 LIBS=$ac_check_lib_save_LIBS
26590 ac_res=`eval echo '${'$as_ac_Lib'}'`
26591 { echo "$as_me:$LINENO: result: $ac_res" >&5
26592 echo "${ECHO_T}$ac_res" >&6; }
26593 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26594 AST_COS_FOUND=yes
26595 else
26596 AST_COS_FOUND=no
26601 # now check for the header.
26602 if test "${AST_COS_FOUND}" = "yes"; then
26603 COS_LIB="${pbxlibdir} -lm "
26604 # if --with-COS=DIR has been specified, use it.
26605 if test "x${COS_DIR}" != "x"; then
26606 COS_INCLUDE="-I${COS_DIR}/include"
26608 COS_INCLUDE="${COS_INCLUDE} "
26609 if test "x" = "x" ; then # no header, assume found
26610 COS_HEADER_FOUND="1"
26611 else # check for the header
26612 saved_cppflags="${CPPFLAGS}"
26613 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE}"
26614 if test "${ac_cv_header_+set}" = set; then
26615 { echo "$as_me:$LINENO: checking for " >&5
26616 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26617 if test "${ac_cv_header_+set}" = set; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26621 echo "${ECHO_T}$ac_cv_header_" >&6; }
26622 else
26623 # Is the header compilable?
26624 { echo "$as_me:$LINENO: checking usability" >&5
26625 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26626 cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h. */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h. */
26632 $ac_includes_default
26633 #include <>
26634 _ACEOF
26635 rm -f conftest.$ac_objext
26636 if { (ac_try="$ac_compile"
26637 case "(($ac_try" in
26638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639 *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_compile") 2>conftest.er1
26643 ac_status=$?
26644 grep -v '^ *+' conftest.er1 >conftest.err
26645 rm -f conftest.er1
26646 cat conftest.err >&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } && {
26649 test -z "$ac_c_werror_flag" ||
26650 test ! -s conftest.err
26651 } && test -s conftest.$ac_objext; then
26652 ac_header_compiler=yes
26653 else
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_header_compiler=no
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26662 echo "${ECHO_T}$ac_header_compiler" >&6; }
26664 # Is the header present?
26665 { echo "$as_me:$LINENO: checking presence" >&5
26666 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26667 cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h. */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 #include <>
26674 _ACEOF
26675 if { (ac_try="$ac_cpp conftest.$ac_ext"
26676 case "(($ac_try" in
26677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26678 *) ac_try_echo=$ac_try;;
26679 esac
26680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26682 ac_status=$?
26683 grep -v '^ *+' conftest.er1 >conftest.err
26684 rm -f conftest.er1
26685 cat conftest.err >&5
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } >/dev/null && {
26688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26689 test ! -s conftest.err
26690 }; then
26691 ac_header_preproc=yes
26692 else
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_header_preproc=no
26699 rm -f conftest.err conftest.$ac_ext
26700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26701 echo "${ECHO_T}$ac_header_preproc" >&6; }
26703 # So? What about this header?
26704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26705 yes:no: )
26706 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26707 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26709 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26710 ac_header_preproc=yes
26712 no:yes:* )
26713 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26714 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26716 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26717 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26718 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26720 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26722 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26724 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26725 ( cat <<\_ASBOX
26726 ## ------------------------------- ##
26727 ## Report this to www.asterisk.org ##
26728 ## ------------------------------- ##
26729 _ASBOX
26730 ) | sed "s/^/$as_me: WARNING: /" >&2
26732 esac
26733 { echo "$as_me:$LINENO: checking for " >&5
26734 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26735 if test "${ac_cv_header_+set}" = set; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 else
26738 ac_cv_header_=$ac_header_preproc
26740 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26741 echo "${ECHO_T}$ac_cv_header_" >&6; }
26744 if test $ac_cv_header_ = yes; then
26745 COS_HEADER_FOUND=1
26746 else
26747 COS_HEADER_FOUND=0
26751 CPPFLAGS="${saved_cppflags}"
26753 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26754 COS_LIB=""
26755 COS_INCLUDE=""
26756 else
26757 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26758 COS_LIB=""
26760 PBX_COS=1
26761 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26763 cat >>confdefs.h <<_ACEOF
26764 #define HAVE_COS 1
26765 _ACEOF
26768 cat >>confdefs.h <<_ACEOF
26769 #define HAVE_COS_VERSION
26770 _ACEOF
26777 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26778 pbxlibdir=""
26779 # if --with-TAN=DIR has been specified, use it.
26780 if test "x${TAN_DIR}" != "x"; then
26781 if test -d ${TAN_DIR}/lib; then
26782 pbxlibdir="-L${TAN_DIR}/lib"
26783 else
26784 pbxlibdir="-L${TAN_DIR}"
26787 pbxfuncname="tan"
26788 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26789 AST_TAN_FOUND=yes
26790 else
26791 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26792 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26793 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26794 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26795 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 else
26797 ac_check_lib_save_LIBS=$LIBS
26798 LIBS="-lm ${pbxlibdir} $LIBS"
26799 cat >conftest.$ac_ext <<_ACEOF
26800 /* confdefs.h. */
26801 _ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h. */
26806 /* Override any GCC internal prototype to avoid an error.
26807 Use char because int might match the return type of a GCC
26808 builtin and then its argument prototype would still apply. */
26809 #ifdef __cplusplus
26810 extern "C"
26811 #endif
26812 char ${pbxfuncname} ();
26814 main ()
26816 return ${pbxfuncname} ();
26818 return 0;
26820 _ACEOF
26821 rm -f conftest.$ac_objext conftest$ac_exeext
26822 if { (ac_try="$ac_link"
26823 case "(($ac_try" in
26824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825 *) ac_try_echo=$ac_try;;
26826 esac
26827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26828 (eval "$ac_link") 2>conftest.er1
26829 ac_status=$?
26830 grep -v '^ *+' conftest.er1 >conftest.err
26831 rm -f conftest.er1
26832 cat conftest.err >&5
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); } && {
26835 test -z "$ac_c_werror_flag" ||
26836 test ! -s conftest.err
26837 } && test -s conftest$ac_exeext &&
26838 $as_test_x conftest$ac_exeext; then
26839 eval "$as_ac_Lib=yes"
26840 else
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26844 eval "$as_ac_Lib=no"
26847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26848 conftest$ac_exeext conftest.$ac_ext
26849 LIBS=$ac_check_lib_save_LIBS
26851 ac_res=`eval echo '${'$as_ac_Lib'}'`
26852 { echo "$as_me:$LINENO: result: $ac_res" >&5
26853 echo "${ECHO_T}$ac_res" >&6; }
26854 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26855 AST_TAN_FOUND=yes
26856 else
26857 AST_TAN_FOUND=no
26862 # now check for the header.
26863 if test "${AST_TAN_FOUND}" = "yes"; then
26864 TAN_LIB="${pbxlibdir} -lm "
26865 # if --with-TAN=DIR has been specified, use it.
26866 if test "x${TAN_DIR}" != "x"; then
26867 TAN_INCLUDE="-I${TAN_DIR}/include"
26869 TAN_INCLUDE="${TAN_INCLUDE} "
26870 if test "x" = "x" ; then # no header, assume found
26871 TAN_HEADER_FOUND="1"
26872 else # check for the header
26873 saved_cppflags="${CPPFLAGS}"
26874 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE}"
26875 if test "${ac_cv_header_+set}" = set; then
26876 { echo "$as_me:$LINENO: checking for " >&5
26877 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26878 if test "${ac_cv_header_+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26881 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26882 echo "${ECHO_T}$ac_cv_header_" >&6; }
26883 else
26884 # Is the header compilable?
26885 { echo "$as_me:$LINENO: checking usability" >&5
26886 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26887 cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h. */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h. */
26893 $ac_includes_default
26894 #include <>
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (ac_try="$ac_compile"
26898 case "(($ac_try" in
26899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900 *) ac_try_echo=$ac_try;;
26901 esac
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903 (eval "$ac_compile") 2>conftest.er1
26904 ac_status=$?
26905 grep -v '^ *+' conftest.er1 >conftest.err
26906 rm -f conftest.er1
26907 cat conftest.err >&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } && {
26910 test -z "$ac_c_werror_flag" ||
26911 test ! -s conftest.err
26912 } && test -s conftest.$ac_objext; then
26913 ac_header_compiler=yes
26914 else
26915 echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26918 ac_header_compiler=no
26921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26923 echo "${ECHO_T}$ac_header_compiler" >&6; }
26925 # Is the header present?
26926 { echo "$as_me:$LINENO: checking presence" >&5
26927 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26928 cat >conftest.$ac_ext <<_ACEOF
26929 /* confdefs.h. */
26930 _ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26934 #include <>
26935 _ACEOF
26936 if { (ac_try="$ac_cpp conftest.$ac_ext"
26937 case "(($ac_try" in
26938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939 *) ac_try_echo=$ac_try;;
26940 esac
26941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26943 ac_status=$?
26944 grep -v '^ *+' conftest.er1 >conftest.err
26945 rm -f conftest.er1
26946 cat conftest.err >&5
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); } >/dev/null && {
26949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26950 test ! -s conftest.err
26951 }; then
26952 ac_header_preproc=yes
26953 else
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_header_preproc=no
26960 rm -f conftest.err conftest.$ac_ext
26961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26962 echo "${ECHO_T}$ac_header_preproc" >&6; }
26964 # So? What about this header?
26965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26966 yes:no: )
26967 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26968 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26970 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26971 ac_header_preproc=yes
26973 no:yes:* )
26974 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26975 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26976 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26977 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26979 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26980 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26981 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26982 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26983 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26984 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26985 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26986 ( cat <<\_ASBOX
26987 ## ------------------------------- ##
26988 ## Report this to www.asterisk.org ##
26989 ## ------------------------------- ##
26990 _ASBOX
26991 ) | sed "s/^/$as_me: WARNING: /" >&2
26993 esac
26994 { echo "$as_me:$LINENO: checking for " >&5
26995 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26996 if test "${ac_cv_header_+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 else
26999 ac_cv_header_=$ac_header_preproc
27001 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27002 echo "${ECHO_T}$ac_cv_header_" >&6; }
27005 if test $ac_cv_header_ = yes; then
27006 TAN_HEADER_FOUND=1
27007 else
27008 TAN_HEADER_FOUND=0
27012 CPPFLAGS="${saved_cppflags}"
27014 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
27015 TAN_LIB=""
27016 TAN_INCLUDE=""
27017 else
27018 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27019 TAN_LIB=""
27021 PBX_TAN=1
27022 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27024 cat >>confdefs.h <<_ACEOF
27025 #define HAVE_TAN 1
27026 _ACEOF
27029 cat >>confdefs.h <<_ACEOF
27030 #define HAVE_TAN_VERSION
27031 _ACEOF
27038 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
27039 pbxlibdir=""
27040 # if --with-ASIN=DIR has been specified, use it.
27041 if test "x${ASIN_DIR}" != "x"; then
27042 if test -d ${ASIN_DIR}/lib; then
27043 pbxlibdir="-L${ASIN_DIR}/lib"
27044 else
27045 pbxlibdir="-L${ASIN_DIR}"
27048 pbxfuncname="asin"
27049 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27050 AST_ASIN_FOUND=yes
27051 else
27052 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27053 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27054 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27055 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27057 else
27058 ac_check_lib_save_LIBS=$LIBS
27059 LIBS="-lm ${pbxlibdir} $LIBS"
27060 cat >conftest.$ac_ext <<_ACEOF
27061 /* confdefs.h. */
27062 _ACEOF
27063 cat confdefs.h >>conftest.$ac_ext
27064 cat >>conftest.$ac_ext <<_ACEOF
27065 /* end confdefs.h. */
27067 /* Override any GCC internal prototype to avoid an error.
27068 Use char because int might match the return type of a GCC
27069 builtin and then its argument prototype would still apply. */
27070 #ifdef __cplusplus
27071 extern "C"
27072 #endif
27073 char ${pbxfuncname} ();
27075 main ()
27077 return ${pbxfuncname} ();
27079 return 0;
27081 _ACEOF
27082 rm -f conftest.$ac_objext conftest$ac_exeext
27083 if { (ac_try="$ac_link"
27084 case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27087 esac
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_link") 2>conftest.er1
27090 ac_status=$?
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } && {
27096 test -z "$ac_c_werror_flag" ||
27097 test ! -s conftest.err
27098 } && test -s conftest$ac_exeext &&
27099 $as_test_x conftest$ac_exeext; then
27100 eval "$as_ac_Lib=yes"
27101 else
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 eval "$as_ac_Lib=no"
27108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27109 conftest$ac_exeext conftest.$ac_ext
27110 LIBS=$ac_check_lib_save_LIBS
27112 ac_res=`eval echo '${'$as_ac_Lib'}'`
27113 { echo "$as_me:$LINENO: result: $ac_res" >&5
27114 echo "${ECHO_T}$ac_res" >&6; }
27115 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27116 AST_ASIN_FOUND=yes
27117 else
27118 AST_ASIN_FOUND=no
27123 # now check for the header.
27124 if test "${AST_ASIN_FOUND}" = "yes"; then
27125 ASIN_LIB="${pbxlibdir} -lm "
27126 # if --with-ASIN=DIR has been specified, use it.
27127 if test "x${ASIN_DIR}" != "x"; then
27128 ASIN_INCLUDE="-I${ASIN_DIR}/include"
27130 ASIN_INCLUDE="${ASIN_INCLUDE} "
27131 if test "x" = "x" ; then # no header, assume found
27132 ASIN_HEADER_FOUND="1"
27133 else # check for the header
27134 saved_cppflags="${CPPFLAGS}"
27135 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE}"
27136 if test "${ac_cv_header_+set}" = set; then
27137 { echo "$as_me:$LINENO: checking for " >&5
27138 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27139 if test "${ac_cv_header_+set}" = set; then
27140 echo $ECHO_N "(cached) $ECHO_C" >&6
27142 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27143 echo "${ECHO_T}$ac_cv_header_" >&6; }
27144 else
27145 # Is the header compilable?
27146 { echo "$as_me:$LINENO: checking usability" >&5
27147 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27148 cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h. */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h. */
27154 $ac_includes_default
27155 #include <>
27156 _ACEOF
27157 rm -f conftest.$ac_objext
27158 if { (ac_try="$ac_compile"
27159 case "(($ac_try" in
27160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161 *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164 (eval "$ac_compile") 2>conftest.er1
27165 ac_status=$?
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && {
27171 test -z "$ac_c_werror_flag" ||
27172 test ! -s conftest.err
27173 } && test -s conftest.$ac_objext; then
27174 ac_header_compiler=yes
27175 else
27176 echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27179 ac_header_compiler=no
27182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27184 echo "${ECHO_T}$ac_header_compiler" >&6; }
27186 # Is the header present?
27187 { echo "$as_me:$LINENO: checking presence" >&5
27188 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27189 cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h. */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 #include <>
27196 _ACEOF
27197 if { (ac_try="$ac_cpp conftest.$ac_ext"
27198 case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27204 ac_status=$?
27205 grep -v '^ *+' conftest.er1 >conftest.err
27206 rm -f conftest.er1
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } >/dev/null && {
27210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27211 test ! -s conftest.err
27212 }; then
27213 ac_header_preproc=yes
27214 else
27215 echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27218 ac_header_preproc=no
27221 rm -f conftest.err conftest.$ac_ext
27222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27223 echo "${ECHO_T}$ac_header_preproc" >&6; }
27225 # So? What about this header?
27226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27227 yes:no: )
27228 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27229 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27230 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27231 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27232 ac_header_preproc=yes
27234 no:yes:* )
27235 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27236 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27237 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27238 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27239 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27240 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27241 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27242 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27244 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27246 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27247 ( cat <<\_ASBOX
27248 ## ------------------------------- ##
27249 ## Report this to www.asterisk.org ##
27250 ## ------------------------------- ##
27251 _ASBOX
27252 ) | sed "s/^/$as_me: WARNING: /" >&2
27254 esac
27255 { echo "$as_me:$LINENO: checking for " >&5
27256 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27257 if test "${ac_cv_header_+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260 ac_cv_header_=$ac_header_preproc
27262 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27263 echo "${ECHO_T}$ac_cv_header_" >&6; }
27266 if test $ac_cv_header_ = yes; then
27267 ASIN_HEADER_FOUND=1
27268 else
27269 ASIN_HEADER_FOUND=0
27273 CPPFLAGS="${saved_cppflags}"
27275 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27276 ASIN_LIB=""
27277 ASIN_INCLUDE=""
27278 else
27279 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27280 ASIN_LIB=""
27282 PBX_ASIN=1
27283 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27285 cat >>confdefs.h <<_ACEOF
27286 #define HAVE_ASIN 1
27287 _ACEOF
27290 cat >>confdefs.h <<_ACEOF
27291 #define HAVE_ASIN_VERSION
27292 _ACEOF
27299 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27300 pbxlibdir=""
27301 # if --with-ACOS=DIR has been specified, use it.
27302 if test "x${ACOS_DIR}" != "x"; then
27303 if test -d ${ACOS_DIR}/lib; then
27304 pbxlibdir="-L${ACOS_DIR}/lib"
27305 else
27306 pbxlibdir="-L${ACOS_DIR}"
27309 pbxfuncname="acos"
27310 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27311 AST_ACOS_FOUND=yes
27312 else
27313 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27314 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27315 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27316 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319 ac_check_lib_save_LIBS=$LIBS
27320 LIBS="-lm ${pbxlibdir} $LIBS"
27321 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h. */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27328 /* Override any GCC internal prototype to avoid an error.
27329 Use char because int might match the return type of a GCC
27330 builtin and then its argument prototype would still apply. */
27331 #ifdef __cplusplus
27332 extern "C"
27333 #endif
27334 char ${pbxfuncname} ();
27336 main ()
27338 return ${pbxfuncname} ();
27340 return 0;
27342 _ACEOF
27343 rm -f conftest.$ac_objext conftest$ac_exeext
27344 if { (ac_try="$ac_link"
27345 case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27348 esac
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_link") 2>conftest.er1
27351 ac_status=$?
27352 grep -v '^ *+' conftest.er1 >conftest.err
27353 rm -f conftest.er1
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest$ac_exeext &&
27360 $as_test_x conftest$ac_exeext; then
27361 eval "$as_ac_Lib=yes"
27362 else
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27366 eval "$as_ac_Lib=no"
27369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27370 conftest$ac_exeext conftest.$ac_ext
27371 LIBS=$ac_check_lib_save_LIBS
27373 ac_res=`eval echo '${'$as_ac_Lib'}'`
27374 { echo "$as_me:$LINENO: result: $ac_res" >&5
27375 echo "${ECHO_T}$ac_res" >&6; }
27376 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27377 AST_ACOS_FOUND=yes
27378 else
27379 AST_ACOS_FOUND=no
27384 # now check for the header.
27385 if test "${AST_ACOS_FOUND}" = "yes"; then
27386 ACOS_LIB="${pbxlibdir} -lm "
27387 # if --with-ACOS=DIR has been specified, use it.
27388 if test "x${ACOS_DIR}" != "x"; then
27389 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27391 ACOS_INCLUDE="${ACOS_INCLUDE} "
27392 if test "x" = "x" ; then # no header, assume found
27393 ACOS_HEADER_FOUND="1"
27394 else # check for the header
27395 saved_cppflags="${CPPFLAGS}"
27396 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE}"
27397 if test "${ac_cv_header_+set}" = set; then
27398 { echo "$as_me:$LINENO: checking for " >&5
27399 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27400 if test "${ac_cv_header_+set}" = set; then
27401 echo $ECHO_N "(cached) $ECHO_C" >&6
27403 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27404 echo "${ECHO_T}$ac_cv_header_" >&6; }
27405 else
27406 # Is the header compilable?
27407 { echo "$as_me:$LINENO: checking usability" >&5
27408 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27409 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h. */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27415 $ac_includes_default
27416 #include <>
27417 _ACEOF
27418 rm -f conftest.$ac_objext
27419 if { (ac_try="$ac_compile"
27420 case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_compile") 2>conftest.er1
27426 ac_status=$?
27427 grep -v '^ *+' conftest.er1 >conftest.err
27428 rm -f conftest.er1
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } && {
27432 test -z "$ac_c_werror_flag" ||
27433 test ! -s conftest.err
27434 } && test -s conftest.$ac_objext; then
27435 ac_header_compiler=yes
27436 else
27437 echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27440 ac_header_compiler=no
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27445 echo "${ECHO_T}$ac_header_compiler" >&6; }
27447 # Is the header present?
27448 { echo "$as_me:$LINENO: checking presence" >&5
27449 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27450 cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h. */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h. */
27456 #include <>
27457 _ACEOF
27458 if { (ac_try="$ac_cpp conftest.$ac_ext"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } >/dev/null && {
27471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27472 test ! -s conftest.err
27473 }; then
27474 ac_header_preproc=yes
27475 else
27476 echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27479 ac_header_preproc=no
27482 rm -f conftest.err conftest.$ac_ext
27483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27484 echo "${ECHO_T}$ac_header_preproc" >&6; }
27486 # So? What about this header?
27487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27488 yes:no: )
27489 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27490 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27491 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27492 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27493 ac_header_preproc=yes
27495 no:yes:* )
27496 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27497 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27499 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27501 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27503 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27505 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27507 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27508 ( cat <<\_ASBOX
27509 ## ------------------------------- ##
27510 ## Report this to www.asterisk.org ##
27511 ## ------------------------------- ##
27512 _ASBOX
27513 ) | sed "s/^/$as_me: WARNING: /" >&2
27515 esac
27516 { echo "$as_me:$LINENO: checking for " >&5
27517 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27518 if test "${ac_cv_header_+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27520 else
27521 ac_cv_header_=$ac_header_preproc
27523 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27524 echo "${ECHO_T}$ac_cv_header_" >&6; }
27527 if test $ac_cv_header_ = yes; then
27528 ACOS_HEADER_FOUND=1
27529 else
27530 ACOS_HEADER_FOUND=0
27534 CPPFLAGS="${saved_cppflags}"
27536 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27537 ACOS_LIB=""
27538 ACOS_INCLUDE=""
27539 else
27540 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27541 ACOS_LIB=""
27543 PBX_ACOS=1
27544 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27546 cat >>confdefs.h <<_ACEOF
27547 #define HAVE_ACOS 1
27548 _ACEOF
27551 cat >>confdefs.h <<_ACEOF
27552 #define HAVE_ACOS_VERSION
27553 _ACEOF
27560 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27561 pbxlibdir=""
27562 # if --with-ATAN=DIR has been specified, use it.
27563 if test "x${ATAN_DIR}" != "x"; then
27564 if test -d ${ATAN_DIR}/lib; then
27565 pbxlibdir="-L${ATAN_DIR}/lib"
27566 else
27567 pbxlibdir="-L${ATAN_DIR}"
27570 pbxfuncname="atan"
27571 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27572 AST_ATAN_FOUND=yes
27573 else
27574 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27575 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27576 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27577 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27579 else
27580 ac_check_lib_save_LIBS=$LIBS
27581 LIBS="-lm ${pbxlibdir} $LIBS"
27582 cat >conftest.$ac_ext <<_ACEOF
27583 /* confdefs.h. */
27584 _ACEOF
27585 cat confdefs.h >>conftest.$ac_ext
27586 cat >>conftest.$ac_ext <<_ACEOF
27587 /* end confdefs.h. */
27589 /* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592 #ifdef __cplusplus
27593 extern "C"
27594 #endif
27595 char ${pbxfuncname} ();
27597 main ()
27599 return ${pbxfuncname} ();
27601 return 0;
27603 _ACEOF
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (ac_try="$ac_link"
27606 case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_link") 2>conftest.er1
27612 ac_status=$?
27613 grep -v '^ *+' conftest.er1 >conftest.err
27614 rm -f conftest.er1
27615 cat conftest.err >&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } && {
27618 test -z "$ac_c_werror_flag" ||
27619 test ! -s conftest.err
27620 } && test -s conftest$ac_exeext &&
27621 $as_test_x conftest$ac_exeext; then
27622 eval "$as_ac_Lib=yes"
27623 else
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 eval "$as_ac_Lib=no"
27630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27631 conftest$ac_exeext conftest.$ac_ext
27632 LIBS=$ac_check_lib_save_LIBS
27634 ac_res=`eval echo '${'$as_ac_Lib'}'`
27635 { echo "$as_me:$LINENO: result: $ac_res" >&5
27636 echo "${ECHO_T}$ac_res" >&6; }
27637 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27638 AST_ATAN_FOUND=yes
27639 else
27640 AST_ATAN_FOUND=no
27645 # now check for the header.
27646 if test "${AST_ATAN_FOUND}" = "yes"; then
27647 ATAN_LIB="${pbxlibdir} -lm "
27648 # if --with-ATAN=DIR has been specified, use it.
27649 if test "x${ATAN_DIR}" != "x"; then
27650 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27652 ATAN_INCLUDE="${ATAN_INCLUDE} "
27653 if test "x" = "x" ; then # no header, assume found
27654 ATAN_HEADER_FOUND="1"
27655 else # check for the header
27656 saved_cppflags="${CPPFLAGS}"
27657 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE}"
27658 if test "${ac_cv_header_+set}" = set; then
27659 { echo "$as_me:$LINENO: checking for " >&5
27660 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27661 if test "${ac_cv_header_+set}" = set; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27664 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27665 echo "${ECHO_T}$ac_cv_header_" >&6; }
27666 else
27667 # Is the header compilable?
27668 { echo "$as_me:$LINENO: checking usability" >&5
27669 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27670 cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h. */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h. */
27676 $ac_includes_default
27677 #include <>
27678 _ACEOF
27679 rm -f conftest.$ac_objext
27680 if { (ac_try="$ac_compile"
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_compile") 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); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27696 ac_header_compiler=yes
27697 else
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_header_compiler=no
27704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27706 echo "${ECHO_T}$ac_header_compiler" >&6; }
27708 # Is the header present?
27709 { echo "$as_me:$LINENO: checking presence" >&5
27710 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27711 cat >conftest.$ac_ext <<_ACEOF
27712 /* confdefs.h. */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h. */
27717 #include <>
27718 _ACEOF
27719 if { (ac_try="$ac_cpp conftest.$ac_ext"
27720 case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27723 esac
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27726 ac_status=$?
27727 grep -v '^ *+' conftest.er1 >conftest.err
27728 rm -f conftest.er1
27729 cat conftest.err >&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); } >/dev/null && {
27732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27733 test ! -s conftest.err
27734 }; then
27735 ac_header_preproc=yes
27736 else
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27740 ac_header_preproc=no
27743 rm -f conftest.err conftest.$ac_ext
27744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27745 echo "${ECHO_T}$ac_header_preproc" >&6; }
27747 # So? What about this header?
27748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27749 yes:no: )
27750 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27751 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27752 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27753 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27754 ac_header_preproc=yes
27756 no:yes:* )
27757 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27758 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27759 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27760 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27761 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27762 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27764 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27765 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27766 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27767 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27768 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27769 ( cat <<\_ASBOX
27770 ## ------------------------------- ##
27771 ## Report this to www.asterisk.org ##
27772 ## ------------------------------- ##
27773 _ASBOX
27774 ) | sed "s/^/$as_me: WARNING: /" >&2
27776 esac
27777 { echo "$as_me:$LINENO: checking for " >&5
27778 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27779 if test "${ac_cv_header_+set}" = set; then
27780 echo $ECHO_N "(cached) $ECHO_C" >&6
27781 else
27782 ac_cv_header_=$ac_header_preproc
27784 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27785 echo "${ECHO_T}$ac_cv_header_" >&6; }
27788 if test $ac_cv_header_ = yes; then
27789 ATAN_HEADER_FOUND=1
27790 else
27791 ATAN_HEADER_FOUND=0
27795 CPPFLAGS="${saved_cppflags}"
27797 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27798 ATAN_LIB=""
27799 ATAN_INCLUDE=""
27800 else
27801 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27802 ATAN_LIB=""
27804 PBX_ATAN=1
27805 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27807 cat >>confdefs.h <<_ACEOF
27808 #define HAVE_ATAN 1
27809 _ACEOF
27812 cat >>confdefs.h <<_ACEOF
27813 #define HAVE_ATAN_VERSION
27814 _ACEOF
27821 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27822 pbxlibdir=""
27823 # if --with-ATAN2=DIR has been specified, use it.
27824 if test "x${ATAN2_DIR}" != "x"; then
27825 if test -d ${ATAN2_DIR}/lib; then
27826 pbxlibdir="-L${ATAN2_DIR}/lib"
27827 else
27828 pbxlibdir="-L${ATAN2_DIR}"
27831 pbxfuncname="atan2"
27832 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27833 AST_ATAN2_FOUND=yes
27834 else
27835 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27836 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27837 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27838 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841 ac_check_lib_save_LIBS=$LIBS
27842 LIBS="-lm ${pbxlibdir} $LIBS"
27843 cat >conftest.$ac_ext <<_ACEOF
27844 /* confdefs.h. */
27845 _ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h. */
27850 /* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853 #ifdef __cplusplus
27854 extern "C"
27855 #endif
27856 char ${pbxfuncname} ();
27858 main ()
27860 return ${pbxfuncname} ();
27862 return 0;
27864 _ACEOF
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870 esac
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27873 ac_status=$?
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } && {
27879 test -z "$ac_c_werror_flag" ||
27880 test ! -s conftest.err
27881 } && test -s conftest$ac_exeext &&
27882 $as_test_x conftest$ac_exeext; then
27883 eval "$as_ac_Lib=yes"
27884 else
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 eval "$as_ac_Lib=no"
27891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27892 conftest$ac_exeext conftest.$ac_ext
27893 LIBS=$ac_check_lib_save_LIBS
27895 ac_res=`eval echo '${'$as_ac_Lib'}'`
27896 { echo "$as_me:$LINENO: result: $ac_res" >&5
27897 echo "${ECHO_T}$ac_res" >&6; }
27898 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27899 AST_ATAN2_FOUND=yes
27900 else
27901 AST_ATAN2_FOUND=no
27906 # now check for the header.
27907 if test "${AST_ATAN2_FOUND}" = "yes"; then
27908 ATAN2_LIB="${pbxlibdir} -lm "
27909 # if --with-ATAN2=DIR has been specified, use it.
27910 if test "x${ATAN2_DIR}" != "x"; then
27911 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27913 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27914 if test "x" = "x" ; then # no header, assume found
27915 ATAN2_HEADER_FOUND="1"
27916 else # check for the header
27917 saved_cppflags="${CPPFLAGS}"
27918 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE}"
27919 if test "${ac_cv_header_+set}" = set; then
27920 { echo "$as_me:$LINENO: checking for " >&5
27921 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27922 if test "${ac_cv_header_+set}" = set; then
27923 echo $ECHO_N "(cached) $ECHO_C" >&6
27925 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27926 echo "${ECHO_T}$ac_cv_header_" >&6; }
27927 else
27928 # Is the header compilable?
27929 { echo "$as_me:$LINENO: checking usability" >&5
27930 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h. */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27937 $ac_includes_default
27938 #include <>
27939 _ACEOF
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_compile") 2>conftest.er1
27948 ac_status=$?
27949 grep -v '^ *+' conftest.er1 >conftest.err
27950 rm -f conftest.er1
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } && {
27954 test -z "$ac_c_werror_flag" ||
27955 test ! -s conftest.err
27956 } && test -s conftest.$ac_objext; then
27957 ac_header_compiler=yes
27958 else
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 ac_header_compiler=no
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27967 echo "${ECHO_T}$ac_header_compiler" >&6; }
27969 # Is the header present?
27970 { echo "$as_me:$LINENO: checking presence" >&5
27971 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27972 cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h. */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h. */
27978 #include <>
27979 _ACEOF
27980 if { (ac_try="$ac_cpp conftest.$ac_ext"
27981 case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27987 ac_status=$?
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } >/dev/null && {
27993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27994 test ! -s conftest.err
27995 }; then
27996 ac_header_preproc=yes
27997 else
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ac_header_preproc=no
28004 rm -f conftest.err conftest.$ac_ext
28005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28006 echo "${ECHO_T}$ac_header_preproc" >&6; }
28008 # So? What about this header?
28009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28010 yes:no: )
28011 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28012 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28013 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28014 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28015 ac_header_preproc=yes
28017 no:yes:* )
28018 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28019 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28021 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28022 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28023 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28024 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28025 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28026 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28027 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28028 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28029 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28030 ( cat <<\_ASBOX
28031 ## ------------------------------- ##
28032 ## Report this to www.asterisk.org ##
28033 ## ------------------------------- ##
28034 _ASBOX
28035 ) | sed "s/^/$as_me: WARNING: /" >&2
28037 esac
28038 { echo "$as_me:$LINENO: checking for " >&5
28039 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28040 if test "${ac_cv_header_+set}" = set; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28042 else
28043 ac_cv_header_=$ac_header_preproc
28045 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28046 echo "${ECHO_T}$ac_cv_header_" >&6; }
28049 if test $ac_cv_header_ = yes; then
28050 ATAN2_HEADER_FOUND=1
28051 else
28052 ATAN2_HEADER_FOUND=0
28056 CPPFLAGS="${saved_cppflags}"
28058 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
28059 ATAN2_LIB=""
28060 ATAN2_INCLUDE=""
28061 else
28062 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28063 ATAN2_LIB=""
28065 PBX_ATAN2=1
28066 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28068 cat >>confdefs.h <<_ACEOF
28069 #define HAVE_ATAN2 1
28070 _ACEOF
28073 cat >>confdefs.h <<_ACEOF
28074 #define HAVE_ATAN2_VERSION
28075 _ACEOF
28082 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
28083 pbxlibdir=""
28084 # if --with-POW=DIR has been specified, use it.
28085 if test "x${POW_DIR}" != "x"; then
28086 if test -d ${POW_DIR}/lib; then
28087 pbxlibdir="-L${POW_DIR}/lib"
28088 else
28089 pbxlibdir="-L${POW_DIR}"
28092 pbxfuncname="pow"
28093 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28094 AST_POW_FOUND=yes
28095 else
28096 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28097 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28098 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28099 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102 ac_check_lib_save_LIBS=$LIBS
28103 LIBS="-lm ${pbxlibdir} $LIBS"
28104 cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h. */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28111 /* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28114 #ifdef __cplusplus
28115 extern "C"
28116 #endif
28117 char ${pbxfuncname} ();
28119 main ()
28121 return ${pbxfuncname} ();
28123 return 0;
28125 _ACEOF
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (ac_try="$ac_link"
28128 case "(($ac_try" in
28129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130 *) ac_try_echo=$ac_try;;
28131 esac
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_link") 2>conftest.er1
28134 ac_status=$?
28135 grep -v '^ *+' conftest.er1 >conftest.err
28136 rm -f conftest.er1
28137 cat conftest.err >&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && {
28140 test -z "$ac_c_werror_flag" ||
28141 test ! -s conftest.err
28142 } && test -s conftest$ac_exeext &&
28143 $as_test_x conftest$ac_exeext; then
28144 eval "$as_ac_Lib=yes"
28145 else
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 eval "$as_ac_Lib=no"
28152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28153 conftest$ac_exeext conftest.$ac_ext
28154 LIBS=$ac_check_lib_save_LIBS
28156 ac_res=`eval echo '${'$as_ac_Lib'}'`
28157 { echo "$as_me:$LINENO: result: $ac_res" >&5
28158 echo "${ECHO_T}$ac_res" >&6; }
28159 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28160 AST_POW_FOUND=yes
28161 else
28162 AST_POW_FOUND=no
28167 # now check for the header.
28168 if test "${AST_POW_FOUND}" = "yes"; then
28169 POW_LIB="${pbxlibdir} -lm "
28170 # if --with-POW=DIR has been specified, use it.
28171 if test "x${POW_DIR}" != "x"; then
28172 POW_INCLUDE="-I${POW_DIR}/include"
28174 POW_INCLUDE="${POW_INCLUDE} "
28175 if test "x" = "x" ; then # no header, assume found
28176 POW_HEADER_FOUND="1"
28177 else # check for the header
28178 saved_cppflags="${CPPFLAGS}"
28179 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE}"
28180 if test "${ac_cv_header_+set}" = set; then
28181 { echo "$as_me:$LINENO: checking for " >&5
28182 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28183 if test "${ac_cv_header_+set}" = set; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28186 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28187 echo "${ECHO_T}$ac_cv_header_" >&6; }
28188 else
28189 # Is the header compilable?
28190 { echo "$as_me:$LINENO: checking usability" >&5
28191 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28192 cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h. */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h. */
28198 $ac_includes_default
28199 #include <>
28200 _ACEOF
28201 rm -f conftest.$ac_objext
28202 if { (ac_try="$ac_compile"
28203 case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_compile") 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } && {
28215 test -z "$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 } && test -s conftest.$ac_objext; then
28218 ac_header_compiler=yes
28219 else
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 ac_header_compiler=no
28226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28228 echo "${ECHO_T}$ac_header_compiler" >&6; }
28230 # Is the header present?
28231 { echo "$as_me:$LINENO: checking presence" >&5
28232 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28233 cat >conftest.$ac_ext <<_ACEOF
28234 /* confdefs.h. */
28235 _ACEOF
28236 cat confdefs.h >>conftest.$ac_ext
28237 cat >>conftest.$ac_ext <<_ACEOF
28238 /* end confdefs.h. */
28239 #include <>
28240 _ACEOF
28241 if { (ac_try="$ac_cpp conftest.$ac_ext"
28242 case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28245 esac
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28248 ac_status=$?
28249 grep -v '^ *+' conftest.er1 >conftest.err
28250 rm -f conftest.er1
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); } >/dev/null && {
28254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28255 test ! -s conftest.err
28256 }; then
28257 ac_header_preproc=yes
28258 else
28259 echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28262 ac_header_preproc=no
28265 rm -f conftest.err conftest.$ac_ext
28266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28267 echo "${ECHO_T}$ac_header_preproc" >&6; }
28269 # So? What about this header?
28270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28271 yes:no: )
28272 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28273 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28274 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28275 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28276 ac_header_preproc=yes
28278 no:yes:* )
28279 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28280 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28281 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28282 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28283 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28284 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28285 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28286 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28287 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28288 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28289 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28290 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28291 ( cat <<\_ASBOX
28292 ## ------------------------------- ##
28293 ## Report this to www.asterisk.org ##
28294 ## ------------------------------- ##
28295 _ASBOX
28296 ) | sed "s/^/$as_me: WARNING: /" >&2
28298 esac
28299 { echo "$as_me:$LINENO: checking for " >&5
28300 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28301 if test "${ac_cv_header_+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28303 else
28304 ac_cv_header_=$ac_header_preproc
28306 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28307 echo "${ECHO_T}$ac_cv_header_" >&6; }
28310 if test $ac_cv_header_ = yes; then
28311 POW_HEADER_FOUND=1
28312 else
28313 POW_HEADER_FOUND=0
28317 CPPFLAGS="${saved_cppflags}"
28319 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28320 POW_LIB=""
28321 POW_INCLUDE=""
28322 else
28323 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28324 POW_LIB=""
28326 PBX_POW=1
28327 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28329 cat >>confdefs.h <<_ACEOF
28330 #define HAVE_POW 1
28331 _ACEOF
28334 cat >>confdefs.h <<_ACEOF
28335 #define HAVE_POW_VERSION
28336 _ACEOF
28343 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28344 pbxlibdir=""
28345 # if --with-SQRT=DIR has been specified, use it.
28346 if test "x${SQRT_DIR}" != "x"; then
28347 if test -d ${SQRT_DIR}/lib; then
28348 pbxlibdir="-L${SQRT_DIR}/lib"
28349 else
28350 pbxlibdir="-L${SQRT_DIR}"
28353 pbxfuncname="sqrt"
28354 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28355 AST_SQRT_FOUND=yes
28356 else
28357 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28358 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28359 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28360 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28362 else
28363 ac_check_lib_save_LIBS=$LIBS
28364 LIBS="-lm ${pbxlibdir} $LIBS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h. */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28372 /* Override any GCC internal prototype to avoid an error.
28373 Use char because int might match the return type of a GCC
28374 builtin and then its argument prototype would still apply. */
28375 #ifdef __cplusplus
28376 extern "C"
28377 #endif
28378 char ${pbxfuncname} ();
28380 main ()
28382 return ${pbxfuncname} ();
28384 return 0;
28386 _ACEOF
28387 rm -f conftest.$ac_objext conftest$ac_exeext
28388 if { (ac_try="$ac_link"
28389 case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392 esac
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_link") 2>conftest.er1
28395 ac_status=$?
28396 grep -v '^ *+' conftest.er1 >conftest.err
28397 rm -f conftest.er1
28398 cat conftest.err >&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } && {
28401 test -z "$ac_c_werror_flag" ||
28402 test ! -s conftest.err
28403 } && test -s conftest$ac_exeext &&
28404 $as_test_x conftest$ac_exeext; then
28405 eval "$as_ac_Lib=yes"
28406 else
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 eval "$as_ac_Lib=no"
28413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28414 conftest$ac_exeext conftest.$ac_ext
28415 LIBS=$ac_check_lib_save_LIBS
28417 ac_res=`eval echo '${'$as_ac_Lib'}'`
28418 { echo "$as_me:$LINENO: result: $ac_res" >&5
28419 echo "${ECHO_T}$ac_res" >&6; }
28420 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28421 AST_SQRT_FOUND=yes
28422 else
28423 AST_SQRT_FOUND=no
28428 # now check for the header.
28429 if test "${AST_SQRT_FOUND}" = "yes"; then
28430 SQRT_LIB="${pbxlibdir} -lm "
28431 # if --with-SQRT=DIR has been specified, use it.
28432 if test "x${SQRT_DIR}" != "x"; then
28433 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28435 SQRT_INCLUDE="${SQRT_INCLUDE} "
28436 if test "x" = "x" ; then # no header, assume found
28437 SQRT_HEADER_FOUND="1"
28438 else # check for the header
28439 saved_cppflags="${CPPFLAGS}"
28440 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE}"
28441 if test "${ac_cv_header_+set}" = set; then
28442 { echo "$as_me:$LINENO: checking for " >&5
28443 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28444 if test "${ac_cv_header_+set}" = set; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28447 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28448 echo "${ECHO_T}$ac_cv_header_" >&6; }
28449 else
28450 # Is the header compilable?
28451 { echo "$as_me:$LINENO: checking usability" >&5
28452 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28453 cat >conftest.$ac_ext <<_ACEOF
28454 /* confdefs.h. */
28455 _ACEOF
28456 cat confdefs.h >>conftest.$ac_ext
28457 cat >>conftest.$ac_ext <<_ACEOF
28458 /* end confdefs.h. */
28459 $ac_includes_default
28460 #include <>
28461 _ACEOF
28462 rm -f conftest.$ac_objext
28463 if { (ac_try="$ac_compile"
28464 case "(($ac_try" in
28465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466 *) ac_try_echo=$ac_try;;
28467 esac
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469 (eval "$ac_compile") 2>conftest.er1
28470 ac_status=$?
28471 grep -v '^ *+' conftest.er1 >conftest.err
28472 rm -f conftest.er1
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } && {
28476 test -z "$ac_c_werror_flag" ||
28477 test ! -s conftest.err
28478 } && test -s conftest.$ac_objext; then
28479 ac_header_compiler=yes
28480 else
28481 echo "$as_me: failed program was:" >&5
28482 sed 's/^/| /' conftest.$ac_ext >&5
28484 ac_header_compiler=no
28487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28489 echo "${ECHO_T}$ac_header_compiler" >&6; }
28491 # Is the header present?
28492 { echo "$as_me:$LINENO: checking presence" >&5
28493 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28494 cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h. */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h. */
28500 #include <>
28501 _ACEOF
28502 if { (ac_try="$ac_cpp conftest.$ac_ext"
28503 case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28506 esac
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28509 ac_status=$?
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } >/dev/null && {
28515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28516 test ! -s conftest.err
28517 }; then
28518 ac_header_preproc=yes
28519 else
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_header_preproc=no
28526 rm -f conftest.err conftest.$ac_ext
28527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28528 echo "${ECHO_T}$ac_header_preproc" >&6; }
28530 # So? What about this header?
28531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28532 yes:no: )
28533 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28534 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28535 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28536 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28537 ac_header_preproc=yes
28539 no:yes:* )
28540 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28541 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28542 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28543 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28544 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28545 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28546 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28547 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28548 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28549 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28550 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28551 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28552 ( cat <<\_ASBOX
28553 ## ------------------------------- ##
28554 ## Report this to www.asterisk.org ##
28555 ## ------------------------------- ##
28556 _ASBOX
28557 ) | sed "s/^/$as_me: WARNING: /" >&2
28559 esac
28560 { echo "$as_me:$LINENO: checking for " >&5
28561 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28562 if test "${ac_cv_header_+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565 ac_cv_header_=$ac_header_preproc
28567 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28568 echo "${ECHO_T}$ac_cv_header_" >&6; }
28571 if test $ac_cv_header_ = yes; then
28572 SQRT_HEADER_FOUND=1
28573 else
28574 SQRT_HEADER_FOUND=0
28578 CPPFLAGS="${saved_cppflags}"
28580 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28581 SQRT_LIB=""
28582 SQRT_INCLUDE=""
28583 else
28584 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28585 SQRT_LIB=""
28587 PBX_SQRT=1
28588 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28590 cat >>confdefs.h <<_ACEOF
28591 #define HAVE_SQRT 1
28592 _ACEOF
28595 cat >>confdefs.h <<_ACEOF
28596 #define HAVE_SQRT_VERSION
28597 _ACEOF
28604 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28605 pbxlibdir=""
28606 # if --with-RINT=DIR has been specified, use it.
28607 if test "x${RINT_DIR}" != "x"; then
28608 if test -d ${RINT_DIR}/lib; then
28609 pbxlibdir="-L${RINT_DIR}/lib"
28610 else
28611 pbxlibdir="-L${RINT_DIR}"
28614 pbxfuncname="rint"
28615 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28616 AST_RINT_FOUND=yes
28617 else
28618 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28619 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28620 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28622 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 else
28624 ac_check_lib_save_LIBS=$LIBS
28625 LIBS="-lm ${pbxlibdir} $LIBS"
28626 cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h. */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28633 /* Override any GCC internal prototype to avoid an error.
28634 Use char because int might match the return type of a GCC
28635 builtin and then its argument prototype would still apply. */
28636 #ifdef __cplusplus
28637 extern "C"
28638 #endif
28639 char ${pbxfuncname} ();
28641 main ()
28643 return ${pbxfuncname} ();
28645 return 0;
28647 _ACEOF
28648 rm -f conftest.$ac_objext conftest$ac_exeext
28649 if { (ac_try="$ac_link"
28650 case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28653 esac
28654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655 (eval "$ac_link") 2>conftest.er1
28656 ac_status=$?
28657 grep -v '^ *+' conftest.er1 >conftest.err
28658 rm -f conftest.er1
28659 cat conftest.err >&5
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } && {
28662 test -z "$ac_c_werror_flag" ||
28663 test ! -s conftest.err
28664 } && test -s conftest$ac_exeext &&
28665 $as_test_x conftest$ac_exeext; then
28666 eval "$as_ac_Lib=yes"
28667 else
28668 echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28671 eval "$as_ac_Lib=no"
28674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28675 conftest$ac_exeext conftest.$ac_ext
28676 LIBS=$ac_check_lib_save_LIBS
28678 ac_res=`eval echo '${'$as_ac_Lib'}'`
28679 { echo "$as_me:$LINENO: result: $ac_res" >&5
28680 echo "${ECHO_T}$ac_res" >&6; }
28681 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28682 AST_RINT_FOUND=yes
28683 else
28684 AST_RINT_FOUND=no
28689 # now check for the header.
28690 if test "${AST_RINT_FOUND}" = "yes"; then
28691 RINT_LIB="${pbxlibdir} -lm "
28692 # if --with-RINT=DIR has been specified, use it.
28693 if test "x${RINT_DIR}" != "x"; then
28694 RINT_INCLUDE="-I${RINT_DIR}/include"
28696 RINT_INCLUDE="${RINT_INCLUDE} "
28697 if test "x" = "x" ; then # no header, assume found
28698 RINT_HEADER_FOUND="1"
28699 else # check for the header
28700 saved_cppflags="${CPPFLAGS}"
28701 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE}"
28702 if test "${ac_cv_header_+set}" = set; then
28703 { echo "$as_me:$LINENO: checking for " >&5
28704 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28705 if test "${ac_cv_header_+set}" = set; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28709 echo "${ECHO_T}$ac_cv_header_" >&6; }
28710 else
28711 # Is the header compilable?
28712 { echo "$as_me:$LINENO: checking usability" >&5
28713 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28714 cat >conftest.$ac_ext <<_ACEOF
28715 /* confdefs.h. */
28716 _ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28720 $ac_includes_default
28721 #include <>
28722 _ACEOF
28723 rm -f conftest.$ac_objext
28724 if { (ac_try="$ac_compile"
28725 case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28728 esac
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730 (eval "$ac_compile") 2>conftest.er1
28731 ac_status=$?
28732 grep -v '^ *+' conftest.er1 >conftest.err
28733 rm -f conftest.er1
28734 cat conftest.err >&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); } && {
28737 test -z "$ac_c_werror_flag" ||
28738 test ! -s conftest.err
28739 } && test -s conftest.$ac_objext; then
28740 ac_header_compiler=yes
28741 else
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ac_header_compiler=no
28748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28750 echo "${ECHO_T}$ac_header_compiler" >&6; }
28752 # Is the header present?
28753 { echo "$as_me:$LINENO: checking presence" >&5
28754 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28755 cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h. */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h. */
28761 #include <>
28762 _ACEOF
28763 if { (ac_try="$ac_cpp conftest.$ac_ext"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28770 ac_status=$?
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } >/dev/null && {
28776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28777 test ! -s conftest.err
28778 }; then
28779 ac_header_preproc=yes
28780 else
28781 echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28784 ac_header_preproc=no
28787 rm -f conftest.err conftest.$ac_ext
28788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28789 echo "${ECHO_T}$ac_header_preproc" >&6; }
28791 # So? What about this header?
28792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28793 yes:no: )
28794 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28795 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28797 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28798 ac_header_preproc=yes
28800 no:yes:* )
28801 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28802 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28804 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28806 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28808 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28810 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28812 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28813 ( cat <<\_ASBOX
28814 ## ------------------------------- ##
28815 ## Report this to www.asterisk.org ##
28816 ## ------------------------------- ##
28817 _ASBOX
28818 ) | sed "s/^/$as_me: WARNING: /" >&2
28820 esac
28821 { echo "$as_me:$LINENO: checking for " >&5
28822 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28823 if test "${ac_cv_header_+set}" = set; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28825 else
28826 ac_cv_header_=$ac_header_preproc
28828 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28829 echo "${ECHO_T}$ac_cv_header_" >&6; }
28832 if test $ac_cv_header_ = yes; then
28833 RINT_HEADER_FOUND=1
28834 else
28835 RINT_HEADER_FOUND=0
28839 CPPFLAGS="${saved_cppflags}"
28841 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28842 RINT_LIB=""
28843 RINT_INCLUDE=""
28844 else
28845 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28846 RINT_LIB=""
28848 PBX_RINT=1
28849 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28851 cat >>confdefs.h <<_ACEOF
28852 #define HAVE_RINT 1
28853 _ACEOF
28856 cat >>confdefs.h <<_ACEOF
28857 #define HAVE_RINT_VERSION
28858 _ACEOF
28865 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28866 pbxlibdir=""
28867 # if --with-EXP=DIR has been specified, use it.
28868 if test "x${EXP_DIR}" != "x"; then
28869 if test -d ${EXP_DIR}/lib; then
28870 pbxlibdir="-L${EXP_DIR}/lib"
28871 else
28872 pbxlibdir="-L${EXP_DIR}"
28875 pbxfuncname="exp"
28876 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28877 AST_EXP_FOUND=yes
28878 else
28879 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28880 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28881 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28882 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885 ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lm ${pbxlibdir} $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h. */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28897 #ifdef __cplusplus
28898 extern "C"
28899 #endif
28900 char ${pbxfuncname} ();
28902 main ()
28904 return ${pbxfuncname} ();
28906 return 0;
28908 _ACEOF
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (ac_try="$ac_link"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28914 esac
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_link") 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } && {
28923 test -z "$ac_c_werror_flag" ||
28924 test ! -s conftest.err
28925 } && test -s conftest$ac_exeext &&
28926 $as_test_x conftest$ac_exeext; then
28927 eval "$as_ac_Lib=yes"
28928 else
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 eval "$as_ac_Lib=no"
28935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28936 conftest$ac_exeext conftest.$ac_ext
28937 LIBS=$ac_check_lib_save_LIBS
28939 ac_res=`eval echo '${'$as_ac_Lib'}'`
28940 { echo "$as_me:$LINENO: result: $ac_res" >&5
28941 echo "${ECHO_T}$ac_res" >&6; }
28942 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28943 AST_EXP_FOUND=yes
28944 else
28945 AST_EXP_FOUND=no
28950 # now check for the header.
28951 if test "${AST_EXP_FOUND}" = "yes"; then
28952 EXP_LIB="${pbxlibdir} -lm "
28953 # if --with-EXP=DIR has been specified, use it.
28954 if test "x${EXP_DIR}" != "x"; then
28955 EXP_INCLUDE="-I${EXP_DIR}/include"
28957 EXP_INCLUDE="${EXP_INCLUDE} "
28958 if test "x" = "x" ; then # no header, assume found
28959 EXP_HEADER_FOUND="1"
28960 else # check for the header
28961 saved_cppflags="${CPPFLAGS}"
28962 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE}"
28963 if test "${ac_cv_header_+set}" = set; then
28964 { echo "$as_me:$LINENO: checking for " >&5
28965 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28966 if test "${ac_cv_header_+set}" = set; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28969 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28970 echo "${ECHO_T}$ac_cv_header_" >&6; }
28971 else
28972 # Is the header compilable?
28973 { echo "$as_me:$LINENO: checking usability" >&5
28974 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28975 cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h. */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h. */
28981 $ac_includes_default
28982 #include <>
28983 _ACEOF
28984 rm -f conftest.$ac_objext
28985 if { (ac_try="$ac_compile"
28986 case "(($ac_try" in
28987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28988 *) ac_try_echo=$ac_try;;
28989 esac
28990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28991 (eval "$ac_compile") 2>conftest.er1
28992 ac_status=$?
28993 grep -v '^ *+' conftest.er1 >conftest.err
28994 rm -f conftest.er1
28995 cat conftest.err >&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); } && {
28998 test -z "$ac_c_werror_flag" ||
28999 test ! -s conftest.err
29000 } && test -s conftest.$ac_objext; then
29001 ac_header_compiler=yes
29002 else
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29006 ac_header_compiler=no
29009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29011 echo "${ECHO_T}$ac_header_compiler" >&6; }
29013 # Is the header present?
29014 { echo "$as_me:$LINENO: checking presence" >&5
29015 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29016 cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h. */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h. */
29022 #include <>
29023 _ACEOF
29024 if { (ac_try="$ac_cpp conftest.$ac_ext"
29025 case "(($ac_try" in
29026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027 *) ac_try_echo=$ac_try;;
29028 esac
29029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29031 ac_status=$?
29032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } >/dev/null && {
29037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29038 test ! -s conftest.err
29039 }; then
29040 ac_header_preproc=yes
29041 else
29042 echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29045 ac_header_preproc=no
29048 rm -f conftest.err conftest.$ac_ext
29049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29050 echo "${ECHO_T}$ac_header_preproc" >&6; }
29052 # So? What about this header?
29053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29054 yes:no: )
29055 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29056 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29057 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29058 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29059 ac_header_preproc=yes
29061 no:yes:* )
29062 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29063 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29065 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29066 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29067 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29069 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29070 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29071 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29072 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29073 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29074 ( cat <<\_ASBOX
29075 ## ------------------------------- ##
29076 ## Report this to www.asterisk.org ##
29077 ## ------------------------------- ##
29078 _ASBOX
29079 ) | sed "s/^/$as_me: WARNING: /" >&2
29081 esac
29082 { echo "$as_me:$LINENO: checking for " >&5
29083 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29084 if test "${ac_cv_header_+set}" = set; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087 ac_cv_header_=$ac_header_preproc
29089 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29090 echo "${ECHO_T}$ac_cv_header_" >&6; }
29093 if test $ac_cv_header_ = yes; then
29094 EXP_HEADER_FOUND=1
29095 else
29096 EXP_HEADER_FOUND=0
29100 CPPFLAGS="${saved_cppflags}"
29102 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
29103 EXP_LIB=""
29104 EXP_INCLUDE=""
29105 else
29106 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29107 EXP_LIB=""
29109 PBX_EXP=1
29110 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29112 cat >>confdefs.h <<_ACEOF
29113 #define HAVE_EXP 1
29114 _ACEOF
29117 cat >>confdefs.h <<_ACEOF
29118 #define HAVE_EXP_VERSION
29119 _ACEOF
29126 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
29127 pbxlibdir=""
29128 # if --with-LOG=DIR has been specified, use it.
29129 if test "x${LOG_DIR}" != "x"; then
29130 if test -d ${LOG_DIR}/lib; then
29131 pbxlibdir="-L${LOG_DIR}/lib"
29132 else
29133 pbxlibdir="-L${LOG_DIR}"
29136 pbxfuncname="log"
29137 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29138 AST_LOG_FOUND=yes
29139 else
29140 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29141 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29142 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29143 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29145 else
29146 ac_check_lib_save_LIBS=$LIBS
29147 LIBS="-lm ${pbxlibdir} $LIBS"
29148 cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h. */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29155 /* Override any GCC internal prototype to avoid an error.
29156 Use char because int might match the return type of a GCC
29157 builtin and then its argument prototype would still apply. */
29158 #ifdef __cplusplus
29159 extern "C"
29160 #endif
29161 char ${pbxfuncname} ();
29163 main ()
29165 return ${pbxfuncname} ();
29167 return 0;
29169 _ACEOF
29170 rm -f conftest.$ac_objext conftest$ac_exeext
29171 if { (ac_try="$ac_link"
29172 case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29175 esac
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_link") 2>conftest.er1
29178 ac_status=$?
29179 grep -v '^ *+' conftest.er1 >conftest.err
29180 rm -f conftest.er1
29181 cat conftest.err >&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } && {
29184 test -z "$ac_c_werror_flag" ||
29185 test ! -s conftest.err
29186 } && test -s conftest$ac_exeext &&
29187 $as_test_x conftest$ac_exeext; then
29188 eval "$as_ac_Lib=yes"
29189 else
29190 echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29193 eval "$as_ac_Lib=no"
29196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29197 conftest$ac_exeext conftest.$ac_ext
29198 LIBS=$ac_check_lib_save_LIBS
29200 ac_res=`eval echo '${'$as_ac_Lib'}'`
29201 { echo "$as_me:$LINENO: result: $ac_res" >&5
29202 echo "${ECHO_T}$ac_res" >&6; }
29203 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29204 AST_LOG_FOUND=yes
29205 else
29206 AST_LOG_FOUND=no
29211 # now check for the header.
29212 if test "${AST_LOG_FOUND}" = "yes"; then
29213 LOG_LIB="${pbxlibdir} -lm "
29214 # if --with-LOG=DIR has been specified, use it.
29215 if test "x${LOG_DIR}" != "x"; then
29216 LOG_INCLUDE="-I${LOG_DIR}/include"
29218 LOG_INCLUDE="${LOG_INCLUDE} "
29219 if test "x" = "x" ; then # no header, assume found
29220 LOG_HEADER_FOUND="1"
29221 else # check for the header
29222 saved_cppflags="${CPPFLAGS}"
29223 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE}"
29224 if test "${ac_cv_header_+set}" = set; then
29225 { echo "$as_me:$LINENO: checking for " >&5
29226 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29227 if test "${ac_cv_header_+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29231 echo "${ECHO_T}$ac_cv_header_" >&6; }
29232 else
29233 # Is the header compilable?
29234 { echo "$as_me:$LINENO: checking usability" >&5
29235 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29236 cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h. */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 $ac_includes_default
29243 #include <>
29244 _ACEOF
29245 rm -f conftest.$ac_objext
29246 if { (ac_try="$ac_compile"
29247 case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_compile") 2>conftest.er1
29253 ac_status=$?
29254 grep -v '^ *+' conftest.er1 >conftest.err
29255 rm -f conftest.er1
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } && {
29259 test -z "$ac_c_werror_flag" ||
29260 test ! -s conftest.err
29261 } && test -s conftest.$ac_objext; then
29262 ac_header_compiler=yes
29263 else
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29267 ac_header_compiler=no
29270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29272 echo "${ECHO_T}$ac_header_compiler" >&6; }
29274 # Is the header present?
29275 { echo "$as_me:$LINENO: checking presence" >&5
29276 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29277 cat >conftest.$ac_ext <<_ACEOF
29278 /* confdefs.h. */
29279 _ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29283 #include <>
29284 _ACEOF
29285 if { (ac_try="$ac_cpp conftest.$ac_ext"
29286 case "(($ac_try" in
29287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288 *) ac_try_echo=$ac_try;;
29289 esac
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29292 ac_status=$?
29293 grep -v '^ *+' conftest.er1 >conftest.err
29294 rm -f conftest.er1
29295 cat conftest.err >&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } >/dev/null && {
29298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29299 test ! -s conftest.err
29300 }; then
29301 ac_header_preproc=yes
29302 else
29303 echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29306 ac_header_preproc=no
29309 rm -f conftest.err conftest.$ac_ext
29310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29311 echo "${ECHO_T}$ac_header_preproc" >&6; }
29313 # So? What about this header?
29314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29315 yes:no: )
29316 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29317 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29318 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29319 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29320 ac_header_preproc=yes
29322 no:yes:* )
29323 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29324 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29326 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29328 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29330 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29331 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29332 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29333 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29334 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29335 ( cat <<\_ASBOX
29336 ## ------------------------------- ##
29337 ## Report this to www.asterisk.org ##
29338 ## ------------------------------- ##
29339 _ASBOX
29340 ) | sed "s/^/$as_me: WARNING: /" >&2
29342 esac
29343 { echo "$as_me:$LINENO: checking for " >&5
29344 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29345 if test "${ac_cv_header_+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348 ac_cv_header_=$ac_header_preproc
29350 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29351 echo "${ECHO_T}$ac_cv_header_" >&6; }
29354 if test $ac_cv_header_ = yes; then
29355 LOG_HEADER_FOUND=1
29356 else
29357 LOG_HEADER_FOUND=0
29361 CPPFLAGS="${saved_cppflags}"
29363 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29364 LOG_LIB=""
29365 LOG_INCLUDE=""
29366 else
29367 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29368 LOG_LIB=""
29370 PBX_LOG=1
29371 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29373 cat >>confdefs.h <<_ACEOF
29374 #define HAVE_LOG 1
29375 _ACEOF
29378 cat >>confdefs.h <<_ACEOF
29379 #define HAVE_LOG_VERSION
29380 _ACEOF
29387 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29388 pbxlibdir=""
29389 # if --with-REMAINDER=DIR has been specified, use it.
29390 if test "x${REMAINDER_DIR}" != "x"; then
29391 if test -d ${REMAINDER_DIR}/lib; then
29392 pbxlibdir="-L${REMAINDER_DIR}/lib"
29393 else
29394 pbxlibdir="-L${REMAINDER_DIR}"
29397 pbxfuncname="remainder"
29398 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29399 AST_REMAINDER_FOUND=yes
29400 else
29401 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29402 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29403 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29404 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29406 else
29407 ac_check_lib_save_LIBS=$LIBS
29408 LIBS="-lm ${pbxlibdir} $LIBS"
29409 cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h. */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29416 /* Override any GCC internal prototype to avoid an error.
29417 Use char because int might match the return type of a GCC
29418 builtin and then its argument prototype would still apply. */
29419 #ifdef __cplusplus
29420 extern "C"
29421 #endif
29422 char ${pbxfuncname} ();
29424 main ()
29426 return ${pbxfuncname} ();
29428 return 0;
29430 _ACEOF
29431 rm -f conftest.$ac_objext conftest$ac_exeext
29432 if { (ac_try="$ac_link"
29433 case "(($ac_try" in
29434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435 *) ac_try_echo=$ac_try;;
29436 esac
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_link") 2>conftest.er1
29439 ac_status=$?
29440 grep -v '^ *+' conftest.er1 >conftest.err
29441 rm -f conftest.er1
29442 cat conftest.err >&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } && {
29445 test -z "$ac_c_werror_flag" ||
29446 test ! -s conftest.err
29447 } && test -s conftest$ac_exeext &&
29448 $as_test_x conftest$ac_exeext; then
29449 eval "$as_ac_Lib=yes"
29450 else
29451 echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29454 eval "$as_ac_Lib=no"
29457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29458 conftest$ac_exeext conftest.$ac_ext
29459 LIBS=$ac_check_lib_save_LIBS
29461 ac_res=`eval echo '${'$as_ac_Lib'}'`
29462 { echo "$as_me:$LINENO: result: $ac_res" >&5
29463 echo "${ECHO_T}$ac_res" >&6; }
29464 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29465 AST_REMAINDER_FOUND=yes
29466 else
29467 AST_REMAINDER_FOUND=no
29472 # now check for the header.
29473 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29474 REMAINDER_LIB="${pbxlibdir} -lm "
29475 # if --with-REMAINDER=DIR has been specified, use it.
29476 if test "x${REMAINDER_DIR}" != "x"; then
29477 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29479 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29480 if test "x" = "x" ; then # no header, assume found
29481 REMAINDER_HEADER_FOUND="1"
29482 else # check for the header
29483 saved_cppflags="${CPPFLAGS}"
29484 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE}"
29485 if test "${ac_cv_header_+set}" = set; then
29486 { echo "$as_me:$LINENO: checking for " >&5
29487 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29488 if test "${ac_cv_header_+set}" = set; then
29489 echo $ECHO_N "(cached) $ECHO_C" >&6
29491 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29492 echo "${ECHO_T}$ac_cv_header_" >&6; }
29493 else
29494 # Is the header compilable?
29495 { echo "$as_me:$LINENO: checking usability" >&5
29496 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29497 cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h. */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29503 $ac_includes_default
29504 #include <>
29505 _ACEOF
29506 rm -f conftest.$ac_objext
29507 if { (ac_try="$ac_compile"
29508 case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29511 esac
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_compile") 2>conftest.er1
29514 ac_status=$?
29515 grep -v '^ *+' conftest.er1 >conftest.err
29516 rm -f conftest.er1
29517 cat conftest.err >&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } && {
29520 test -z "$ac_c_werror_flag" ||
29521 test ! -s conftest.err
29522 } && test -s conftest.$ac_objext; then
29523 ac_header_compiler=yes
29524 else
29525 echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29528 ac_header_compiler=no
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29533 echo "${ECHO_T}$ac_header_compiler" >&6; }
29535 # Is the header present?
29536 { echo "$as_me:$LINENO: checking presence" >&5
29537 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29538 cat >conftest.$ac_ext <<_ACEOF
29539 /* confdefs.h. */
29540 _ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h. */
29544 #include <>
29545 _ACEOF
29546 if { (ac_try="$ac_cpp conftest.$ac_ext"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29553 ac_status=$?
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } >/dev/null && {
29559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29560 test ! -s conftest.err
29561 }; then
29562 ac_header_preproc=yes
29563 else
29564 echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29567 ac_header_preproc=no
29570 rm -f conftest.err conftest.$ac_ext
29571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29572 echo "${ECHO_T}$ac_header_preproc" >&6; }
29574 # So? What about this header?
29575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29576 yes:no: )
29577 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29578 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29580 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29581 ac_header_preproc=yes
29583 no:yes:* )
29584 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29585 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29587 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29589 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29590 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29591 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29592 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29593 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29594 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29595 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29596 ( cat <<\_ASBOX
29597 ## ------------------------------- ##
29598 ## Report this to www.asterisk.org ##
29599 ## ------------------------------- ##
29600 _ASBOX
29601 ) | sed "s/^/$as_me: WARNING: /" >&2
29603 esac
29604 { echo "$as_me:$LINENO: checking for " >&5
29605 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29606 if test "${ac_cv_header_+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29608 else
29609 ac_cv_header_=$ac_header_preproc
29611 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29612 echo "${ECHO_T}$ac_cv_header_" >&6; }
29615 if test $ac_cv_header_ = yes; then
29616 REMAINDER_HEADER_FOUND=1
29617 else
29618 REMAINDER_HEADER_FOUND=0
29622 CPPFLAGS="${saved_cppflags}"
29624 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29625 REMAINDER_LIB=""
29626 REMAINDER_INCLUDE=""
29627 else
29628 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29629 REMAINDER_LIB=""
29631 PBX_REMAINDER=1
29632 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29634 cat >>confdefs.h <<_ACEOF
29635 #define HAVE_REMAINDER 1
29636 _ACEOF
29639 cat >>confdefs.h <<_ACEOF
29640 #define HAVE_REMAINDER_VERSION
29641 _ACEOF
29648 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29649 pbxlibdir=""
29650 # if --with-FMOD=DIR has been specified, use it.
29651 if test "x${FMOD_DIR}" != "x"; then
29652 if test -d ${FMOD_DIR}/lib; then
29653 pbxlibdir="-L${FMOD_DIR}/lib"
29654 else
29655 pbxlibdir="-L${FMOD_DIR}"
29658 pbxfuncname="fmod"
29659 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29660 AST_FMOD_FOUND=yes
29661 else
29662 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29663 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29664 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29665 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29666 echo $ECHO_N "(cached) $ECHO_C" >&6
29667 else
29668 ac_check_lib_save_LIBS=$LIBS
29669 LIBS="-lm ${pbxlibdir} $LIBS"
29670 cat >conftest.$ac_ext <<_ACEOF
29671 /* confdefs.h. */
29672 _ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29677 /* Override any GCC internal prototype to avoid an error.
29678 Use char because int might match the return type of a GCC
29679 builtin and then its argument prototype would still apply. */
29680 #ifdef __cplusplus
29681 extern "C"
29682 #endif
29683 char ${pbxfuncname} ();
29685 main ()
29687 return ${pbxfuncname} ();
29689 return 0;
29691 _ACEOF
29692 rm -f conftest.$ac_objext conftest$ac_exeext
29693 if { (ac_try="$ac_link"
29694 case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697 esac
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_link") 2>conftest.er1
29700 ac_status=$?
29701 grep -v '^ *+' conftest.er1 >conftest.err
29702 rm -f conftest.er1
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } && {
29706 test -z "$ac_c_werror_flag" ||
29707 test ! -s conftest.err
29708 } && test -s conftest$ac_exeext &&
29709 $as_test_x conftest$ac_exeext; then
29710 eval "$as_ac_Lib=yes"
29711 else
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29715 eval "$as_ac_Lib=no"
29718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29719 conftest$ac_exeext conftest.$ac_ext
29720 LIBS=$ac_check_lib_save_LIBS
29722 ac_res=`eval echo '${'$as_ac_Lib'}'`
29723 { echo "$as_me:$LINENO: result: $ac_res" >&5
29724 echo "${ECHO_T}$ac_res" >&6; }
29725 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29726 AST_FMOD_FOUND=yes
29727 else
29728 AST_FMOD_FOUND=no
29733 # now check for the header.
29734 if test "${AST_FMOD_FOUND}" = "yes"; then
29735 FMOD_LIB="${pbxlibdir} -lm "
29736 # if --with-FMOD=DIR has been specified, use it.
29737 if test "x${FMOD_DIR}" != "x"; then
29738 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29740 FMOD_INCLUDE="${FMOD_INCLUDE} "
29741 if test "x" = "x" ; then # no header, assume found
29742 FMOD_HEADER_FOUND="1"
29743 else # check for the header
29744 saved_cppflags="${CPPFLAGS}"
29745 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE}"
29746 if test "${ac_cv_header_+set}" = set; then
29747 { echo "$as_me:$LINENO: checking for " >&5
29748 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29749 if test "${ac_cv_header_+set}" = set; then
29750 echo $ECHO_N "(cached) $ECHO_C" >&6
29752 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29753 echo "${ECHO_T}$ac_cv_header_" >&6; }
29754 else
29755 # Is the header compilable?
29756 { echo "$as_me:$LINENO: checking usability" >&5
29757 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29758 cat >conftest.$ac_ext <<_ACEOF
29759 /* confdefs.h. */
29760 _ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h. */
29764 $ac_includes_default
29765 #include <>
29766 _ACEOF
29767 rm -f conftest.$ac_objext
29768 if { (ac_try="$ac_compile"
29769 case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772 esac
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_compile") 2>conftest.er1
29775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && {
29781 test -z "$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 } && test -s conftest.$ac_objext; then
29784 ac_header_compiler=yes
29785 else
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 ac_header_compiler=no
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29794 echo "${ECHO_T}$ac_header_compiler" >&6; }
29796 # Is the header present?
29797 { echo "$as_me:$LINENO: checking presence" >&5
29798 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29799 cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h. */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 #include <>
29806 _ACEOF
29807 if { (ac_try="$ac_cpp conftest.$ac_ext"
29808 case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29811 esac
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29814 ac_status=$?
29815 grep -v '^ *+' conftest.er1 >conftest.err
29816 rm -f conftest.er1
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } >/dev/null && {
29820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29821 test ! -s conftest.err
29822 }; then
29823 ac_header_preproc=yes
29824 else
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29828 ac_header_preproc=no
29831 rm -f conftest.err conftest.$ac_ext
29832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29833 echo "${ECHO_T}$ac_header_preproc" >&6; }
29835 # So? What about this header?
29836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29837 yes:no: )
29838 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29839 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29840 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29841 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29842 ac_header_preproc=yes
29844 no:yes:* )
29845 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29846 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29847 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29848 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29849 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29850 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29851 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29852 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29853 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29854 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29855 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29856 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29857 ( cat <<\_ASBOX
29858 ## ------------------------------- ##
29859 ## Report this to www.asterisk.org ##
29860 ## ------------------------------- ##
29861 _ASBOX
29862 ) | sed "s/^/$as_me: WARNING: /" >&2
29864 esac
29865 { echo "$as_me:$LINENO: checking for " >&5
29866 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29867 if test "${ac_cv_header_+set}" = set; then
29868 echo $ECHO_N "(cached) $ECHO_C" >&6
29869 else
29870 ac_cv_header_=$ac_header_preproc
29872 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29873 echo "${ECHO_T}$ac_cv_header_" >&6; }
29876 if test $ac_cv_header_ = yes; then
29877 FMOD_HEADER_FOUND=1
29878 else
29879 FMOD_HEADER_FOUND=0
29883 CPPFLAGS="${saved_cppflags}"
29885 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29886 FMOD_LIB=""
29887 FMOD_INCLUDE=""
29888 else
29889 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29890 FMOD_LIB=""
29892 PBX_FMOD=1
29893 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29895 cat >>confdefs.h <<_ACEOF
29896 #define HAVE_FMOD 1
29897 _ACEOF
29900 cat >>confdefs.h <<_ACEOF
29901 #define HAVE_FMOD_VERSION
29902 _ACEOF
29909 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29910 pbxlibdir=""
29911 # if --with-ROUND=DIR has been specified, use it.
29912 if test "x${ROUND_DIR}" != "x"; then
29913 if test -d ${ROUND_DIR}/lib; then
29914 pbxlibdir="-L${ROUND_DIR}/lib"
29915 else
29916 pbxlibdir="-L${ROUND_DIR}"
29919 pbxfuncname="round"
29920 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29921 AST_ROUND_FOUND=yes
29922 else
29923 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29924 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29925 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29926 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29929 ac_check_lib_save_LIBS=$LIBS
29930 LIBS="-lm ${pbxlibdir} $LIBS"
29931 cat >conftest.$ac_ext <<_ACEOF
29932 /* confdefs.h. */
29933 _ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29938 /* Override any GCC internal prototype to avoid an error.
29939 Use char because int might match the return type of a GCC
29940 builtin and then its argument prototype would still apply. */
29941 #ifdef __cplusplus
29942 extern "C"
29943 #endif
29944 char ${pbxfuncname} ();
29946 main ()
29948 return ${pbxfuncname} ();
29950 return 0;
29952 _ACEOF
29953 rm -f conftest.$ac_objext conftest$ac_exeext
29954 if { (ac_try="$ac_link"
29955 case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29958 esac
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_link") 2>conftest.er1
29961 ac_status=$?
29962 grep -v '^ *+' conftest.er1 >conftest.err
29963 rm -f conftest.er1
29964 cat conftest.err >&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } && {
29967 test -z "$ac_c_werror_flag" ||
29968 test ! -s conftest.err
29969 } && test -s conftest$ac_exeext &&
29970 $as_test_x conftest$ac_exeext; then
29971 eval "$as_ac_Lib=yes"
29972 else
29973 echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29976 eval "$as_ac_Lib=no"
29979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29980 conftest$ac_exeext conftest.$ac_ext
29981 LIBS=$ac_check_lib_save_LIBS
29983 ac_res=`eval echo '${'$as_ac_Lib'}'`
29984 { echo "$as_me:$LINENO: result: $ac_res" >&5
29985 echo "${ECHO_T}$ac_res" >&6; }
29986 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29987 AST_ROUND_FOUND=yes
29988 else
29989 AST_ROUND_FOUND=no
29994 # now check for the header.
29995 if test "${AST_ROUND_FOUND}" = "yes"; then
29996 ROUND_LIB="${pbxlibdir} -lm "
29997 # if --with-ROUND=DIR has been specified, use it.
29998 if test "x${ROUND_DIR}" != "x"; then
29999 ROUND_INCLUDE="-I${ROUND_DIR}/include"
30001 ROUND_INCLUDE="${ROUND_INCLUDE} "
30002 if test "x" = "x" ; then # no header, assume found
30003 ROUND_HEADER_FOUND="1"
30004 else # check for the header
30005 saved_cppflags="${CPPFLAGS}"
30006 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE}"
30007 if test "${ac_cv_header_+set}" = set; then
30008 { echo "$as_me:$LINENO: checking for " >&5
30009 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30010 if test "${ac_cv_header_+set}" = set; then
30011 echo $ECHO_N "(cached) $ECHO_C" >&6
30013 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30014 echo "${ECHO_T}$ac_cv_header_" >&6; }
30015 else
30016 # Is the header compilable?
30017 { echo "$as_me:$LINENO: checking usability" >&5
30018 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30019 cat >conftest.$ac_ext <<_ACEOF
30020 /* confdefs.h. */
30021 _ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 $ac_includes_default
30026 #include <>
30027 _ACEOF
30028 rm -f conftest.$ac_objext
30029 if { (ac_try="$ac_compile"
30030 case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_compile") 2>conftest.er1
30036 ac_status=$?
30037 grep -v '^ *+' conftest.er1 >conftest.err
30038 rm -f conftest.er1
30039 cat conftest.err >&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } && {
30042 test -z "$ac_c_werror_flag" ||
30043 test ! -s conftest.err
30044 } && test -s conftest.$ac_objext; then
30045 ac_header_compiler=yes
30046 else
30047 echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30050 ac_header_compiler=no
30053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30055 echo "${ECHO_T}$ac_header_compiler" >&6; }
30057 # Is the header present?
30058 { echo "$as_me:$LINENO: checking presence" >&5
30059 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30060 cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h. */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30066 #include <>
30067 _ACEOF
30068 if { (ac_try="$ac_cpp conftest.$ac_ext"
30069 case "(($ac_try" in
30070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071 *) ac_try_echo=$ac_try;;
30072 esac
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30075 ac_status=$?
30076 grep -v '^ *+' conftest.er1 >conftest.err
30077 rm -f conftest.er1
30078 cat conftest.err >&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } >/dev/null && {
30081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30082 test ! -s conftest.err
30083 }; then
30084 ac_header_preproc=yes
30085 else
30086 echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30089 ac_header_preproc=no
30092 rm -f conftest.err conftest.$ac_ext
30093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30094 echo "${ECHO_T}$ac_header_preproc" >&6; }
30096 # So? What about this header?
30097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30098 yes:no: )
30099 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30100 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30101 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30102 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30103 ac_header_preproc=yes
30105 no:yes:* )
30106 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30107 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30108 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30109 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30111 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30113 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30114 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30115 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30116 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30117 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30118 ( cat <<\_ASBOX
30119 ## ------------------------------- ##
30120 ## Report this to www.asterisk.org ##
30121 ## ------------------------------- ##
30122 _ASBOX
30123 ) | sed "s/^/$as_me: WARNING: /" >&2
30125 esac
30126 { echo "$as_me:$LINENO: checking for " >&5
30127 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30128 if test "${ac_cv_header_+set}" = set; then
30129 echo $ECHO_N "(cached) $ECHO_C" >&6
30130 else
30131 ac_cv_header_=$ac_header_preproc
30133 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30134 echo "${ECHO_T}$ac_cv_header_" >&6; }
30137 if test $ac_cv_header_ = yes; then
30138 ROUND_HEADER_FOUND=1
30139 else
30140 ROUND_HEADER_FOUND=0
30144 CPPFLAGS="${saved_cppflags}"
30146 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
30147 ROUND_LIB=""
30148 ROUND_INCLUDE=""
30149 else
30150 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30151 ROUND_LIB=""
30153 PBX_ROUND=1
30154 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30156 cat >>confdefs.h <<_ACEOF
30157 #define HAVE_ROUND 1
30158 _ACEOF
30161 cat >>confdefs.h <<_ACEOF
30162 #define HAVE_ROUND_VERSION
30163 _ACEOF
30170 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
30171 pbxlibdir=""
30172 # if --with-TRUNC=DIR has been specified, use it.
30173 if test "x${TRUNC_DIR}" != "x"; then
30174 if test -d ${TRUNC_DIR}/lib; then
30175 pbxlibdir="-L${TRUNC_DIR}/lib"
30176 else
30177 pbxlibdir="-L${TRUNC_DIR}"
30180 pbxfuncname="trunc"
30181 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30182 AST_TRUNC_FOUND=yes
30183 else
30184 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30185 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30186 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30187 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30189 else
30190 ac_check_lib_save_LIBS=$LIBS
30191 LIBS="-lm ${pbxlibdir} $LIBS"
30192 cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h. */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30199 /* Override any GCC internal prototype to avoid an error.
30200 Use char because int might match the return type of a GCC
30201 builtin and then its argument prototype would still apply. */
30202 #ifdef __cplusplus
30203 extern "C"
30204 #endif
30205 char ${pbxfuncname} ();
30207 main ()
30209 return ${pbxfuncname} ();
30211 return 0;
30213 _ACEOF
30214 rm -f conftest.$ac_objext conftest$ac_exeext
30215 if { (ac_try="$ac_link"
30216 case "(($ac_try" in
30217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218 *) ac_try_echo=$ac_try;;
30219 esac
30220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30221 (eval "$ac_link") 2>conftest.er1
30222 ac_status=$?
30223 grep -v '^ *+' conftest.er1 >conftest.err
30224 rm -f conftest.er1
30225 cat conftest.err >&5
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); } && {
30228 test -z "$ac_c_werror_flag" ||
30229 test ! -s conftest.err
30230 } && test -s conftest$ac_exeext &&
30231 $as_test_x conftest$ac_exeext; then
30232 eval "$as_ac_Lib=yes"
30233 else
30234 echo "$as_me: failed program was:" >&5
30235 sed 's/^/| /' conftest.$ac_ext >&5
30237 eval "$as_ac_Lib=no"
30240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30241 conftest$ac_exeext conftest.$ac_ext
30242 LIBS=$ac_check_lib_save_LIBS
30244 ac_res=`eval echo '${'$as_ac_Lib'}'`
30245 { echo "$as_me:$LINENO: result: $ac_res" >&5
30246 echo "${ECHO_T}$ac_res" >&6; }
30247 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30248 AST_TRUNC_FOUND=yes
30249 else
30250 AST_TRUNC_FOUND=no
30255 # now check for the header.
30256 if test "${AST_TRUNC_FOUND}" = "yes"; then
30257 TRUNC_LIB="${pbxlibdir} -lm "
30258 # if --with-TRUNC=DIR has been specified, use it.
30259 if test "x${TRUNC_DIR}" != "x"; then
30260 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30262 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30263 if test "x" = "x" ; then # no header, assume found
30264 TRUNC_HEADER_FOUND="1"
30265 else # check for the header
30266 saved_cppflags="${CPPFLAGS}"
30267 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE}"
30268 if test "${ac_cv_header_+set}" = set; then
30269 { echo "$as_me:$LINENO: checking for " >&5
30270 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30271 if test "${ac_cv_header_+set}" = set; then
30272 echo $ECHO_N "(cached) $ECHO_C" >&6
30274 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30275 echo "${ECHO_T}$ac_cv_header_" >&6; }
30276 else
30277 # Is the header compilable?
30278 { echo "$as_me:$LINENO: checking usability" >&5
30279 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30280 cat >conftest.$ac_ext <<_ACEOF
30281 /* confdefs.h. */
30282 _ACEOF
30283 cat confdefs.h >>conftest.$ac_ext
30284 cat >>conftest.$ac_ext <<_ACEOF
30285 /* end confdefs.h. */
30286 $ac_includes_default
30287 #include <>
30288 _ACEOF
30289 rm -f conftest.$ac_objext
30290 if { (ac_try="$ac_compile"
30291 case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_compile") 2>conftest.er1
30297 ac_status=$?
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } && {
30303 test -z "$ac_c_werror_flag" ||
30304 test ! -s conftest.err
30305 } && test -s conftest.$ac_objext; then
30306 ac_header_compiler=yes
30307 else
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30311 ac_header_compiler=no
30314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30316 echo "${ECHO_T}$ac_header_compiler" >&6; }
30318 # Is the header present?
30319 { echo "$as_me:$LINENO: checking presence" >&5
30320 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30321 cat >conftest.$ac_ext <<_ACEOF
30322 /* confdefs.h. */
30323 _ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h. */
30327 #include <>
30328 _ACEOF
30329 if { (ac_try="$ac_cpp conftest.$ac_ext"
30330 case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30333 esac
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30336 ac_status=$?
30337 grep -v '^ *+' conftest.er1 >conftest.err
30338 rm -f conftest.er1
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } >/dev/null && {
30342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30343 test ! -s conftest.err
30344 }; then
30345 ac_header_preproc=yes
30346 else
30347 echo "$as_me: failed program was:" >&5
30348 sed 's/^/| /' conftest.$ac_ext >&5
30350 ac_header_preproc=no
30353 rm -f conftest.err conftest.$ac_ext
30354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30355 echo "${ECHO_T}$ac_header_preproc" >&6; }
30357 # So? What about this header?
30358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30359 yes:no: )
30360 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30361 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30363 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30364 ac_header_preproc=yes
30366 no:yes:* )
30367 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30368 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30369 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30370 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30371 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30372 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30373 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30374 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30375 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30376 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30377 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30378 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30379 ( cat <<\_ASBOX
30380 ## ------------------------------- ##
30381 ## Report this to www.asterisk.org ##
30382 ## ------------------------------- ##
30383 _ASBOX
30384 ) | sed "s/^/$as_me: WARNING: /" >&2
30386 esac
30387 { echo "$as_me:$LINENO: checking for " >&5
30388 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30389 if test "${ac_cv_header_+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30391 else
30392 ac_cv_header_=$ac_header_preproc
30394 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30395 echo "${ECHO_T}$ac_cv_header_" >&6; }
30398 if test $ac_cv_header_ = yes; then
30399 TRUNC_HEADER_FOUND=1
30400 else
30401 TRUNC_HEADER_FOUND=0
30405 CPPFLAGS="${saved_cppflags}"
30407 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30408 TRUNC_LIB=""
30409 TRUNC_INCLUDE=""
30410 else
30411 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30412 TRUNC_LIB=""
30414 PBX_TRUNC=1
30415 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30417 cat >>confdefs.h <<_ACEOF
30418 #define HAVE_TRUNC 1
30419 _ACEOF
30422 cat >>confdefs.h <<_ACEOF
30423 #define HAVE_TRUNC_VERSION
30424 _ACEOF
30431 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30432 pbxlibdir=""
30433 # if --with-STRTOD=DIR has been specified, use it.
30434 if test "x${STRTOD_DIR}" != "x"; then
30435 if test -d ${STRTOD_DIR}/lib; then
30436 pbxlibdir="-L${STRTOD_DIR}/lib"
30437 else
30438 pbxlibdir="-L${STRTOD_DIR}"
30441 pbxfuncname="strtod"
30442 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30443 AST_STRTOD_FOUND=yes
30444 else
30445 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30446 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30447 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30448 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30450 else
30451 ac_check_lib_save_LIBS=$LIBS
30452 LIBS="-lc ${pbxlibdir} $LIBS"
30453 cat >conftest.$ac_ext <<_ACEOF
30454 /* confdefs.h. */
30455 _ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30460 /* Override any GCC internal prototype to avoid an error.
30461 Use char because int might match the return type of a GCC
30462 builtin and then its argument prototype would still apply. */
30463 #ifdef __cplusplus
30464 extern "C"
30465 #endif
30466 char ${pbxfuncname} ();
30468 main ()
30470 return ${pbxfuncname} ();
30472 return 0;
30474 _ACEOF
30475 rm -f conftest.$ac_objext conftest$ac_exeext
30476 if { (ac_try="$ac_link"
30477 case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30480 esac
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482 (eval "$ac_link") 2>conftest.er1
30483 ac_status=$?
30484 grep -v '^ *+' conftest.er1 >conftest.err
30485 rm -f conftest.er1
30486 cat conftest.err >&5
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); } && {
30489 test -z "$ac_c_werror_flag" ||
30490 test ! -s conftest.err
30491 } && test -s conftest$ac_exeext &&
30492 $as_test_x conftest$ac_exeext; then
30493 eval "$as_ac_Lib=yes"
30494 else
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 eval "$as_ac_Lib=no"
30501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30502 conftest$ac_exeext conftest.$ac_ext
30503 LIBS=$ac_check_lib_save_LIBS
30505 ac_res=`eval echo '${'$as_ac_Lib'}'`
30506 { echo "$as_me:$LINENO: result: $ac_res" >&5
30507 echo "${ECHO_T}$ac_res" >&6; }
30508 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30509 AST_STRTOD_FOUND=yes
30510 else
30511 AST_STRTOD_FOUND=no
30516 # now check for the header.
30517 if test "${AST_STRTOD_FOUND}" = "yes"; then
30518 STRTOD_LIB="${pbxlibdir} -lc "
30519 # if --with-STRTOD=DIR has been specified, use it.
30520 if test "x${STRTOD_DIR}" != "x"; then
30521 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30523 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30524 if test "xstdlib.h" = "x" ; then # no header, assume found
30525 STRTOD_HEADER_FOUND="1"
30526 else # check for the header
30527 saved_cppflags="${CPPFLAGS}"
30528 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE}"
30529 if test "${ac_cv_header_stdlib_h+set}" = set; then
30530 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30531 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30532 if test "${ac_cv_header_stdlib_h+set}" = set; then
30533 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30536 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30537 else
30538 # Is the header compilable?
30539 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30540 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30541 cat >conftest.$ac_ext <<_ACEOF
30542 /* confdefs.h. */
30543 _ACEOF
30544 cat confdefs.h >>conftest.$ac_ext
30545 cat >>conftest.$ac_ext <<_ACEOF
30546 /* end confdefs.h. */
30547 $ac_includes_default
30548 #include <stdlib.h>
30549 _ACEOF
30550 rm -f conftest.$ac_objext
30551 if { (ac_try="$ac_compile"
30552 case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30555 esac
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_compile") 2>conftest.er1
30558 ac_status=$?
30559 grep -v '^ *+' conftest.er1 >conftest.err
30560 rm -f conftest.er1
30561 cat conftest.err >&5
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563 (exit $ac_status); } && {
30564 test -z "$ac_c_werror_flag" ||
30565 test ! -s conftest.err
30566 } && test -s conftest.$ac_objext; then
30567 ac_header_compiler=yes
30568 else
30569 echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30572 ac_header_compiler=no
30575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30577 echo "${ECHO_T}$ac_header_compiler" >&6; }
30579 # Is the header present?
30580 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30581 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30582 cat >conftest.$ac_ext <<_ACEOF
30583 /* confdefs.h. */
30584 _ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h. */
30588 #include <stdlib.h>
30589 _ACEOF
30590 if { (ac_try="$ac_cpp conftest.$ac_ext"
30591 case "(($ac_try" in
30592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30593 *) ac_try_echo=$ac_try;;
30594 esac
30595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30597 ac_status=$?
30598 grep -v '^ *+' conftest.er1 >conftest.err
30599 rm -f conftest.er1
30600 cat conftest.err >&5
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); } >/dev/null && {
30603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30604 test ! -s conftest.err
30605 }; then
30606 ac_header_preproc=yes
30607 else
30608 echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 ac_header_preproc=no
30614 rm -f conftest.err conftest.$ac_ext
30615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30616 echo "${ECHO_T}$ac_header_preproc" >&6; }
30618 # So? What about this header?
30619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30620 yes:no: )
30621 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30622 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30624 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30625 ac_header_preproc=yes
30627 no:yes:* )
30628 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30629 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30630 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30631 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30633 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30634 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30635 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30636 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30637 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30638 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30639 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30640 ( cat <<\_ASBOX
30641 ## ------------------------------- ##
30642 ## Report this to www.asterisk.org ##
30643 ## ------------------------------- ##
30644 _ASBOX
30645 ) | sed "s/^/$as_me: WARNING: /" >&2
30647 esac
30648 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30649 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30650 if test "${ac_cv_header_stdlib_h+set}" = set; then
30651 echo $ECHO_N "(cached) $ECHO_C" >&6
30652 else
30653 ac_cv_header_stdlib_h=$ac_header_preproc
30655 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30656 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30659 if test $ac_cv_header_stdlib_h = yes; then
30660 STRTOD_HEADER_FOUND=1
30661 else
30662 STRTOD_HEADER_FOUND=0
30666 CPPFLAGS="${saved_cppflags}"
30668 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30669 STRTOD_LIB=""
30670 STRTOD_INCLUDE=""
30671 else
30672 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30673 STRTOD_LIB=""
30675 PBX_STRTOD=1
30676 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30678 cat >>confdefs.h <<_ACEOF
30679 #define HAVE_STRTOD 1
30680 _ACEOF
30683 cat >>confdefs.h <<_ACEOF
30684 #define HAVE_STRTOD_VERSION
30685 _ACEOF
30692 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30693 pbxlibdir=""
30694 # if --with-FLOOR=DIR has been specified, use it.
30695 if test "x${FLOOR_DIR}" != "x"; then
30696 if test -d ${FLOOR_DIR}/lib; then
30697 pbxlibdir="-L${FLOOR_DIR}/lib"
30698 else
30699 pbxlibdir="-L${FLOOR_DIR}"
30702 pbxfuncname="floor"
30703 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30704 AST_FLOOR_FOUND=yes
30705 else
30706 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30707 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30708 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30709 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
30712 ac_check_lib_save_LIBS=$LIBS
30713 LIBS="-lm ${pbxlibdir} $LIBS"
30714 cat >conftest.$ac_ext <<_ACEOF
30715 /* confdefs.h. */
30716 _ACEOF
30717 cat confdefs.h >>conftest.$ac_ext
30718 cat >>conftest.$ac_ext <<_ACEOF
30719 /* end confdefs.h. */
30721 /* Override any GCC internal prototype to avoid an error.
30722 Use char because int might match the return type of a GCC
30723 builtin and then its argument prototype would still apply. */
30724 #ifdef __cplusplus
30725 extern "C"
30726 #endif
30727 char ${pbxfuncname} ();
30729 main ()
30731 return ${pbxfuncname} ();
30733 return 0;
30735 _ACEOF
30736 rm -f conftest.$ac_objext conftest$ac_exeext
30737 if { (ac_try="$ac_link"
30738 case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_link") 2>conftest.er1
30744 ac_status=$?
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } && {
30750 test -z "$ac_c_werror_flag" ||
30751 test ! -s conftest.err
30752 } && test -s conftest$ac_exeext &&
30753 $as_test_x conftest$ac_exeext; then
30754 eval "$as_ac_Lib=yes"
30755 else
30756 echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30759 eval "$as_ac_Lib=no"
30762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30763 conftest$ac_exeext conftest.$ac_ext
30764 LIBS=$ac_check_lib_save_LIBS
30766 ac_res=`eval echo '${'$as_ac_Lib'}'`
30767 { echo "$as_me:$LINENO: result: $ac_res" >&5
30768 echo "${ECHO_T}$ac_res" >&6; }
30769 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30770 AST_FLOOR_FOUND=yes
30771 else
30772 AST_FLOOR_FOUND=no
30777 # now check for the header.
30778 if test "${AST_FLOOR_FOUND}" = "yes"; then
30779 FLOOR_LIB="${pbxlibdir} -lm "
30780 # if --with-FLOOR=DIR has been specified, use it.
30781 if test "x${FLOOR_DIR}" != "x"; then
30782 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30784 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30785 if test "x" = "x" ; then # no header, assume found
30786 FLOOR_HEADER_FOUND="1"
30787 else # check for the header
30788 saved_cppflags="${CPPFLAGS}"
30789 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE}"
30790 if test "${ac_cv_header_+set}" = set; then
30791 { echo "$as_me:$LINENO: checking for " >&5
30792 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30793 if test "${ac_cv_header_+set}" = set; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30797 echo "${ECHO_T}$ac_cv_header_" >&6; }
30798 else
30799 # Is the header compilable?
30800 { echo "$as_me:$LINENO: checking usability" >&5
30801 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30802 cat >conftest.$ac_ext <<_ACEOF
30803 /* confdefs.h. */
30804 _ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h. */
30808 $ac_includes_default
30809 #include <>
30810 _ACEOF
30811 rm -f conftest.$ac_objext
30812 if { (ac_try="$ac_compile"
30813 case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_compile") 2>conftest.er1
30819 ac_status=$?
30820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } && {
30825 test -z "$ac_c_werror_flag" ||
30826 test ! -s conftest.err
30827 } && test -s conftest.$ac_objext; then
30828 ac_header_compiler=yes
30829 else
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_header_compiler=no
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30838 echo "${ECHO_T}$ac_header_compiler" >&6; }
30840 # Is the header present?
30841 { echo "$as_me:$LINENO: checking presence" >&5
30842 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30843 cat >conftest.$ac_ext <<_ACEOF
30844 /* confdefs.h. */
30845 _ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h. */
30849 #include <>
30850 _ACEOF
30851 if { (ac_try="$ac_cpp conftest.$ac_ext"
30852 case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30855 esac
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30858 ac_status=$?
30859 grep -v '^ *+' conftest.er1 >conftest.err
30860 rm -f conftest.er1
30861 cat conftest.err >&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } >/dev/null && {
30864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30865 test ! -s conftest.err
30866 }; then
30867 ac_header_preproc=yes
30868 else
30869 echo "$as_me: failed program was:" >&5
30870 sed 's/^/| /' conftest.$ac_ext >&5
30872 ac_header_preproc=no
30875 rm -f conftest.err conftest.$ac_ext
30876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30877 echo "${ECHO_T}$ac_header_preproc" >&6; }
30879 # So? What about this header?
30880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30881 yes:no: )
30882 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30883 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30885 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30886 ac_header_preproc=yes
30888 no:yes:* )
30889 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30890 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30891 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30892 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30893 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30894 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30895 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30896 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30897 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30898 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30899 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30900 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30901 ( cat <<\_ASBOX
30902 ## ------------------------------- ##
30903 ## Report this to www.asterisk.org ##
30904 ## ------------------------------- ##
30905 _ASBOX
30906 ) | sed "s/^/$as_me: WARNING: /" >&2
30908 esac
30909 { echo "$as_me:$LINENO: checking for " >&5
30910 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30911 if test "${ac_cv_header_+set}" = set; then
30912 echo $ECHO_N "(cached) $ECHO_C" >&6
30913 else
30914 ac_cv_header_=$ac_header_preproc
30916 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30917 echo "${ECHO_T}$ac_cv_header_" >&6; }
30920 if test $ac_cv_header_ = yes; then
30921 FLOOR_HEADER_FOUND=1
30922 else
30923 FLOOR_HEADER_FOUND=0
30927 CPPFLAGS="${saved_cppflags}"
30929 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30930 FLOOR_LIB=""
30931 FLOOR_INCLUDE=""
30932 else
30933 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30934 FLOOR_LIB=""
30936 PBX_FLOOR=1
30937 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30939 cat >>confdefs.h <<_ACEOF
30940 #define HAVE_FLOOR 1
30941 _ACEOF
30944 cat >>confdefs.h <<_ACEOF
30945 #define HAVE_FLOOR_VERSION
30946 _ACEOF
30953 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30954 pbxlibdir=""
30955 # if --with-CEIL=DIR has been specified, use it.
30956 if test "x${CEIL_DIR}" != "x"; then
30957 if test -d ${CEIL_DIR}/lib; then
30958 pbxlibdir="-L${CEIL_DIR}/lib"
30959 else
30960 pbxlibdir="-L${CEIL_DIR}"
30963 pbxfuncname="ceil"
30964 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30965 AST_CEIL_FOUND=yes
30966 else
30967 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30968 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30969 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30970 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30971 echo $ECHO_N "(cached) $ECHO_C" >&6
30972 else
30973 ac_check_lib_save_LIBS=$LIBS
30974 LIBS="-lm ${pbxlibdir} $LIBS"
30975 cat >conftest.$ac_ext <<_ACEOF
30976 /* confdefs.h. */
30977 _ACEOF
30978 cat confdefs.h >>conftest.$ac_ext
30979 cat >>conftest.$ac_ext <<_ACEOF
30980 /* end confdefs.h. */
30982 /* Override any GCC internal prototype to avoid an error.
30983 Use char because int might match the return type of a GCC
30984 builtin and then its argument prototype would still apply. */
30985 #ifdef __cplusplus
30986 extern "C"
30987 #endif
30988 char ${pbxfuncname} ();
30990 main ()
30992 return ${pbxfuncname} ();
30994 return 0;
30996 _ACEOF
30997 rm -f conftest.$ac_objext conftest$ac_exeext
30998 if { (ac_try="$ac_link"
30999 case "(($ac_try" in
31000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31001 *) ac_try_echo=$ac_try;;
31002 esac
31003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31004 (eval "$ac_link") 2>conftest.er1
31005 ac_status=$?
31006 grep -v '^ *+' conftest.er1 >conftest.err
31007 rm -f conftest.er1
31008 cat conftest.err >&5
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); } && {
31011 test -z "$ac_c_werror_flag" ||
31012 test ! -s conftest.err
31013 } && test -s conftest$ac_exeext &&
31014 $as_test_x conftest$ac_exeext; then
31015 eval "$as_ac_Lib=yes"
31016 else
31017 echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31020 eval "$as_ac_Lib=no"
31023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31024 conftest$ac_exeext conftest.$ac_ext
31025 LIBS=$ac_check_lib_save_LIBS
31027 ac_res=`eval echo '${'$as_ac_Lib'}'`
31028 { echo "$as_me:$LINENO: result: $ac_res" >&5
31029 echo "${ECHO_T}$ac_res" >&6; }
31030 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31031 AST_CEIL_FOUND=yes
31032 else
31033 AST_CEIL_FOUND=no
31038 # now check for the header.
31039 if test "${AST_CEIL_FOUND}" = "yes"; then
31040 CEIL_LIB="${pbxlibdir} -lm "
31041 # if --with-CEIL=DIR has been specified, use it.
31042 if test "x${CEIL_DIR}" != "x"; then
31043 CEIL_INCLUDE="-I${CEIL_DIR}/include"
31045 CEIL_INCLUDE="${CEIL_INCLUDE} "
31046 if test "x" = "x" ; then # no header, assume found
31047 CEIL_HEADER_FOUND="1"
31048 else # check for the header
31049 saved_cppflags="${CPPFLAGS}"
31050 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE}"
31051 if test "${ac_cv_header_+set}" = set; then
31052 { echo "$as_me:$LINENO: checking for " >&5
31053 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31054 if test "${ac_cv_header_+set}" = set; then
31055 echo $ECHO_N "(cached) $ECHO_C" >&6
31057 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31058 echo "${ECHO_T}$ac_cv_header_" >&6; }
31059 else
31060 # Is the header compilable?
31061 { echo "$as_me:$LINENO: checking usability" >&5
31062 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31063 cat >conftest.$ac_ext <<_ACEOF
31064 /* confdefs.h. */
31065 _ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h. */
31069 $ac_includes_default
31070 #include <>
31071 _ACEOF
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_compile") 2>conftest.er1
31080 ac_status=$?
31081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } && {
31086 test -z "$ac_c_werror_flag" ||
31087 test ! -s conftest.err
31088 } && test -s conftest.$ac_objext; then
31089 ac_header_compiler=yes
31090 else
31091 echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31094 ac_header_compiler=no
31097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31099 echo "${ECHO_T}$ac_header_compiler" >&6; }
31101 # Is the header present?
31102 { echo "$as_me:$LINENO: checking presence" >&5
31103 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h. */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31110 #include <>
31111 _ACEOF
31112 if { (ac_try="$ac_cpp conftest.$ac_ext"
31113 case "(($ac_try" in
31114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31115 *) ac_try_echo=$ac_try;;
31116 esac
31117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31119 ac_status=$?
31120 grep -v '^ *+' conftest.er1 >conftest.err
31121 rm -f conftest.er1
31122 cat conftest.err >&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } >/dev/null && {
31125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31126 test ! -s conftest.err
31127 }; then
31128 ac_header_preproc=yes
31129 else
31130 echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31133 ac_header_preproc=no
31136 rm -f conftest.err conftest.$ac_ext
31137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31138 echo "${ECHO_T}$ac_header_preproc" >&6; }
31140 # So? What about this header?
31141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31142 yes:no: )
31143 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31144 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31145 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31146 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31147 ac_header_preproc=yes
31149 no:yes:* )
31150 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31151 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31152 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31153 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31154 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31155 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31156 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31157 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31158 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31159 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31160 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31161 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31162 ( cat <<\_ASBOX
31163 ## ------------------------------- ##
31164 ## Report this to www.asterisk.org ##
31165 ## ------------------------------- ##
31166 _ASBOX
31167 ) | sed "s/^/$as_me: WARNING: /" >&2
31169 esac
31170 { echo "$as_me:$LINENO: checking for " >&5
31171 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31172 if test "${ac_cv_header_+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175 ac_cv_header_=$ac_header_preproc
31177 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31178 echo "${ECHO_T}$ac_cv_header_" >&6; }
31181 if test $ac_cv_header_ = yes; then
31182 CEIL_HEADER_FOUND=1
31183 else
31184 CEIL_HEADER_FOUND=0
31188 CPPFLAGS="${saved_cppflags}"
31190 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
31191 CEIL_LIB=""
31192 CEIL_INCLUDE=""
31193 else
31194 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31195 CEIL_LIB=""
31197 PBX_CEIL=1
31198 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31200 cat >>confdefs.h <<_ACEOF
31201 #define HAVE_CEIL 1
31202 _ACEOF
31205 cat >>confdefs.h <<_ACEOF
31206 #define HAVE_CEIL_VERSION
31207 _ACEOF
31215 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
31216 if test "xgetifaddrs() support" != "x"; then
31217 { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
31218 echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; }
31219 else
31220 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
31221 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31223 saved_cppflags="${CPPFLAGS}"
31224 if test "x${GETIFADDRS_DIR}" != "x"; then
31225 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31227 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31229 cat >conftest.$ac_ext <<_ACEOF
31230 /* confdefs.h. */
31231 _ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h. */
31235 #include <ifaddrs.h>
31237 main ()
31239 struct ifaddrs *p; getifaddrs(&p);
31242 return 0;
31244 _ACEOF
31245 rm -f conftest.$ac_objext
31246 if { (ac_try="$ac_compile"
31247 case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31250 esac
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_compile") 2>conftest.er1
31253 ac_status=$?
31254 grep -v '^ *+' conftest.er1 >conftest.err
31255 rm -f conftest.er1
31256 cat conftest.err >&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } && {
31259 test -z "$ac_c_werror_flag" ||
31260 test ! -s conftest.err
31261 } && test -s conftest.$ac_objext; then
31262 { echo "$as_me:$LINENO: result: yes" >&5
31263 echo "${ECHO_T}yes" >&6; }
31264 PBX_GETIFADDRS=1
31266 cat >>confdefs.h <<\_ACEOF
31267 #define HAVE_GETIFADDRS 1
31268 _ACEOF
31271 cat >>confdefs.h <<\_ACEOF
31272 #define HAVE_GETIFADDRS_VERSION
31273 _ACEOF
31276 else
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31280 { echo "$as_me:$LINENO: result: no" >&5
31281 echo "${ECHO_T}no" >&6; }
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31286 CPPFLAGS="${saved_cppflags}"
31290 GSM_INTERNAL="yes"
31292 GSM_SYSTEM="yes"
31293 if test "${USE_GSM}" != "no"; then
31294 if test "${GSM_DIR}" = "internal"; then
31295 GSM_SYSTEM="no"
31296 elif test "${GSM_DIR}" != ""; then
31297 GSM_INTERNAL="no"
31299 if test "${GSM_SYSTEM}" = "yes"; then
31300 gsmlibdir=""
31301 if test "x${GSM_DIR}" != "x"; then
31302 if test -d ${GSM_DIR}/lib; then
31303 gsmlibdir="-L${GSM_DIR}/lib"
31304 else
31305 gsmlibdir="-L${GSM_DIR}"
31308 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31309 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31310 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31311 echo $ECHO_N "(cached) $ECHO_C" >&6
31312 else
31313 ac_check_lib_save_LIBS=$LIBS
31314 LIBS="-lgsm ${gsmlibdir} $LIBS"
31315 cat >conftest.$ac_ext <<_ACEOF
31316 /* confdefs.h. */
31317 _ACEOF
31318 cat confdefs.h >>conftest.$ac_ext
31319 cat >>conftest.$ac_ext <<_ACEOF
31320 /* end confdefs.h. */
31322 /* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
31325 #ifdef __cplusplus
31326 extern "C"
31327 #endif
31328 char gsm_create ();
31330 main ()
31332 return gsm_create ();
31334 return 0;
31336 _ACEOF
31337 rm -f conftest.$ac_objext conftest$ac_exeext
31338 if { (ac_try="$ac_link"
31339 case "(($ac_try" in
31340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341 *) ac_try_echo=$ac_try;;
31342 esac
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_link") 2>conftest.er1
31345 ac_status=$?
31346 grep -v '^ *+' conftest.er1 >conftest.err
31347 rm -f conftest.er1
31348 cat conftest.err >&5
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); } && {
31351 test -z "$ac_c_werror_flag" ||
31352 test ! -s conftest.err
31353 } && test -s conftest$ac_exeext &&
31354 $as_test_x conftest$ac_exeext; then
31355 ac_cv_lib_gsm_gsm_create=yes
31356 else
31357 echo "$as_me: failed program was:" >&5
31358 sed 's/^/| /' conftest.$ac_ext >&5
31360 ac_cv_lib_gsm_gsm_create=no
31363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31364 conftest$ac_exeext conftest.$ac_ext
31365 LIBS=$ac_check_lib_save_LIBS
31367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31368 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31369 if test $ac_cv_lib_gsm_gsm_create = yes; then
31371 cat >>confdefs.h <<_ACEOF
31372 #define HAVE_GSM 1
31373 _ACEOF
31377 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31378 if test "x${GSM_DIR}" != "x" ; then
31379 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31381 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31382 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31384 echo $ECHO_N "(cached) $ECHO_C" >&6
31386 ac_res=`eval echo '${'$as_ac_Header'}'`
31387 { echo "$as_me:$LINENO: result: $ac_res" >&5
31388 echo "${ECHO_T}$ac_res" >&6; }
31389 else
31390 # Is the header compilable?
31391 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31392 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31393 cat >conftest.$ac_ext <<_ACEOF
31394 /* confdefs.h. */
31395 _ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399 $ac_includes_default
31400 #include <${GSM_DIR}/include/gsm.h>
31401 _ACEOF
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407 esac
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
31410 ac_status=$?
31411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } && {
31416 test -z "$ac_c_werror_flag" ||
31417 test ! -s conftest.err
31418 } && test -s conftest.$ac_objext; then
31419 ac_header_compiler=yes
31420 else
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ac_header_compiler=no
31427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31429 echo "${ECHO_T}$ac_header_compiler" >&6; }
31431 # Is the header present?
31432 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31433 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31434 cat >conftest.$ac_ext <<_ACEOF
31435 /* confdefs.h. */
31436 _ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h. */
31440 #include <${GSM_DIR}/include/gsm.h>
31441 _ACEOF
31442 if { (ac_try="$ac_cpp conftest.$ac_ext"
31443 case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31449 ac_status=$?
31450 grep -v '^ *+' conftest.er1 >conftest.err
31451 rm -f conftest.er1
31452 cat conftest.err >&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } >/dev/null && {
31455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31456 test ! -s conftest.err
31457 }; then
31458 ac_header_preproc=yes
31459 else
31460 echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31463 ac_header_preproc=no
31466 rm -f conftest.err conftest.$ac_ext
31467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31468 echo "${ECHO_T}$ac_header_preproc" >&6; }
31470 # So? What about this header?
31471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31472 yes:no: )
31473 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31474 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31475 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31476 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31477 ac_header_preproc=yes
31479 no:yes:* )
31480 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31481 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31482 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31483 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31484 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31485 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31486 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31487 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31488 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31489 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31490 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31491 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31492 ( cat <<\_ASBOX
31493 ## ------------------------------- ##
31494 ## Report this to www.asterisk.org ##
31495 ## ------------------------------- ##
31496 _ASBOX
31497 ) | sed "s/^/$as_me: WARNING: /" >&2
31499 esac
31500 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31501 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31504 else
31505 eval "$as_ac_Header=\$ac_header_preproc"
31507 ac_res=`eval echo '${'$as_ac_Header'}'`
31508 { echo "$as_me:$LINENO: result: $ac_res" >&5
31509 echo "${ECHO_T}$ac_res" >&6; }
31512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31513 GSM_HEADER_FOUND=1
31514 else
31515 GSM_HEADER_FOUND=0
31519 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31521 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31522 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31526 ac_res=`eval echo '${'$as_ac_Header'}'`
31527 { echo "$as_me:$LINENO: result: $ac_res" >&5
31528 echo "${ECHO_T}$ac_res" >&6; }
31529 else
31530 # Is the header compilable?
31531 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31532 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31533 cat >conftest.$ac_ext <<_ACEOF
31534 /* confdefs.h. */
31535 _ACEOF
31536 cat confdefs.h >>conftest.$ac_ext
31537 cat >>conftest.$ac_ext <<_ACEOF
31538 /* end confdefs.h. */
31539 $ac_includes_default
31540 #include <${GSM_DIR}/include/gsm/gsm.h>
31541 _ACEOF
31542 rm -f conftest.$ac_objext
31543 if { (ac_try="$ac_compile"
31544 case "(($ac_try" in
31545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546 *) ac_try_echo=$ac_try;;
31547 esac
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_compile") 2>conftest.er1
31550 ac_status=$?
31551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } && {
31556 test -z "$ac_c_werror_flag" ||
31557 test ! -s conftest.err
31558 } && test -s conftest.$ac_objext; then
31559 ac_header_compiler=yes
31560 else
31561 echo "$as_me: failed program was:" >&5
31562 sed 's/^/| /' conftest.$ac_ext >&5
31564 ac_header_compiler=no
31567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31569 echo "${ECHO_T}$ac_header_compiler" >&6; }
31571 # Is the header present?
31572 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31573 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h. */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 #include <${GSM_DIR}/include/gsm/gsm.h>
31581 _ACEOF
31582 if { (ac_try="$ac_cpp conftest.$ac_ext"
31583 case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31586 esac
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31589 ac_status=$?
31590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } >/dev/null && {
31595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31596 test ! -s conftest.err
31597 }; then
31598 ac_header_preproc=yes
31599 else
31600 echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31603 ac_header_preproc=no
31606 rm -f conftest.err conftest.$ac_ext
31607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31608 echo "${ECHO_T}$ac_header_preproc" >&6; }
31610 # So? What about this header?
31611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31612 yes:no: )
31613 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31614 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31615 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31616 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31617 ac_header_preproc=yes
31619 no:yes:* )
31620 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31621 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31623 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31625 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31627 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31628 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31629 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31630 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31631 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31632 ( cat <<\_ASBOX
31633 ## ------------------------------- ##
31634 ## Report this to www.asterisk.org ##
31635 ## ------------------------------- ##
31636 _ASBOX
31637 ) | sed "s/^/$as_me: WARNING: /" >&2
31639 esac
31640 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31641 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644 else
31645 eval "$as_ac_Header=\$ac_header_preproc"
31647 ac_res=`eval echo '${'$as_ac_Header'}'`
31648 { echo "$as_me:$LINENO: result: $ac_res" >&5
31649 echo "${ECHO_T}$ac_res" >&6; }
31652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653 GSM_GSM_HEADER_FOUND=1
31654 else
31655 GSM_GSM_HEADER_FOUND=0
31659 else
31660 if test "${ac_cv_header_gsm_h+set}" = set; then
31661 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31662 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31663 if test "${ac_cv_header_gsm_h+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31667 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31668 else
31669 # Is the header compilable?
31670 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31671 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31672 cat >conftest.$ac_ext <<_ACEOF
31673 /* confdefs.h. */
31674 _ACEOF
31675 cat confdefs.h >>conftest.$ac_ext
31676 cat >>conftest.$ac_ext <<_ACEOF
31677 /* end confdefs.h. */
31678 $ac_includes_default
31679 #include <gsm.h>
31680 _ACEOF
31681 rm -f conftest.$ac_objext
31682 if { (ac_try="$ac_compile"
31683 case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31686 esac
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_compile") 2>conftest.er1
31689 ac_status=$?
31690 grep -v '^ *+' conftest.er1 >conftest.err
31691 rm -f conftest.er1
31692 cat conftest.err >&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } && {
31695 test -z "$ac_c_werror_flag" ||
31696 test ! -s conftest.err
31697 } && test -s conftest.$ac_objext; then
31698 ac_header_compiler=yes
31699 else
31700 echo "$as_me: failed program was:" >&5
31701 sed 's/^/| /' conftest.$ac_ext >&5
31703 ac_header_compiler=no
31706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31708 echo "${ECHO_T}$ac_header_compiler" >&6; }
31710 # Is the header present?
31711 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31712 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31713 cat >conftest.$ac_ext <<_ACEOF
31714 /* confdefs.h. */
31715 _ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h. */
31719 #include <gsm.h>
31720 _ACEOF
31721 if { (ac_try="$ac_cpp conftest.$ac_ext"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31725 esac
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } >/dev/null && {
31734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31735 test ! -s conftest.err
31736 }; then
31737 ac_header_preproc=yes
31738 else
31739 echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31742 ac_header_preproc=no
31745 rm -f conftest.err conftest.$ac_ext
31746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31747 echo "${ECHO_T}$ac_header_preproc" >&6; }
31749 # So? What about this header?
31750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31751 yes:no: )
31752 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31753 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31754 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31755 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31756 ac_header_preproc=yes
31758 no:yes:* )
31759 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31760 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31761 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31762 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31763 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31764 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31766 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31768 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31770 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31771 ( cat <<\_ASBOX
31772 ## ------------------------------- ##
31773 ## Report this to www.asterisk.org ##
31774 ## ------------------------------- ##
31775 _ASBOX
31776 ) | sed "s/^/$as_me: WARNING: /" >&2
31778 esac
31779 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31780 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31781 if test "${ac_cv_header_gsm_h+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783 else
31784 ac_cv_header_gsm_h=$ac_header_preproc
31786 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31787 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31790 if test $ac_cv_header_gsm_h = yes; then
31791 GSM_HEADER_FOUND=1
31792 else
31793 GSM_HEADER_FOUND=0
31797 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31798 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31799 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31800 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31804 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31805 else
31806 # Is the header compilable?
31807 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31808 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31809 cat >conftest.$ac_ext <<_ACEOF
31810 /* confdefs.h. */
31811 _ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h. */
31815 $ac_includes_default
31816 #include <gsm/gsm.h>
31817 _ACEOF
31818 rm -f conftest.$ac_objext
31819 if { (ac_try="$ac_compile"
31820 case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_compile") 2>conftest.er1
31826 ac_status=$?
31827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } && {
31832 test -z "$ac_c_werror_flag" ||
31833 test ! -s conftest.err
31834 } && test -s conftest.$ac_objext; then
31835 ac_header_compiler=yes
31836 else
31837 echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31840 ac_header_compiler=no
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31845 echo "${ECHO_T}$ac_header_compiler" >&6; }
31847 # Is the header present?
31848 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31849 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31850 cat >conftest.$ac_ext <<_ACEOF
31851 /* confdefs.h. */
31852 _ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h. */
31856 #include <gsm/gsm.h>
31857 _ACEOF
31858 if { (ac_try="$ac_cpp conftest.$ac_ext"
31859 case "(($ac_try" in
31860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861 *) ac_try_echo=$ac_try;;
31862 esac
31863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31865 ac_status=$?
31866 grep -v '^ *+' conftest.er1 >conftest.err
31867 rm -f conftest.er1
31868 cat conftest.err >&5
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); } >/dev/null && {
31871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31872 test ! -s conftest.err
31873 }; then
31874 ac_header_preproc=yes
31875 else
31876 echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31879 ac_header_preproc=no
31882 rm -f conftest.err conftest.$ac_ext
31883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31884 echo "${ECHO_T}$ac_header_preproc" >&6; }
31886 # So? What about this header?
31887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31888 yes:no: )
31889 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31890 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31891 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31892 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31893 ac_header_preproc=yes
31895 no:yes:* )
31896 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31897 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31898 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31899 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31900 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31901 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31902 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31903 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31904 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31905 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31906 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31907 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31908 ( cat <<\_ASBOX
31909 ## ------------------------------- ##
31910 ## Report this to www.asterisk.org ##
31911 ## ------------------------------- ##
31912 _ASBOX
31913 ) | sed "s/^/$as_me: WARNING: /" >&2
31915 esac
31916 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31917 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31918 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31920 else
31921 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31923 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31924 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31927 if test $ac_cv_header_gsm_gsm_h = yes; then
31928 GSM_GSM_HEADER_FOUND=1
31929 else
31930 GSM_GSM_HEADER_FOUND=0
31935 if test "${GSM_HEADER_FOUND}" = "0" ; then
31936 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31937 if test "x${GSM_MANDATORY}" = "xyes" ; then
31938 { echo "$as_me:$LINENO: ***" >&5
31939 echo "$as_me: ***" >&6;}
31940 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31941 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31942 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31943 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31944 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31945 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31946 exit 1
31950 GSM_OK=0
31951 if test "${GSM_HEADER_FOUND}" = "1" ; then
31953 cat >>confdefs.h <<_ACEOF
31954 #define HAVE_GSM_HEADER 1
31955 _ACEOF
31957 GSM_OK=1
31958 else
31959 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31961 cat >>confdefs.h <<_ACEOF
31962 #define HAVE_GSM_GSM_HEADER 1
31963 _ACEOF
31965 GSM_OK=1
31968 if test "${GSM_OK}" = "1" ; then
31969 GSM_LIB="-lgsm"
31970 if test "x${GSM_DIR}" != "x"; then
31971 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31972 GSM_INCLUDE="-I${GSM_DIR}/include"
31974 PBX_GSM=1
31975 GSM_INTERNAL="no"
31979 if test "${GSM_INTERNAL}" = "yes"; then
31980 PBX_GSM=1
31982 cat >>confdefs.h <<_ACEOF
31983 #define HAVE_GSM_HEADER 1
31984 _ACEOF
31989 if test "${host_os}" != "linux-gnu" ; then
31991 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31992 pbxlibdir=""
31993 # if --with-ICONV=DIR has been specified, use it.
31994 if test "x${ICONV_DIR}" != "x"; then
31995 if test -d ${ICONV_DIR}/lib; then
31996 pbxlibdir="-L${ICONV_DIR}/lib"
31997 else
31998 pbxlibdir="-L${ICONV_DIR}"
32001 pbxfuncname="iconv_open"
32002 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32003 AST_ICONV_FOUND=yes
32004 else
32005 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
32006 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
32007 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
32008 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32009 echo $ECHO_N "(cached) $ECHO_C" >&6
32010 else
32011 ac_check_lib_save_LIBS=$LIBS
32012 LIBS="-liconv ${pbxlibdir} $LIBS"
32013 cat >conftest.$ac_ext <<_ACEOF
32014 /* confdefs.h. */
32015 _ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h. */
32020 /* Override any GCC internal prototype to avoid an error.
32021 Use char because int might match the return type of a GCC
32022 builtin and then its argument prototype would still apply. */
32023 #ifdef __cplusplus
32024 extern "C"
32025 #endif
32026 char ${pbxfuncname} ();
32028 main ()
32030 return ${pbxfuncname} ();
32032 return 0;
32034 _ACEOF
32035 rm -f conftest.$ac_objext conftest$ac_exeext
32036 if { (ac_try="$ac_link"
32037 case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32040 esac
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_link") 2>conftest.er1
32043 ac_status=$?
32044 grep -v '^ *+' conftest.er1 >conftest.err
32045 rm -f conftest.er1
32046 cat conftest.err >&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); } && {
32049 test -z "$ac_c_werror_flag" ||
32050 test ! -s conftest.err
32051 } && test -s conftest$ac_exeext &&
32052 $as_test_x conftest$ac_exeext; then
32053 eval "$as_ac_Lib=yes"
32054 else
32055 echo "$as_me: failed program was:" >&5
32056 sed 's/^/| /' conftest.$ac_ext >&5
32058 eval "$as_ac_Lib=no"
32061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32062 conftest$ac_exeext conftest.$ac_ext
32063 LIBS=$ac_check_lib_save_LIBS
32065 ac_res=`eval echo '${'$as_ac_Lib'}'`
32066 { echo "$as_me:$LINENO: result: $ac_res" >&5
32067 echo "${ECHO_T}$ac_res" >&6; }
32068 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32069 AST_ICONV_FOUND=yes
32070 else
32071 AST_ICONV_FOUND=no
32076 # now check for the header.
32077 if test "${AST_ICONV_FOUND}" = "yes"; then
32078 ICONV_LIB="${pbxlibdir} -liconv "
32079 # if --with-ICONV=DIR has been specified, use it.
32080 if test "x${ICONV_DIR}" != "x"; then
32081 ICONV_INCLUDE="-I${ICONV_DIR}/include"
32083 ICONV_INCLUDE="${ICONV_INCLUDE} "
32084 if test "xiconv.h" = "x" ; then # no header, assume found
32085 ICONV_HEADER_FOUND="1"
32086 else # check for the header
32087 saved_cppflags="${CPPFLAGS}"
32088 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
32089 if test "${ac_cv_header_iconv_h+set}" = set; then
32090 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32091 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32092 if test "${ac_cv_header_iconv_h+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32095 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32096 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32097 else
32098 # Is the header compilable?
32099 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
32100 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
32101 cat >conftest.$ac_ext <<_ACEOF
32102 /* confdefs.h. */
32103 _ACEOF
32104 cat confdefs.h >>conftest.$ac_ext
32105 cat >>conftest.$ac_ext <<_ACEOF
32106 /* end confdefs.h. */
32107 $ac_includes_default
32108 #include <iconv.h>
32109 _ACEOF
32110 rm -f conftest.$ac_objext
32111 if { (ac_try="$ac_compile"
32112 case "(($ac_try" in
32113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32114 *) ac_try_echo=$ac_try;;
32115 esac
32116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32117 (eval "$ac_compile") 2>conftest.er1
32118 ac_status=$?
32119 grep -v '^ *+' conftest.er1 >conftest.err
32120 rm -f conftest.er1
32121 cat conftest.err >&5
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); } && {
32124 test -z "$ac_c_werror_flag" ||
32125 test ! -s conftest.err
32126 } && test -s conftest.$ac_objext; then
32127 ac_header_compiler=yes
32128 else
32129 echo "$as_me: failed program was:" >&5
32130 sed 's/^/| /' conftest.$ac_ext >&5
32132 ac_header_compiler=no
32135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32137 echo "${ECHO_T}$ac_header_compiler" >&6; }
32139 # Is the header present?
32140 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
32141 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
32142 cat >conftest.$ac_ext <<_ACEOF
32143 /* confdefs.h. */
32144 _ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h. */
32148 #include <iconv.h>
32149 _ACEOF
32150 if { (ac_try="$ac_cpp conftest.$ac_ext"
32151 case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32157 ac_status=$?
32158 grep -v '^ *+' conftest.er1 >conftest.err
32159 rm -f conftest.er1
32160 cat conftest.err >&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); } >/dev/null && {
32163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32164 test ! -s conftest.err
32165 }; then
32166 ac_header_preproc=yes
32167 else
32168 echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32171 ac_header_preproc=no
32174 rm -f conftest.err conftest.$ac_ext
32175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32176 echo "${ECHO_T}$ac_header_preproc" >&6; }
32178 # So? What about this header?
32179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32180 yes:no: )
32181 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
32182 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
32184 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
32185 ac_header_preproc=yes
32187 no:yes:* )
32188 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
32189 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
32190 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
32191 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
32192 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
32193 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
32194 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
32195 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
32196 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32197 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32198 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
32199 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
32200 ( cat <<\_ASBOX
32201 ## ------------------------------- ##
32202 ## Report this to www.asterisk.org ##
32203 ## ------------------------------- ##
32204 _ASBOX
32205 ) | sed "s/^/$as_me: WARNING: /" >&2
32207 esac
32208 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32209 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32210 if test "${ac_cv_header_iconv_h+set}" = set; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32212 else
32213 ac_cv_header_iconv_h=$ac_header_preproc
32215 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32216 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32219 if test $ac_cv_header_iconv_h = yes; then
32220 ICONV_HEADER_FOUND=1
32221 else
32222 ICONV_HEADER_FOUND=0
32226 CPPFLAGS="${saved_cppflags}"
32228 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32229 ICONV_LIB=""
32230 ICONV_INCLUDE=""
32231 else
32232 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32233 ICONV_LIB=""
32235 PBX_ICONV=1
32236 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32238 cat >>confdefs.h <<_ACEOF
32239 #define HAVE_ICONV 1
32240 _ACEOF
32243 cat >>confdefs.h <<_ACEOF
32244 #define HAVE_ICONV_VERSION
32245 _ACEOF
32251 else
32252 PBX_ICONV=1
32256 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32257 pbxlibdir=""
32258 # if --with-IKSEMEL=DIR has been specified, use it.
32259 if test "x${IKSEMEL_DIR}" != "x"; then
32260 if test -d ${IKSEMEL_DIR}/lib; then
32261 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32262 else
32263 pbxlibdir="-L${IKSEMEL_DIR}"
32266 pbxfuncname="iks_start_sasl"
32267 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32268 AST_IKSEMEL_FOUND=yes
32269 else
32270 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32271 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32272 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32273 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32275 else
32276 ac_check_lib_save_LIBS=$LIBS
32277 LIBS="-liksemel ${pbxlibdir} $LIBS"
32278 cat >conftest.$ac_ext <<_ACEOF
32279 /* confdefs.h. */
32280 _ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32285 /* Override any GCC internal prototype to avoid an error.
32286 Use char because int might match the return type of a GCC
32287 builtin and then its argument prototype would still apply. */
32288 #ifdef __cplusplus
32289 extern "C"
32290 #endif
32291 char ${pbxfuncname} ();
32293 main ()
32295 return ${pbxfuncname} ();
32297 return 0;
32299 _ACEOF
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (ac_try="$ac_link"
32302 case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32305 esac
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_link") 2>conftest.er1
32308 ac_status=$?
32309 grep -v '^ *+' conftest.er1 >conftest.err
32310 rm -f conftest.er1
32311 cat conftest.err >&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); } && {
32314 test -z "$ac_c_werror_flag" ||
32315 test ! -s conftest.err
32316 } && test -s conftest$ac_exeext &&
32317 $as_test_x conftest$ac_exeext; then
32318 eval "$as_ac_Lib=yes"
32319 else
32320 echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32323 eval "$as_ac_Lib=no"
32326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32327 conftest$ac_exeext conftest.$ac_ext
32328 LIBS=$ac_check_lib_save_LIBS
32330 ac_res=`eval echo '${'$as_ac_Lib'}'`
32331 { echo "$as_me:$LINENO: result: $ac_res" >&5
32332 echo "${ECHO_T}$ac_res" >&6; }
32333 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32334 AST_IKSEMEL_FOUND=yes
32335 else
32336 AST_IKSEMEL_FOUND=no
32341 # now check for the header.
32342 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32343 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32344 # if --with-IKSEMEL=DIR has been specified, use it.
32345 if test "x${IKSEMEL_DIR}" != "x"; then
32346 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32348 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32349 if test "xiksemel.h" = "x" ; then # no header, assume found
32350 IKSEMEL_HEADER_FOUND="1"
32351 else # check for the header
32352 saved_cppflags="${CPPFLAGS}"
32353 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
32354 if test "${ac_cv_header_iksemel_h+set}" = set; then
32355 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32356 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32357 if test "${ac_cv_header_iksemel_h+set}" = set; then
32358 echo $ECHO_N "(cached) $ECHO_C" >&6
32360 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32361 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32362 else
32363 # Is the header compilable?
32364 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32365 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32366 cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h. */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h. */
32372 $ac_includes_default
32373 #include <iksemel.h>
32374 _ACEOF
32375 rm -f conftest.$ac_objext
32376 if { (ac_try="$ac_compile"
32377 case "(($ac_try" in
32378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32379 *) ac_try_echo=$ac_try;;
32380 esac
32381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32382 (eval "$ac_compile") 2>conftest.er1
32383 ac_status=$?
32384 grep -v '^ *+' conftest.er1 >conftest.err
32385 rm -f conftest.er1
32386 cat conftest.err >&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } && {
32389 test -z "$ac_c_werror_flag" ||
32390 test ! -s conftest.err
32391 } && test -s conftest.$ac_objext; then
32392 ac_header_compiler=yes
32393 else
32394 echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.$ac_ext >&5
32397 ac_header_compiler=no
32400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32402 echo "${ECHO_T}$ac_header_compiler" >&6; }
32404 # Is the header present?
32405 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32406 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32407 cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h. */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32413 #include <iksemel.h>
32414 _ACEOF
32415 if { (ac_try="$ac_cpp conftest.$ac_ext"
32416 case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32419 esac
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32422 ac_status=$?
32423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } >/dev/null && {
32428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32429 test ! -s conftest.err
32430 }; then
32431 ac_header_preproc=yes
32432 else
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32436 ac_header_preproc=no
32439 rm -f conftest.err conftest.$ac_ext
32440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32441 echo "${ECHO_T}$ac_header_preproc" >&6; }
32443 # So? What about this header?
32444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32445 yes:no: )
32446 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32447 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32448 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32449 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32450 ac_header_preproc=yes
32452 no:yes:* )
32453 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32454 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32455 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32456 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32457 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32458 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32459 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32460 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32461 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32462 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32463 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32464 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32465 ( cat <<\_ASBOX
32466 ## ------------------------------- ##
32467 ## Report this to www.asterisk.org ##
32468 ## ------------------------------- ##
32469 _ASBOX
32470 ) | sed "s/^/$as_me: WARNING: /" >&2
32472 esac
32473 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32474 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32475 if test "${ac_cv_header_iksemel_h+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478 ac_cv_header_iksemel_h=$ac_header_preproc
32480 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32481 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32484 if test $ac_cv_header_iksemel_h = yes; then
32485 IKSEMEL_HEADER_FOUND=1
32486 else
32487 IKSEMEL_HEADER_FOUND=0
32491 CPPFLAGS="${saved_cppflags}"
32493 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32494 IKSEMEL_LIB=""
32495 IKSEMEL_INCLUDE=""
32496 else
32497 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32498 IKSEMEL_LIB=""
32500 PBX_IKSEMEL=1
32501 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32503 cat >>confdefs.h <<_ACEOF
32504 #define HAVE_IKSEMEL 1
32505 _ACEOF
32508 cat >>confdefs.h <<_ACEOF
32509 #define HAVE_IKSEMEL_VERSION
32510 _ACEOF
32517 if test "${USE_IMAP_TK}" != "no"; then
32518 saved_cppflags="${CPPFLAGS}"
32519 saved_libs="${LIBS}"
32520 switch_to_system_on_failure="no"
32521 if test "${IMAP_TK_DIR}" = ""; then
32522 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32523 switch_to_system_on_failure="yes"
32525 if test "${IMAP_TK_DIR}" != "system"; then
32526 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32527 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32528 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32529 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32531 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32532 imap_include="-I${IMAP_TK_DIR}/c-client"
32533 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32534 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32535 cat >conftest.$ac_ext <<_ACEOF
32536 /* confdefs.h. */
32537 _ACEOF
32538 cat confdefs.h >>conftest.$ac_ext
32539 cat >>conftest.$ac_ext <<_ACEOF
32540 /* end confdefs.h. */
32541 #include "c-client.h"
32542 void mm_searched (MAILSTREAM *stream,unsigned long number)
32545 void mm_exists (MAILSTREAM *stream,unsigned long number)
32548 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32551 void mm_flags (MAILSTREAM *stream,unsigned long number)
32554 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32557 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32560 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32563 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32566 void mm_log (char *string,long errflg)
32569 void mm_dlog (char *string)
32572 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32575 void mm_critical (MAILSTREAM *stream)
32578 void mm_nocritical (MAILSTREAM *stream)
32581 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32584 void mm_fatal (char *string)
32588 main ()
32591 MAILSTREAM *foo = mail_open(NULL, "", 0);
32595 return 0;
32597 _ACEOF
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (ac_try="$ac_link"
32600 case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603 esac
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_link") 2>conftest.er1
32606 ac_status=$?
32607 grep -v '^ *+' conftest.er1 >conftest.err
32608 rm -f conftest.er1
32609 cat conftest.err >&5
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } && {
32612 test -z "$ac_c_werror_flag" ||
32613 test ! -s conftest.err
32614 } && test -s conftest$ac_exeext &&
32615 $as_test_x conftest$ac_exeext; then
32616 ac_cv_imap_tk="yes"
32617 else
32618 echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32621 ac_cv_imap_tk="no"
32625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32626 conftest$ac_exeext conftest.$ac_ext
32627 if test "${ac_cv_imap_tk}" = "yes"; then
32628 cat >conftest.$ac_ext <<_ACEOF
32629 /* confdefs.h. */
32630 _ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h. */
32634 #include "c-client.h"
32635 void mm_searched (MAILSTREAM *stream,unsigned long number)
32638 void mm_exists (MAILSTREAM *stream,unsigned long number)
32641 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32644 void mm_flags (MAILSTREAM *stream,unsigned long number)
32647 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32650 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32653 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32656 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32659 void mm_log (char *string,long errflg)
32662 void mm_dlog (char *string)
32665 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32668 void mm_critical (MAILSTREAM *stream)
32671 void mm_nocritical (MAILSTREAM *stream)
32674 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32677 void mm_fatal (char *string)
32681 main ()
32684 long check = mail_expunge_full(NULL, "", 0);
32688 return 0;
32690 _ACEOF
32691 rm -f conftest.$ac_objext conftest$ac_exeext
32692 if { (ac_try="$ac_link"
32693 case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696 esac
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_link") 2>conftest.er1
32699 ac_status=$?
32700 grep -v '^ *+' conftest.er1 >conftest.err
32701 rm -f conftest.er1
32702 cat conftest.err >&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } && {
32705 test -z "$ac_c_werror_flag" ||
32706 test ! -s conftest.err
32707 } && test -s conftest$ac_exeext &&
32708 $as_test_x conftest$ac_exeext; then
32709 ac_cv_imap_tk2006="yes"
32710 else
32711 echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32714 ac_cv_imap_tk2006="no"
32718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32719 conftest$ac_exeext conftest.$ac_ext
32721 CPPFLAGS="${saved_cppflags}"
32722 LIBS="${saved_libs}"
32723 if test "${ac_cv_imap_tk}" = "no"; then
32724 { echo "$as_me:$LINENO: result: no" >&5
32725 echo "${ECHO_T}no" >&6; }
32726 if test "${switch_to_system_on_failure}" = "yes"; then
32727 IMAP_TK_DIR="system"
32728 else #This means they specified a directory. Search for a package installation there too
32729 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32730 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32731 CPPFLAGS="${saved_cppflags}"
32732 LIBS="${saved_libs}"
32733 imap_include="-I${IMAP_TK_DIR}/include"
32734 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32735 imap_libs="-lc-client"
32736 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32737 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32738 cat >conftest.$ac_ext <<_ACEOF
32739 /* confdefs.h. */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h. */
32744 #include "c-client.h"
32745 void mm_searched (MAILSTREAM *stream,unsigned long number)
32748 void mm_exists (MAILSTREAM *stream,unsigned long number)
32751 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32754 void mm_flags (MAILSTREAM *stream,unsigned long number)
32757 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32760 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32763 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32766 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32769 void mm_log (char *string,long errflg)
32772 void mm_dlog (char *string)
32775 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32778 void mm_critical (MAILSTREAM *stream)
32781 void mm_nocritical (MAILSTREAM *stream)
32784 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32787 void mm_fatal (char *string)
32791 main ()
32794 MAILSTREAM *foo = mail_open(NULL, "", 0);
32798 return 0;
32800 _ACEOF
32801 rm -f conftest.$ac_objext conftest$ac_exeext
32802 if { (ac_try="$ac_link"
32803 case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32806 esac
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_link") 2>conftest.er1
32809 ac_status=$?
32810 grep -v '^ *+' conftest.er1 >conftest.err
32811 rm -f conftest.er1
32812 cat conftest.err >&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } && {
32815 test -z "$ac_c_werror_flag" ||
32816 test ! -s conftest.err
32817 } && test -s conftest$ac_exeext &&
32818 $as_test_x conftest$ac_exeext; then
32819 ac_cv_imap_tk="yes"
32820 else
32821 echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32824 ac_cv_imap_tk="no"
32828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32829 conftest$ac_exeext conftest.$ac_ext
32830 if test "${ac_cv_imap_tk}" = "yes"; then
32831 cat >conftest.$ac_ext <<_ACEOF
32832 /* confdefs.h. */
32833 _ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h. */
32837 #include "c-client.h"
32838 void mm_searched (MAILSTREAM *stream,unsigned long number)
32841 void mm_exists (MAILSTREAM *stream,unsigned long number)
32844 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32847 void mm_flags (MAILSTREAM *stream,unsigned long number)
32850 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32853 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32856 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32859 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32862 void mm_log (char *string,long errflg)
32865 void mm_dlog (char *string)
32868 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32871 void mm_critical (MAILSTREAM *stream)
32874 void mm_nocritical (MAILSTREAM *stream)
32877 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32880 void mm_fatal (char *string)
32884 main ()
32887 long check = mail_expunge_full(NULL, "", 0);
32891 return 0;
32893 _ACEOF
32894 rm -f conftest.$ac_objext conftest$ac_exeext
32895 if { (ac_try="$ac_link"
32896 case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899 esac
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_link") 2>conftest.er1
32902 ac_status=$?
32903 grep -v '^ *+' conftest.er1 >conftest.err
32904 rm -f conftest.er1
32905 cat conftest.err >&5
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); } && {
32908 test -z "$ac_c_werror_flag" ||
32909 test ! -s conftest.err
32910 } && test -s conftest$ac_exeext &&
32911 $as_test_x conftest$ac_exeext; then
32912 ac_cv_imap_tk2006="yes"
32913 else
32914 echo "$as_me: failed program was:" >&5
32915 sed 's/^/| /' conftest.$ac_ext >&5
32917 ac_cv_imap_tk2006="no"
32921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32922 conftest$ac_exeext conftest.$ac_ext
32927 if test "${IMAP_TK_DIR}" = "system"; then
32928 #We will enter here if user specified "system" or if any of above checks failed
32929 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32930 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32931 CPPFLAGS="${saved_cppflags}"
32932 LIBS="${saved_libs}"
32933 imap_ldflags=""
32934 imap_libs="-lc-client"
32935 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32936 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32937 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32938 cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h. */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32944 #include <stdio.h>
32945 #include <imap/c-client.h>
32946 void mm_searched (MAILSTREAM *stream,unsigned long number)
32949 void mm_exists (MAILSTREAM *stream,unsigned long number)
32952 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32955 void mm_flags (MAILSTREAM *stream,unsigned long number)
32958 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32961 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32964 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32967 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32970 void mm_log (char *string,long errflg)
32973 void mm_dlog (char *string)
32976 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32979 void mm_critical (MAILSTREAM *stream)
32982 void mm_nocritical (MAILSTREAM *stream)
32985 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32988 void mm_fatal (char *string)
32992 main ()
32995 MAILSTREAM *foo = mail_open(NULL, "", 0);
32999 return 0;
33001 _ACEOF
33002 rm -f conftest.$ac_objext conftest$ac_exeext
33003 if { (ac_try="$ac_link"
33004 case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33007 esac
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_link") 2>conftest.er1
33010 ac_status=$?
33011 grep -v '^ *+' conftest.er1 >conftest.err
33012 rm -f conftest.er1
33013 cat conftest.err >&5
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } && {
33016 test -z "$ac_c_werror_flag" ||
33017 test ! -s conftest.err
33018 } && test -s conftest$ac_exeext &&
33019 $as_test_x conftest$ac_exeext; then
33020 ac_cv_imap_tk="yes"
33021 else
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 ac_cv_imap_tk="no"
33029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33030 conftest$ac_exeext conftest.$ac_ext
33031 if test "${ac_cv_imap_tk}" = "yes"; then
33032 cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h. */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33038 #include <stdio.h>
33039 #include <imap/c-client.h>
33040 void mm_searched (MAILSTREAM *stream,unsigned long number)
33043 void mm_exists (MAILSTREAM *stream,unsigned long number)
33046 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33049 void mm_flags (MAILSTREAM *stream,unsigned long number)
33052 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33055 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33058 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33061 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33064 void mm_log (char *string,long errflg)
33067 void mm_dlog (char *string)
33070 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33073 void mm_critical (MAILSTREAM *stream)
33076 void mm_nocritical (MAILSTREAM *stream)
33079 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33082 void mm_fatal (char *string)
33086 main ()
33089 long check = mail_expunge_full(NULL, "", 0);
33093 return 0;
33095 _ACEOF
33096 rm -f conftest.$ac_objext conftest$ac_exeext
33097 if { (ac_try="$ac_link"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_link") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest$ac_exeext &&
33113 $as_test_x conftest$ac_exeext; then
33114 ac_cv_imap_tk2006="yes"
33115 else
33116 echo "$as_me: failed program was:" >&5
33117 sed 's/^/| /' conftest.$ac_ext >&5
33119 ac_cv_imap_tk2006="no"
33123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33124 conftest$ac_exeext conftest.$ac_ext
33125 else #looking in imap directory didn't work, try c-client
33126 imap_ldflags=""
33127 imap_libs="-lc-client"
33128 imap_include="-DUSE_SYSTEM_CCLIENT"
33129 CPPFLAGS="${saved_cppflags}"
33130 LIBS="${saved_libs}"
33131 CPPFLAGS="${CPPFLAGS} ${imap_include}"
33132 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
33133 cat >conftest.$ac_ext <<_ACEOF
33134 /* confdefs.h. */
33135 _ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h. */
33139 #include <stdio.h>
33140 #include <c-client/c-client.h>
33141 void mm_searched (MAILSTREAM *stream,unsigned long number)
33144 void mm_exists (MAILSTREAM *stream,unsigned long number)
33147 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33150 void mm_flags (MAILSTREAM *stream,unsigned long number)
33153 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33156 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33159 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33162 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33165 void mm_log (char *string,long errflg)
33168 void mm_dlog (char *string)
33171 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33174 void mm_critical (MAILSTREAM *stream)
33177 void mm_nocritical (MAILSTREAM *stream)
33180 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33183 void mm_fatal (char *string)
33187 main ()
33190 MAILSTREAM *foo = mail_open(NULL, "", 0);
33194 return 0;
33196 _ACEOF
33197 rm -f conftest.$ac_objext conftest$ac_exeext
33198 if { (ac_try="$ac_link"
33199 case "(($ac_try" in
33200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201 *) ac_try_echo=$ac_try;;
33202 esac
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204 (eval "$ac_link") 2>conftest.er1
33205 ac_status=$?
33206 grep -v '^ *+' conftest.er1 >conftest.err
33207 rm -f conftest.er1
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } && {
33211 test -z "$ac_c_werror_flag" ||
33212 test ! -s conftest.err
33213 } && test -s conftest$ac_exeext &&
33214 $as_test_x conftest$ac_exeext; then
33215 ac_cv_imap_tk="yes"
33216 else
33217 echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33220 ac_cv_imap_tk="no"
33224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33225 conftest$ac_exeext conftest.$ac_ext
33226 if test "${ac_cv_imap_tk}" = "yes"; then
33227 cat >conftest.$ac_ext <<_ACEOF
33228 /* confdefs.h. */
33229 _ACEOF
33230 cat confdefs.h >>conftest.$ac_ext
33231 cat >>conftest.$ac_ext <<_ACEOF
33232 /* end confdefs.h. */
33233 #include <stdio.h>
33234 #include <c-client/c-client.h>
33235 void mm_searched (MAILSTREAM *stream,unsigned long number)
33238 void mm_exists (MAILSTREAM *stream,unsigned long number)
33241 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33244 void mm_flags (MAILSTREAM *stream,unsigned long number)
33247 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33250 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33253 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33256 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33259 void mm_log (char *string,long errflg)
33262 void mm_dlog (char *string)
33265 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33268 void mm_critical (MAILSTREAM *stream)
33271 void mm_nocritical (MAILSTREAM *stream)
33274 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33277 void mm_fatal (char *string)
33281 main ()
33284 long check = mail_expunge_full(NULL, "", 0);
33288 return 0;
33290 _ACEOF
33291 rm -f conftest.$ac_objext conftest$ac_exeext
33292 if { (ac_try="$ac_link"
33293 case "(($ac_try" in
33294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295 *) ac_try_echo=$ac_try;;
33296 esac
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_link") 2>conftest.er1
33299 ac_status=$?
33300 grep -v '^ *+' conftest.er1 >conftest.err
33301 rm -f conftest.er1
33302 cat conftest.err >&5
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); } && {
33305 test -z "$ac_c_werror_flag" ||
33306 test ! -s conftest.err
33307 } && test -s conftest$ac_exeext &&
33308 $as_test_x conftest$ac_exeext; then
33309 ac_cv_imap_tk2006="yes"
33310 else
33311 echo "$as_me: failed program was:" >&5
33312 sed 's/^/| /' conftest.$ac_ext >&5
33314 ac_cv_imap_tk2006="no"
33318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33319 conftest$ac_exeext conftest.$ac_ext
33323 if test "${ac_cv_imap_tk}" = "yes"; then
33324 { echo "$as_me:$LINENO: result: yes" >&5
33325 echo "${ECHO_T}yes" >&6; }
33326 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33327 IMAP_TK_INCLUDE="${imap_include}"
33328 PBX_IMAP_TK=1
33330 cat >>confdefs.h <<\_ACEOF
33331 #define HAVE_IMAP_TK 1
33332 _ACEOF
33334 if test "${ac_cv_imap_tk2006}" = "yes"; then
33336 cat >>confdefs.h <<\_ACEOF
33337 #define HAVE_IMAP_TK2006 1
33338 _ACEOF
33341 else
33342 { echo "$as_me:$LINENO: result: no" >&5
33343 echo "${ECHO_T}no" >&6; }
33345 CPPFLAGS="${saved_cppflags}"
33346 LIBS="${saved_libs}"
33350 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33351 pbxlibdir=""
33352 # if --with-JACK=DIR has been specified, use it.
33353 if test "x${JACK_DIR}" != "x"; then
33354 if test -d ${JACK_DIR}/lib; then
33355 pbxlibdir="-L${JACK_DIR}/lib"
33356 else
33357 pbxlibdir="-L${JACK_DIR}"
33360 pbxfuncname="jack_activate"
33361 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33362 AST_JACK_FOUND=yes
33363 else
33364 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33365 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33366 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33367 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33368 echo $ECHO_N "(cached) $ECHO_C" >&6
33369 else
33370 ac_check_lib_save_LIBS=$LIBS
33371 LIBS="-ljack ${pbxlibdir} $LIBS"
33372 cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h. */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h. */
33379 /* Override any GCC internal prototype to avoid an error.
33380 Use char because int might match the return type of a GCC
33381 builtin and then its argument prototype would still apply. */
33382 #ifdef __cplusplus
33383 extern "C"
33384 #endif
33385 char ${pbxfuncname} ();
33387 main ()
33389 return ${pbxfuncname} ();
33391 return 0;
33393 _ACEOF
33394 rm -f conftest.$ac_objext conftest$ac_exeext
33395 if { (ac_try="$ac_link"
33396 case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33399 esac
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_link") 2>conftest.er1
33402 ac_status=$?
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } && {
33408 test -z "$ac_c_werror_flag" ||
33409 test ! -s conftest.err
33410 } && test -s conftest$ac_exeext &&
33411 $as_test_x conftest$ac_exeext; then
33412 eval "$as_ac_Lib=yes"
33413 else
33414 echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33417 eval "$as_ac_Lib=no"
33420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33421 conftest$ac_exeext conftest.$ac_ext
33422 LIBS=$ac_check_lib_save_LIBS
33424 ac_res=`eval echo '${'$as_ac_Lib'}'`
33425 { echo "$as_me:$LINENO: result: $ac_res" >&5
33426 echo "${ECHO_T}$ac_res" >&6; }
33427 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33428 AST_JACK_FOUND=yes
33429 else
33430 AST_JACK_FOUND=no
33435 # now check for the header.
33436 if test "${AST_JACK_FOUND}" = "yes"; then
33437 JACK_LIB="${pbxlibdir} -ljack "
33438 # if --with-JACK=DIR has been specified, use it.
33439 if test "x${JACK_DIR}" != "x"; then
33440 JACK_INCLUDE="-I${JACK_DIR}/include"
33442 JACK_INCLUDE="${JACK_INCLUDE} "
33443 if test "xjack/jack.h" = "x" ; then # no header, assume found
33444 JACK_HEADER_FOUND="1"
33445 else # check for the header
33446 saved_cppflags="${CPPFLAGS}"
33447 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
33448 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33449 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33450 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33451 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33452 echo $ECHO_N "(cached) $ECHO_C" >&6
33454 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33455 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33456 else
33457 # Is the header compilable?
33458 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33459 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33460 cat >conftest.$ac_ext <<_ACEOF
33461 /* confdefs.h. */
33462 _ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h. */
33466 $ac_includes_default
33467 #include <jack/jack.h>
33468 _ACEOF
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33474 esac
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_compile") 2>conftest.er1
33477 ac_status=$?
33478 grep -v '^ *+' conftest.er1 >conftest.err
33479 rm -f conftest.er1
33480 cat conftest.err >&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } && {
33483 test -z "$ac_c_werror_flag" ||
33484 test ! -s conftest.err
33485 } && test -s conftest.$ac_objext; then
33486 ac_header_compiler=yes
33487 else
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 ac_header_compiler=no
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33496 echo "${ECHO_T}$ac_header_compiler" >&6; }
33498 # Is the header present?
33499 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33500 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33501 cat >conftest.$ac_ext <<_ACEOF
33502 /* confdefs.h. */
33503 _ACEOF
33504 cat confdefs.h >>conftest.$ac_ext
33505 cat >>conftest.$ac_ext <<_ACEOF
33506 /* end confdefs.h. */
33507 #include <jack/jack.h>
33508 _ACEOF
33509 if { (ac_try="$ac_cpp conftest.$ac_ext"
33510 case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33513 esac
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33516 ac_status=$?
33517 grep -v '^ *+' conftest.er1 >conftest.err
33518 rm -f conftest.er1
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } >/dev/null && {
33522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33523 test ! -s conftest.err
33524 }; then
33525 ac_header_preproc=yes
33526 else
33527 echo "$as_me: failed program was:" >&5
33528 sed 's/^/| /' conftest.$ac_ext >&5
33530 ac_header_preproc=no
33533 rm -f conftest.err conftest.$ac_ext
33534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33535 echo "${ECHO_T}$ac_header_preproc" >&6; }
33537 # So? What about this header?
33538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33539 yes:no: )
33540 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33541 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33542 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33543 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33544 ac_header_preproc=yes
33546 no:yes:* )
33547 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33548 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33549 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33550 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33551 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33552 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33553 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33554 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33555 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33556 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33557 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33558 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33559 ( cat <<\_ASBOX
33560 ## ------------------------------- ##
33561 ## Report this to www.asterisk.org ##
33562 ## ------------------------------- ##
33563 _ASBOX
33564 ) | sed "s/^/$as_me: WARNING: /" >&2
33566 esac
33567 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33568 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33569 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33570 echo $ECHO_N "(cached) $ECHO_C" >&6
33571 else
33572 ac_cv_header_jack_jack_h=$ac_header_preproc
33574 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33575 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33578 if test $ac_cv_header_jack_jack_h = yes; then
33579 JACK_HEADER_FOUND=1
33580 else
33581 JACK_HEADER_FOUND=0
33585 CPPFLAGS="${saved_cppflags}"
33587 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33588 JACK_LIB=""
33589 JACK_INCLUDE=""
33590 else
33591 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33592 JACK_LIB=""
33594 PBX_JACK=1
33595 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33597 cat >>confdefs.h <<_ACEOF
33598 #define HAVE_JACK 1
33599 _ACEOF
33602 cat >>confdefs.h <<_ACEOF
33603 #define HAVE_JACK_VERSION
33604 _ACEOF
33611 # Needed by unixodbc
33613 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33614 pbxlibdir=""
33615 # if --with-LTDL=DIR has been specified, use it.
33616 if test "x${LTDL_DIR}" != "x"; then
33617 if test -d ${LTDL_DIR}/lib; then
33618 pbxlibdir="-L${LTDL_DIR}/lib"
33619 else
33620 pbxlibdir="-L${LTDL_DIR}"
33623 pbxfuncname="lt_dlinit"
33624 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33625 AST_LTDL_FOUND=yes
33626 else
33627 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33628 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33629 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33630 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33631 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 else
33633 ac_check_lib_save_LIBS=$LIBS
33634 LIBS="-lltdl ${pbxlibdir} $LIBS"
33635 cat >conftest.$ac_ext <<_ACEOF
33636 /* confdefs.h. */
33637 _ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33642 /* Override any GCC internal prototype to avoid an error.
33643 Use char because int might match the return type of a GCC
33644 builtin and then its argument prototype would still apply. */
33645 #ifdef __cplusplus
33646 extern "C"
33647 #endif
33648 char ${pbxfuncname} ();
33650 main ()
33652 return ${pbxfuncname} ();
33654 return 0;
33656 _ACEOF
33657 rm -f conftest.$ac_objext conftest$ac_exeext
33658 if { (ac_try="$ac_link"
33659 case "(($ac_try" in
33660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661 *) ac_try_echo=$ac_try;;
33662 esac
33663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664 (eval "$ac_link") 2>conftest.er1
33665 ac_status=$?
33666 grep -v '^ *+' conftest.er1 >conftest.err
33667 rm -f conftest.er1
33668 cat conftest.err >&5
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); } && {
33671 test -z "$ac_c_werror_flag" ||
33672 test ! -s conftest.err
33673 } && test -s conftest$ac_exeext &&
33674 $as_test_x conftest$ac_exeext; then
33675 eval "$as_ac_Lib=yes"
33676 else
33677 echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33680 eval "$as_ac_Lib=no"
33683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33684 conftest$ac_exeext conftest.$ac_ext
33685 LIBS=$ac_check_lib_save_LIBS
33687 ac_res=`eval echo '${'$as_ac_Lib'}'`
33688 { echo "$as_me:$LINENO: result: $ac_res" >&5
33689 echo "${ECHO_T}$ac_res" >&6; }
33690 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33691 AST_LTDL_FOUND=yes
33692 else
33693 AST_LTDL_FOUND=no
33698 # now check for the header.
33699 if test "${AST_LTDL_FOUND}" = "yes"; then
33700 LTDL_LIB="${pbxlibdir} -lltdl "
33701 # if --with-LTDL=DIR has been specified, use it.
33702 if test "x${LTDL_DIR}" != "x"; then
33703 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33705 LTDL_INCLUDE="${LTDL_INCLUDE} "
33706 if test "xltdl.h" = "x" ; then # no header, assume found
33707 LTDL_HEADER_FOUND="1"
33708 else # check for the header
33709 saved_cppflags="${CPPFLAGS}"
33710 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
33711 if test "${ac_cv_header_ltdl_h+set}" = set; then
33712 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33713 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33714 if test "${ac_cv_header_ltdl_h+set}" = set; then
33715 echo $ECHO_N "(cached) $ECHO_C" >&6
33717 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33718 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33719 else
33720 # Is the header compilable?
33721 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33722 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33723 cat >conftest.$ac_ext <<_ACEOF
33724 /* confdefs.h. */
33725 _ACEOF
33726 cat confdefs.h >>conftest.$ac_ext
33727 cat >>conftest.$ac_ext <<_ACEOF
33728 /* end confdefs.h. */
33729 $ac_includes_default
33730 #include <ltdl.h>
33731 _ACEOF
33732 rm -f conftest.$ac_objext
33733 if { (ac_try="$ac_compile"
33734 case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_compile") 2>conftest.er1
33740 ac_status=$?
33741 grep -v '^ *+' conftest.er1 >conftest.err
33742 rm -f conftest.er1
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } && {
33746 test -z "$ac_c_werror_flag" ||
33747 test ! -s conftest.err
33748 } && test -s conftest.$ac_objext; then
33749 ac_header_compiler=yes
33750 else
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ac_header_compiler=no
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33759 echo "${ECHO_T}$ac_header_compiler" >&6; }
33761 # Is the header present?
33762 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33763 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33764 cat >conftest.$ac_ext <<_ACEOF
33765 /* confdefs.h. */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h. */
33770 #include <ltdl.h>
33771 _ACEOF
33772 if { (ac_try="$ac_cpp conftest.$ac_ext"
33773 case "(($ac_try" in
33774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33775 *) ac_try_echo=$ac_try;;
33776 esac
33777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33779 ac_status=$?
33780 grep -v '^ *+' conftest.er1 >conftest.err
33781 rm -f conftest.er1
33782 cat conftest.err >&5
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } >/dev/null && {
33785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33786 test ! -s conftest.err
33787 }; then
33788 ac_header_preproc=yes
33789 else
33790 echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33793 ac_header_preproc=no
33796 rm -f conftest.err conftest.$ac_ext
33797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33798 echo "${ECHO_T}$ac_header_preproc" >&6; }
33800 # So? What about this header?
33801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33802 yes:no: )
33803 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33804 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33805 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33806 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33807 ac_header_preproc=yes
33809 no:yes:* )
33810 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33811 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33812 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33813 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33814 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33815 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33816 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33817 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33818 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33819 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33820 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33821 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33822 ( cat <<\_ASBOX
33823 ## ------------------------------- ##
33824 ## Report this to www.asterisk.org ##
33825 ## ------------------------------- ##
33826 _ASBOX
33827 ) | sed "s/^/$as_me: WARNING: /" >&2
33829 esac
33830 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33831 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33832 if test "${ac_cv_header_ltdl_h+set}" = set; then
33833 echo $ECHO_N "(cached) $ECHO_C" >&6
33834 else
33835 ac_cv_header_ltdl_h=$ac_header_preproc
33837 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33838 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33841 if test $ac_cv_header_ltdl_h = yes; then
33842 LTDL_HEADER_FOUND=1
33843 else
33844 LTDL_HEADER_FOUND=0
33848 CPPFLAGS="${saved_cppflags}"
33850 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33851 LTDL_LIB=""
33852 LTDL_INCLUDE=""
33853 else
33854 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33855 LTDL_LIB=""
33857 PBX_LTDL=1
33858 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33860 cat >>confdefs.h <<_ACEOF
33861 #define HAVE_LTDL 1
33862 _ACEOF
33865 cat >>confdefs.h <<_ACEOF
33866 #define HAVE_LTDL_VERSION
33867 _ACEOF
33875 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33876 pbxlibdir=""
33877 # if --with-LDAP=DIR has been specified, use it.
33878 if test "x${LDAP_DIR}" != "x"; then
33879 if test -d ${LDAP_DIR}/lib; then
33880 pbxlibdir="-L${LDAP_DIR}/lib"
33881 else
33882 pbxlibdir="-L${LDAP_DIR}"
33885 pbxfuncname="ldap_initialize"
33886 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33887 AST_LDAP_FOUND=yes
33888 else
33889 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33890 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33891 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33892 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33893 echo $ECHO_N "(cached) $ECHO_C" >&6
33894 else
33895 ac_check_lib_save_LIBS=$LIBS
33896 LIBS="-lldap ${pbxlibdir} $LIBS"
33897 cat >conftest.$ac_ext <<_ACEOF
33898 /* confdefs.h. */
33899 _ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h. */
33904 /* Override any GCC internal prototype to avoid an error.
33905 Use char because int might match the return type of a GCC
33906 builtin and then its argument prototype would still apply. */
33907 #ifdef __cplusplus
33908 extern "C"
33909 #endif
33910 char ${pbxfuncname} ();
33912 main ()
33914 return ${pbxfuncname} ();
33916 return 0;
33918 _ACEOF
33919 rm -f conftest.$ac_objext conftest$ac_exeext
33920 if { (ac_try="$ac_link"
33921 case "(($ac_try" in
33922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923 *) ac_try_echo=$ac_try;;
33924 esac
33925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926 (eval "$ac_link") 2>conftest.er1
33927 ac_status=$?
33928 grep -v '^ *+' conftest.er1 >conftest.err
33929 rm -f conftest.er1
33930 cat conftest.err >&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } && {
33933 test -z "$ac_c_werror_flag" ||
33934 test ! -s conftest.err
33935 } && test -s conftest$ac_exeext &&
33936 $as_test_x conftest$ac_exeext; then
33937 eval "$as_ac_Lib=yes"
33938 else
33939 echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33942 eval "$as_ac_Lib=no"
33945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33946 conftest$ac_exeext conftest.$ac_ext
33947 LIBS=$ac_check_lib_save_LIBS
33949 ac_res=`eval echo '${'$as_ac_Lib'}'`
33950 { echo "$as_me:$LINENO: result: $ac_res" >&5
33951 echo "${ECHO_T}$ac_res" >&6; }
33952 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33953 AST_LDAP_FOUND=yes
33954 else
33955 AST_LDAP_FOUND=no
33960 # now check for the header.
33961 if test "${AST_LDAP_FOUND}" = "yes"; then
33962 LDAP_LIB="${pbxlibdir} -lldap "
33963 # if --with-LDAP=DIR has been specified, use it.
33964 if test "x${LDAP_DIR}" != "x"; then
33965 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33967 LDAP_INCLUDE="${LDAP_INCLUDE} "
33968 if test "xldap.h" = "x" ; then # no header, assume found
33969 LDAP_HEADER_FOUND="1"
33970 else # check for the header
33971 saved_cppflags="${CPPFLAGS}"
33972 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
33973 if test "${ac_cv_header_ldap_h+set}" = set; then
33974 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33975 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33976 if test "${ac_cv_header_ldap_h+set}" = set; then
33977 echo $ECHO_N "(cached) $ECHO_C" >&6
33979 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33980 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33981 else
33982 # Is the header compilable?
33983 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33984 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33985 cat >conftest.$ac_ext <<_ACEOF
33986 /* confdefs.h. */
33987 _ACEOF
33988 cat confdefs.h >>conftest.$ac_ext
33989 cat >>conftest.$ac_ext <<_ACEOF
33990 /* end confdefs.h. */
33991 $ac_includes_default
33992 #include <ldap.h>
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (ac_try="$ac_compile"
33996 case "(($ac_try" in
33997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33998 *) ac_try_echo=$ac_try;;
33999 esac
34000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34001 (eval "$ac_compile") 2>conftest.er1
34002 ac_status=$?
34003 grep -v '^ *+' conftest.er1 >conftest.err
34004 rm -f conftest.er1
34005 cat conftest.err >&5
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); } && {
34008 test -z "$ac_c_werror_flag" ||
34009 test ! -s conftest.err
34010 } && test -s conftest.$ac_objext; then
34011 ac_header_compiler=yes
34012 else
34013 echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34016 ac_header_compiler=no
34019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34021 echo "${ECHO_T}$ac_header_compiler" >&6; }
34023 # Is the header present?
34024 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
34025 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
34026 cat >conftest.$ac_ext <<_ACEOF
34027 /* confdefs.h. */
34028 _ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h. */
34032 #include <ldap.h>
34033 _ACEOF
34034 if { (ac_try="$ac_cpp conftest.$ac_ext"
34035 case "(($ac_try" in
34036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037 *) ac_try_echo=$ac_try;;
34038 esac
34039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34041 ac_status=$?
34042 grep -v '^ *+' conftest.er1 >conftest.err
34043 rm -f conftest.er1
34044 cat conftest.err >&5
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); } >/dev/null && {
34047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34048 test ! -s conftest.err
34049 }; then
34050 ac_header_preproc=yes
34051 else
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_header_preproc=no
34058 rm -f conftest.err conftest.$ac_ext
34059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34060 echo "${ECHO_T}$ac_header_preproc" >&6; }
34062 # So? What about this header?
34063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34064 yes:no: )
34065 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
34066 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34067 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
34068 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
34069 ac_header_preproc=yes
34071 no:yes:* )
34072 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
34073 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
34074 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
34075 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
34076 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
34077 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
34078 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
34079 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
34080 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
34081 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
34082 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
34083 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
34084 ( cat <<\_ASBOX
34085 ## ------------------------------- ##
34086 ## Report this to www.asterisk.org ##
34087 ## ------------------------------- ##
34088 _ASBOX
34089 ) | sed "s/^/$as_me: WARNING: /" >&2
34091 esac
34092 { echo "$as_me:$LINENO: checking for ldap.h" >&5
34093 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
34094 if test "${ac_cv_header_ldap_h+set}" = set; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34096 else
34097 ac_cv_header_ldap_h=$ac_header_preproc
34099 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
34100 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
34103 if test $ac_cv_header_ldap_h = yes; then
34104 LDAP_HEADER_FOUND=1
34105 else
34106 LDAP_HEADER_FOUND=0
34110 CPPFLAGS="${saved_cppflags}"
34112 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
34113 LDAP_LIB=""
34114 LDAP_INCLUDE=""
34115 else
34116 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34117 LDAP_LIB=""
34119 PBX_LDAP=1
34120 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34122 cat >>confdefs.h <<_ACEOF
34123 #define HAVE_LDAP 1
34124 _ACEOF
34127 cat >>confdefs.h <<_ACEOF
34128 #define HAVE_LDAP_VERSION
34129 _ACEOF
34137 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
34138 pbxlibdir=""
34139 # if --with-MISDN=DIR has been specified, use it.
34140 if test "x${MISDN_DIR}" != "x"; then
34141 if test -d ${MISDN_DIR}/lib; then
34142 pbxlibdir="-L${MISDN_DIR}/lib"
34143 else
34144 pbxlibdir="-L${MISDN_DIR}"
34147 pbxfuncname="mISDN_open"
34148 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34149 AST_MISDN_FOUND=yes
34150 else
34151 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
34152 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
34153 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
34154 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34155 echo $ECHO_N "(cached) $ECHO_C" >&6
34156 else
34157 ac_check_lib_save_LIBS=$LIBS
34158 LIBS="-lmISDN ${pbxlibdir} $LIBS"
34159 cat >conftest.$ac_ext <<_ACEOF
34160 /* confdefs.h. */
34161 _ACEOF
34162 cat confdefs.h >>conftest.$ac_ext
34163 cat >>conftest.$ac_ext <<_ACEOF
34164 /* end confdefs.h. */
34166 /* Override any GCC internal prototype to avoid an error.
34167 Use char because int might match the return type of a GCC
34168 builtin and then its argument prototype would still apply. */
34169 #ifdef __cplusplus
34170 extern "C"
34171 #endif
34172 char ${pbxfuncname} ();
34174 main ()
34176 return ${pbxfuncname} ();
34178 return 0;
34180 _ACEOF
34181 rm -f conftest.$ac_objext conftest$ac_exeext
34182 if { (ac_try="$ac_link"
34183 case "(($ac_try" in
34184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34185 *) ac_try_echo=$ac_try;;
34186 esac
34187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34188 (eval "$ac_link") 2>conftest.er1
34189 ac_status=$?
34190 grep -v '^ *+' conftest.er1 >conftest.err
34191 rm -f conftest.er1
34192 cat conftest.err >&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); } && {
34195 test -z "$ac_c_werror_flag" ||
34196 test ! -s conftest.err
34197 } && test -s conftest$ac_exeext &&
34198 $as_test_x conftest$ac_exeext; then
34199 eval "$as_ac_Lib=yes"
34200 else
34201 echo "$as_me: failed program was:" >&5
34202 sed 's/^/| /' conftest.$ac_ext >&5
34204 eval "$as_ac_Lib=no"
34207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34208 conftest$ac_exeext conftest.$ac_ext
34209 LIBS=$ac_check_lib_save_LIBS
34211 ac_res=`eval echo '${'$as_ac_Lib'}'`
34212 { echo "$as_me:$LINENO: result: $ac_res" >&5
34213 echo "${ECHO_T}$ac_res" >&6; }
34214 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34215 AST_MISDN_FOUND=yes
34216 else
34217 AST_MISDN_FOUND=no
34222 # now check for the header.
34223 if test "${AST_MISDN_FOUND}" = "yes"; then
34224 MISDN_LIB="${pbxlibdir} -lmISDN "
34225 # if --with-MISDN=DIR has been specified, use it.
34226 if test "x${MISDN_DIR}" != "x"; then
34227 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34229 MISDN_INCLUDE="${MISDN_INCLUDE} "
34230 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34231 MISDN_HEADER_FOUND="1"
34232 else # check for the header
34233 saved_cppflags="${CPPFLAGS}"
34234 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
34235 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34236 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34237 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34238 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34239 echo $ECHO_N "(cached) $ECHO_C" >&6
34241 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34242 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34243 else
34244 # Is the header compilable?
34245 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34246 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34247 cat >conftest.$ac_ext <<_ACEOF
34248 /* confdefs.h. */
34249 _ACEOF
34250 cat confdefs.h >>conftest.$ac_ext
34251 cat >>conftest.$ac_ext <<_ACEOF
34252 /* end confdefs.h. */
34253 $ac_includes_default
34254 #include <mISDNuser/mISDNlib.h>
34255 _ACEOF
34256 rm -f conftest.$ac_objext
34257 if { (ac_try="$ac_compile"
34258 case "(($ac_try" in
34259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34260 *) ac_try_echo=$ac_try;;
34261 esac
34262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34263 (eval "$ac_compile") 2>conftest.er1
34264 ac_status=$?
34265 grep -v '^ *+' conftest.er1 >conftest.err
34266 rm -f conftest.er1
34267 cat conftest.err >&5
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); } && {
34270 test -z "$ac_c_werror_flag" ||
34271 test ! -s conftest.err
34272 } && test -s conftest.$ac_objext; then
34273 ac_header_compiler=yes
34274 else
34275 echo "$as_me: failed program was:" >&5
34276 sed 's/^/| /' conftest.$ac_ext >&5
34278 ac_header_compiler=no
34281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34283 echo "${ECHO_T}$ac_header_compiler" >&6; }
34285 # Is the header present?
34286 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34287 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34288 cat >conftest.$ac_ext <<_ACEOF
34289 /* confdefs.h. */
34290 _ACEOF
34291 cat confdefs.h >>conftest.$ac_ext
34292 cat >>conftest.$ac_ext <<_ACEOF
34293 /* end confdefs.h. */
34294 #include <mISDNuser/mISDNlib.h>
34295 _ACEOF
34296 if { (ac_try="$ac_cpp conftest.$ac_ext"
34297 case "(($ac_try" in
34298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299 *) ac_try_echo=$ac_try;;
34300 esac
34301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34303 ac_status=$?
34304 grep -v '^ *+' conftest.er1 >conftest.err
34305 rm -f conftest.er1
34306 cat conftest.err >&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } >/dev/null && {
34309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34310 test ! -s conftest.err
34311 }; then
34312 ac_header_preproc=yes
34313 else
34314 echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34317 ac_header_preproc=no
34320 rm -f conftest.err conftest.$ac_ext
34321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34322 echo "${ECHO_T}$ac_header_preproc" >&6; }
34324 # So? What about this header?
34325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34326 yes:no: )
34327 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34328 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34329 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34330 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34331 ac_header_preproc=yes
34333 no:yes:* )
34334 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34335 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34336 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34337 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34338 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34339 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34340 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34341 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34342 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34343 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34345 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34346 ( cat <<\_ASBOX
34347 ## ------------------------------- ##
34348 ## Report this to www.asterisk.org ##
34349 ## ------------------------------- ##
34350 _ASBOX
34351 ) | sed "s/^/$as_me: WARNING: /" >&2
34353 esac
34354 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34355 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34356 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34357 echo $ECHO_N "(cached) $ECHO_C" >&6
34358 else
34359 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34361 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34362 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34365 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34366 MISDN_HEADER_FOUND=1
34367 else
34368 MISDN_HEADER_FOUND=0
34372 CPPFLAGS="${saved_cppflags}"
34374 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34375 MISDN_LIB=""
34376 MISDN_INCLUDE=""
34377 else
34378 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34379 MISDN_LIB=""
34381 PBX_MISDN=1
34382 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34384 cat >>confdefs.h <<_ACEOF
34385 #define HAVE_MISDN 1
34386 _ACEOF
34389 cat >>confdefs.h <<_ACEOF
34390 #define HAVE_MISDN_VERSION
34391 _ACEOF
34398 if test "${PBX_MISDN}" = 1; then
34400 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34401 pbxlibdir=""
34402 # if --with-ISDNNET=DIR has been specified, use it.
34403 if test "x${ISDNNET_DIR}" != "x"; then
34404 if test -d ${ISDNNET_DIR}/lib; then
34405 pbxlibdir="-L${ISDNNET_DIR}/lib"
34406 else
34407 pbxlibdir="-L${ISDNNET_DIR}"
34410 pbxfuncname="init_manager"
34411 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34412 AST_ISDNNET_FOUND=yes
34413 else
34414 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34415 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34416 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34417 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34418 echo $ECHO_N "(cached) $ECHO_C" >&6
34419 else
34420 ac_check_lib_save_LIBS=$LIBS
34421 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34422 cat >conftest.$ac_ext <<_ACEOF
34423 /* confdefs.h. */
34424 _ACEOF
34425 cat confdefs.h >>conftest.$ac_ext
34426 cat >>conftest.$ac_ext <<_ACEOF
34427 /* end confdefs.h. */
34429 /* Override any GCC internal prototype to avoid an error.
34430 Use char because int might match the return type of a GCC
34431 builtin and then its argument prototype would still apply. */
34432 #ifdef __cplusplus
34433 extern "C"
34434 #endif
34435 char ${pbxfuncname} ();
34437 main ()
34439 return ${pbxfuncname} ();
34441 return 0;
34443 _ACEOF
34444 rm -f conftest.$ac_objext conftest$ac_exeext
34445 if { (ac_try="$ac_link"
34446 case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34449 esac
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_link") 2>conftest.er1
34452 ac_status=$?
34453 grep -v '^ *+' conftest.er1 >conftest.err
34454 rm -f conftest.er1
34455 cat conftest.err >&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); } && {
34458 test -z "$ac_c_werror_flag" ||
34459 test ! -s conftest.err
34460 } && test -s conftest$ac_exeext &&
34461 $as_test_x conftest$ac_exeext; then
34462 eval "$as_ac_Lib=yes"
34463 else
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 eval "$as_ac_Lib=no"
34470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34471 conftest$ac_exeext conftest.$ac_ext
34472 LIBS=$ac_check_lib_save_LIBS
34474 ac_res=`eval echo '${'$as_ac_Lib'}'`
34475 { echo "$as_me:$LINENO: result: $ac_res" >&5
34476 echo "${ECHO_T}$ac_res" >&6; }
34477 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34478 AST_ISDNNET_FOUND=yes
34479 else
34480 AST_ISDNNET_FOUND=no
34485 # now check for the header.
34486 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34487 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34488 # if --with-ISDNNET=DIR has been specified, use it.
34489 if test "x${ISDNNET_DIR}" != "x"; then
34490 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34492 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34493 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34494 ISDNNET_HEADER_FOUND="1"
34495 else # check for the header
34496 saved_cppflags="${CPPFLAGS}"
34497 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
34498 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34499 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34500 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34501 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34504 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34505 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34506 else
34507 # Is the header compilable?
34508 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34509 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34510 cat >conftest.$ac_ext <<_ACEOF
34511 /* confdefs.h. */
34512 _ACEOF
34513 cat confdefs.h >>conftest.$ac_ext
34514 cat >>conftest.$ac_ext <<_ACEOF
34515 /* end confdefs.h. */
34516 $ac_includes_default
34517 #include <mISDNuser/isdn_net.h>
34518 _ACEOF
34519 rm -f conftest.$ac_objext
34520 if { (ac_try="$ac_compile"
34521 case "(($ac_try" in
34522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34523 *) ac_try_echo=$ac_try;;
34524 esac
34525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34526 (eval "$ac_compile") 2>conftest.er1
34527 ac_status=$?
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } && {
34533 test -z "$ac_c_werror_flag" ||
34534 test ! -s conftest.err
34535 } && test -s conftest.$ac_objext; then
34536 ac_header_compiler=yes
34537 else
34538 echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34541 ac_header_compiler=no
34544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34546 echo "${ECHO_T}$ac_header_compiler" >&6; }
34548 # Is the header present?
34549 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34550 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34551 cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h. */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h. */
34557 #include <mISDNuser/isdn_net.h>
34558 _ACEOF
34559 if { (ac_try="$ac_cpp conftest.$ac_ext"
34560 case "(($ac_try" in
34561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34562 *) ac_try_echo=$ac_try;;
34563 esac
34564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34566 ac_status=$?
34567 grep -v '^ *+' conftest.er1 >conftest.err
34568 rm -f conftest.er1
34569 cat conftest.err >&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); } >/dev/null && {
34572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34573 test ! -s conftest.err
34574 }; then
34575 ac_header_preproc=yes
34576 else
34577 echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34580 ac_header_preproc=no
34583 rm -f conftest.err conftest.$ac_ext
34584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34585 echo "${ECHO_T}$ac_header_preproc" >&6; }
34587 # So? What about this header?
34588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34589 yes:no: )
34590 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34591 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34592 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34593 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34594 ac_header_preproc=yes
34596 no:yes:* )
34597 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34598 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34599 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34600 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34601 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34602 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34603 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34604 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34605 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34606 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34607 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34608 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34609 ( cat <<\_ASBOX
34610 ## ------------------------------- ##
34611 ## Report this to www.asterisk.org ##
34612 ## ------------------------------- ##
34613 _ASBOX
34614 ) | sed "s/^/$as_me: WARNING: /" >&2
34616 esac
34617 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34618 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34619 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34620 echo $ECHO_N "(cached) $ECHO_C" >&6
34621 else
34622 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34624 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34625 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34628 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34629 ISDNNET_HEADER_FOUND=1
34630 else
34631 ISDNNET_HEADER_FOUND=0
34635 CPPFLAGS="${saved_cppflags}"
34637 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34638 ISDNNET_LIB=""
34639 ISDNNET_INCLUDE=""
34640 else
34641 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34642 ISDNNET_LIB=""
34644 PBX_ISDNNET=1
34645 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34647 cat >>confdefs.h <<_ACEOF
34648 #define HAVE_ISDNNET 1
34649 _ACEOF
34652 cat >>confdefs.h <<_ACEOF
34653 #define HAVE_ISDNNET_VERSION
34654 _ACEOF
34661 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34662 pbxlibdir=""
34663 # if --with-SUPPSERV=DIR has been specified, use it.
34664 if test "x${SUPPSERV_DIR}" != "x"; then
34665 if test -d ${SUPPSERV_DIR}/lib; then
34666 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34667 else
34668 pbxlibdir="-L${SUPPSERV_DIR}"
34671 pbxfuncname="encodeFac"
34672 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34673 AST_SUPPSERV_FOUND=yes
34674 else
34675 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34676 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34677 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34678 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34679 echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681 ac_check_lib_save_LIBS=$LIBS
34682 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34683 cat >conftest.$ac_ext <<_ACEOF
34684 /* confdefs.h. */
34685 _ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h. */
34690 /* Override any GCC internal prototype to avoid an error.
34691 Use char because int might match the return type of a GCC
34692 builtin and then its argument prototype would still apply. */
34693 #ifdef __cplusplus
34694 extern "C"
34695 #endif
34696 char ${pbxfuncname} ();
34698 main ()
34700 return ${pbxfuncname} ();
34702 return 0;
34704 _ACEOF
34705 rm -f conftest.$ac_objext conftest$ac_exeext
34706 if { (ac_try="$ac_link"
34707 case "(($ac_try" in
34708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34709 *) ac_try_echo=$ac_try;;
34710 esac
34711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34712 (eval "$ac_link") 2>conftest.er1
34713 ac_status=$?
34714 grep -v '^ *+' conftest.er1 >conftest.err
34715 rm -f conftest.er1
34716 cat conftest.err >&5
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); } && {
34719 test -z "$ac_c_werror_flag" ||
34720 test ! -s conftest.err
34721 } && test -s conftest$ac_exeext &&
34722 $as_test_x conftest$ac_exeext; then
34723 eval "$as_ac_Lib=yes"
34724 else
34725 echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34728 eval "$as_ac_Lib=no"
34731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34732 conftest$ac_exeext conftest.$ac_ext
34733 LIBS=$ac_check_lib_save_LIBS
34735 ac_res=`eval echo '${'$as_ac_Lib'}'`
34736 { echo "$as_me:$LINENO: result: $ac_res" >&5
34737 echo "${ECHO_T}$ac_res" >&6; }
34738 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34739 AST_SUPPSERV_FOUND=yes
34740 else
34741 AST_SUPPSERV_FOUND=no
34746 # now check for the header.
34747 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34748 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34749 # if --with-SUPPSERV=DIR has been specified, use it.
34750 if test "x${SUPPSERV_DIR}" != "x"; then
34751 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34753 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34754 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34755 SUPPSERV_HEADER_FOUND="1"
34756 else # check for the header
34757 saved_cppflags="${CPPFLAGS}"
34758 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
34759 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34760 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34761 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34762 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34763 echo $ECHO_N "(cached) $ECHO_C" >&6
34765 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34766 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34767 else
34768 # Is the header compilable?
34769 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34770 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34771 cat >conftest.$ac_ext <<_ACEOF
34772 /* confdefs.h. */
34773 _ACEOF
34774 cat confdefs.h >>conftest.$ac_ext
34775 cat >>conftest.$ac_ext <<_ACEOF
34776 /* end confdefs.h. */
34777 $ac_includes_default
34778 #include <mISDNuser/suppserv.h>
34779 _ACEOF
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34785 esac
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_compile") 2>conftest.er1
34788 ac_status=$?
34789 grep -v '^ *+' conftest.er1 >conftest.err
34790 rm -f conftest.er1
34791 cat conftest.err >&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); } && {
34794 test -z "$ac_c_werror_flag" ||
34795 test ! -s conftest.err
34796 } && test -s conftest.$ac_objext; then
34797 ac_header_compiler=yes
34798 else
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 ac_header_compiler=no
34805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34807 echo "${ECHO_T}$ac_header_compiler" >&6; }
34809 # Is the header present?
34810 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34811 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34812 cat >conftest.$ac_ext <<_ACEOF
34813 /* confdefs.h. */
34814 _ACEOF
34815 cat confdefs.h >>conftest.$ac_ext
34816 cat >>conftest.$ac_ext <<_ACEOF
34817 /* end confdefs.h. */
34818 #include <mISDNuser/suppserv.h>
34819 _ACEOF
34820 if { (ac_try="$ac_cpp conftest.$ac_ext"
34821 case "(($ac_try" in
34822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823 *) ac_try_echo=$ac_try;;
34824 esac
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34827 ac_status=$?
34828 grep -v '^ *+' conftest.er1 >conftest.err
34829 rm -f conftest.er1
34830 cat conftest.err >&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } >/dev/null && {
34833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34834 test ! -s conftest.err
34835 }; then
34836 ac_header_preproc=yes
34837 else
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34841 ac_header_preproc=no
34844 rm -f conftest.err conftest.$ac_ext
34845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34846 echo "${ECHO_T}$ac_header_preproc" >&6; }
34848 # So? What about this header?
34849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34850 yes:no: )
34851 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34852 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34853 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34854 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34855 ac_header_preproc=yes
34857 no:yes:* )
34858 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34859 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34860 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34861 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34862 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34863 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34864 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34865 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34866 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34867 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34868 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34869 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34870 ( cat <<\_ASBOX
34871 ## ------------------------------- ##
34872 ## Report this to www.asterisk.org ##
34873 ## ------------------------------- ##
34874 _ASBOX
34875 ) | sed "s/^/$as_me: WARNING: /" >&2
34877 esac
34878 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34879 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34880 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34881 echo $ECHO_N "(cached) $ECHO_C" >&6
34882 else
34883 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34885 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34886 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34889 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34890 SUPPSERV_HEADER_FOUND=1
34891 else
34892 SUPPSERV_HEADER_FOUND=0
34896 CPPFLAGS="${saved_cppflags}"
34898 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34899 SUPPSERV_LIB=""
34900 SUPPSERV_INCLUDE=""
34901 else
34902 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34903 SUPPSERV_LIB=""
34905 PBX_SUPPSERV=1
34906 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34908 cat >>confdefs.h <<_ACEOF
34909 #define HAVE_SUPPSERV 1
34910 _ACEOF
34913 cat >>confdefs.h <<_ACEOF
34914 #define HAVE_SUPPSERV_VERSION
34915 _ACEOF
34922 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34923 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34924 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34925 saved_cppflags="${CPPFLAGS}"
34926 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34927 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34929 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34931 cat >conftest.$ac_ext <<_ACEOF
34932 /* confdefs.h. */
34933 _ACEOF
34934 cat confdefs.h >>conftest.$ac_ext
34935 cat >>conftest.$ac_ext <<_ACEOF
34936 /* end confdefs.h. */
34937 #include <mISDNuser/suppserv.h>
34939 main ()
34941 #if defined(Fac_RESULT)
34942 int foo = 0;
34943 #else
34944 int foo = bar;
34945 #endif
34949 return 0;
34951 _ACEOF
34952 rm -f conftest.$ac_objext
34953 if { (ac_try="$ac_compile"
34954 case "(($ac_try" in
34955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956 *) ac_try_echo=$ac_try;;
34957 esac
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_compile") 2>conftest.er1
34960 ac_status=$?
34961 grep -v '^ *+' conftest.er1 >conftest.err
34962 rm -f conftest.er1
34963 cat conftest.err >&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } && {
34966 test -z "$ac_c_werror_flag" ||
34967 test ! -s conftest.err
34968 } && test -s conftest.$ac_objext; then
34969 { echo "$as_me:$LINENO: result: yes" >&5
34970 echo "${ECHO_T}yes" >&6; }
34971 PBX_MISDN_FAC_RESULT=1
34973 cat >>confdefs.h <<\_ACEOF
34974 #define HAVE_MISDN_FAC_RESULT 1
34975 _ACEOF
34978 cat >>confdefs.h <<\_ACEOF
34979 #define HAVE_MISDN_FAC_RESULT_VERSION
34980 _ACEOF
34983 else
34984 echo "$as_me: failed program was:" >&5
34985 sed 's/^/| /' conftest.$ac_ext >&5
34987 { echo "$as_me:$LINENO: result: no" >&5
34988 echo "${ECHO_T}no" >&6; }
34992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34993 CPPFLAGS="${saved_cppflags}"
34998 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34999 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
35000 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
35001 saved_cppflags="${CPPFLAGS}"
35002 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
35003 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
35005 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
35007 cat >conftest.$ac_ext <<_ACEOF
35008 /* confdefs.h. */
35009 _ACEOF
35010 cat confdefs.h >>conftest.$ac_ext
35011 cat >>conftest.$ac_ext <<_ACEOF
35012 /* end confdefs.h. */
35013 #include <mISDNuser/suppserv.h>
35015 main ()
35017 #if defined(Fac_ERROR)
35018 int foo = 0;
35019 #else
35020 int foo = bar;
35021 #endif
35025 return 0;
35027 _ACEOF
35028 rm -f conftest.$ac_objext
35029 if { (ac_try="$ac_compile"
35030 case "(($ac_try" in
35031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032 *) ac_try_echo=$ac_try;;
35033 esac
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035 (eval "$ac_compile") 2>conftest.er1
35036 ac_status=$?
35037 grep -v '^ *+' conftest.er1 >conftest.err
35038 rm -f conftest.er1
35039 cat conftest.err >&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); } && {
35042 test -z "$ac_c_werror_flag" ||
35043 test ! -s conftest.err
35044 } && test -s conftest.$ac_objext; then
35045 { echo "$as_me:$LINENO: result: yes" >&5
35046 echo "${ECHO_T}yes" >&6; }
35047 PBX_MISDN_FAC_ERROR=1
35049 cat >>confdefs.h <<\_ACEOF
35050 #define HAVE_MISDN_FAC_ERROR 1
35051 _ACEOF
35054 cat >>confdefs.h <<\_ACEOF
35055 #define HAVE_MISDN_FAC_ERROR_VERSION
35056 _ACEOF
35059 else
35060 echo "$as_me: failed program was:" >&5
35061 sed 's/^/| /' conftest.$ac_ext >&5
35063 { echo "$as_me:$LINENO: result: no" >&5
35064 echo "${ECHO_T}no" >&6; }
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069 CPPFLAGS="${saved_cppflags}"
35073 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35074 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35075 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35076 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35077 echo $ECHO_N "(cached) $ECHO_C" >&6
35079 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35080 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35081 else
35082 # Is the header compilable?
35083 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
35084 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
35085 cat >conftest.$ac_ext <<_ACEOF
35086 /* confdefs.h. */
35087 _ACEOF
35088 cat confdefs.h >>conftest.$ac_ext
35089 cat >>conftest.$ac_ext <<_ACEOF
35090 /* end confdefs.h. */
35091 $ac_includes_default
35092 #include <linux/mISDNdsp.h>
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35099 esac
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101 (eval "$ac_compile") 2>conftest.er1
35102 ac_status=$?
35103 grep -v '^ *+' conftest.er1 >conftest.err
35104 rm -f conftest.er1
35105 cat conftest.err >&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); } && {
35108 test -z "$ac_c_werror_flag" ||
35109 test ! -s conftest.err
35110 } && test -s conftest.$ac_objext; then
35111 ac_header_compiler=yes
35112 else
35113 echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35116 ac_header_compiler=no
35119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35121 echo "${ECHO_T}$ac_header_compiler" >&6; }
35123 # Is the header present?
35124 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
35125 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
35126 cat >conftest.$ac_ext <<_ACEOF
35127 /* confdefs.h. */
35128 _ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h. */
35132 #include <linux/mISDNdsp.h>
35133 _ACEOF
35134 if { (ac_try="$ac_cpp conftest.$ac_ext"
35135 case "(($ac_try" in
35136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35137 *) ac_try_echo=$ac_try;;
35138 esac
35139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35141 ac_status=$?
35142 grep -v '^ *+' conftest.er1 >conftest.err
35143 rm -f conftest.er1
35144 cat conftest.err >&5
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); } >/dev/null && {
35147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35148 test ! -s conftest.err
35149 }; then
35150 ac_header_preproc=yes
35151 else
35152 echo "$as_me: failed program was:" >&5
35153 sed 's/^/| /' conftest.$ac_ext >&5
35155 ac_header_preproc=no
35158 rm -f conftest.err conftest.$ac_ext
35159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35160 echo "${ECHO_T}$ac_header_preproc" >&6; }
35162 # So? What about this header?
35163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35164 yes:no: )
35165 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35166 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35167 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
35168 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
35169 ac_header_preproc=yes
35171 no:yes:* )
35172 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
35173 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
35174 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
35175 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
35176 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
35177 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
35178 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
35179 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35180 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
35181 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
35182 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
35183 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
35184 ( cat <<\_ASBOX
35185 ## ------------------------------- ##
35186 ## Report this to www.asterisk.org ##
35187 ## ------------------------------- ##
35188 _ASBOX
35189 ) | sed "s/^/$as_me: WARNING: /" >&2
35191 esac
35192 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35193 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35194 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35196 else
35197 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
35199 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35200 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35203 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
35205 cat >>confdefs.h <<_ACEOF
35206 #define MISDN_1_2 1
35207 _ACEOF
35215 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
35216 pbxlibdir=""
35217 # if --with-NBS=DIR has been specified, use it.
35218 if test "x${NBS_DIR}" != "x"; then
35219 if test -d ${NBS_DIR}/lib; then
35220 pbxlibdir="-L${NBS_DIR}/lib"
35221 else
35222 pbxlibdir="-L${NBS_DIR}"
35225 pbxfuncname="nbs_connect"
35226 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35227 AST_NBS_FOUND=yes
35228 else
35229 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35230 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35231 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35232 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35233 echo $ECHO_N "(cached) $ECHO_C" >&6
35234 else
35235 ac_check_lib_save_LIBS=$LIBS
35236 LIBS="-lnbs ${pbxlibdir} $LIBS"
35237 cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h. */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h. */
35244 /* Override any GCC internal prototype to avoid an error.
35245 Use char because int might match the return type of a GCC
35246 builtin and then its argument prototype would still apply. */
35247 #ifdef __cplusplus
35248 extern "C"
35249 #endif
35250 char ${pbxfuncname} ();
35252 main ()
35254 return ${pbxfuncname} ();
35256 return 0;
35258 _ACEOF
35259 rm -f conftest.$ac_objext conftest$ac_exeext
35260 if { (ac_try="$ac_link"
35261 case "(($ac_try" in
35262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35263 *) ac_try_echo=$ac_try;;
35264 esac
35265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35266 (eval "$ac_link") 2>conftest.er1
35267 ac_status=$?
35268 grep -v '^ *+' conftest.er1 >conftest.err
35269 rm -f conftest.er1
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } && {
35273 test -z "$ac_c_werror_flag" ||
35274 test ! -s conftest.err
35275 } && test -s conftest$ac_exeext &&
35276 $as_test_x conftest$ac_exeext; then
35277 eval "$as_ac_Lib=yes"
35278 else
35279 echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35282 eval "$as_ac_Lib=no"
35285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35286 conftest$ac_exeext conftest.$ac_ext
35287 LIBS=$ac_check_lib_save_LIBS
35289 ac_res=`eval echo '${'$as_ac_Lib'}'`
35290 { echo "$as_me:$LINENO: result: $ac_res" >&5
35291 echo "${ECHO_T}$ac_res" >&6; }
35292 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35293 AST_NBS_FOUND=yes
35294 else
35295 AST_NBS_FOUND=no
35300 # now check for the header.
35301 if test "${AST_NBS_FOUND}" = "yes"; then
35302 NBS_LIB="${pbxlibdir} -lnbs "
35303 # if --with-NBS=DIR has been specified, use it.
35304 if test "x${NBS_DIR}" != "x"; then
35305 NBS_INCLUDE="-I${NBS_DIR}/include"
35307 NBS_INCLUDE="${NBS_INCLUDE} "
35308 if test "xnbs.h" = "x" ; then # no header, assume found
35309 NBS_HEADER_FOUND="1"
35310 else # check for the header
35311 saved_cppflags="${CPPFLAGS}"
35312 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
35313 if test "${ac_cv_header_nbs_h+set}" = set; then
35314 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35315 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35316 if test "${ac_cv_header_nbs_h+set}" = set; then
35317 echo $ECHO_N "(cached) $ECHO_C" >&6
35319 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35320 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35321 else
35322 # Is the header compilable?
35323 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35324 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35325 cat >conftest.$ac_ext <<_ACEOF
35326 /* confdefs.h. */
35327 _ACEOF
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h. */
35331 $ac_includes_default
35332 #include <nbs.h>
35333 _ACEOF
35334 rm -f conftest.$ac_objext
35335 if { (ac_try="$ac_compile"
35336 case "(($ac_try" in
35337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35338 *) ac_try_echo=$ac_try;;
35339 esac
35340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35341 (eval "$ac_compile") 2>conftest.er1
35342 ac_status=$?
35343 grep -v '^ *+' conftest.er1 >conftest.err
35344 rm -f conftest.er1
35345 cat conftest.err >&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); } && {
35348 test -z "$ac_c_werror_flag" ||
35349 test ! -s conftest.err
35350 } && test -s conftest.$ac_objext; then
35351 ac_header_compiler=yes
35352 else
35353 echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35356 ac_header_compiler=no
35359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35361 echo "${ECHO_T}$ac_header_compiler" >&6; }
35363 # Is the header present?
35364 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35365 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35366 cat >conftest.$ac_ext <<_ACEOF
35367 /* confdefs.h. */
35368 _ACEOF
35369 cat confdefs.h >>conftest.$ac_ext
35370 cat >>conftest.$ac_ext <<_ACEOF
35371 /* end confdefs.h. */
35372 #include <nbs.h>
35373 _ACEOF
35374 if { (ac_try="$ac_cpp conftest.$ac_ext"
35375 case "(($ac_try" in
35376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35377 *) ac_try_echo=$ac_try;;
35378 esac
35379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35381 ac_status=$?
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); } >/dev/null && {
35387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35388 test ! -s conftest.err
35389 }; then
35390 ac_header_preproc=yes
35391 else
35392 echo "$as_me: failed program was:" >&5
35393 sed 's/^/| /' conftest.$ac_ext >&5
35395 ac_header_preproc=no
35398 rm -f conftest.err conftest.$ac_ext
35399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35400 echo "${ECHO_T}$ac_header_preproc" >&6; }
35402 # So? What about this header?
35403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35404 yes:no: )
35405 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35406 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35407 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35408 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35409 ac_header_preproc=yes
35411 no:yes:* )
35412 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35413 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35414 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35415 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35416 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35417 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35418 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35419 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35420 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35421 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35422 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35423 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35424 ( cat <<\_ASBOX
35425 ## ------------------------------- ##
35426 ## Report this to www.asterisk.org ##
35427 ## ------------------------------- ##
35428 _ASBOX
35429 ) | sed "s/^/$as_me: WARNING: /" >&2
35431 esac
35432 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35433 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35434 if test "${ac_cv_header_nbs_h+set}" = set; then
35435 echo $ECHO_N "(cached) $ECHO_C" >&6
35436 else
35437 ac_cv_header_nbs_h=$ac_header_preproc
35439 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35440 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35443 if test $ac_cv_header_nbs_h = yes; then
35444 NBS_HEADER_FOUND=1
35445 else
35446 NBS_HEADER_FOUND=0
35450 CPPFLAGS="${saved_cppflags}"
35452 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35453 NBS_LIB=""
35454 NBS_INCLUDE=""
35455 else
35456 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35457 NBS_LIB=""
35459 PBX_NBS=1
35460 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35462 cat >>confdefs.h <<_ACEOF
35463 #define HAVE_NBS 1
35464 _ACEOF
35467 cat >>confdefs.h <<_ACEOF
35468 #define HAVE_NBS_VERSION
35469 _ACEOF
35477 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35478 pbxlibdir=""
35479 # if --with-NCURSES=DIR has been specified, use it.
35480 if test "x${NCURSES_DIR}" != "x"; then
35481 if test -d ${NCURSES_DIR}/lib; then
35482 pbxlibdir="-L${NCURSES_DIR}/lib"
35483 else
35484 pbxlibdir="-L${NCURSES_DIR}"
35487 pbxfuncname="initscr"
35488 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35489 AST_NCURSES_FOUND=yes
35490 else
35491 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35492 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35493 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35494 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35495 echo $ECHO_N "(cached) $ECHO_C" >&6
35496 else
35497 ac_check_lib_save_LIBS=$LIBS
35498 LIBS="-lncurses ${pbxlibdir} $LIBS"
35499 cat >conftest.$ac_ext <<_ACEOF
35500 /* confdefs.h. */
35501 _ACEOF
35502 cat confdefs.h >>conftest.$ac_ext
35503 cat >>conftest.$ac_ext <<_ACEOF
35504 /* end confdefs.h. */
35506 /* Override any GCC internal prototype to avoid an error.
35507 Use char because int might match the return type of a GCC
35508 builtin and then its argument prototype would still apply. */
35509 #ifdef __cplusplus
35510 extern "C"
35511 #endif
35512 char ${pbxfuncname} ();
35514 main ()
35516 return ${pbxfuncname} ();
35518 return 0;
35520 _ACEOF
35521 rm -f conftest.$ac_objext conftest$ac_exeext
35522 if { (ac_try="$ac_link"
35523 case "(($ac_try" in
35524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35525 *) ac_try_echo=$ac_try;;
35526 esac
35527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35528 (eval "$ac_link") 2>conftest.er1
35529 ac_status=$?
35530 grep -v '^ *+' conftest.er1 >conftest.err
35531 rm -f conftest.er1
35532 cat conftest.err >&5
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } && {
35535 test -z "$ac_c_werror_flag" ||
35536 test ! -s conftest.err
35537 } && test -s conftest$ac_exeext &&
35538 $as_test_x conftest$ac_exeext; then
35539 eval "$as_ac_Lib=yes"
35540 else
35541 echo "$as_me: failed program was:" >&5
35542 sed 's/^/| /' conftest.$ac_ext >&5
35544 eval "$as_ac_Lib=no"
35547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35548 conftest$ac_exeext conftest.$ac_ext
35549 LIBS=$ac_check_lib_save_LIBS
35551 ac_res=`eval echo '${'$as_ac_Lib'}'`
35552 { echo "$as_me:$LINENO: result: $ac_res" >&5
35553 echo "${ECHO_T}$ac_res" >&6; }
35554 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35555 AST_NCURSES_FOUND=yes
35556 else
35557 AST_NCURSES_FOUND=no
35562 # now check for the header.
35563 if test "${AST_NCURSES_FOUND}" = "yes"; then
35564 NCURSES_LIB="${pbxlibdir} -lncurses "
35565 # if --with-NCURSES=DIR has been specified, use it.
35566 if test "x${NCURSES_DIR}" != "x"; then
35567 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35569 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35570 if test "xcurses.h" = "x" ; then # no header, assume found
35571 NCURSES_HEADER_FOUND="1"
35572 else # check for the header
35573 saved_cppflags="${CPPFLAGS}"
35574 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
35575 if test "${ac_cv_header_curses_h+set}" = set; then
35576 { echo "$as_me:$LINENO: checking for curses.h" >&5
35577 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35578 if test "${ac_cv_header_curses_h+set}" = set; then
35579 echo $ECHO_N "(cached) $ECHO_C" >&6
35581 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35582 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35583 else
35584 # Is the header compilable?
35585 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35586 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35587 cat >conftest.$ac_ext <<_ACEOF
35588 /* confdefs.h. */
35589 _ACEOF
35590 cat confdefs.h >>conftest.$ac_ext
35591 cat >>conftest.$ac_ext <<_ACEOF
35592 /* end confdefs.h. */
35593 $ac_includes_default
35594 #include <curses.h>
35595 _ACEOF
35596 rm -f conftest.$ac_objext
35597 if { (ac_try="$ac_compile"
35598 case "(($ac_try" in
35599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35600 *) ac_try_echo=$ac_try;;
35601 esac
35602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35603 (eval "$ac_compile") 2>conftest.er1
35604 ac_status=$?
35605 grep -v '^ *+' conftest.er1 >conftest.err
35606 rm -f conftest.er1
35607 cat conftest.err >&5
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); } && {
35610 test -z "$ac_c_werror_flag" ||
35611 test ! -s conftest.err
35612 } && test -s conftest.$ac_objext; then
35613 ac_header_compiler=yes
35614 else
35615 echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35618 ac_header_compiler=no
35621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35623 echo "${ECHO_T}$ac_header_compiler" >&6; }
35625 # Is the header present?
35626 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35627 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35628 cat >conftest.$ac_ext <<_ACEOF
35629 /* confdefs.h. */
35630 _ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h. */
35634 #include <curses.h>
35635 _ACEOF
35636 if { (ac_try="$ac_cpp conftest.$ac_ext"
35637 case "(($ac_try" in
35638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35640 esac
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35643 ac_status=$?
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } >/dev/null && {
35649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35650 test ! -s conftest.err
35651 }; then
35652 ac_header_preproc=yes
35653 else
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35657 ac_header_preproc=no
35660 rm -f conftest.err conftest.$ac_ext
35661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35662 echo "${ECHO_T}$ac_header_preproc" >&6; }
35664 # So? What about this header?
35665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35666 yes:no: )
35667 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35668 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35669 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35670 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35671 ac_header_preproc=yes
35673 no:yes:* )
35674 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35675 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35676 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35677 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35678 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35679 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35680 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35681 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35682 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35683 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35684 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35685 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35686 ( cat <<\_ASBOX
35687 ## ------------------------------- ##
35688 ## Report this to www.asterisk.org ##
35689 ## ------------------------------- ##
35690 _ASBOX
35691 ) | sed "s/^/$as_me: WARNING: /" >&2
35693 esac
35694 { echo "$as_me:$LINENO: checking for curses.h" >&5
35695 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35696 if test "${ac_cv_header_curses_h+set}" = set; then
35697 echo $ECHO_N "(cached) $ECHO_C" >&6
35698 else
35699 ac_cv_header_curses_h=$ac_header_preproc
35701 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35702 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35705 if test $ac_cv_header_curses_h = yes; then
35706 NCURSES_HEADER_FOUND=1
35707 else
35708 NCURSES_HEADER_FOUND=0
35712 CPPFLAGS="${saved_cppflags}"
35714 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35715 NCURSES_LIB=""
35716 NCURSES_INCLUDE=""
35717 else
35718 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35719 NCURSES_LIB=""
35721 PBX_NCURSES=1
35722 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_NCURSES 1
35726 _ACEOF
35729 cat >>confdefs.h <<_ACEOF
35730 #define HAVE_NCURSES_VERSION
35731 _ACEOF
35739 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35740 PBX_NETSNMP=0
35741 if test -n "$ac_tool_prefix"; then
35742 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35743 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35746 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35748 else
35749 if test -n "$CONFIG_NETSNMP"; then
35750 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35751 else
35752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35753 for as_dir in $PATH
35755 IFS=$as_save_IFS
35756 test -z "$as_dir" && as_dir=.
35757 for ac_exec_ext in '' $ac_executable_extensions; do
35758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35759 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35761 break 2
35763 done
35764 done
35765 IFS=$as_save_IFS
35769 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35770 if test -n "$CONFIG_NETSNMP"; then
35771 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35772 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35773 else
35774 { echo "$as_me:$LINENO: result: no" >&5
35775 echo "${ECHO_T}no" >&6; }
35780 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35781 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35782 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35783 set dummy net-snmp-config; ac_word=$2
35784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35786 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35787 echo $ECHO_N "(cached) $ECHO_C" >&6
35788 else
35789 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35790 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35791 else
35792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35793 for as_dir in $PATH
35795 IFS=$as_save_IFS
35796 test -z "$as_dir" && as_dir=.
35797 for ac_exec_ext in '' $ac_executable_extensions; do
35798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35799 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35801 break 2
35803 done
35804 done
35805 IFS=$as_save_IFS
35809 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35810 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35811 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35812 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35813 else
35814 { echo "$as_me:$LINENO: result: no" >&5
35815 echo "${ECHO_T}no" >&6; }
35818 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35819 CONFIG_NETSNMP="No"
35820 else
35821 case $cross_compiling:$ac_tool_warned in
35822 yes:)
35823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35824 whose name does not start with the host triplet. If you think this
35825 configuration is useful to you, please write to autoconf@gnu.org." >&5
35826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35827 whose name does not start with the host triplet. If you think this
35828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35829 ac_tool_warned=yes ;;
35830 esac
35831 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35833 else
35834 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35837 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35838 if test x"" = x ; then A=--cflags ; else A="" ; fi
35839 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35840 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35841 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35842 if test x"#include <net-snmp/net-snmp-config.h>
35843 #include <net-snmp/net-snmp-includes.h>
35844 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35845 saved_cppflags="${CPPFLAGS}"
35846 if test "x${NETSNMP_DIR}" != "x"; then
35847 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35849 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35851 saved_ldflags="${LDFLAGS}"
35852 LDFLAGS="${NETSNMP_LIB}"
35854 cat >conftest.$ac_ext <<_ACEOF
35855 /* confdefs.h. */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35860 #include <net-snmp/net-snmp-config.h>
35861 #include <net-snmp/net-snmp-includes.h>
35862 #include <net-snmp/agent/net-snmp-agent-includes.h>
35864 main ()
35866 int callback = snmp_register_callback(0, 0, NULL, NULL);
35869 return 0;
35871 _ACEOF
35872 rm -f conftest.$ac_objext conftest$ac_exeext
35873 if { (ac_try="$ac_link"
35874 case "(($ac_try" in
35875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876 *) ac_try_echo=$ac_try;;
35877 esac
35878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35879 (eval "$ac_link") 2>conftest.er1
35880 ac_status=$?
35881 grep -v '^ *+' conftest.er1 >conftest.err
35882 rm -f conftest.er1
35883 cat conftest.err >&5
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } && {
35886 test -z "$ac_c_werror_flag" ||
35887 test ! -s conftest.err
35888 } && test -s conftest$ac_exeext &&
35889 $as_test_x conftest$ac_exeext; then
35890 PBX_NETSNMP=1
35892 cat >>confdefs.h <<\_ACEOF
35893 #define HAVE_NETSNMP 1
35894 _ACEOF
35897 else
35898 echo "$as_me: failed program was:" >&5
35899 sed 's/^/| /' conftest.$ac_ext >&5
35905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35906 conftest$ac_exeext conftest.$ac_ext
35907 CPPFLAGS="${saved_cppflags}"
35908 LDFLAGS="${saved_ldflags}"
35909 else
35910 PBX_NETSNMP=1
35912 cat >>confdefs.h <<\_ACEOF
35913 #define HAVE_NETSNMP 1
35914 _ACEOF
35922 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35923 pbxlibdir=""
35924 # if --with-NEWT=DIR has been specified, use it.
35925 if test "x${NEWT_DIR}" != "x"; then
35926 if test -d ${NEWT_DIR}/lib; then
35927 pbxlibdir="-L${NEWT_DIR}/lib"
35928 else
35929 pbxlibdir="-L${NEWT_DIR}"
35932 pbxfuncname="newtBell"
35933 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35934 AST_NEWT_FOUND=yes
35935 else
35936 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35937 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35938 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35939 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35940 echo $ECHO_N "(cached) $ECHO_C" >&6
35941 else
35942 ac_check_lib_save_LIBS=$LIBS
35943 LIBS="-lnewt ${pbxlibdir} $LIBS"
35944 cat >conftest.$ac_ext <<_ACEOF
35945 /* confdefs.h. */
35946 _ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h. */
35951 /* Override any GCC internal prototype to avoid an error.
35952 Use char because int might match the return type of a GCC
35953 builtin and then its argument prototype would still apply. */
35954 #ifdef __cplusplus
35955 extern "C"
35956 #endif
35957 char ${pbxfuncname} ();
35959 main ()
35961 return ${pbxfuncname} ();
35963 return 0;
35965 _ACEOF
35966 rm -f conftest.$ac_objext conftest$ac_exeext
35967 if { (ac_try="$ac_link"
35968 case "(($ac_try" in
35969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35970 *) ac_try_echo=$ac_try;;
35971 esac
35972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35973 (eval "$ac_link") 2>conftest.er1
35974 ac_status=$?
35975 grep -v '^ *+' conftest.er1 >conftest.err
35976 rm -f conftest.er1
35977 cat conftest.err >&5
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); } && {
35980 test -z "$ac_c_werror_flag" ||
35981 test ! -s conftest.err
35982 } && test -s conftest$ac_exeext &&
35983 $as_test_x conftest$ac_exeext; then
35984 eval "$as_ac_Lib=yes"
35985 else
35986 echo "$as_me: failed program was:" >&5
35987 sed 's/^/| /' conftest.$ac_ext >&5
35989 eval "$as_ac_Lib=no"
35992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35993 conftest$ac_exeext conftest.$ac_ext
35994 LIBS=$ac_check_lib_save_LIBS
35996 ac_res=`eval echo '${'$as_ac_Lib'}'`
35997 { echo "$as_me:$LINENO: result: $ac_res" >&5
35998 echo "${ECHO_T}$ac_res" >&6; }
35999 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36000 AST_NEWT_FOUND=yes
36001 else
36002 AST_NEWT_FOUND=no
36007 # now check for the header.
36008 if test "${AST_NEWT_FOUND}" = "yes"; then
36009 NEWT_LIB="${pbxlibdir} -lnewt "
36010 # if --with-NEWT=DIR has been specified, use it.
36011 if test "x${NEWT_DIR}" != "x"; then
36012 NEWT_INCLUDE="-I${NEWT_DIR}/include"
36014 NEWT_INCLUDE="${NEWT_INCLUDE} "
36015 if test "xnewt.h" = "x" ; then # no header, assume found
36016 NEWT_HEADER_FOUND="1"
36017 else # check for the header
36018 saved_cppflags="${CPPFLAGS}"
36019 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
36020 if test "${ac_cv_header_newt_h+set}" = set; then
36021 { echo "$as_me:$LINENO: checking for newt.h" >&5
36022 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
36023 if test "${ac_cv_header_newt_h+set}" = set; then
36024 echo $ECHO_N "(cached) $ECHO_C" >&6
36026 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
36027 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
36028 else
36029 # Is the header compilable?
36030 { echo "$as_me:$LINENO: checking newt.h usability" >&5
36031 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
36032 cat >conftest.$ac_ext <<_ACEOF
36033 /* confdefs.h. */
36034 _ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h. */
36038 $ac_includes_default
36039 #include <newt.h>
36040 _ACEOF
36041 rm -f conftest.$ac_objext
36042 if { (ac_try="$ac_compile"
36043 case "(($ac_try" in
36044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36045 *) ac_try_echo=$ac_try;;
36046 esac
36047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36048 (eval "$ac_compile") 2>conftest.er1
36049 ac_status=$?
36050 grep -v '^ *+' conftest.er1 >conftest.err
36051 rm -f conftest.er1
36052 cat conftest.err >&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); } && {
36055 test -z "$ac_c_werror_flag" ||
36056 test ! -s conftest.err
36057 } && test -s conftest.$ac_objext; then
36058 ac_header_compiler=yes
36059 else
36060 echo "$as_me: failed program was:" >&5
36061 sed 's/^/| /' conftest.$ac_ext >&5
36063 ac_header_compiler=no
36066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36068 echo "${ECHO_T}$ac_header_compiler" >&6; }
36070 # Is the header present?
36071 { echo "$as_me:$LINENO: checking newt.h presence" >&5
36072 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
36073 cat >conftest.$ac_ext <<_ACEOF
36074 /* confdefs.h. */
36075 _ACEOF
36076 cat confdefs.h >>conftest.$ac_ext
36077 cat >>conftest.$ac_ext <<_ACEOF
36078 /* end confdefs.h. */
36079 #include <newt.h>
36080 _ACEOF
36081 if { (ac_try="$ac_cpp conftest.$ac_ext"
36082 case "(($ac_try" in
36083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36084 *) ac_try_echo=$ac_try;;
36085 esac
36086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36088 ac_status=$?
36089 grep -v '^ *+' conftest.er1 >conftest.err
36090 rm -f conftest.er1
36091 cat conftest.err >&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); } >/dev/null && {
36094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36095 test ! -s conftest.err
36096 }; then
36097 ac_header_preproc=yes
36098 else
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_header_preproc=no
36105 rm -f conftest.err conftest.$ac_ext
36106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36107 echo "${ECHO_T}$ac_header_preproc" >&6; }
36109 # So? What about this header?
36110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36111 yes:no: )
36112 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
36113 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36114 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
36115 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
36116 ac_header_preproc=yes
36118 no:yes:* )
36119 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
36120 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
36121 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
36122 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
36123 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
36124 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
36125 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
36126 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
36127 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
36128 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
36129 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
36130 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
36131 ( cat <<\_ASBOX
36132 ## ------------------------------- ##
36133 ## Report this to www.asterisk.org ##
36134 ## ------------------------------- ##
36135 _ASBOX
36136 ) | sed "s/^/$as_me: WARNING: /" >&2
36138 esac
36139 { echo "$as_me:$LINENO: checking for newt.h" >&5
36140 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
36141 if test "${ac_cv_header_newt_h+set}" = set; then
36142 echo $ECHO_N "(cached) $ECHO_C" >&6
36143 else
36144 ac_cv_header_newt_h=$ac_header_preproc
36146 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
36147 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
36150 if test $ac_cv_header_newt_h = yes; then
36151 NEWT_HEADER_FOUND=1
36152 else
36153 NEWT_HEADER_FOUND=0
36157 CPPFLAGS="${saved_cppflags}"
36159 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
36160 NEWT_LIB=""
36161 NEWT_INCLUDE=""
36162 else
36163 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36164 NEWT_LIB=""
36166 PBX_NEWT=1
36167 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36169 cat >>confdefs.h <<_ACEOF
36170 #define HAVE_NEWT 1
36171 _ACEOF
36174 cat >>confdefs.h <<_ACEOF
36175 #define HAVE_NEWT_VERSION
36176 _ACEOF
36184 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
36185 pbxlibdir=""
36186 # if --with-UNIXODBC=DIR has been specified, use it.
36187 if test "x${UNIXODBC_DIR}" != "x"; then
36188 if test -d ${UNIXODBC_DIR}/lib; then
36189 pbxlibdir="-L${UNIXODBC_DIR}/lib"
36190 else
36191 pbxlibdir="-L${UNIXODBC_DIR}"
36194 pbxfuncname="SQLConnect"
36195 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36196 AST_UNIXODBC_FOUND=yes
36197 else
36198 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
36199 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
36200 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
36201 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36202 echo $ECHO_N "(cached) $ECHO_C" >&6
36203 else
36204 ac_check_lib_save_LIBS=$LIBS
36205 LIBS="-lodbc ${pbxlibdir} $LIBS"
36206 cat >conftest.$ac_ext <<_ACEOF
36207 /* confdefs.h. */
36208 _ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h. */
36213 /* Override any GCC internal prototype to avoid an error.
36214 Use char because int might match the return type of a GCC
36215 builtin and then its argument prototype would still apply. */
36216 #ifdef __cplusplus
36217 extern "C"
36218 #endif
36219 char ${pbxfuncname} ();
36221 main ()
36223 return ${pbxfuncname} ();
36225 return 0;
36227 _ACEOF
36228 rm -f conftest.$ac_objext conftest$ac_exeext
36229 if { (ac_try="$ac_link"
36230 case "(($ac_try" in
36231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36232 *) ac_try_echo=$ac_try;;
36233 esac
36234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36235 (eval "$ac_link") 2>conftest.er1
36236 ac_status=$?
36237 grep -v '^ *+' conftest.er1 >conftest.err
36238 rm -f conftest.er1
36239 cat conftest.err >&5
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } && {
36242 test -z "$ac_c_werror_flag" ||
36243 test ! -s conftest.err
36244 } && test -s conftest$ac_exeext &&
36245 $as_test_x conftest$ac_exeext; then
36246 eval "$as_ac_Lib=yes"
36247 else
36248 echo "$as_me: failed program was:" >&5
36249 sed 's/^/| /' conftest.$ac_ext >&5
36251 eval "$as_ac_Lib=no"
36254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36255 conftest$ac_exeext conftest.$ac_ext
36256 LIBS=$ac_check_lib_save_LIBS
36258 ac_res=`eval echo '${'$as_ac_Lib'}'`
36259 { echo "$as_me:$LINENO: result: $ac_res" >&5
36260 echo "${ECHO_T}$ac_res" >&6; }
36261 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36262 AST_UNIXODBC_FOUND=yes
36263 else
36264 AST_UNIXODBC_FOUND=no
36269 # now check for the header.
36270 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36271 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36272 # if --with-UNIXODBC=DIR has been specified, use it.
36273 if test "x${UNIXODBC_DIR}" != "x"; then
36274 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36276 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36277 if test "xsql.h" = "x" ; then # no header, assume found
36278 UNIXODBC_HEADER_FOUND="1"
36279 else # check for the header
36280 saved_cppflags="${CPPFLAGS}"
36281 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
36282 if test "${ac_cv_header_sql_h+set}" = set; then
36283 { echo "$as_me:$LINENO: checking for sql.h" >&5
36284 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36285 if test "${ac_cv_header_sql_h+set}" = set; then
36286 echo $ECHO_N "(cached) $ECHO_C" >&6
36288 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36289 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36290 else
36291 # Is the header compilable?
36292 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36293 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36294 cat >conftest.$ac_ext <<_ACEOF
36295 /* confdefs.h. */
36296 _ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h. */
36300 $ac_includes_default
36301 #include <sql.h>
36302 _ACEOF
36303 rm -f conftest.$ac_objext
36304 if { (ac_try="$ac_compile"
36305 case "(($ac_try" in
36306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36307 *) ac_try_echo=$ac_try;;
36308 esac
36309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36310 (eval "$ac_compile") 2>conftest.er1
36311 ac_status=$?
36312 grep -v '^ *+' conftest.er1 >conftest.err
36313 rm -f conftest.er1
36314 cat conftest.err >&5
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); } && {
36317 test -z "$ac_c_werror_flag" ||
36318 test ! -s conftest.err
36319 } && test -s conftest.$ac_objext; then
36320 ac_header_compiler=yes
36321 else
36322 echo "$as_me: failed program was:" >&5
36323 sed 's/^/| /' conftest.$ac_ext >&5
36325 ac_header_compiler=no
36328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36330 echo "${ECHO_T}$ac_header_compiler" >&6; }
36332 # Is the header present?
36333 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36334 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36335 cat >conftest.$ac_ext <<_ACEOF
36336 /* confdefs.h. */
36337 _ACEOF
36338 cat confdefs.h >>conftest.$ac_ext
36339 cat >>conftest.$ac_ext <<_ACEOF
36340 /* end confdefs.h. */
36341 #include <sql.h>
36342 _ACEOF
36343 if { (ac_try="$ac_cpp conftest.$ac_ext"
36344 case "(($ac_try" in
36345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36346 *) ac_try_echo=$ac_try;;
36347 esac
36348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36350 ac_status=$?
36351 grep -v '^ *+' conftest.er1 >conftest.err
36352 rm -f conftest.er1
36353 cat conftest.err >&5
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); } >/dev/null && {
36356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36357 test ! -s conftest.err
36358 }; then
36359 ac_header_preproc=yes
36360 else
36361 echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36364 ac_header_preproc=no
36367 rm -f conftest.err conftest.$ac_ext
36368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36369 echo "${ECHO_T}$ac_header_preproc" >&6; }
36371 # So? What about this header?
36372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36373 yes:no: )
36374 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36375 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36376 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36377 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36378 ac_header_preproc=yes
36380 no:yes:* )
36381 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36382 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36383 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36384 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36385 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36386 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36387 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36388 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36389 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36390 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36391 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36392 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36393 ( cat <<\_ASBOX
36394 ## ------------------------------- ##
36395 ## Report this to www.asterisk.org ##
36396 ## ------------------------------- ##
36397 _ASBOX
36398 ) | sed "s/^/$as_me: WARNING: /" >&2
36400 esac
36401 { echo "$as_me:$LINENO: checking for sql.h" >&5
36402 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36403 if test "${ac_cv_header_sql_h+set}" = set; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36405 else
36406 ac_cv_header_sql_h=$ac_header_preproc
36408 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36409 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36412 if test $ac_cv_header_sql_h = yes; then
36413 UNIXODBC_HEADER_FOUND=1
36414 else
36415 UNIXODBC_HEADER_FOUND=0
36419 CPPFLAGS="${saved_cppflags}"
36421 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36422 UNIXODBC_LIB=""
36423 UNIXODBC_INCLUDE=""
36424 else
36425 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36426 UNIXODBC_LIB=""
36428 PBX_UNIXODBC=1
36429 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36431 cat >>confdefs.h <<_ACEOF
36432 #define HAVE_UNIXODBC 1
36433 _ACEOF
36436 cat >>confdefs.h <<_ACEOF
36437 #define HAVE_UNIXODBC_VERSION
36438 _ACEOF
36446 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36447 pbxlibdir=""
36448 # if --with-OGG=DIR has been specified, use it.
36449 if test "x${OGG_DIR}" != "x"; then
36450 if test -d ${OGG_DIR}/lib; then
36451 pbxlibdir="-L${OGG_DIR}/lib"
36452 else
36453 pbxlibdir="-L${OGG_DIR}"
36456 pbxfuncname="ogg_sync_init"
36457 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36458 AST_OGG_FOUND=yes
36459 else
36460 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36461 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36462 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36463 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36464 echo $ECHO_N "(cached) $ECHO_C" >&6
36465 else
36466 ac_check_lib_save_LIBS=$LIBS
36467 LIBS="-logg ${pbxlibdir} $LIBS"
36468 cat >conftest.$ac_ext <<_ACEOF
36469 /* confdefs.h. */
36470 _ACEOF
36471 cat confdefs.h >>conftest.$ac_ext
36472 cat >>conftest.$ac_ext <<_ACEOF
36473 /* end confdefs.h. */
36475 /* Override any GCC internal prototype to avoid an error.
36476 Use char because int might match the return type of a GCC
36477 builtin and then its argument prototype would still apply. */
36478 #ifdef __cplusplus
36479 extern "C"
36480 #endif
36481 char ${pbxfuncname} ();
36483 main ()
36485 return ${pbxfuncname} ();
36487 return 0;
36489 _ACEOF
36490 rm -f conftest.$ac_objext conftest$ac_exeext
36491 if { (ac_try="$ac_link"
36492 case "(($ac_try" in
36493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494 *) ac_try_echo=$ac_try;;
36495 esac
36496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36497 (eval "$ac_link") 2>conftest.er1
36498 ac_status=$?
36499 grep -v '^ *+' conftest.er1 >conftest.err
36500 rm -f conftest.er1
36501 cat conftest.err >&5
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); } && {
36504 test -z "$ac_c_werror_flag" ||
36505 test ! -s conftest.err
36506 } && test -s conftest$ac_exeext &&
36507 $as_test_x conftest$ac_exeext; then
36508 eval "$as_ac_Lib=yes"
36509 else
36510 echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36513 eval "$as_ac_Lib=no"
36516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36517 conftest$ac_exeext conftest.$ac_ext
36518 LIBS=$ac_check_lib_save_LIBS
36520 ac_res=`eval echo '${'$as_ac_Lib'}'`
36521 { echo "$as_me:$LINENO: result: $ac_res" >&5
36522 echo "${ECHO_T}$ac_res" >&6; }
36523 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36524 AST_OGG_FOUND=yes
36525 else
36526 AST_OGG_FOUND=no
36531 # now check for the header.
36532 if test "${AST_OGG_FOUND}" = "yes"; then
36533 OGG_LIB="${pbxlibdir} -logg "
36534 # if --with-OGG=DIR has been specified, use it.
36535 if test "x${OGG_DIR}" != "x"; then
36536 OGG_INCLUDE="-I${OGG_DIR}/include"
36538 OGG_INCLUDE="${OGG_INCLUDE} "
36539 if test "x" = "x" ; then # no header, assume found
36540 OGG_HEADER_FOUND="1"
36541 else # check for the header
36542 saved_cppflags="${CPPFLAGS}"
36543 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
36544 if test "${ac_cv_header_+set}" = set; then
36545 { echo "$as_me:$LINENO: checking for " >&5
36546 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36547 if test "${ac_cv_header_+set}" = set; then
36548 echo $ECHO_N "(cached) $ECHO_C" >&6
36550 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36551 echo "${ECHO_T}$ac_cv_header_" >&6; }
36552 else
36553 # Is the header compilable?
36554 { echo "$as_me:$LINENO: checking usability" >&5
36555 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36556 cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h. */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h. */
36562 $ac_includes_default
36563 #include <>
36564 _ACEOF
36565 rm -f conftest.$ac_objext
36566 if { (ac_try="$ac_compile"
36567 case "(($ac_try" in
36568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36569 *) ac_try_echo=$ac_try;;
36570 esac
36571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36572 (eval "$ac_compile") 2>conftest.er1
36573 ac_status=$?
36574 grep -v '^ *+' conftest.er1 >conftest.err
36575 rm -f conftest.er1
36576 cat conftest.err >&5
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); } && {
36579 test -z "$ac_c_werror_flag" ||
36580 test ! -s conftest.err
36581 } && test -s conftest.$ac_objext; then
36582 ac_header_compiler=yes
36583 else
36584 echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36587 ac_header_compiler=no
36590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36592 echo "${ECHO_T}$ac_header_compiler" >&6; }
36594 # Is the header present?
36595 { echo "$as_me:$LINENO: checking presence" >&5
36596 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36597 cat >conftest.$ac_ext <<_ACEOF
36598 /* confdefs.h. */
36599 _ACEOF
36600 cat confdefs.h >>conftest.$ac_ext
36601 cat >>conftest.$ac_ext <<_ACEOF
36602 /* end confdefs.h. */
36603 #include <>
36604 _ACEOF
36605 if { (ac_try="$ac_cpp conftest.$ac_ext"
36606 case "(($ac_try" in
36607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608 *) ac_try_echo=$ac_try;;
36609 esac
36610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36612 ac_status=$?
36613 grep -v '^ *+' conftest.er1 >conftest.err
36614 rm -f conftest.er1
36615 cat conftest.err >&5
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } >/dev/null && {
36618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36619 test ! -s conftest.err
36620 }; then
36621 ac_header_preproc=yes
36622 else
36623 echo "$as_me: failed program was:" >&5
36624 sed 's/^/| /' conftest.$ac_ext >&5
36626 ac_header_preproc=no
36629 rm -f conftest.err conftest.$ac_ext
36630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36631 echo "${ECHO_T}$ac_header_preproc" >&6; }
36633 # So? What about this header?
36634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36635 yes:no: )
36636 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36637 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36638 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36639 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36640 ac_header_preproc=yes
36642 no:yes:* )
36643 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36644 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36645 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36646 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36647 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36648 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36649 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36650 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36652 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36653 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36654 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36655 ( cat <<\_ASBOX
36656 ## ------------------------------- ##
36657 ## Report this to www.asterisk.org ##
36658 ## ------------------------------- ##
36659 _ASBOX
36660 ) | sed "s/^/$as_me: WARNING: /" >&2
36662 esac
36663 { echo "$as_me:$LINENO: checking for " >&5
36664 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36665 if test "${ac_cv_header_+set}" = set; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36667 else
36668 ac_cv_header_=$ac_header_preproc
36670 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36671 echo "${ECHO_T}$ac_cv_header_" >&6; }
36674 if test $ac_cv_header_ = yes; then
36675 OGG_HEADER_FOUND=1
36676 else
36677 OGG_HEADER_FOUND=0
36681 CPPFLAGS="${saved_cppflags}"
36683 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36684 OGG_LIB=""
36685 OGG_INCLUDE=""
36686 else
36687 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36688 OGG_LIB=""
36690 PBX_OGG=1
36691 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36693 cat >>confdefs.h <<_ACEOF
36694 #define HAVE_OGG 1
36695 _ACEOF
36698 cat >>confdefs.h <<_ACEOF
36699 #define HAVE_OGG_VERSION
36700 _ACEOF
36707 # Non-glibc platforms require libexecinfo for backtrace support
36709 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36710 pbxlibdir=""
36711 # if --with-BKTR=DIR has been specified, use it.
36712 if test "x${BKTR_DIR}" != "x"; then
36713 if test -d ${BKTR_DIR}/lib; then
36714 pbxlibdir="-L${BKTR_DIR}/lib"
36715 else
36716 pbxlibdir="-L${BKTR_DIR}"
36719 pbxfuncname="backtrace"
36720 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36721 AST_BKTR_FOUND=yes
36722 else
36723 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36724 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36725 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36726 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36727 echo $ECHO_N "(cached) $ECHO_C" >&6
36728 else
36729 ac_check_lib_save_LIBS=$LIBS
36730 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36731 cat >conftest.$ac_ext <<_ACEOF
36732 /* confdefs.h. */
36733 _ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h. */
36738 /* Override any GCC internal prototype to avoid an error.
36739 Use char because int might match the return type of a GCC
36740 builtin and then its argument prototype would still apply. */
36741 #ifdef __cplusplus
36742 extern "C"
36743 #endif
36744 char ${pbxfuncname} ();
36746 main ()
36748 return ${pbxfuncname} ();
36750 return 0;
36752 _ACEOF
36753 rm -f conftest.$ac_objext conftest$ac_exeext
36754 if { (ac_try="$ac_link"
36755 case "(($ac_try" in
36756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36757 *) ac_try_echo=$ac_try;;
36758 esac
36759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36760 (eval "$ac_link") 2>conftest.er1
36761 ac_status=$?
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } && {
36767 test -z "$ac_c_werror_flag" ||
36768 test ! -s conftest.err
36769 } && test -s conftest$ac_exeext &&
36770 $as_test_x conftest$ac_exeext; then
36771 eval "$as_ac_Lib=yes"
36772 else
36773 echo "$as_me: failed program was:" >&5
36774 sed 's/^/| /' conftest.$ac_ext >&5
36776 eval "$as_ac_Lib=no"
36779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36780 conftest$ac_exeext conftest.$ac_ext
36781 LIBS=$ac_check_lib_save_LIBS
36783 ac_res=`eval echo '${'$as_ac_Lib'}'`
36784 { echo "$as_me:$LINENO: result: $ac_res" >&5
36785 echo "${ECHO_T}$ac_res" >&6; }
36786 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36787 AST_BKTR_FOUND=yes
36788 else
36789 AST_BKTR_FOUND=no
36794 # now check for the header.
36795 if test "${AST_BKTR_FOUND}" = "yes"; then
36796 BKTR_LIB="${pbxlibdir} -lexecinfo "
36797 # if --with-BKTR=DIR has been specified, use it.
36798 if test "x${BKTR_DIR}" != "x"; then
36799 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36801 BKTR_INCLUDE="${BKTR_INCLUDE} "
36802 if test "xexecinfo.h" = "x" ; then # no header, assume found
36803 BKTR_HEADER_FOUND="1"
36804 else # check for the header
36805 saved_cppflags="${CPPFLAGS}"
36806 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
36807 if test "${ac_cv_header_execinfo_h+set}" = set; then
36808 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36809 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36810 if test "${ac_cv_header_execinfo_h+set}" = set; then
36811 echo $ECHO_N "(cached) $ECHO_C" >&6
36813 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36814 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36815 else
36816 # Is the header compilable?
36817 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36818 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36819 cat >conftest.$ac_ext <<_ACEOF
36820 /* confdefs.h. */
36821 _ACEOF
36822 cat confdefs.h >>conftest.$ac_ext
36823 cat >>conftest.$ac_ext <<_ACEOF
36824 /* end confdefs.h. */
36825 $ac_includes_default
36826 #include <execinfo.h>
36827 _ACEOF
36828 rm -f conftest.$ac_objext
36829 if { (ac_try="$ac_compile"
36830 case "(($ac_try" in
36831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36832 *) ac_try_echo=$ac_try;;
36833 esac
36834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36835 (eval "$ac_compile") 2>conftest.er1
36836 ac_status=$?
36837 grep -v '^ *+' conftest.er1 >conftest.err
36838 rm -f conftest.er1
36839 cat conftest.err >&5
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); } && {
36842 test -z "$ac_c_werror_flag" ||
36843 test ! -s conftest.err
36844 } && test -s conftest.$ac_objext; then
36845 ac_header_compiler=yes
36846 else
36847 echo "$as_me: failed program was:" >&5
36848 sed 's/^/| /' conftest.$ac_ext >&5
36850 ac_header_compiler=no
36853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36855 echo "${ECHO_T}$ac_header_compiler" >&6; }
36857 # Is the header present?
36858 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36859 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36860 cat >conftest.$ac_ext <<_ACEOF
36861 /* confdefs.h. */
36862 _ACEOF
36863 cat confdefs.h >>conftest.$ac_ext
36864 cat >>conftest.$ac_ext <<_ACEOF
36865 /* end confdefs.h. */
36866 #include <execinfo.h>
36867 _ACEOF
36868 if { (ac_try="$ac_cpp conftest.$ac_ext"
36869 case "(($ac_try" in
36870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36871 *) ac_try_echo=$ac_try;;
36872 esac
36873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36875 ac_status=$?
36876 grep -v '^ *+' conftest.er1 >conftest.err
36877 rm -f conftest.er1
36878 cat conftest.err >&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); } >/dev/null && {
36881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36882 test ! -s conftest.err
36883 }; then
36884 ac_header_preproc=yes
36885 else
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_header_preproc=no
36892 rm -f conftest.err conftest.$ac_ext
36893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36894 echo "${ECHO_T}$ac_header_preproc" >&6; }
36896 # So? What about this header?
36897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36898 yes:no: )
36899 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36900 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36901 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36902 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36903 ac_header_preproc=yes
36905 no:yes:* )
36906 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36907 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36908 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36909 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36910 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36911 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36912 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36913 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36914 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36915 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36916 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36917 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36918 ( cat <<\_ASBOX
36919 ## ------------------------------- ##
36920 ## Report this to www.asterisk.org ##
36921 ## ------------------------------- ##
36922 _ASBOX
36923 ) | sed "s/^/$as_me: WARNING: /" >&2
36925 esac
36926 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36927 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36928 if test "${ac_cv_header_execinfo_h+set}" = set; then
36929 echo $ECHO_N "(cached) $ECHO_C" >&6
36930 else
36931 ac_cv_header_execinfo_h=$ac_header_preproc
36933 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36934 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36937 if test $ac_cv_header_execinfo_h = yes; then
36938 BKTR_HEADER_FOUND=1
36939 else
36940 BKTR_HEADER_FOUND=0
36944 CPPFLAGS="${saved_cppflags}"
36946 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36947 BKTR_LIB=""
36948 BKTR_INCLUDE=""
36949 else
36950 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36951 BKTR_LIB=""
36953 PBX_BKTR=1
36954 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36956 cat >>confdefs.h <<_ACEOF
36957 #define HAVE_BKTR 1
36958 _ACEOF
36961 cat >>confdefs.h <<_ACEOF
36962 #define HAVE_BKTR_VERSION
36963 _ACEOF
36969 # Linux, however, has backtrace directly in glibc
36971 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36972 pbxlibdir=""
36973 # if --with-BKTR=DIR has been specified, use it.
36974 if test "x${BKTR_DIR}" != "x"; then
36975 if test -d ${BKTR_DIR}/lib; then
36976 pbxlibdir="-L${BKTR_DIR}/lib"
36977 else
36978 pbxlibdir="-L${BKTR_DIR}"
36981 pbxfuncname="backtrace"
36982 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36983 AST_BKTR_FOUND=yes
36984 else
36985 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36986 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36987 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36988 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36989 echo $ECHO_N "(cached) $ECHO_C" >&6
36990 else
36991 ac_check_lib_save_LIBS=$LIBS
36992 LIBS="-lc ${pbxlibdir} $LIBS"
36993 cat >conftest.$ac_ext <<_ACEOF
36994 /* confdefs.h. */
36995 _ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h. */
37000 /* Override any GCC internal prototype to avoid an error.
37001 Use char because int might match the return type of a GCC
37002 builtin and then its argument prototype would still apply. */
37003 #ifdef __cplusplus
37004 extern "C"
37005 #endif
37006 char ${pbxfuncname} ();
37008 main ()
37010 return ${pbxfuncname} ();
37012 return 0;
37014 _ACEOF
37015 rm -f conftest.$ac_objext conftest$ac_exeext
37016 if { (ac_try="$ac_link"
37017 case "(($ac_try" in
37018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37019 *) ac_try_echo=$ac_try;;
37020 esac
37021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37022 (eval "$ac_link") 2>conftest.er1
37023 ac_status=$?
37024 grep -v '^ *+' conftest.er1 >conftest.err
37025 rm -f conftest.er1
37026 cat conftest.err >&5
37027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 (exit $ac_status); } && {
37029 test -z "$ac_c_werror_flag" ||
37030 test ! -s conftest.err
37031 } && test -s conftest$ac_exeext &&
37032 $as_test_x conftest$ac_exeext; then
37033 eval "$as_ac_Lib=yes"
37034 else
37035 echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37038 eval "$as_ac_Lib=no"
37041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37042 conftest$ac_exeext conftest.$ac_ext
37043 LIBS=$ac_check_lib_save_LIBS
37045 ac_res=`eval echo '${'$as_ac_Lib'}'`
37046 { echo "$as_me:$LINENO: result: $ac_res" >&5
37047 echo "${ECHO_T}$ac_res" >&6; }
37048 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37049 AST_BKTR_FOUND=yes
37050 else
37051 AST_BKTR_FOUND=no
37056 # now check for the header.
37057 if test "${AST_BKTR_FOUND}" = "yes"; then
37058 BKTR_LIB="${pbxlibdir} -lc "
37059 # if --with-BKTR=DIR has been specified, use it.
37060 if test "x${BKTR_DIR}" != "x"; then
37061 BKTR_INCLUDE="-I${BKTR_DIR}/include"
37063 BKTR_INCLUDE="${BKTR_INCLUDE} "
37064 if test "xexecinfo.h" = "x" ; then # no header, assume found
37065 BKTR_HEADER_FOUND="1"
37066 else # check for the header
37067 saved_cppflags="${CPPFLAGS}"
37068 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
37069 if test "${ac_cv_header_execinfo_h+set}" = set; then
37070 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37071 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37072 if test "${ac_cv_header_execinfo_h+set}" = set; then
37073 echo $ECHO_N "(cached) $ECHO_C" >&6
37075 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37076 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37077 else
37078 # Is the header compilable?
37079 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
37080 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
37081 cat >conftest.$ac_ext <<_ACEOF
37082 /* confdefs.h. */
37083 _ACEOF
37084 cat confdefs.h >>conftest.$ac_ext
37085 cat >>conftest.$ac_ext <<_ACEOF
37086 /* end confdefs.h. */
37087 $ac_includes_default
37088 #include <execinfo.h>
37089 _ACEOF
37090 rm -f conftest.$ac_objext
37091 if { (ac_try="$ac_compile"
37092 case "(($ac_try" in
37093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37094 *) ac_try_echo=$ac_try;;
37095 esac
37096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37097 (eval "$ac_compile") 2>conftest.er1
37098 ac_status=$?
37099 grep -v '^ *+' conftest.er1 >conftest.err
37100 rm -f conftest.er1
37101 cat conftest.err >&5
37102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37103 (exit $ac_status); } && {
37104 test -z "$ac_c_werror_flag" ||
37105 test ! -s conftest.err
37106 } && test -s conftest.$ac_objext; then
37107 ac_header_compiler=yes
37108 else
37109 echo "$as_me: failed program was:" >&5
37110 sed 's/^/| /' conftest.$ac_ext >&5
37112 ac_header_compiler=no
37115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37117 echo "${ECHO_T}$ac_header_compiler" >&6; }
37119 # Is the header present?
37120 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
37121 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
37122 cat >conftest.$ac_ext <<_ACEOF
37123 /* confdefs.h. */
37124 _ACEOF
37125 cat confdefs.h >>conftest.$ac_ext
37126 cat >>conftest.$ac_ext <<_ACEOF
37127 /* end confdefs.h. */
37128 #include <execinfo.h>
37129 _ACEOF
37130 if { (ac_try="$ac_cpp conftest.$ac_ext"
37131 case "(($ac_try" in
37132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37133 *) ac_try_echo=$ac_try;;
37134 esac
37135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37137 ac_status=$?
37138 grep -v '^ *+' conftest.er1 >conftest.err
37139 rm -f conftest.er1
37140 cat conftest.err >&5
37141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); } >/dev/null && {
37143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37144 test ! -s conftest.err
37145 }; then
37146 ac_header_preproc=yes
37147 else
37148 echo "$as_me: failed program was:" >&5
37149 sed 's/^/| /' conftest.$ac_ext >&5
37151 ac_header_preproc=no
37154 rm -f conftest.err conftest.$ac_ext
37155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37156 echo "${ECHO_T}$ac_header_preproc" >&6; }
37158 # So? What about this header?
37159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37160 yes:no: )
37161 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
37162 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37163 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
37164 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
37165 ac_header_preproc=yes
37167 no:yes:* )
37168 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
37169 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
37170 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
37171 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
37172 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
37173 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
37174 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
37175 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
37176 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
37177 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
37178 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
37179 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
37180 ( cat <<\_ASBOX
37181 ## ------------------------------- ##
37182 ## Report this to www.asterisk.org ##
37183 ## ------------------------------- ##
37184 _ASBOX
37185 ) | sed "s/^/$as_me: WARNING: /" >&2
37187 esac
37188 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37189 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37190 if test "${ac_cv_header_execinfo_h+set}" = set; then
37191 echo $ECHO_N "(cached) $ECHO_C" >&6
37192 else
37193 ac_cv_header_execinfo_h=$ac_header_preproc
37195 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37196 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37199 if test $ac_cv_header_execinfo_h = yes; then
37200 BKTR_HEADER_FOUND=1
37201 else
37202 BKTR_HEADER_FOUND=0
37206 CPPFLAGS="${saved_cppflags}"
37208 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
37209 BKTR_LIB=""
37210 BKTR_INCLUDE=""
37211 else
37212 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37213 BKTR_LIB=""
37215 PBX_BKTR=1
37216 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37218 cat >>confdefs.h <<_ACEOF
37219 #define HAVE_BKTR 1
37220 _ACEOF
37223 cat >>confdefs.h <<_ACEOF
37224 #define HAVE_BKTR_VERSION
37225 _ACEOF
37232 # possible places for oss definitions
37234 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37235 pbxlibdir=""
37236 # if --with-OSS=DIR has been specified, use it.
37237 if test "x${OSS_DIR}" != "x"; then
37238 if test -d ${OSS_DIR}/lib; then
37239 pbxlibdir="-L${OSS_DIR}/lib"
37240 else
37241 pbxlibdir="-L${OSS_DIR}"
37244 pbxfuncname=""
37245 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37246 AST_OSS_FOUND=yes
37247 else
37248 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37249 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37250 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37251 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37252 echo $ECHO_N "(cached) $ECHO_C" >&6
37253 else
37254 ac_check_lib_save_LIBS=$LIBS
37255 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37256 cat >conftest.$ac_ext <<_ACEOF
37257 /* confdefs.h. */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h. */
37263 /* Override any GCC internal prototype to avoid an error.
37264 Use char because int might match the return type of a GCC
37265 builtin and then its argument prototype would still apply. */
37266 #ifdef __cplusplus
37267 extern "C"
37268 #endif
37269 char ${pbxfuncname} ();
37271 main ()
37273 return ${pbxfuncname} ();
37275 return 0;
37277 _ACEOF
37278 rm -f conftest.$ac_objext conftest$ac_exeext
37279 if { (ac_try="$ac_link"
37280 case "(($ac_try" in
37281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37282 *) ac_try_echo=$ac_try;;
37283 esac
37284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37285 (eval "$ac_link") 2>conftest.er1
37286 ac_status=$?
37287 grep -v '^ *+' conftest.er1 >conftest.err
37288 rm -f conftest.er1
37289 cat conftest.err >&5
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); } && {
37292 test -z "$ac_c_werror_flag" ||
37293 test ! -s conftest.err
37294 } && test -s conftest$ac_exeext &&
37295 $as_test_x conftest$ac_exeext; then
37296 eval "$as_ac_Lib=yes"
37297 else
37298 echo "$as_me: failed program was:" >&5
37299 sed 's/^/| /' conftest.$ac_ext >&5
37301 eval "$as_ac_Lib=no"
37304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37305 conftest$ac_exeext conftest.$ac_ext
37306 LIBS=$ac_check_lib_save_LIBS
37308 ac_res=`eval echo '${'$as_ac_Lib'}'`
37309 { echo "$as_me:$LINENO: result: $ac_res" >&5
37310 echo "${ECHO_T}$ac_res" >&6; }
37311 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37312 AST_OSS_FOUND=yes
37313 else
37314 AST_OSS_FOUND=no
37319 # now check for the header.
37320 if test "${AST_OSS_FOUND}" = "yes"; then
37321 OSS_LIB="${pbxlibdir} -lossaudio "
37322 # if --with-OSS=DIR has been specified, use it.
37323 if test "x${OSS_DIR}" != "x"; then
37324 OSS_INCLUDE="-I${OSS_DIR}/include"
37326 OSS_INCLUDE="${OSS_INCLUDE} "
37327 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37328 OSS_HEADER_FOUND="1"
37329 else # check for the header
37330 saved_cppflags="${CPPFLAGS}"
37331 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37332 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37333 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37334 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37335 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37336 echo $ECHO_N "(cached) $ECHO_C" >&6
37338 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37339 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37340 else
37341 # Is the header compilable?
37342 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37343 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37344 cat >conftest.$ac_ext <<_ACEOF
37345 /* confdefs.h. */
37346 _ACEOF
37347 cat confdefs.h >>conftest.$ac_ext
37348 cat >>conftest.$ac_ext <<_ACEOF
37349 /* end confdefs.h. */
37350 $ac_includes_default
37351 #include <linux/soundcard.h>
37352 _ACEOF
37353 rm -f conftest.$ac_objext
37354 if { (ac_try="$ac_compile"
37355 case "(($ac_try" in
37356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37357 *) ac_try_echo=$ac_try;;
37358 esac
37359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37360 (eval "$ac_compile") 2>conftest.er1
37361 ac_status=$?
37362 grep -v '^ *+' conftest.er1 >conftest.err
37363 rm -f conftest.er1
37364 cat conftest.err >&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); } && {
37367 test -z "$ac_c_werror_flag" ||
37368 test ! -s conftest.err
37369 } && test -s conftest.$ac_objext; then
37370 ac_header_compiler=yes
37371 else
37372 echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37375 ac_header_compiler=no
37378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37380 echo "${ECHO_T}$ac_header_compiler" >&6; }
37382 # Is the header present?
37383 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37384 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37385 cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h. */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37391 #include <linux/soundcard.h>
37392 _ACEOF
37393 if { (ac_try="$ac_cpp conftest.$ac_ext"
37394 case "(($ac_try" in
37395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396 *) ac_try_echo=$ac_try;;
37397 esac
37398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37400 ac_status=$?
37401 grep -v '^ *+' conftest.er1 >conftest.err
37402 rm -f conftest.er1
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } >/dev/null && {
37406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37407 test ! -s conftest.err
37408 }; then
37409 ac_header_preproc=yes
37410 else
37411 echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37414 ac_header_preproc=no
37417 rm -f conftest.err conftest.$ac_ext
37418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37419 echo "${ECHO_T}$ac_header_preproc" >&6; }
37421 # So? What about this header?
37422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37423 yes:no: )
37424 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37425 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37426 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37427 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37428 ac_header_preproc=yes
37430 no:yes:* )
37431 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37432 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37433 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37434 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37435 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37436 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37438 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37439 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37440 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37441 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37442 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37443 ( cat <<\_ASBOX
37444 ## ------------------------------- ##
37445 ## Report this to www.asterisk.org ##
37446 ## ------------------------------- ##
37447 _ASBOX
37448 ) | sed "s/^/$as_me: WARNING: /" >&2
37450 esac
37451 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37452 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37453 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37458 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37459 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37462 if test $ac_cv_header_linux_soundcard_h = yes; then
37463 OSS_HEADER_FOUND=1
37464 else
37465 OSS_HEADER_FOUND=0
37469 CPPFLAGS="${saved_cppflags}"
37471 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37472 OSS_LIB=""
37473 OSS_INCLUDE=""
37474 else
37475 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37476 OSS_LIB=""
37478 PBX_OSS=1
37479 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37481 cat >>confdefs.h <<_ACEOF
37482 #define HAVE_OSS 1
37483 _ACEOF
37486 cat >>confdefs.h <<_ACEOF
37487 #define HAVE_OSS_VERSION
37488 _ACEOF
37495 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37496 pbxlibdir=""
37497 # if --with-OSS=DIR has been specified, use it.
37498 if test "x${OSS_DIR}" != "x"; then
37499 if test -d ${OSS_DIR}/lib; then
37500 pbxlibdir="-L${OSS_DIR}/lib"
37501 else
37502 pbxlibdir="-L${OSS_DIR}"
37505 pbxfuncname=""
37506 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37507 AST_OSS_FOUND=yes
37508 else
37509 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37510 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37511 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37512 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37513 echo $ECHO_N "(cached) $ECHO_C" >&6
37514 else
37515 ac_check_lib_save_LIBS=$LIBS
37516 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37517 cat >conftest.$ac_ext <<_ACEOF
37518 /* confdefs.h. */
37519 _ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37524 /* Override any GCC internal prototype to avoid an error.
37525 Use char because int might match the return type of a GCC
37526 builtin and then its argument prototype would still apply. */
37527 #ifdef __cplusplus
37528 extern "C"
37529 #endif
37530 char ${pbxfuncname} ();
37532 main ()
37534 return ${pbxfuncname} ();
37536 return 0;
37538 _ACEOF
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (ac_try="$ac_link"
37541 case "(($ac_try" in
37542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543 *) ac_try_echo=$ac_try;;
37544 esac
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546 (eval "$ac_link") 2>conftest.er1
37547 ac_status=$?
37548 grep -v '^ *+' conftest.er1 >conftest.err
37549 rm -f conftest.er1
37550 cat conftest.err >&5
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } && {
37553 test -z "$ac_c_werror_flag" ||
37554 test ! -s conftest.err
37555 } && test -s conftest$ac_exeext &&
37556 $as_test_x conftest$ac_exeext; then
37557 eval "$as_ac_Lib=yes"
37558 else
37559 echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37562 eval "$as_ac_Lib=no"
37565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37566 conftest$ac_exeext conftest.$ac_ext
37567 LIBS=$ac_check_lib_save_LIBS
37569 ac_res=`eval echo '${'$as_ac_Lib'}'`
37570 { echo "$as_me:$LINENO: result: $ac_res" >&5
37571 echo "${ECHO_T}$ac_res" >&6; }
37572 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37573 AST_OSS_FOUND=yes
37574 else
37575 AST_OSS_FOUND=no
37580 # now check for the header.
37581 if test "${AST_OSS_FOUND}" = "yes"; then
37582 OSS_LIB="${pbxlibdir} -lossaudio "
37583 # if --with-OSS=DIR has been specified, use it.
37584 if test "x${OSS_DIR}" != "x"; then
37585 OSS_INCLUDE="-I${OSS_DIR}/include"
37587 OSS_INCLUDE="${OSS_INCLUDE} "
37588 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37589 OSS_HEADER_FOUND="1"
37590 else # check for the header
37591 saved_cppflags="${CPPFLAGS}"
37592 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37593 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37594 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37595 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37596 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37600 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37601 else
37602 # Is the header compilable?
37603 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37604 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37605 cat >conftest.$ac_ext <<_ACEOF
37606 /* confdefs.h. */
37607 _ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h. */
37611 $ac_includes_default
37612 #include <sys/soundcard.h>
37613 _ACEOF
37614 rm -f conftest.$ac_objext
37615 if { (ac_try="$ac_compile"
37616 case "(($ac_try" in
37617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37618 *) ac_try_echo=$ac_try;;
37619 esac
37620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37621 (eval "$ac_compile") 2>conftest.er1
37622 ac_status=$?
37623 grep -v '^ *+' conftest.er1 >conftest.err
37624 rm -f conftest.er1
37625 cat conftest.err >&5
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); } && {
37628 test -z "$ac_c_werror_flag" ||
37629 test ! -s conftest.err
37630 } && test -s conftest.$ac_objext; then
37631 ac_header_compiler=yes
37632 else
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37636 ac_header_compiler=no
37639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37641 echo "${ECHO_T}$ac_header_compiler" >&6; }
37643 # Is the header present?
37644 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37645 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37646 cat >conftest.$ac_ext <<_ACEOF
37647 /* confdefs.h. */
37648 _ACEOF
37649 cat confdefs.h >>conftest.$ac_ext
37650 cat >>conftest.$ac_ext <<_ACEOF
37651 /* end confdefs.h. */
37652 #include <sys/soundcard.h>
37653 _ACEOF
37654 if { (ac_try="$ac_cpp conftest.$ac_ext"
37655 case "(($ac_try" in
37656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37657 *) ac_try_echo=$ac_try;;
37658 esac
37659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37661 ac_status=$?
37662 grep -v '^ *+' conftest.er1 >conftest.err
37663 rm -f conftest.er1
37664 cat conftest.err >&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } >/dev/null && {
37667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37668 test ! -s conftest.err
37669 }; then
37670 ac_header_preproc=yes
37671 else
37672 echo "$as_me: failed program was:" >&5
37673 sed 's/^/| /' conftest.$ac_ext >&5
37675 ac_header_preproc=no
37678 rm -f conftest.err conftest.$ac_ext
37679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37680 echo "${ECHO_T}$ac_header_preproc" >&6; }
37682 # So? What about this header?
37683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37684 yes:no: )
37685 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37686 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37687 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37688 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37689 ac_header_preproc=yes
37691 no:yes:* )
37692 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37693 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37694 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37695 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37696 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37697 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37698 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37699 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37700 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37701 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37702 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37703 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37704 ( cat <<\_ASBOX
37705 ## ------------------------------- ##
37706 ## Report this to www.asterisk.org ##
37707 ## ------------------------------- ##
37708 _ASBOX
37709 ) | sed "s/^/$as_me: WARNING: /" >&2
37711 esac
37712 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37713 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37714 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37716 else
37717 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37719 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37720 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37723 if test $ac_cv_header_sys_soundcard_h = yes; then
37724 OSS_HEADER_FOUND=1
37725 else
37726 OSS_HEADER_FOUND=0
37730 CPPFLAGS="${saved_cppflags}"
37732 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37733 OSS_LIB=""
37734 OSS_INCLUDE=""
37735 else
37736 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37737 OSS_LIB=""
37739 PBX_OSS=1
37740 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37742 cat >>confdefs.h <<_ACEOF
37743 #define HAVE_OSS 1
37744 _ACEOF
37747 cat >>confdefs.h <<_ACEOF
37748 #define HAVE_OSS_VERSION
37749 _ACEOF
37756 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37757 pbxlibdir=""
37758 # if --with-OSS=DIR has been specified, use it.
37759 if test "x${OSS_DIR}" != "x"; then
37760 if test -d ${OSS_DIR}/lib; then
37761 pbxlibdir="-L${OSS_DIR}/lib"
37762 else
37763 pbxlibdir="-L${OSS_DIR}"
37766 pbxfuncname="oss_ioctl_mixer"
37767 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37768 AST_OSS_FOUND=yes
37769 else
37770 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37771 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37772 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37773 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37774 echo $ECHO_N "(cached) $ECHO_C" >&6
37775 else
37776 ac_check_lib_save_LIBS=$LIBS
37777 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37778 cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h. */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h. */
37785 /* Override any GCC internal prototype to avoid an error.
37786 Use char because int might match the return type of a GCC
37787 builtin and then its argument prototype would still apply. */
37788 #ifdef __cplusplus
37789 extern "C"
37790 #endif
37791 char ${pbxfuncname} ();
37793 main ()
37795 return ${pbxfuncname} ();
37797 return 0;
37799 _ACEOF
37800 rm -f conftest.$ac_objext conftest$ac_exeext
37801 if { (ac_try="$ac_link"
37802 case "(($ac_try" in
37803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804 *) ac_try_echo=$ac_try;;
37805 esac
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807 (eval "$ac_link") 2>conftest.er1
37808 ac_status=$?
37809 grep -v '^ *+' conftest.er1 >conftest.err
37810 rm -f conftest.er1
37811 cat conftest.err >&5
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); } && {
37814 test -z "$ac_c_werror_flag" ||
37815 test ! -s conftest.err
37816 } && test -s conftest$ac_exeext &&
37817 $as_test_x conftest$ac_exeext; then
37818 eval "$as_ac_Lib=yes"
37819 else
37820 echo "$as_me: failed program was:" >&5
37821 sed 's/^/| /' conftest.$ac_ext >&5
37823 eval "$as_ac_Lib=no"
37826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37827 conftest$ac_exeext conftest.$ac_ext
37828 LIBS=$ac_check_lib_save_LIBS
37830 ac_res=`eval echo '${'$as_ac_Lib'}'`
37831 { echo "$as_me:$LINENO: result: $ac_res" >&5
37832 echo "${ECHO_T}$ac_res" >&6; }
37833 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37834 AST_OSS_FOUND=yes
37835 else
37836 AST_OSS_FOUND=no
37841 # now check for the header.
37842 if test "${AST_OSS_FOUND}" = "yes"; then
37843 OSS_LIB="${pbxlibdir} -lossaudio "
37844 # if --with-OSS=DIR has been specified, use it.
37845 if test "x${OSS_DIR}" != "x"; then
37846 OSS_INCLUDE="-I${OSS_DIR}/include"
37848 OSS_INCLUDE="${OSS_INCLUDE} "
37849 if test "xsoundcard.h" = "x" ; then # no header, assume found
37850 OSS_HEADER_FOUND="1"
37851 else # check for the header
37852 saved_cppflags="${CPPFLAGS}"
37853 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37854 if test "${ac_cv_header_soundcard_h+set}" = set; then
37855 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37856 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37857 if test "${ac_cv_header_soundcard_h+set}" = set; then
37858 echo $ECHO_N "(cached) $ECHO_C" >&6
37860 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37861 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37862 else
37863 # Is the header compilable?
37864 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37865 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37866 cat >conftest.$ac_ext <<_ACEOF
37867 /* confdefs.h. */
37868 _ACEOF
37869 cat confdefs.h >>conftest.$ac_ext
37870 cat >>conftest.$ac_ext <<_ACEOF
37871 /* end confdefs.h. */
37872 $ac_includes_default
37873 #include <soundcard.h>
37874 _ACEOF
37875 rm -f conftest.$ac_objext
37876 if { (ac_try="$ac_compile"
37877 case "(($ac_try" in
37878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37879 *) ac_try_echo=$ac_try;;
37880 esac
37881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37882 (eval "$ac_compile") 2>conftest.er1
37883 ac_status=$?
37884 grep -v '^ *+' conftest.er1 >conftest.err
37885 rm -f conftest.er1
37886 cat conftest.err >&5
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); } && {
37889 test -z "$ac_c_werror_flag" ||
37890 test ! -s conftest.err
37891 } && test -s conftest.$ac_objext; then
37892 ac_header_compiler=yes
37893 else
37894 echo "$as_me: failed program was:" >&5
37895 sed 's/^/| /' conftest.$ac_ext >&5
37897 ac_header_compiler=no
37900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37902 echo "${ECHO_T}$ac_header_compiler" >&6; }
37904 # Is the header present?
37905 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37906 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37907 cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h. */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h. */
37913 #include <soundcard.h>
37914 _ACEOF
37915 if { (ac_try="$ac_cpp conftest.$ac_ext"
37916 case "(($ac_try" in
37917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37918 *) ac_try_echo=$ac_try;;
37919 esac
37920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37922 ac_status=$?
37923 grep -v '^ *+' conftest.er1 >conftest.err
37924 rm -f conftest.er1
37925 cat conftest.err >&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); } >/dev/null && {
37928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37929 test ! -s conftest.err
37930 }; then
37931 ac_header_preproc=yes
37932 else
37933 echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37936 ac_header_preproc=no
37939 rm -f conftest.err conftest.$ac_ext
37940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37941 echo "${ECHO_T}$ac_header_preproc" >&6; }
37943 # So? What about this header?
37944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37945 yes:no: )
37946 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37947 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37948 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37949 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37950 ac_header_preproc=yes
37952 no:yes:* )
37953 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37954 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37955 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37956 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37957 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37958 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37959 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37960 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37961 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37962 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37963 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37964 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37965 ( cat <<\_ASBOX
37966 ## ------------------------------- ##
37967 ## Report this to www.asterisk.org ##
37968 ## ------------------------------- ##
37969 _ASBOX
37970 ) | sed "s/^/$as_me: WARNING: /" >&2
37972 esac
37973 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37974 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37975 if test "${ac_cv_header_soundcard_h+set}" = set; then
37976 echo $ECHO_N "(cached) $ECHO_C" >&6
37977 else
37978 ac_cv_header_soundcard_h=$ac_header_preproc
37980 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37981 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37984 if test $ac_cv_header_soundcard_h = yes; then
37985 OSS_HEADER_FOUND=1
37986 else
37987 OSS_HEADER_FOUND=0
37991 CPPFLAGS="${saved_cppflags}"
37993 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37994 OSS_LIB=""
37995 OSS_INCLUDE=""
37996 else
37997 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37998 OSS_LIB=""
38000 PBX_OSS=1
38001 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38003 cat >>confdefs.h <<_ACEOF
38004 #define HAVE_OSS 1
38005 _ACEOF
38008 cat >>confdefs.h <<_ACEOF
38009 #define HAVE_OSS_VERSION
38010 _ACEOF
38017 PG_CONFIG=No
38018 if test "${USE_PGSQL}" != "no"; then
38019 if test "x${PGSQL_DIR}" != "x"; then
38020 if test -n "$ac_tool_prefix"; then
38021 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
38022 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
38023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38025 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
38026 echo $ECHO_N "(cached) $ECHO_C" >&6
38027 else
38028 case $PG_CONFIG in
38029 [\\/]* | ?:[\\/]*)
38030 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
38033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38034 for as_dir in ${PGSQL_DIR}/bin
38036 IFS=$as_save_IFS
38037 test -z "$as_dir" && as_dir=.
38038 for ac_exec_ext in '' $ac_executable_extensions; do
38039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38040 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38042 break 2
38044 done
38045 done
38046 IFS=$as_save_IFS
38049 esac
38051 PG_CONFIG=$ac_cv_path_PG_CONFIG
38052 if test -n "$PG_CONFIG"; then
38053 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38054 echo "${ECHO_T}$PG_CONFIG" >&6; }
38055 else
38056 { echo "$as_me:$LINENO: result: no" >&5
38057 echo "${ECHO_T}no" >&6; }
38062 if test -z "$ac_cv_path_PG_CONFIG"; then
38063 ac_pt_PG_CONFIG=$PG_CONFIG
38064 # Extract the first word of "pg_config", so it can be a program name with args.
38065 set dummy pg_config; ac_word=$2
38066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38068 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38070 else
38071 case $ac_pt_PG_CONFIG in
38072 [\\/]* | ?:[\\/]*)
38073 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38077 for as_dir in ${PGSQL_DIR}/bin
38079 IFS=$as_save_IFS
38080 test -z "$as_dir" && as_dir=.
38081 for ac_exec_ext in '' $ac_executable_extensions; do
38082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38083 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38085 break 2
38087 done
38088 done
38089 IFS=$as_save_IFS
38092 esac
38094 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38095 if test -n "$ac_pt_PG_CONFIG"; then
38096 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38097 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38098 else
38099 { echo "$as_me:$LINENO: result: no" >&5
38100 echo "${ECHO_T}no" >&6; }
38103 if test "x$ac_pt_PG_CONFIG" = x; then
38104 PG_CONFIG="No"
38105 else
38106 case $cross_compiling:$ac_tool_warned in
38107 yes:)
38108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38109 whose name does not start with the host triplet. If you think this
38110 configuration is useful to you, please write to autoconf@gnu.org." >&5
38111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38112 whose name does not start with the host triplet. If you think this
38113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38114 ac_tool_warned=yes ;;
38115 esac
38116 PG_CONFIG=$ac_pt_PG_CONFIG
38118 else
38119 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38122 if test x"${PG_CONFIG}" = xNo; then
38123 { echo "$as_me:$LINENO: ***" >&5
38124 echo "$as_me: ***" >&6;}
38125 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
38126 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
38127 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
38128 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
38129 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38130 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38131 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38132 echo "$as_me: *** including --without-postgres" >&6;}
38133 exit 1
38135 else
38136 if test -n "$ac_tool_prefix"; then
38137 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
38138 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
38139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38141 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 else
38144 case $PG_CONFIG in
38145 [\\/]* | ?:[\\/]*)
38146 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
38149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38150 for as_dir in $PATH
38152 IFS=$as_save_IFS
38153 test -z "$as_dir" && as_dir=.
38154 for ac_exec_ext in '' $ac_executable_extensions; do
38155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38156 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38158 break 2
38160 done
38161 done
38162 IFS=$as_save_IFS
38165 esac
38167 PG_CONFIG=$ac_cv_path_PG_CONFIG
38168 if test -n "$PG_CONFIG"; then
38169 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38170 echo "${ECHO_T}$PG_CONFIG" >&6; }
38171 else
38172 { echo "$as_me:$LINENO: result: no" >&5
38173 echo "${ECHO_T}no" >&6; }
38178 if test -z "$ac_cv_path_PG_CONFIG"; then
38179 ac_pt_PG_CONFIG=$PG_CONFIG
38180 # Extract the first word of "pg_config", so it can be a program name with args.
38181 set dummy pg_config; ac_word=$2
38182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38184 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186 else
38187 case $ac_pt_PG_CONFIG in
38188 [\\/]* | ?:[\\/]*)
38189 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38193 for as_dir in $PATH
38195 IFS=$as_save_IFS
38196 test -z "$as_dir" && as_dir=.
38197 for ac_exec_ext in '' $ac_executable_extensions; do
38198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38199 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38201 break 2
38203 done
38204 done
38205 IFS=$as_save_IFS
38208 esac
38210 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38211 if test -n "$ac_pt_PG_CONFIG"; then
38212 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38213 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38214 else
38215 { echo "$as_me:$LINENO: result: no" >&5
38216 echo "${ECHO_T}no" >&6; }
38219 if test "x$ac_pt_PG_CONFIG" = x; then
38220 PG_CONFIG="No"
38221 else
38222 case $cross_compiling:$ac_tool_warned in
38223 yes:)
38224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38225 whose name does not start with the host triplet. If you think this
38226 configuration is useful to you, please write to autoconf@gnu.org." >&5
38227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38228 whose name does not start with the host triplet. If you think this
38229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38230 ac_tool_warned=yes ;;
38231 esac
38232 PG_CONFIG=$ac_pt_PG_CONFIG
38234 else
38235 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38240 if test "${PG_CONFIG}" != No; then
38241 PGSQL_libdir=`${PG_CONFIG} --libdir`
38242 PGSQL_includedir=`${PG_CONFIG} --includedir`
38243 if test "x$?" != "x0" ; then
38244 if test -n "${PGSQL_MANDATORY}" ; then
38245 { echo "$as_me:$LINENO: ***" >&5
38246 echo "$as_me: ***" >&6;}
38247 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38248 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38249 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38250 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38251 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38252 echo "$as_me: *** including --without-postgres" >&6;}
38253 exit 1
38255 else
38256 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38257 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38258 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38259 echo $ECHO_N "(cached) $ECHO_C" >&6
38260 else
38261 ac_check_lib_save_LIBS=$LIBS
38262 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38263 cat >conftest.$ac_ext <<_ACEOF
38264 /* confdefs.h. */
38265 _ACEOF
38266 cat confdefs.h >>conftest.$ac_ext
38267 cat >>conftest.$ac_ext <<_ACEOF
38268 /* end confdefs.h. */
38270 /* Override any GCC internal prototype to avoid an error.
38271 Use char because int might match the return type of a GCC
38272 builtin and then its argument prototype would still apply. */
38273 #ifdef __cplusplus
38274 extern "C"
38275 #endif
38276 char PQescapeStringConn ();
38278 main ()
38280 return PQescapeStringConn ();
38282 return 0;
38284 _ACEOF
38285 rm -f conftest.$ac_objext conftest$ac_exeext
38286 if { (ac_try="$ac_link"
38287 case "(($ac_try" in
38288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289 *) ac_try_echo=$ac_try;;
38290 esac
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292 (eval "$ac_link") 2>conftest.er1
38293 ac_status=$?
38294 grep -v '^ *+' conftest.er1 >conftest.err
38295 rm -f conftest.er1
38296 cat conftest.err >&5
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); } && {
38299 test -z "$ac_c_werror_flag" ||
38300 test ! -s conftest.err
38301 } && test -s conftest$ac_exeext &&
38302 $as_test_x conftest$ac_exeext; then
38303 ac_cv_lib_pq_PQescapeStringConn=yes
38304 else
38305 echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38308 ac_cv_lib_pq_PQescapeStringConn=no
38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312 conftest$ac_exeext conftest.$ac_ext
38313 LIBS=$ac_check_lib_save_LIBS
38315 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38316 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38317 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38319 cat >>confdefs.h <<_ACEOF
38320 #define HAVE_PGSQL 1
38321 _ACEOF
38326 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38327 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38328 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38329 PBX_PGSQL=1
38330 elif test -n "${PGSQL_MANDATORY}";
38331 then
38332 { echo "$as_me:$LINENO: ***" >&5
38333 echo "$as_me: ***" >&6;}
38334 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38335 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38336 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38337 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38338 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38339 echo "$as_me: *** including --without-postgres" >&6;}
38340 exit 1
38346 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38347 pbxlibdir=""
38348 # if --with-POPT=DIR has been specified, use it.
38349 if test "x${POPT_DIR}" != "x"; then
38350 if test -d ${POPT_DIR}/lib; then
38351 pbxlibdir="-L${POPT_DIR}/lib"
38352 else
38353 pbxlibdir="-L${POPT_DIR}"
38356 pbxfuncname="poptStrerror"
38357 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38358 AST_POPT_FOUND=yes
38359 else
38360 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38361 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38362 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38363 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38364 echo $ECHO_N "(cached) $ECHO_C" >&6
38365 else
38366 ac_check_lib_save_LIBS=$LIBS
38367 LIBS="-lpopt ${pbxlibdir} $LIBS"
38368 cat >conftest.$ac_ext <<_ACEOF
38369 /* confdefs.h. */
38370 _ACEOF
38371 cat confdefs.h >>conftest.$ac_ext
38372 cat >>conftest.$ac_ext <<_ACEOF
38373 /* end confdefs.h. */
38375 /* Override any GCC internal prototype to avoid an error.
38376 Use char because int might match the return type of a GCC
38377 builtin and then its argument prototype would still apply. */
38378 #ifdef __cplusplus
38379 extern "C"
38380 #endif
38381 char ${pbxfuncname} ();
38383 main ()
38385 return ${pbxfuncname} ();
38387 return 0;
38389 _ACEOF
38390 rm -f conftest.$ac_objext conftest$ac_exeext
38391 if { (ac_try="$ac_link"
38392 case "(($ac_try" in
38393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38394 *) ac_try_echo=$ac_try;;
38395 esac
38396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38397 (eval "$ac_link") 2>conftest.er1
38398 ac_status=$?
38399 grep -v '^ *+' conftest.er1 >conftest.err
38400 rm -f conftest.er1
38401 cat conftest.err >&5
38402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403 (exit $ac_status); } && {
38404 test -z "$ac_c_werror_flag" ||
38405 test ! -s conftest.err
38406 } && test -s conftest$ac_exeext &&
38407 $as_test_x conftest$ac_exeext; then
38408 eval "$as_ac_Lib=yes"
38409 else
38410 echo "$as_me: failed program was:" >&5
38411 sed 's/^/| /' conftest.$ac_ext >&5
38413 eval "$as_ac_Lib=no"
38416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38417 conftest$ac_exeext conftest.$ac_ext
38418 LIBS=$ac_check_lib_save_LIBS
38420 ac_res=`eval echo '${'$as_ac_Lib'}'`
38421 { echo "$as_me:$LINENO: result: $ac_res" >&5
38422 echo "${ECHO_T}$ac_res" >&6; }
38423 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38424 AST_POPT_FOUND=yes
38425 else
38426 AST_POPT_FOUND=no
38431 # now check for the header.
38432 if test "${AST_POPT_FOUND}" = "yes"; then
38433 POPT_LIB="${pbxlibdir} -lpopt "
38434 # if --with-POPT=DIR has been specified, use it.
38435 if test "x${POPT_DIR}" != "x"; then
38436 POPT_INCLUDE="-I${POPT_DIR}/include"
38438 POPT_INCLUDE="${POPT_INCLUDE} "
38439 if test "xpopt.h" = "x" ; then # no header, assume found
38440 POPT_HEADER_FOUND="1"
38441 else # check for the header
38442 saved_cppflags="${CPPFLAGS}"
38443 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
38444 if test "${ac_cv_header_popt_h+set}" = set; then
38445 { echo "$as_me:$LINENO: checking for popt.h" >&5
38446 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38447 if test "${ac_cv_header_popt_h+set}" = set; then
38448 echo $ECHO_N "(cached) $ECHO_C" >&6
38450 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38451 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38452 else
38453 # Is the header compilable?
38454 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38455 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38456 cat >conftest.$ac_ext <<_ACEOF
38457 /* confdefs.h. */
38458 _ACEOF
38459 cat confdefs.h >>conftest.$ac_ext
38460 cat >>conftest.$ac_ext <<_ACEOF
38461 /* end confdefs.h. */
38462 $ac_includes_default
38463 #include <popt.h>
38464 _ACEOF
38465 rm -f conftest.$ac_objext
38466 if { (ac_try="$ac_compile"
38467 case "(($ac_try" in
38468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38469 *) ac_try_echo=$ac_try;;
38470 esac
38471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38472 (eval "$ac_compile") 2>conftest.er1
38473 ac_status=$?
38474 grep -v '^ *+' conftest.er1 >conftest.err
38475 rm -f conftest.er1
38476 cat conftest.err >&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } && {
38479 test -z "$ac_c_werror_flag" ||
38480 test ! -s conftest.err
38481 } && test -s conftest.$ac_objext; then
38482 ac_header_compiler=yes
38483 else
38484 echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38487 ac_header_compiler=no
38490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38492 echo "${ECHO_T}$ac_header_compiler" >&6; }
38494 # Is the header present?
38495 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38496 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38497 cat >conftest.$ac_ext <<_ACEOF
38498 /* confdefs.h. */
38499 _ACEOF
38500 cat confdefs.h >>conftest.$ac_ext
38501 cat >>conftest.$ac_ext <<_ACEOF
38502 /* end confdefs.h. */
38503 #include <popt.h>
38504 _ACEOF
38505 if { (ac_try="$ac_cpp conftest.$ac_ext"
38506 case "(($ac_try" in
38507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38508 *) ac_try_echo=$ac_try;;
38509 esac
38510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38512 ac_status=$?
38513 grep -v '^ *+' conftest.er1 >conftest.err
38514 rm -f conftest.er1
38515 cat conftest.err >&5
38516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517 (exit $ac_status); } >/dev/null && {
38518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38519 test ! -s conftest.err
38520 }; then
38521 ac_header_preproc=yes
38522 else
38523 echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38526 ac_header_preproc=no
38529 rm -f conftest.err conftest.$ac_ext
38530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38531 echo "${ECHO_T}$ac_header_preproc" >&6; }
38533 # So? What about this header?
38534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38535 yes:no: )
38536 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38537 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38538 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38539 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38540 ac_header_preproc=yes
38542 no:yes:* )
38543 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38544 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38545 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38546 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38547 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38548 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38549 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38550 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38551 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38552 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38553 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38554 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38555 ( cat <<\_ASBOX
38556 ## ------------------------------- ##
38557 ## Report this to www.asterisk.org ##
38558 ## ------------------------------- ##
38559 _ASBOX
38560 ) | sed "s/^/$as_me: WARNING: /" >&2
38562 esac
38563 { echo "$as_me:$LINENO: checking for popt.h" >&5
38564 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38565 if test "${ac_cv_header_popt_h+set}" = set; then
38566 echo $ECHO_N "(cached) $ECHO_C" >&6
38567 else
38568 ac_cv_header_popt_h=$ac_header_preproc
38570 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38571 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38574 if test $ac_cv_header_popt_h = yes; then
38575 POPT_HEADER_FOUND=1
38576 else
38577 POPT_HEADER_FOUND=0
38581 CPPFLAGS="${saved_cppflags}"
38583 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38584 POPT_LIB=""
38585 POPT_INCLUDE=""
38586 else
38587 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38588 POPT_LIB=""
38590 PBX_POPT=1
38591 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38593 cat >>confdefs.h <<_ACEOF
38594 #define HAVE_POPT 1
38595 _ACEOF
38598 cat >>confdefs.h <<_ACEOF
38599 #define HAVE_POPT_VERSION
38600 _ACEOF
38608 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38609 pbxlibdir=""
38610 # if --with-PORTAUDIO=DIR has been specified, use it.
38611 if test "x${PORTAUDIO_DIR}" != "x"; then
38612 if test -d ${PORTAUDIO_DIR}/lib; then
38613 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38614 else
38615 pbxlibdir="-L${PORTAUDIO_DIR}"
38618 pbxfuncname="Pa_GetDeviceCount"
38619 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38620 AST_PORTAUDIO_FOUND=yes
38621 else
38622 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38623 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38624 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38625 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38627 else
38628 ac_check_lib_save_LIBS=$LIBS
38629 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38630 cat >conftest.$ac_ext <<_ACEOF
38631 /* confdefs.h. */
38632 _ACEOF
38633 cat confdefs.h >>conftest.$ac_ext
38634 cat >>conftest.$ac_ext <<_ACEOF
38635 /* end confdefs.h. */
38637 /* Override any GCC internal prototype to avoid an error.
38638 Use char because int might match the return type of a GCC
38639 builtin and then its argument prototype would still apply. */
38640 #ifdef __cplusplus
38641 extern "C"
38642 #endif
38643 char ${pbxfuncname} ();
38645 main ()
38647 return ${pbxfuncname} ();
38649 return 0;
38651 _ACEOF
38652 rm -f conftest.$ac_objext conftest$ac_exeext
38653 if { (ac_try="$ac_link"
38654 case "(($ac_try" in
38655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38656 *) ac_try_echo=$ac_try;;
38657 esac
38658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38659 (eval "$ac_link") 2>conftest.er1
38660 ac_status=$?
38661 grep -v '^ *+' conftest.er1 >conftest.err
38662 rm -f conftest.er1
38663 cat conftest.err >&5
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); } && {
38666 test -z "$ac_c_werror_flag" ||
38667 test ! -s conftest.err
38668 } && test -s conftest$ac_exeext &&
38669 $as_test_x conftest$ac_exeext; then
38670 eval "$as_ac_Lib=yes"
38671 else
38672 echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38675 eval "$as_ac_Lib=no"
38678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38679 conftest$ac_exeext conftest.$ac_ext
38680 LIBS=$ac_check_lib_save_LIBS
38682 ac_res=`eval echo '${'$as_ac_Lib'}'`
38683 { echo "$as_me:$LINENO: result: $ac_res" >&5
38684 echo "${ECHO_T}$ac_res" >&6; }
38685 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38686 AST_PORTAUDIO_FOUND=yes
38687 else
38688 AST_PORTAUDIO_FOUND=no
38693 # now check for the header.
38694 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38695 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38696 # if --with-PORTAUDIO=DIR has been specified, use it.
38697 if test "x${PORTAUDIO_DIR}" != "x"; then
38698 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38700 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38701 if test "xportaudio.h" = "x" ; then # no header, assume found
38702 PORTAUDIO_HEADER_FOUND="1"
38703 else # check for the header
38704 saved_cppflags="${CPPFLAGS}"
38705 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
38706 if test "${ac_cv_header_portaudio_h+set}" = set; then
38707 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38708 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38709 if test "${ac_cv_header_portaudio_h+set}" = set; then
38710 echo $ECHO_N "(cached) $ECHO_C" >&6
38712 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38713 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38714 else
38715 # Is the header compilable?
38716 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38717 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38718 cat >conftest.$ac_ext <<_ACEOF
38719 /* confdefs.h. */
38720 _ACEOF
38721 cat confdefs.h >>conftest.$ac_ext
38722 cat >>conftest.$ac_ext <<_ACEOF
38723 /* end confdefs.h. */
38724 $ac_includes_default
38725 #include <portaudio.h>
38726 _ACEOF
38727 rm -f conftest.$ac_objext
38728 if { (ac_try="$ac_compile"
38729 case "(($ac_try" in
38730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38731 *) ac_try_echo=$ac_try;;
38732 esac
38733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38734 (eval "$ac_compile") 2>conftest.er1
38735 ac_status=$?
38736 grep -v '^ *+' conftest.er1 >conftest.err
38737 rm -f conftest.er1
38738 cat conftest.err >&5
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); } && {
38741 test -z "$ac_c_werror_flag" ||
38742 test ! -s conftest.err
38743 } && test -s conftest.$ac_objext; then
38744 ac_header_compiler=yes
38745 else
38746 echo "$as_me: failed program was:" >&5
38747 sed 's/^/| /' conftest.$ac_ext >&5
38749 ac_header_compiler=no
38752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38754 echo "${ECHO_T}$ac_header_compiler" >&6; }
38756 # Is the header present?
38757 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38758 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38759 cat >conftest.$ac_ext <<_ACEOF
38760 /* confdefs.h. */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h. */
38765 #include <portaudio.h>
38766 _ACEOF
38767 if { (ac_try="$ac_cpp conftest.$ac_ext"
38768 case "(($ac_try" in
38769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38770 *) ac_try_echo=$ac_try;;
38771 esac
38772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38774 ac_status=$?
38775 grep -v '^ *+' conftest.er1 >conftest.err
38776 rm -f conftest.er1
38777 cat conftest.err >&5
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } >/dev/null && {
38780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38781 test ! -s conftest.err
38782 }; then
38783 ac_header_preproc=yes
38784 else
38785 echo "$as_me: failed program was:" >&5
38786 sed 's/^/| /' conftest.$ac_ext >&5
38788 ac_header_preproc=no
38791 rm -f conftest.err conftest.$ac_ext
38792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38793 echo "${ECHO_T}$ac_header_preproc" >&6; }
38795 # So? What about this header?
38796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38797 yes:no: )
38798 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38799 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38800 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38801 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38802 ac_header_preproc=yes
38804 no:yes:* )
38805 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38806 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38807 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38808 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38809 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38810 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38811 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38812 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38813 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38814 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38815 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38816 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38817 ( cat <<\_ASBOX
38818 ## ------------------------------- ##
38819 ## Report this to www.asterisk.org ##
38820 ## ------------------------------- ##
38821 _ASBOX
38822 ) | sed "s/^/$as_me: WARNING: /" >&2
38824 esac
38825 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38826 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38827 if test "${ac_cv_header_portaudio_h+set}" = set; then
38828 echo $ECHO_N "(cached) $ECHO_C" >&6
38829 else
38830 ac_cv_header_portaudio_h=$ac_header_preproc
38832 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38833 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38836 if test $ac_cv_header_portaudio_h = yes; then
38837 PORTAUDIO_HEADER_FOUND=1
38838 else
38839 PORTAUDIO_HEADER_FOUND=0
38843 CPPFLAGS="${saved_cppflags}"
38845 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38846 PORTAUDIO_LIB=""
38847 PORTAUDIO_INCLUDE=""
38848 else
38849 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38850 PORTAUDIO_LIB=""
38852 PBX_PORTAUDIO=1
38853 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38855 cat >>confdefs.h <<_ACEOF
38856 #define HAVE_PORTAUDIO 1
38857 _ACEOF
38860 cat >>confdefs.h <<_ACEOF
38861 #define HAVE_PORTAUDIO_VERSION
38862 _ACEOF
38870 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38871 pbxlibdir=""
38872 # if --with-PRI=DIR has been specified, use it.
38873 if test "x${PRI_DIR}" != "x"; then
38874 if test -d ${PRI_DIR}/lib; then
38875 pbxlibdir="-L${PRI_DIR}/lib"
38876 else
38877 pbxlibdir="-L${PRI_DIR}"
38880 pbxfuncname="pri_get_version"
38881 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38882 AST_PRI_FOUND=yes
38883 else
38884 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38885 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38886 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38887 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38888 echo $ECHO_N "(cached) $ECHO_C" >&6
38889 else
38890 ac_check_lib_save_LIBS=$LIBS
38891 LIBS="-lpri ${pbxlibdir} $LIBS"
38892 cat >conftest.$ac_ext <<_ACEOF
38893 /* confdefs.h. */
38894 _ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h. */
38899 /* Override any GCC internal prototype to avoid an error.
38900 Use char because int might match the return type of a GCC
38901 builtin and then its argument prototype would still apply. */
38902 #ifdef __cplusplus
38903 extern "C"
38904 #endif
38905 char ${pbxfuncname} ();
38907 main ()
38909 return ${pbxfuncname} ();
38911 return 0;
38913 _ACEOF
38914 rm -f conftest.$ac_objext conftest$ac_exeext
38915 if { (ac_try="$ac_link"
38916 case "(($ac_try" in
38917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918 *) ac_try_echo=$ac_try;;
38919 esac
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921 (eval "$ac_link") 2>conftest.er1
38922 ac_status=$?
38923 grep -v '^ *+' conftest.er1 >conftest.err
38924 rm -f conftest.er1
38925 cat conftest.err >&5
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); } && {
38928 test -z "$ac_c_werror_flag" ||
38929 test ! -s conftest.err
38930 } && test -s conftest$ac_exeext &&
38931 $as_test_x conftest$ac_exeext; then
38932 eval "$as_ac_Lib=yes"
38933 else
38934 echo "$as_me: failed program was:" >&5
38935 sed 's/^/| /' conftest.$ac_ext >&5
38937 eval "$as_ac_Lib=no"
38940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38941 conftest$ac_exeext conftest.$ac_ext
38942 LIBS=$ac_check_lib_save_LIBS
38944 ac_res=`eval echo '${'$as_ac_Lib'}'`
38945 { echo "$as_me:$LINENO: result: $ac_res" >&5
38946 echo "${ECHO_T}$ac_res" >&6; }
38947 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38948 AST_PRI_FOUND=yes
38949 else
38950 AST_PRI_FOUND=no
38955 # now check for the header.
38956 if test "${AST_PRI_FOUND}" = "yes"; then
38957 PRI_LIB="${pbxlibdir} -lpri "
38958 # if --with-PRI=DIR has been specified, use it.
38959 if test "x${PRI_DIR}" != "x"; then
38960 PRI_INCLUDE="-I${PRI_DIR}/include"
38962 PRI_INCLUDE="${PRI_INCLUDE} "
38963 if test "xlibpri.h" = "x" ; then # no header, assume found
38964 PRI_HEADER_FOUND="1"
38965 else # check for the header
38966 saved_cppflags="${CPPFLAGS}"
38967 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
38968 if test "${ac_cv_header_libpri_h+set}" = set; then
38969 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38970 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38971 if test "${ac_cv_header_libpri_h+set}" = set; then
38972 echo $ECHO_N "(cached) $ECHO_C" >&6
38974 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38975 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38976 else
38977 # Is the header compilable?
38978 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38979 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38980 cat >conftest.$ac_ext <<_ACEOF
38981 /* confdefs.h. */
38982 _ACEOF
38983 cat confdefs.h >>conftest.$ac_ext
38984 cat >>conftest.$ac_ext <<_ACEOF
38985 /* end confdefs.h. */
38986 $ac_includes_default
38987 #include <libpri.h>
38988 _ACEOF
38989 rm -f conftest.$ac_objext
38990 if { (ac_try="$ac_compile"
38991 case "(($ac_try" in
38992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38993 *) ac_try_echo=$ac_try;;
38994 esac
38995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38996 (eval "$ac_compile") 2>conftest.er1
38997 ac_status=$?
38998 grep -v '^ *+' conftest.er1 >conftest.err
38999 rm -f conftest.er1
39000 cat conftest.err >&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } && {
39003 test -z "$ac_c_werror_flag" ||
39004 test ! -s conftest.err
39005 } && test -s conftest.$ac_objext; then
39006 ac_header_compiler=yes
39007 else
39008 echo "$as_me: failed program was:" >&5
39009 sed 's/^/| /' conftest.$ac_ext >&5
39011 ac_header_compiler=no
39014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39016 echo "${ECHO_T}$ac_header_compiler" >&6; }
39018 # Is the header present?
39019 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
39020 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
39021 cat >conftest.$ac_ext <<_ACEOF
39022 /* confdefs.h. */
39023 _ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h. */
39027 #include <libpri.h>
39028 _ACEOF
39029 if { (ac_try="$ac_cpp conftest.$ac_ext"
39030 case "(($ac_try" in
39031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39032 *) ac_try_echo=$ac_try;;
39033 esac
39034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39036 ac_status=$?
39037 grep -v '^ *+' conftest.er1 >conftest.err
39038 rm -f conftest.er1
39039 cat conftest.err >&5
39040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041 (exit $ac_status); } >/dev/null && {
39042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39043 test ! -s conftest.err
39044 }; then
39045 ac_header_preproc=yes
39046 else
39047 echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39050 ac_header_preproc=no
39053 rm -f conftest.err conftest.$ac_ext
39054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39055 echo "${ECHO_T}$ac_header_preproc" >&6; }
39057 # So? What about this header?
39058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39059 yes:no: )
39060 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
39061 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39062 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
39063 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
39064 ac_header_preproc=yes
39066 no:yes:* )
39067 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39068 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39069 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39070 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39071 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39072 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39073 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39074 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39075 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39076 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39077 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39078 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39079 ( cat <<\_ASBOX
39080 ## ------------------------------- ##
39081 ## Report this to www.asterisk.org ##
39082 ## ------------------------------- ##
39083 _ASBOX
39084 ) | sed "s/^/$as_me: WARNING: /" >&2
39086 esac
39087 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39088 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39089 if test "${ac_cv_header_libpri_h+set}" = set; then
39090 echo $ECHO_N "(cached) $ECHO_C" >&6
39091 else
39092 ac_cv_header_libpri_h=$ac_header_preproc
39094 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39095 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39098 if test $ac_cv_header_libpri_h = yes; then
39099 PRI_HEADER_FOUND=1
39100 else
39101 PRI_HEADER_FOUND=0
39105 CPPFLAGS="${saved_cppflags}"
39107 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
39108 PRI_LIB=""
39109 PRI_INCLUDE=""
39110 else
39111 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39112 PRI_LIB=""
39114 PBX_PRI=1
39115 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39117 cat >>confdefs.h <<_ACEOF
39118 #define HAVE_PRI 1
39119 _ACEOF
39122 cat >>confdefs.h <<_ACEOF
39123 #define HAVE_PRI_VERSION
39124 _ACEOF
39132 if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
39133 pbxlibdir=""
39134 # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
39135 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
39136 if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
39137 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
39138 else
39139 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
39142 pbxfuncname="pri_set_inbanddisconnect"
39143 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39144 AST_PRI_INBANDDISCONNECT_FOUND=yes
39145 else
39146 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
39147 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
39148 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
39149 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39150 echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152 ac_check_lib_save_LIBS=$LIBS
39153 LIBS="-lpri ${pbxlibdir} $LIBS"
39154 cat >conftest.$ac_ext <<_ACEOF
39155 /* confdefs.h. */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39161 /* Override any GCC internal prototype to avoid an error.
39162 Use char because int might match the return type of a GCC
39163 builtin and then its argument prototype would still apply. */
39164 #ifdef __cplusplus
39165 extern "C"
39166 #endif
39167 char ${pbxfuncname} ();
39169 main ()
39171 return ${pbxfuncname} ();
39173 return 0;
39175 _ACEOF
39176 rm -f conftest.$ac_objext conftest$ac_exeext
39177 if { (ac_try="$ac_link"
39178 case "(($ac_try" in
39179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39180 *) ac_try_echo=$ac_try;;
39181 esac
39182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39183 (eval "$ac_link") 2>conftest.er1
39184 ac_status=$?
39185 grep -v '^ *+' conftest.er1 >conftest.err
39186 rm -f conftest.er1
39187 cat conftest.err >&5
39188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189 (exit $ac_status); } && {
39190 test -z "$ac_c_werror_flag" ||
39191 test ! -s conftest.err
39192 } && test -s conftest$ac_exeext &&
39193 $as_test_x conftest$ac_exeext; then
39194 eval "$as_ac_Lib=yes"
39195 else
39196 echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39199 eval "$as_ac_Lib=no"
39202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39203 conftest$ac_exeext conftest.$ac_ext
39204 LIBS=$ac_check_lib_save_LIBS
39206 ac_res=`eval echo '${'$as_ac_Lib'}'`
39207 { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39210 AST_PRI_INBANDDISCONNECT_FOUND=yes
39211 else
39212 AST_PRI_INBANDDISCONNECT_FOUND=no
39217 # now check for the header.
39218 if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
39219 PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
39220 # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
39221 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
39222 PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
39224 PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
39225 if test "xlibpri.h" = "x" ; then # no header, assume found
39226 PRI_INBANDDISCONNECT_HEADER_FOUND="1"
39227 else # check for the header
39228 saved_cppflags="${CPPFLAGS}"
39229 CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
39230 if test "${ac_cv_header_libpri_h+set}" = set; then
39231 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39232 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39233 if test "${ac_cv_header_libpri_h+set}" = set; then
39234 echo $ECHO_N "(cached) $ECHO_C" >&6
39236 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39237 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39238 else
39239 # Is the header compilable?
39240 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
39241 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
39242 cat >conftest.$ac_ext <<_ACEOF
39243 /* confdefs.h. */
39244 _ACEOF
39245 cat confdefs.h >>conftest.$ac_ext
39246 cat >>conftest.$ac_ext <<_ACEOF
39247 /* end confdefs.h. */
39248 $ac_includes_default
39249 #include <libpri.h>
39250 _ACEOF
39251 rm -f conftest.$ac_objext
39252 if { (ac_try="$ac_compile"
39253 case "(($ac_try" in
39254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39255 *) ac_try_echo=$ac_try;;
39256 esac
39257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39258 (eval "$ac_compile") 2>conftest.er1
39259 ac_status=$?
39260 grep -v '^ *+' conftest.er1 >conftest.err
39261 rm -f conftest.er1
39262 cat conftest.err >&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); } && {
39265 test -z "$ac_c_werror_flag" ||
39266 test ! -s conftest.err
39267 } && test -s conftest.$ac_objext; then
39268 ac_header_compiler=yes
39269 else
39270 echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.$ac_ext >&5
39273 ac_header_compiler=no
39276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39278 echo "${ECHO_T}$ac_header_compiler" >&6; }
39280 # Is the header present?
39281 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
39282 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
39283 cat >conftest.$ac_ext <<_ACEOF
39284 /* confdefs.h. */
39285 _ACEOF
39286 cat confdefs.h >>conftest.$ac_ext
39287 cat >>conftest.$ac_ext <<_ACEOF
39288 /* end confdefs.h. */
39289 #include <libpri.h>
39290 _ACEOF
39291 if { (ac_try="$ac_cpp conftest.$ac_ext"
39292 case "(($ac_try" in
39293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39294 *) ac_try_echo=$ac_try;;
39295 esac
39296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39298 ac_status=$?
39299 grep -v '^ *+' conftest.er1 >conftest.err
39300 rm -f conftest.er1
39301 cat conftest.err >&5
39302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303 (exit $ac_status); } >/dev/null && {
39304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39305 test ! -s conftest.err
39306 }; then
39307 ac_header_preproc=yes
39308 else
39309 echo "$as_me: failed program was:" >&5
39310 sed 's/^/| /' conftest.$ac_ext >&5
39312 ac_header_preproc=no
39315 rm -f conftest.err conftest.$ac_ext
39316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39317 echo "${ECHO_T}$ac_header_preproc" >&6; }
39319 # So? What about this header?
39320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39321 yes:no: )
39322 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
39323 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39324 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
39325 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
39326 ac_header_preproc=yes
39328 no:yes:* )
39329 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39330 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39331 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39332 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39333 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39334 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39335 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39336 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39337 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39338 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39339 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39340 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39341 ( cat <<\_ASBOX
39342 ## ------------------------------- ##
39343 ## Report this to www.asterisk.org ##
39344 ## ------------------------------- ##
39345 _ASBOX
39346 ) | sed "s/^/$as_me: WARNING: /" >&2
39348 esac
39349 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39350 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39351 if test "${ac_cv_header_libpri_h+set}" = set; then
39352 echo $ECHO_N "(cached) $ECHO_C" >&6
39353 else
39354 ac_cv_header_libpri_h=$ac_header_preproc
39356 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39357 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39360 if test $ac_cv_header_libpri_h = yes; then
39361 PRI_INBANDDISCONNECT_HEADER_FOUND=1
39362 else
39363 PRI_INBANDDISCONNECT_HEADER_FOUND=0
39367 CPPFLAGS="${saved_cppflags}"
39369 if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
39370 PRI_INBANDDISCONNECT_LIB=""
39371 PRI_INBANDDISCONNECT_INCLUDE=""
39372 else
39373 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39374 PRI_INBANDDISCONNECT_LIB=""
39376 PBX_PRI_INBANDDISCONNECT=1
39377 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39379 cat >>confdefs.h <<_ACEOF
39380 #define HAVE_PRI_INBANDDISCONNECT 1
39381 _ACEOF
39384 cat >>confdefs.h <<_ACEOF
39385 #define HAVE_PRI_INBANDDISCONNECT_VERSION
39386 _ACEOF
39394 if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
39395 pbxlibdir=""
39396 # if --with-RESAMPLE=DIR has been specified, use it.
39397 if test "x${RESAMPLE_DIR}" != "x"; then
39398 if test -d ${RESAMPLE_DIR}/lib; then
39399 pbxlibdir="-L${RESAMPLE_DIR}/lib"
39400 else
39401 pbxlibdir="-L${RESAMPLE_DIR}"
39404 pbxfuncname="resample_open"
39405 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39406 AST_RESAMPLE_FOUND=yes
39407 else
39408 as_ac_Lib=`echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
39409 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
39410 echo $ECHO_N "checking for ${pbxfuncname} in -lresample... $ECHO_C" >&6; }
39411 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39412 echo $ECHO_N "(cached) $ECHO_C" >&6
39413 else
39414 ac_check_lib_save_LIBS=$LIBS
39415 LIBS="-lresample ${pbxlibdir} -lm $LIBS"
39416 cat >conftest.$ac_ext <<_ACEOF
39417 /* confdefs.h. */
39418 _ACEOF
39419 cat confdefs.h >>conftest.$ac_ext
39420 cat >>conftest.$ac_ext <<_ACEOF
39421 /* end confdefs.h. */
39423 /* Override any GCC internal prototype to avoid an error.
39424 Use char because int might match the return type of a GCC
39425 builtin and then its argument prototype would still apply. */
39426 #ifdef __cplusplus
39427 extern "C"
39428 #endif
39429 char ${pbxfuncname} ();
39431 main ()
39433 return ${pbxfuncname} ();
39435 return 0;
39437 _ACEOF
39438 rm -f conftest.$ac_objext conftest$ac_exeext
39439 if { (ac_try="$ac_link"
39440 case "(($ac_try" in
39441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39442 *) ac_try_echo=$ac_try;;
39443 esac
39444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39445 (eval "$ac_link") 2>conftest.er1
39446 ac_status=$?
39447 grep -v '^ *+' conftest.er1 >conftest.err
39448 rm -f conftest.er1
39449 cat conftest.err >&5
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); } && {
39452 test -z "$ac_c_werror_flag" ||
39453 test ! -s conftest.err
39454 } && test -s conftest$ac_exeext &&
39455 $as_test_x conftest$ac_exeext; then
39456 eval "$as_ac_Lib=yes"
39457 else
39458 echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.$ac_ext >&5
39461 eval "$as_ac_Lib=no"
39464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39465 conftest$ac_exeext conftest.$ac_ext
39466 LIBS=$ac_check_lib_save_LIBS
39468 ac_res=`eval echo '${'$as_ac_Lib'}'`
39469 { echo "$as_me:$LINENO: result: $ac_res" >&5
39470 echo "${ECHO_T}$ac_res" >&6; }
39471 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39472 AST_RESAMPLE_FOUND=yes
39473 else
39474 AST_RESAMPLE_FOUND=no
39479 # now check for the header.
39480 if test "${AST_RESAMPLE_FOUND}" = "yes"; then
39481 RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
39482 # if --with-RESAMPLE=DIR has been specified, use it.
39483 if test "x${RESAMPLE_DIR}" != "x"; then
39484 RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
39486 RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
39487 if test "xlibresample.h" = "x" ; then # no header, assume found
39488 RESAMPLE_HEADER_FOUND="1"
39489 else # check for the header
39490 saved_cppflags="${CPPFLAGS}"
39491 CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
39492 if test "${ac_cv_header_libresample_h+set}" = set; then
39493 { echo "$as_me:$LINENO: checking for libresample.h" >&5
39494 echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
39495 if test "${ac_cv_header_libresample_h+set}" = set; then
39496 echo $ECHO_N "(cached) $ECHO_C" >&6
39498 { echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
39499 echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
39500 else
39501 # Is the header compilable?
39502 { echo "$as_me:$LINENO: checking libresample.h usability" >&5
39503 echo $ECHO_N "checking libresample.h usability... $ECHO_C" >&6; }
39504 cat >conftest.$ac_ext <<_ACEOF
39505 /* confdefs.h. */
39506 _ACEOF
39507 cat confdefs.h >>conftest.$ac_ext
39508 cat >>conftest.$ac_ext <<_ACEOF
39509 /* end confdefs.h. */
39510 $ac_includes_default
39511 #include <libresample.h>
39512 _ACEOF
39513 rm -f conftest.$ac_objext
39514 if { (ac_try="$ac_compile"
39515 case "(($ac_try" in
39516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39517 *) ac_try_echo=$ac_try;;
39518 esac
39519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39520 (eval "$ac_compile") 2>conftest.er1
39521 ac_status=$?
39522 grep -v '^ *+' conftest.er1 >conftest.err
39523 rm -f conftest.er1
39524 cat conftest.err >&5
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); } && {
39527 test -z "$ac_c_werror_flag" ||
39528 test ! -s conftest.err
39529 } && test -s conftest.$ac_objext; then
39530 ac_header_compiler=yes
39531 else
39532 echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39535 ac_header_compiler=no
39538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39540 echo "${ECHO_T}$ac_header_compiler" >&6; }
39542 # Is the header present?
39543 { echo "$as_me:$LINENO: checking libresample.h presence" >&5
39544 echo $ECHO_N "checking libresample.h presence... $ECHO_C" >&6; }
39545 cat >conftest.$ac_ext <<_ACEOF
39546 /* confdefs.h. */
39547 _ACEOF
39548 cat confdefs.h >>conftest.$ac_ext
39549 cat >>conftest.$ac_ext <<_ACEOF
39550 /* end confdefs.h. */
39551 #include <libresample.h>
39552 _ACEOF
39553 if { (ac_try="$ac_cpp conftest.$ac_ext"
39554 case "(($ac_try" in
39555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39556 *) ac_try_echo=$ac_try;;
39557 esac
39558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39560 ac_status=$?
39561 grep -v '^ *+' conftest.er1 >conftest.err
39562 rm -f conftest.er1
39563 cat conftest.err >&5
39564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565 (exit $ac_status); } >/dev/null && {
39566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39567 test ! -s conftest.err
39568 }; then
39569 ac_header_preproc=yes
39570 else
39571 echo "$as_me: failed program was:" >&5
39572 sed 's/^/| /' conftest.$ac_ext >&5
39574 ac_header_preproc=no
39577 rm -f conftest.err conftest.$ac_ext
39578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39579 echo "${ECHO_T}$ac_header_preproc" >&6; }
39581 # So? What about this header?
39582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39583 yes:no: )
39584 { echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
39585 echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39586 { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
39587 echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
39588 ac_header_preproc=yes
39590 no:yes:* )
39591 { echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
39592 echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
39593 { echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
39594 echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
39595 { echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
39596 echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
39597 { echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
39598 echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
39599 { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
39600 echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
39601 { echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
39602 echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
39603 ( cat <<\_ASBOX
39604 ## ------------------------------- ##
39605 ## Report this to www.asterisk.org ##
39606 ## ------------------------------- ##
39607 _ASBOX
39608 ) | sed "s/^/$as_me: WARNING: /" >&2
39610 esac
39611 { echo "$as_me:$LINENO: checking for libresample.h" >&5
39612 echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
39613 if test "${ac_cv_header_libresample_h+set}" = set; then
39614 echo $ECHO_N "(cached) $ECHO_C" >&6
39615 else
39616 ac_cv_header_libresample_h=$ac_header_preproc
39618 { echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
39619 echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
39622 if test $ac_cv_header_libresample_h = yes; then
39623 RESAMPLE_HEADER_FOUND=1
39624 else
39625 RESAMPLE_HEADER_FOUND=0
39629 CPPFLAGS="${saved_cppflags}"
39631 if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
39632 RESAMPLE_LIB=""
39633 RESAMPLE_INCLUDE=""
39634 else
39635 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39636 RESAMPLE_LIB=""
39638 PBX_RESAMPLE=1
39639 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39641 cat >>confdefs.h <<_ACEOF
39642 #define HAVE_RESAMPLE 1
39643 _ACEOF
39646 cat >>confdefs.h <<_ACEOF
39647 #define HAVE_RESAMPLE_VERSION
39648 _ACEOF
39656 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39657 if test "xminimum version of SpanDSP" != "x"; then
39658 { echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
39659 echo $ECHO_N "checking for minimum version of SpanDSP... $ECHO_C" >&6; }
39660 else
39661 { echo "$as_me:$LINENO: checking if \"
39662 #if SPANDSP_RELEASE_DATE < 20080516
39663 #error \"spandsp 0.0.5 or greater is required\"
39664 #endif
39665 \" compiles using spandsp/version.h" >&5
39666 echo $ECHO_N "checking if \"
39667 #if SPANDSP_RELEASE_DATE < 20080516
39668 #error \"spandsp 0.0.5 or greater is required\"
39669 #endif
39670 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
39672 saved_cppflags="${CPPFLAGS}"
39673 if test "x${SPANDSP_DIR}" != "x"; then
39674 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39676 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39678 cat >conftest.$ac_ext <<_ACEOF
39679 /* confdefs.h. */
39680 _ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h. */
39684 #include <spandsp/version.h>
39686 main ()
39689 #if SPANDSP_RELEASE_DATE < 20080516
39690 #error "spandsp 0.0.5 or greater is required"
39691 #endif
39695 return 0;
39697 _ACEOF
39698 rm -f conftest.$ac_objext
39699 if { (ac_try="$ac_compile"
39700 case "(($ac_try" in
39701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39702 *) ac_try_echo=$ac_try;;
39703 esac
39704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39705 (eval "$ac_compile") 2>conftest.er1
39706 ac_status=$?
39707 grep -v '^ *+' conftest.er1 >conftest.err
39708 rm -f conftest.er1
39709 cat conftest.err >&5
39710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711 (exit $ac_status); } && {
39712 test -z "$ac_c_werror_flag" ||
39713 test ! -s conftest.err
39714 } && test -s conftest.$ac_objext; then
39715 { echo "$as_me:$LINENO: result: yes" >&5
39716 echo "${ECHO_T}yes" >&6; }
39717 PBX_SPANDSP=1
39719 cat >>confdefs.h <<\_ACEOF
39720 #define HAVE_SPANDSP 1
39721 _ACEOF
39724 cat >>confdefs.h <<\_ACEOF
39725 #define HAVE_SPANDSP_VERSION
39726 _ACEOF
39729 else
39730 echo "$as_me: failed program was:" >&5
39731 sed 's/^/| /' conftest.$ac_ext >&5
39733 { echo "$as_me:$LINENO: result: no" >&5
39734 echo "${ECHO_T}no" >&6; }
39738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39739 CPPFLAGS="${saved_cppflags}"
39743 if test "x${PBX_SPANDSP}" = "x1" ; then
39744 # We found the correct version in the header, now let's make sure it links
39745 # properly, and that libtiff is available
39746 PBX_SPANDSP=0
39748 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39749 pbxlibdir=""
39750 # if --with-SPANDSP=DIR has been specified, use it.
39751 if test "x${SPANDSP_DIR}" != "x"; then
39752 if test -d ${SPANDSP_DIR}/lib; then
39753 pbxlibdir="-L${SPANDSP_DIR}/lib"
39754 else
39755 pbxlibdir="-L${SPANDSP_DIR}"
39758 pbxfuncname="span_set_message_handler"
39759 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39760 AST_SPANDSP_FOUND=yes
39761 else
39762 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
39763 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
39764 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
39765 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39766 echo $ECHO_N "(cached) $ECHO_C" >&6
39767 else
39768 ac_check_lib_save_LIBS=$LIBS
39769 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
39770 cat >conftest.$ac_ext <<_ACEOF
39771 /* confdefs.h. */
39772 _ACEOF
39773 cat confdefs.h >>conftest.$ac_ext
39774 cat >>conftest.$ac_ext <<_ACEOF
39775 /* end confdefs.h. */
39777 /* Override any GCC internal prototype to avoid an error.
39778 Use char because int might match the return type of a GCC
39779 builtin and then its argument prototype would still apply. */
39780 #ifdef __cplusplus
39781 extern "C"
39782 #endif
39783 char ${pbxfuncname} ();
39785 main ()
39787 return ${pbxfuncname} ();
39789 return 0;
39791 _ACEOF
39792 rm -f conftest.$ac_objext conftest$ac_exeext
39793 if { (ac_try="$ac_link"
39794 case "(($ac_try" in
39795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39796 *) ac_try_echo=$ac_try;;
39797 esac
39798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39799 (eval "$ac_link") 2>conftest.er1
39800 ac_status=$?
39801 grep -v '^ *+' conftest.er1 >conftest.err
39802 rm -f conftest.er1
39803 cat conftest.err >&5
39804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39805 (exit $ac_status); } && {
39806 test -z "$ac_c_werror_flag" ||
39807 test ! -s conftest.err
39808 } && test -s conftest$ac_exeext &&
39809 $as_test_x conftest$ac_exeext; then
39810 eval "$as_ac_Lib=yes"
39811 else
39812 echo "$as_me: failed program was:" >&5
39813 sed 's/^/| /' conftest.$ac_ext >&5
39815 eval "$as_ac_Lib=no"
39818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39819 conftest$ac_exeext conftest.$ac_ext
39820 LIBS=$ac_check_lib_save_LIBS
39822 ac_res=`eval echo '${'$as_ac_Lib'}'`
39823 { echo "$as_me:$LINENO: result: $ac_res" >&5
39824 echo "${ECHO_T}$ac_res" >&6; }
39825 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39826 AST_SPANDSP_FOUND=yes
39827 else
39828 AST_SPANDSP_FOUND=no
39833 # now check for the header.
39834 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39835 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39836 # if --with-SPANDSP=DIR has been specified, use it.
39837 if test "x${SPANDSP_DIR}" != "x"; then
39838 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39840 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39841 if test "xspandsp.h" = "x" ; then # no header, assume found
39842 SPANDSP_HEADER_FOUND="1"
39843 else # check for the header
39844 saved_cppflags="${CPPFLAGS}"
39845 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39846 if test "${ac_cv_header_spandsp_h+set}" = set; then
39847 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39848 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39849 if test "${ac_cv_header_spandsp_h+set}" = set; then
39850 echo $ECHO_N "(cached) $ECHO_C" >&6
39852 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39853 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39854 else
39855 # Is the header compilable?
39856 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39857 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39858 cat >conftest.$ac_ext <<_ACEOF
39859 /* confdefs.h. */
39860 _ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h. */
39864 $ac_includes_default
39865 #include <spandsp.h>
39866 _ACEOF
39867 rm -f conftest.$ac_objext
39868 if { (ac_try="$ac_compile"
39869 case "(($ac_try" in
39870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871 *) ac_try_echo=$ac_try;;
39872 esac
39873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39874 (eval "$ac_compile") 2>conftest.er1
39875 ac_status=$?
39876 grep -v '^ *+' conftest.er1 >conftest.err
39877 rm -f conftest.er1
39878 cat conftest.err >&5
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); } && {
39881 test -z "$ac_c_werror_flag" ||
39882 test ! -s conftest.err
39883 } && test -s conftest.$ac_objext; then
39884 ac_header_compiler=yes
39885 else
39886 echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.$ac_ext >&5
39889 ac_header_compiler=no
39892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39894 echo "${ECHO_T}$ac_header_compiler" >&6; }
39896 # Is the header present?
39897 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39898 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39899 cat >conftest.$ac_ext <<_ACEOF
39900 /* confdefs.h. */
39901 _ACEOF
39902 cat confdefs.h >>conftest.$ac_ext
39903 cat >>conftest.$ac_ext <<_ACEOF
39904 /* end confdefs.h. */
39905 #include <spandsp.h>
39906 _ACEOF
39907 if { (ac_try="$ac_cpp conftest.$ac_ext"
39908 case "(($ac_try" in
39909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39910 *) ac_try_echo=$ac_try;;
39911 esac
39912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39914 ac_status=$?
39915 grep -v '^ *+' conftest.er1 >conftest.err
39916 rm -f conftest.er1
39917 cat conftest.err >&5
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); } >/dev/null && {
39920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39921 test ! -s conftest.err
39922 }; then
39923 ac_header_preproc=yes
39924 else
39925 echo "$as_me: failed program was:" >&5
39926 sed 's/^/| /' conftest.$ac_ext >&5
39928 ac_header_preproc=no
39931 rm -f conftest.err conftest.$ac_ext
39932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39933 echo "${ECHO_T}$ac_header_preproc" >&6; }
39935 # So? What about this header?
39936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39937 yes:no: )
39938 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39939 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39940 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39941 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39942 ac_header_preproc=yes
39944 no:yes:* )
39945 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39946 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39947 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39948 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39949 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39950 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39951 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39952 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39953 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39954 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39955 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39956 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39957 ( cat <<\_ASBOX
39958 ## ------------------------------- ##
39959 ## Report this to www.asterisk.org ##
39960 ## ------------------------------- ##
39961 _ASBOX
39962 ) | sed "s/^/$as_me: WARNING: /" >&2
39964 esac
39965 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39966 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39967 if test "${ac_cv_header_spandsp_h+set}" = set; then
39968 echo $ECHO_N "(cached) $ECHO_C" >&6
39969 else
39970 ac_cv_header_spandsp_h=$ac_header_preproc
39972 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39973 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39976 if test $ac_cv_header_spandsp_h = yes; then
39977 SPANDSP_HEADER_FOUND=1
39978 else
39979 SPANDSP_HEADER_FOUND=0
39983 CPPFLAGS="${saved_cppflags}"
39985 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39986 SPANDSP_LIB=""
39987 SPANDSP_INCLUDE=""
39988 else
39989 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39990 SPANDSP_LIB=""
39992 PBX_SPANDSP=1
39993 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39995 cat >>confdefs.h <<_ACEOF
39996 #define HAVE_SPANDSP 1
39997 _ACEOF
40000 cat >>confdefs.h <<_ACEOF
40001 #define HAVE_SPANDSP_VERSION
40002 _ACEOF
40011 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
40012 pbxlibdir=""
40013 # if --with-SS7=DIR has been specified, use it.
40014 if test "x${SS7_DIR}" != "x"; then
40015 if test -d ${SS7_DIR}/lib; then
40016 pbxlibdir="-L${SS7_DIR}/lib"
40017 else
40018 pbxlibdir="-L${SS7_DIR}"
40021 pbxfuncname="ss7_pollflags"
40022 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
40023 AST_SS7_FOUND=yes
40024 else
40025 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
40026 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
40027 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
40028 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40029 echo $ECHO_N "(cached) $ECHO_C" >&6
40030 else
40031 ac_check_lib_save_LIBS=$LIBS
40032 LIBS="-lss7 ${pbxlibdir} $LIBS"
40033 cat >conftest.$ac_ext <<_ACEOF
40034 /* confdefs.h. */
40035 _ACEOF
40036 cat confdefs.h >>conftest.$ac_ext
40037 cat >>conftest.$ac_ext <<_ACEOF
40038 /* end confdefs.h. */
40040 /* Override any GCC internal prototype to avoid an error.
40041 Use char because int might match the return type of a GCC
40042 builtin and then its argument prototype would still apply. */
40043 #ifdef __cplusplus
40044 extern "C"
40045 #endif
40046 char ${pbxfuncname} ();
40048 main ()
40050 return ${pbxfuncname} ();
40052 return 0;
40054 _ACEOF
40055 rm -f conftest.$ac_objext conftest$ac_exeext
40056 if { (ac_try="$ac_link"
40057 case "(($ac_try" in
40058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40059 *) ac_try_echo=$ac_try;;
40060 esac
40061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40062 (eval "$ac_link") 2>conftest.er1
40063 ac_status=$?
40064 grep -v '^ *+' conftest.er1 >conftest.err
40065 rm -f conftest.er1
40066 cat conftest.err >&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); } && {
40069 test -z "$ac_c_werror_flag" ||
40070 test ! -s conftest.err
40071 } && test -s conftest$ac_exeext &&
40072 $as_test_x conftest$ac_exeext; then
40073 eval "$as_ac_Lib=yes"
40074 else
40075 echo "$as_me: failed program was:" >&5
40076 sed 's/^/| /' conftest.$ac_ext >&5
40078 eval "$as_ac_Lib=no"
40081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40082 conftest$ac_exeext conftest.$ac_ext
40083 LIBS=$ac_check_lib_save_LIBS
40085 ac_res=`eval echo '${'$as_ac_Lib'}'`
40086 { echo "$as_me:$LINENO: result: $ac_res" >&5
40087 echo "${ECHO_T}$ac_res" >&6; }
40088 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40089 AST_SS7_FOUND=yes
40090 else
40091 AST_SS7_FOUND=no
40096 # now check for the header.
40097 if test "${AST_SS7_FOUND}" = "yes"; then
40098 SS7_LIB="${pbxlibdir} -lss7 "
40099 # if --with-SS7=DIR has been specified, use it.
40100 if test "x${SS7_DIR}" != "x"; then
40101 SS7_INCLUDE="-I${SS7_DIR}/include"
40103 SS7_INCLUDE="${SS7_INCLUDE} "
40104 if test "xlibss7.h" = "x" ; then # no header, assume found
40105 SS7_HEADER_FOUND="1"
40106 else # check for the header
40107 saved_cppflags="${CPPFLAGS}"
40108 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
40109 if test "${ac_cv_header_libss7_h+set}" = set; then
40110 { echo "$as_me:$LINENO: checking for libss7.h" >&5
40111 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
40112 if test "${ac_cv_header_libss7_h+set}" = set; then
40113 echo $ECHO_N "(cached) $ECHO_C" >&6
40115 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
40116 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
40117 else
40118 # Is the header compilable?
40119 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
40120 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
40121 cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h. */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40127 $ac_includes_default
40128 #include <libss7.h>
40129 _ACEOF
40130 rm -f conftest.$ac_objext
40131 if { (ac_try="$ac_compile"
40132 case "(($ac_try" in
40133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40134 *) ac_try_echo=$ac_try;;
40135 esac
40136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40137 (eval "$ac_compile") 2>conftest.er1
40138 ac_status=$?
40139 grep -v '^ *+' conftest.er1 >conftest.err
40140 rm -f conftest.er1
40141 cat conftest.err >&5
40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143 (exit $ac_status); } && {
40144 test -z "$ac_c_werror_flag" ||
40145 test ! -s conftest.err
40146 } && test -s conftest.$ac_objext; then
40147 ac_header_compiler=yes
40148 else
40149 echo "$as_me: failed program was:" >&5
40150 sed 's/^/| /' conftest.$ac_ext >&5
40152 ac_header_compiler=no
40155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40157 echo "${ECHO_T}$ac_header_compiler" >&6; }
40159 # Is the header present?
40160 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
40161 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
40162 cat >conftest.$ac_ext <<_ACEOF
40163 /* confdefs.h. */
40164 _ACEOF
40165 cat confdefs.h >>conftest.$ac_ext
40166 cat >>conftest.$ac_ext <<_ACEOF
40167 /* end confdefs.h. */
40168 #include <libss7.h>
40169 _ACEOF
40170 if { (ac_try="$ac_cpp conftest.$ac_ext"
40171 case "(($ac_try" in
40172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40173 *) ac_try_echo=$ac_try;;
40174 esac
40175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40177 ac_status=$?
40178 grep -v '^ *+' conftest.er1 >conftest.err
40179 rm -f conftest.er1
40180 cat conftest.err >&5
40181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182 (exit $ac_status); } >/dev/null && {
40183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40184 test ! -s conftest.err
40185 }; then
40186 ac_header_preproc=yes
40187 else
40188 echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.$ac_ext >&5
40191 ac_header_preproc=no
40194 rm -f conftest.err conftest.$ac_ext
40195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40196 echo "${ECHO_T}$ac_header_preproc" >&6; }
40198 # So? What about this header?
40199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40200 yes:no: )
40201 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
40202 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40203 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
40204 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
40205 ac_header_preproc=yes
40207 no:yes:* )
40208 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
40209 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
40210 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
40211 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
40212 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
40213 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
40214 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
40215 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
40216 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
40217 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
40218 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
40219 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
40220 ( cat <<\_ASBOX
40221 ## ------------------------------- ##
40222 ## Report this to www.asterisk.org ##
40223 ## ------------------------------- ##
40224 _ASBOX
40225 ) | sed "s/^/$as_me: WARNING: /" >&2
40227 esac
40228 { echo "$as_me:$LINENO: checking for libss7.h" >&5
40229 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
40230 if test "${ac_cv_header_libss7_h+set}" = set; then
40231 echo $ECHO_N "(cached) $ECHO_C" >&6
40232 else
40233 ac_cv_header_libss7_h=$ac_header_preproc
40235 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
40236 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
40239 if test $ac_cv_header_libss7_h = yes; then
40240 SS7_HEADER_FOUND=1
40241 else
40242 SS7_HEADER_FOUND=0
40246 CPPFLAGS="${saved_cppflags}"
40248 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
40249 SS7_LIB=""
40250 SS7_INCLUDE=""
40251 else
40252 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
40253 SS7_LIB=""
40255 PBX_SS7=1
40256 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
40258 cat >>confdefs.h <<_ACEOF
40259 #define HAVE_SS7 1
40260 _ACEOF
40263 cat >>confdefs.h <<_ACEOF
40264 #define HAVE_SS7_VERSION
40265 _ACEOF
40272 if test "${USE_PWLIB}" != "no"; then
40273 if test -n "${PWLIB_DIR}"; then
40274 PWLIBDIR="${PWLIB_DIR}"
40279 PWLIB_INCDIR=
40280 PWLIB_LIBDIR=
40281 ac_ext=cpp
40282 ac_cpp='$CXXCPP $CPPFLAGS'
40283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40287 if test "${PWLIBDIR:-unset}" != "unset" ; then
40288 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
40289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40290 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
40291 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
40292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40293 echo $ECHO_N "(cached) $ECHO_C" >&6
40295 ac_res=`eval echo '${'$as_ac_Header'}'`
40296 { echo "$as_me:$LINENO: result: $ac_res" >&5
40297 echo "${ECHO_T}$ac_res" >&6; }
40298 else
40299 # Is the header compilable?
40300 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
40301 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
40302 cat >conftest.$ac_ext <<_ACEOF
40303 /* confdefs.h. */
40304 _ACEOF
40305 cat confdefs.h >>conftest.$ac_ext
40306 cat >>conftest.$ac_ext <<_ACEOF
40307 /* end confdefs.h. */
40308 $ac_includes_default
40309 #include <${PWLIBDIR}/version.h>
40310 _ACEOF
40311 rm -f conftest.$ac_objext
40312 if { (ac_try="$ac_compile"
40313 case "(($ac_try" in
40314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40315 *) ac_try_echo=$ac_try;;
40316 esac
40317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40318 (eval "$ac_compile") 2>conftest.er1
40319 ac_status=$?
40320 grep -v '^ *+' conftest.er1 >conftest.err
40321 rm -f conftest.er1
40322 cat conftest.err >&5
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); } && {
40325 test -z "$ac_cxx_werror_flag" ||
40326 test ! -s conftest.err
40327 } && test -s conftest.$ac_objext; then
40328 ac_header_compiler=yes
40329 else
40330 echo "$as_me: failed program was:" >&5
40331 sed 's/^/| /' conftest.$ac_ext >&5
40333 ac_header_compiler=no
40336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40338 echo "${ECHO_T}$ac_header_compiler" >&6; }
40340 # Is the header present?
40341 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
40342 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
40343 cat >conftest.$ac_ext <<_ACEOF
40344 /* confdefs.h. */
40345 _ACEOF
40346 cat confdefs.h >>conftest.$ac_ext
40347 cat >>conftest.$ac_ext <<_ACEOF
40348 /* end confdefs.h. */
40349 #include <${PWLIBDIR}/version.h>
40350 _ACEOF
40351 if { (ac_try="$ac_cpp conftest.$ac_ext"
40352 case "(($ac_try" in
40353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40354 *) ac_try_echo=$ac_try;;
40355 esac
40356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40358 ac_status=$?
40359 grep -v '^ *+' conftest.er1 >conftest.err
40360 rm -f conftest.er1
40361 cat conftest.err >&5
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); } >/dev/null && {
40364 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40365 test ! -s conftest.err
40366 }; then
40367 ac_header_preproc=yes
40368 else
40369 echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40372 ac_header_preproc=no
40375 rm -f conftest.err conftest.$ac_ext
40376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40377 echo "${ECHO_T}$ac_header_preproc" >&6; }
40379 # So? What about this header?
40380 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40381 yes:no: )
40382 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40383 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40384 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
40385 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
40386 ac_header_preproc=yes
40388 no:yes:* )
40389 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
40390 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
40391 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
40392 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
40393 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
40394 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
40395 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40396 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40397 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
40398 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
40399 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
40400 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
40401 ( cat <<\_ASBOX
40402 ## ------------------------------- ##
40403 ## Report this to www.asterisk.org ##
40404 ## ------------------------------- ##
40405 _ASBOX
40406 ) | sed "s/^/$as_me: WARNING: /" >&2
40408 esac
40409 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
40410 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
40411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40412 echo $ECHO_N "(cached) $ECHO_C" >&6
40413 else
40414 eval "$as_ac_Header=\$ac_header_preproc"
40416 ac_res=`eval echo '${'$as_ac_Header'}'`
40417 { echo "$as_me:$LINENO: result: $ac_res" >&5
40418 echo "${ECHO_T}$ac_res" >&6; }
40421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40422 HAS_PWLIB=1
40427 if test "${HAS_PWLIB:-unset}" = "unset" ; then
40428 if test "${OPENH323DIR:-unset}" != "unset"; then
40429 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
40430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40431 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40432 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40434 echo $ECHO_N "(cached) $ECHO_C" >&6
40436 ac_res=`eval echo '${'$as_ac_Header'}'`
40437 { echo "$as_me:$LINENO: result: $ac_res" >&5
40438 echo "${ECHO_T}$ac_res" >&6; }
40439 else
40440 # Is the header compilable?
40441 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
40442 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
40443 cat >conftest.$ac_ext <<_ACEOF
40444 /* confdefs.h. */
40445 _ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h. */
40449 $ac_includes_default
40450 #include <${OPENH323DIR}/../pwlib/version.h>
40451 _ACEOF
40452 rm -f conftest.$ac_objext
40453 if { (ac_try="$ac_compile"
40454 case "(($ac_try" in
40455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40456 *) ac_try_echo=$ac_try;;
40457 esac
40458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40459 (eval "$ac_compile") 2>conftest.er1
40460 ac_status=$?
40461 grep -v '^ *+' conftest.er1 >conftest.err
40462 rm -f conftest.er1
40463 cat conftest.err >&5
40464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465 (exit $ac_status); } && {
40466 test -z "$ac_cxx_werror_flag" ||
40467 test ! -s conftest.err
40468 } && test -s conftest.$ac_objext; then
40469 ac_header_compiler=yes
40470 else
40471 echo "$as_me: failed program was:" >&5
40472 sed 's/^/| /' conftest.$ac_ext >&5
40474 ac_header_compiler=no
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40479 echo "${ECHO_T}$ac_header_compiler" >&6; }
40481 # Is the header present?
40482 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
40483 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
40484 cat >conftest.$ac_ext <<_ACEOF
40485 /* confdefs.h. */
40486 _ACEOF
40487 cat confdefs.h >>conftest.$ac_ext
40488 cat >>conftest.$ac_ext <<_ACEOF
40489 /* end confdefs.h. */
40490 #include <${OPENH323DIR}/../pwlib/version.h>
40491 _ACEOF
40492 if { (ac_try="$ac_cpp conftest.$ac_ext"
40493 case "(($ac_try" in
40494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40495 *) ac_try_echo=$ac_try;;
40496 esac
40497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40499 ac_status=$?
40500 grep -v '^ *+' conftest.er1 >conftest.err
40501 rm -f conftest.er1
40502 cat conftest.err >&5
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); } >/dev/null && {
40505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40506 test ! -s conftest.err
40507 }; then
40508 ac_header_preproc=yes
40509 else
40510 echo "$as_me: failed program was:" >&5
40511 sed 's/^/| /' conftest.$ac_ext >&5
40513 ac_header_preproc=no
40516 rm -f conftest.err conftest.$ac_ext
40517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40518 echo "${ECHO_T}$ac_header_preproc" >&6; }
40520 # So? What about this header?
40521 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40522 yes:no: )
40523 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40524 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40525 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
40526 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
40527 ac_header_preproc=yes
40529 no:yes:* )
40530 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
40531 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
40532 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
40533 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
40534 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
40535 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
40536 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
40537 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40538 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
40539 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
40540 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
40541 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
40542 ( cat <<\_ASBOX
40543 ## ------------------------------- ##
40544 ## Report this to www.asterisk.org ##
40545 ## ------------------------------- ##
40546 _ASBOX
40547 ) | sed "s/^/$as_me: WARNING: /" >&2
40549 esac
40550 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40551 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40553 echo $ECHO_N "(cached) $ECHO_C" >&6
40554 else
40555 eval "$as_ac_Header=\$ac_header_preproc"
40557 ac_res=`eval echo '${'$as_ac_Header'}'`
40558 { echo "$as_me:$LINENO: result: $ac_res" >&5
40559 echo "${ECHO_T}$ac_res" >&6; }
40562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40563 HAS_PWLIB=1
40568 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40569 PWLIBDIR="${OPENH323DIR}/../pwlib"
40570 else
40571 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
40572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40573 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40574 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40576 echo $ECHO_N "(cached) $ECHO_C" >&6
40578 ac_res=`eval echo '${'$as_ac_Header'}'`
40579 { echo "$as_me:$LINENO: result: $ac_res" >&5
40580 echo "${ECHO_T}$ac_res" >&6; }
40581 else
40582 # Is the header compilable?
40583 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
40584 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
40585 cat >conftest.$ac_ext <<_ACEOF
40586 /* confdefs.h. */
40587 _ACEOF
40588 cat confdefs.h >>conftest.$ac_ext
40589 cat >>conftest.$ac_ext <<_ACEOF
40590 /* end confdefs.h. */
40591 $ac_includes_default
40592 #include <${HOME}/pwlib/include/ptlib.h>
40593 _ACEOF
40594 rm -f conftest.$ac_objext
40595 if { (ac_try="$ac_compile"
40596 case "(($ac_try" in
40597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40598 *) ac_try_echo=$ac_try;;
40599 esac
40600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40601 (eval "$ac_compile") 2>conftest.er1
40602 ac_status=$?
40603 grep -v '^ *+' conftest.er1 >conftest.err
40604 rm -f conftest.er1
40605 cat conftest.err >&5
40606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607 (exit $ac_status); } && {
40608 test -z "$ac_cxx_werror_flag" ||
40609 test ! -s conftest.err
40610 } && test -s conftest.$ac_objext; then
40611 ac_header_compiler=yes
40612 else
40613 echo "$as_me: failed program was:" >&5
40614 sed 's/^/| /' conftest.$ac_ext >&5
40616 ac_header_compiler=no
40619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40621 echo "${ECHO_T}$ac_header_compiler" >&6; }
40623 # Is the header present?
40624 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
40625 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
40626 cat >conftest.$ac_ext <<_ACEOF
40627 /* confdefs.h. */
40628 _ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h. */
40632 #include <${HOME}/pwlib/include/ptlib.h>
40633 _ACEOF
40634 if { (ac_try="$ac_cpp conftest.$ac_ext"
40635 case "(($ac_try" in
40636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40637 *) ac_try_echo=$ac_try;;
40638 esac
40639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40641 ac_status=$?
40642 grep -v '^ *+' conftest.er1 >conftest.err
40643 rm -f conftest.er1
40644 cat conftest.err >&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); } >/dev/null && {
40647 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40648 test ! -s conftest.err
40649 }; then
40650 ac_header_preproc=yes
40651 else
40652 echo "$as_me: failed program was:" >&5
40653 sed 's/^/| /' conftest.$ac_ext >&5
40655 ac_header_preproc=no
40658 rm -f conftest.err conftest.$ac_ext
40659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40660 echo "${ECHO_T}$ac_header_preproc" >&6; }
40662 # So? What about this header?
40663 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40664 yes:no: )
40665 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40666 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40667 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
40668 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
40669 ac_header_preproc=yes
40671 no:yes:* )
40672 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
40673 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
40674 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
40675 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40676 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
40677 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
40678 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40679 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40680 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
40681 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40682 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
40683 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40684 ( cat <<\_ASBOX
40685 ## ------------------------------- ##
40686 ## Report this to www.asterisk.org ##
40687 ## ------------------------------- ##
40688 _ASBOX
40689 ) | sed "s/^/$as_me: WARNING: /" >&2
40691 esac
40692 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40693 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40695 echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697 eval "$as_ac_Header=\$ac_header_preproc"
40699 ac_res=`eval echo '${'$as_ac_Header'}'`
40700 { echo "$as_me:$LINENO: result: $ac_res" >&5
40701 echo "${ECHO_T}$ac_res" >&6; }
40704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40705 HAS_PWLIB=1
40709 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40710 PWLIBDIR="${HOME}/pwlib"
40711 else
40712 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40713 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40714 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40715 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40716 echo $ECHO_N "(cached) $ECHO_C" >&6
40718 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40719 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40720 else
40721 # Is the header compilable?
40722 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
40723 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
40724 cat >conftest.$ac_ext <<_ACEOF
40725 /* confdefs.h. */
40726 _ACEOF
40727 cat confdefs.h >>conftest.$ac_ext
40728 cat >>conftest.$ac_ext <<_ACEOF
40729 /* end confdefs.h. */
40730 $ac_includes_default
40731 #include </usr/local/include/ptlib.h>
40732 _ACEOF
40733 rm -f conftest.$ac_objext
40734 if { (ac_try="$ac_compile"
40735 case "(($ac_try" in
40736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40737 *) ac_try_echo=$ac_try;;
40738 esac
40739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40740 (eval "$ac_compile") 2>conftest.er1
40741 ac_status=$?
40742 grep -v '^ *+' conftest.er1 >conftest.err
40743 rm -f conftest.er1
40744 cat conftest.err >&5
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } && {
40747 test -z "$ac_cxx_werror_flag" ||
40748 test ! -s conftest.err
40749 } && test -s conftest.$ac_objext; then
40750 ac_header_compiler=yes
40751 else
40752 echo "$as_me: failed program was:" >&5
40753 sed 's/^/| /' conftest.$ac_ext >&5
40755 ac_header_compiler=no
40758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40760 echo "${ECHO_T}$ac_header_compiler" >&6; }
40762 # Is the header present?
40763 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
40764 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
40765 cat >conftest.$ac_ext <<_ACEOF
40766 /* confdefs.h. */
40767 _ACEOF
40768 cat confdefs.h >>conftest.$ac_ext
40769 cat >>conftest.$ac_ext <<_ACEOF
40770 /* end confdefs.h. */
40771 #include </usr/local/include/ptlib.h>
40772 _ACEOF
40773 if { (ac_try="$ac_cpp conftest.$ac_ext"
40774 case "(($ac_try" in
40775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40776 *) ac_try_echo=$ac_try;;
40777 esac
40778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40780 ac_status=$?
40781 grep -v '^ *+' conftest.er1 >conftest.err
40782 rm -f conftest.er1
40783 cat conftest.err >&5
40784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40785 (exit $ac_status); } >/dev/null && {
40786 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40787 test ! -s conftest.err
40788 }; then
40789 ac_header_preproc=yes
40790 else
40791 echo "$as_me: failed program was:" >&5
40792 sed 's/^/| /' conftest.$ac_ext >&5
40794 ac_header_preproc=no
40797 rm -f conftest.err conftest.$ac_ext
40798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40799 echo "${ECHO_T}$ac_header_preproc" >&6; }
40801 # So? What about this header?
40802 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40803 yes:no: )
40804 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40805 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40806 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40807 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40808 ac_header_preproc=yes
40810 no:yes:* )
40811 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40812 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40813 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40814 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40815 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40816 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40817 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40818 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40819 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40820 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40821 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40822 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40823 ( cat <<\_ASBOX
40824 ## ------------------------------- ##
40825 ## Report this to www.asterisk.org ##
40826 ## ------------------------------- ##
40827 _ASBOX
40828 ) | sed "s/^/$as_me: WARNING: /" >&2
40830 esac
40831 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40832 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40833 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40834 echo $ECHO_N "(cached) $ECHO_C" >&6
40835 else
40836 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40838 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40839 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40842 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40843 HAS_PWLIB=1
40847 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40848 # Extract the first word of "ptlib-config", so it can be a program name with args.
40849 set dummy ptlib-config; ac_word=$2
40850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40852 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40853 echo $ECHO_N "(cached) $ECHO_C" >&6
40854 else
40855 case $PTLIB_CONFIG in
40856 [\\/]* | ?:[\\/]*)
40857 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40861 for as_dir in /usr/local/bin
40863 IFS=$as_save_IFS
40864 test -z "$as_dir" && as_dir=.
40865 for ac_exec_ext in '' $ac_executable_extensions; do
40866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40867 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40869 break 2
40871 done
40872 done
40873 IFS=$as_save_IFS
40876 esac
40878 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40879 if test -n "$PTLIB_CONFIG"; then
40880 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40881 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40882 else
40883 { echo "$as_me:$LINENO: result: no" >&5
40884 echo "${ECHO_T}no" >&6; }
40888 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40889 # Extract the first word of "ptlib-config", so it can be a program name with args.
40890 set dummy ptlib-config; ac_word=$2
40891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40893 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40894 echo $ECHO_N "(cached) $ECHO_C" >&6
40895 else
40896 case $PTLIB_CONFIG in
40897 [\\/]* | ?:[\\/]*)
40898 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40902 for as_dir in /usr/local/share/pwlib/make
40904 IFS=$as_save_IFS
40905 test -z "$as_dir" && as_dir=.
40906 for ac_exec_ext in '' $ac_executable_extensions; do
40907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40908 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40910 break 2
40912 done
40913 done
40914 IFS=$as_save_IFS
40917 esac
40919 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40920 if test -n "$PTLIB_CONFIG"; then
40921 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40922 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40923 else
40924 { echo "$as_me:$LINENO: result: no" >&5
40925 echo "${ECHO_T}no" >&6; }
40930 PWLIB_INCDIR="/usr/local/include"
40931 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40932 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40933 if test "x$LIB64" != "x"; then
40934 PWLIB_LIBDIR="/usr/local/lib64"
40935 else
40936 PWLIB_LIBDIR="/usr/local/lib"
40939 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40940 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40941 else
40942 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40943 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40944 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40945 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40946 echo $ECHO_N "(cached) $ECHO_C" >&6
40948 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40949 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40950 else
40951 # Is the header compilable?
40952 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40953 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40954 cat >conftest.$ac_ext <<_ACEOF
40955 /* confdefs.h. */
40956 _ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h. */
40960 $ac_includes_default
40961 #include </usr/include/ptlib.h>
40962 _ACEOF
40963 rm -f conftest.$ac_objext
40964 if { (ac_try="$ac_compile"
40965 case "(($ac_try" in
40966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40967 *) ac_try_echo=$ac_try;;
40968 esac
40969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40970 (eval "$ac_compile") 2>conftest.er1
40971 ac_status=$?
40972 grep -v '^ *+' conftest.er1 >conftest.err
40973 rm -f conftest.er1
40974 cat conftest.err >&5
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); } && {
40977 test -z "$ac_cxx_werror_flag" ||
40978 test ! -s conftest.err
40979 } && test -s conftest.$ac_objext; then
40980 ac_header_compiler=yes
40981 else
40982 echo "$as_me: failed program was:" >&5
40983 sed 's/^/| /' conftest.$ac_ext >&5
40985 ac_header_compiler=no
40988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40990 echo "${ECHO_T}$ac_header_compiler" >&6; }
40992 # Is the header present?
40993 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40994 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40995 cat >conftest.$ac_ext <<_ACEOF
40996 /* confdefs.h. */
40997 _ACEOF
40998 cat confdefs.h >>conftest.$ac_ext
40999 cat >>conftest.$ac_ext <<_ACEOF
41000 /* end confdefs.h. */
41001 #include </usr/include/ptlib.h>
41002 _ACEOF
41003 if { (ac_try="$ac_cpp conftest.$ac_ext"
41004 case "(($ac_try" in
41005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41006 *) ac_try_echo=$ac_try;;
41007 esac
41008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41010 ac_status=$?
41011 grep -v '^ *+' conftest.er1 >conftest.err
41012 rm -f conftest.er1
41013 cat conftest.err >&5
41014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015 (exit $ac_status); } >/dev/null && {
41016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41017 test ! -s conftest.err
41018 }; then
41019 ac_header_preproc=yes
41020 else
41021 echo "$as_me: failed program was:" >&5
41022 sed 's/^/| /' conftest.$ac_ext >&5
41024 ac_header_preproc=no
41027 rm -f conftest.err conftest.$ac_ext
41028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41029 echo "${ECHO_T}$ac_header_preproc" >&6; }
41031 # So? What about this header?
41032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41033 yes:no: )
41034 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
41035 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41036 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
41037 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
41038 ac_header_preproc=yes
41040 no:yes:* )
41041 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
41042 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
41043 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
41044 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
41045 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
41046 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
41047 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
41048 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
41049 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
41050 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
41051 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
41052 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
41053 ( cat <<\_ASBOX
41054 ## ------------------------------- ##
41055 ## Report this to www.asterisk.org ##
41056 ## ------------------------------- ##
41057 _ASBOX
41058 ) | sed "s/^/$as_me: WARNING: /" >&2
41060 esac
41061 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
41062 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
41063 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
41064 echo $ECHO_N "(cached) $ECHO_C" >&6
41065 else
41066 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
41068 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
41069 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
41072 if test $ac_cv_header__usr_include_ptlib_h = yes; then
41073 HAS_PWLIB=1
41077 if test "${HAS_PWLIB:-unset}" != "unset" ; then
41078 # Extract the first word of "ptlib-config", so it can be a program name with args.
41079 set dummy ptlib-config; ac_word=$2
41080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41082 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
41083 echo $ECHO_N "(cached) $ECHO_C" >&6
41084 else
41085 case $PTLIB_CONFIG in
41086 [\\/]* | ?:[\\/]*)
41087 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
41090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41091 for as_dir in /usr/share/pwlib/make
41093 IFS=$as_save_IFS
41094 test -z "$as_dir" && as_dir=.
41095 for ac_exec_ext in '' $ac_executable_extensions; do
41096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41097 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41099 break 2
41101 done
41102 done
41103 IFS=$as_save_IFS
41106 esac
41108 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
41109 if test -n "$PTLIB_CONFIG"; then
41110 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
41111 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
41112 else
41113 { echo "$as_me:$LINENO: result: no" >&5
41114 echo "${ECHO_T}no" >&6; }
41118 PWLIB_INCDIR="/usr/include"
41119 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
41120 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
41121 if test "x$LIB64" != "x"; then
41122 PWLIB_LIBDIR="/usr/lib64"
41123 else
41124 PWLIB_LIBDIR="/usr/lib"
41127 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
41128 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
41135 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
41136 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
41137 # exit
41140 if test "${HAS_PWLIB:-unset}" != "unset" ; then
41141 if test "${PWLIBDIR:-unset}" = "unset" ; then
41142 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
41143 PWLIBDIR=`$PTLIB_CONFIG --prefix`
41144 else
41145 echo "Cannot find ptlib-config - please install and try again"
41146 exit
41150 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
41151 PWLIBDIR="/usr/share/pwlib"
41152 PWLIB_INCDIR="/usr/include"
41153 if test "x$LIB64" != "x"; then
41154 PWLIB_LIBDIR="/usr/lib64"
41155 else
41156 PWLIB_LIBDIR="/usr/lib"
41159 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
41160 PWLIBDIR="/usr/local/share/pwlib"
41161 PWLIB_INCDIR="/usr/local/include"
41162 if test "x$LIB64" != "x"; then
41163 PWLIB_LIBDIR="/usr/local/lib64"
41164 else
41165 PWLIB_LIBDIR="/usr/local/lib"
41169 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
41170 PWLIB_INCDIR="${PWLIBDIR}/include"
41172 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
41173 PWLIB_LIBDIR="${PWLIBDIR}/lib"
41180 ac_ext=c
41181 ac_cpp='$CPP $CPPFLAGS'
41182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41188 if test "${HAS_PWLIB:-unset}" != "unset"; then
41189 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41190 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
41191 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
41192 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
41193 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
41194 let PWLIB_REQ=1*10000+9*100+2
41196 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
41197 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41198 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
41199 { echo "$as_me:$LINENO: result: no" >&5
41200 echo "${ECHO_T}no" >&6; }
41201 unset HAS_PWLIB
41202 else
41203 { echo "$as_me:$LINENO: result: yes" >&5
41204 echo "${ECHO_T}yes" >&6; }
41209 if test "${HAS_PWLIB:-unset}" != "unset"; then
41211 PWLIB_OSTYPE=
41212 case "$host_os" in
41213 linux*) PWLIB_OSTYPE=linux ;
41215 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
41217 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
41218 ENDLDLIBS="-lossaudio" ;
41220 netbsd* ) PWLIB_OSTYPE=NetBSD ;
41221 ENDLDLIBS="-lossaudio" ;
41223 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
41225 darwin* ) PWLIB_OSTYPE=Darwin ;
41227 beos*) PWLIB_OSTYPE=beos ;
41228 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
41230 cygwin*) PWLIB_OSTYPE=cygwin ;
41232 mingw*) PWLIB_OSTYPE=mingw ;
41233 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
41234 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
41236 * ) PWLIB_OSTYPE="$host_os" ;
41237 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
41238 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
41240 esac
41242 PWLIB_MACHTYPE=
41243 case "$host_cpu" in
41244 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
41247 x86_64) PWLIB_MACHTYPE=x86_64 ;
41248 P_64BIT=1 ;
41249 LIB64=1 ;
41252 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
41253 P_64BIT=1 ;
41256 sparc ) PWLIB_MACHTYPE=sparc ;
41259 powerpc ) PWLIB_MACHTYPE=ppc ;
41262 ppc ) PWLIB_MACHTYPE=ppc ;
41265 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
41266 P_64BIT=1 ;
41267 LIB64=1 ;
41270 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
41271 P_64BIT=1 ;
41272 LIB64=1 ;
41275 ia64) PWLIB_MACHTYPE=ia64 ;
41276 P_64BIT=1 ;
41279 s390x) PWLIB_MACHTYPE=s390x ;
41280 P_64BIT=1 ;
41281 LIB64=1 ;
41284 s390) PWLIB_MACHTYPE=s390 ;
41287 * ) PWLIB_MACHTYPE="$host_cpu";
41288 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
41289 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
41290 esac
41292 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
41297 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
41300 if test "${HAS_PWLIB:-unset}" != "unset"; then
41301 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
41302 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
41304 saved_cppflags="${CPPFLAGS}"
41305 saved_libs="${LIBS}"
41306 if test "${PWLIB_LIB:-unset}" != "unset"; then
41307 LIBS="${LIBS} ${PWLIB_LIB} "
41308 else
41309 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
41311 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
41313 ac_ext=cpp
41314 ac_cpp='$CXXCPP $CPPFLAGS'
41315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41320 cat >conftest.$ac_ext <<_ACEOF
41321 /* confdefs.h. */
41322 _ACEOF
41323 cat confdefs.h >>conftest.$ac_ext
41324 cat >>conftest.$ac_ext <<_ACEOF
41325 /* end confdefs.h. */
41326 #include "ptlib.h"
41328 main ()
41330 BOOL q = PTime::IsDaylightSavings();
41332 return 0;
41334 _ACEOF
41335 rm -f conftest.$ac_objext conftest$ac_exeext
41336 if { (ac_try="$ac_link"
41337 case "(($ac_try" in
41338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41339 *) ac_try_echo=$ac_try;;
41340 esac
41341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41342 (eval "$ac_link") 2>conftest.er1
41343 ac_status=$?
41344 grep -v '^ *+' conftest.er1 >conftest.err
41345 rm -f conftest.er1
41346 cat conftest.err >&5
41347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41348 (exit $ac_status); } && {
41349 test -z "$ac_cxx_werror_flag" ||
41350 test ! -s conftest.err
41351 } && test -s conftest$ac_exeext &&
41352 $as_test_x conftest$ac_exeext; then
41353 { echo "$as_me:$LINENO: result: yes" >&5
41354 echo "${ECHO_T}yes" >&6; }
41355 ac_cv_lib_PWLIB="yes"
41357 else
41358 echo "$as_me: failed program was:" >&5
41359 sed 's/^/| /' conftest.$ac_ext >&5
41361 { echo "$as_me:$LINENO: result: no" >&5
41362 echo "${ECHO_T}no" >&6; }
41363 ac_cv_lib_PWLIB="no"
41368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41369 conftest$ac_exeext conftest.$ac_ext
41371 ac_ext=c
41372 ac_cpp='$CPP $CPPFLAGS'
41373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41378 LIBS="${saved_libs}"
41379 CPPFLAGS="${saved_cppflags}"
41381 if test "${ac_cv_lib_PWLIB}" = "yes"; then
41382 if test "${PWLIB_LIB:-undef}" = "undef"; then
41383 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
41384 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
41385 else
41386 PWLIB_LIB="-l${PLATFORM_PWLIB}"
41389 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
41390 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
41392 PBX_PWLIB=1
41394 cat >>confdefs.h <<\_ACEOF
41395 #define HAVE_PWLIB 1
41396 _ACEOF
41404 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
41405 if test -n "${OPENH323_DIR}"; then
41406 OPENH323DIR="${OPENH323_DIR}"
41409 OPENH323_INCDIR=
41410 OPENH323_LIBDIR=
41411 ac_ext=cpp
41412 ac_cpp='$CXXCPP $CPPFLAGS'
41413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41417 if test "${OPENH323DIR:-unset}" != "unset" ; then
41418 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
41419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41420 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41421 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41423 echo $ECHO_N "(cached) $ECHO_C" >&6
41425 ac_res=`eval echo '${'$as_ac_Header'}'`
41426 { echo "$as_me:$LINENO: result: $ac_res" >&5
41427 echo "${ECHO_T}$ac_res" >&6; }
41428 else
41429 # Is the header compilable?
41430 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
41431 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
41432 cat >conftest.$ac_ext <<_ACEOF
41433 /* confdefs.h. */
41434 _ACEOF
41435 cat confdefs.h >>conftest.$ac_ext
41436 cat >>conftest.$ac_ext <<_ACEOF
41437 /* end confdefs.h. */
41438 $ac_includes_default
41439 #include <${OPENH323DIR}/version.h>
41440 _ACEOF
41441 rm -f conftest.$ac_objext
41442 if { (ac_try="$ac_compile"
41443 case "(($ac_try" in
41444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41445 *) ac_try_echo=$ac_try;;
41446 esac
41447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41448 (eval "$ac_compile") 2>conftest.er1
41449 ac_status=$?
41450 grep -v '^ *+' conftest.er1 >conftest.err
41451 rm -f conftest.er1
41452 cat conftest.err >&5
41453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454 (exit $ac_status); } && {
41455 test -z "$ac_cxx_werror_flag" ||
41456 test ! -s conftest.err
41457 } && test -s conftest.$ac_objext; then
41458 ac_header_compiler=yes
41459 else
41460 echo "$as_me: failed program was:" >&5
41461 sed 's/^/| /' conftest.$ac_ext >&5
41463 ac_header_compiler=no
41466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41468 echo "${ECHO_T}$ac_header_compiler" >&6; }
41470 # Is the header present?
41471 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
41472 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
41473 cat >conftest.$ac_ext <<_ACEOF
41474 /* confdefs.h. */
41475 _ACEOF
41476 cat confdefs.h >>conftest.$ac_ext
41477 cat >>conftest.$ac_ext <<_ACEOF
41478 /* end confdefs.h. */
41479 #include <${OPENH323DIR}/version.h>
41480 _ACEOF
41481 if { (ac_try="$ac_cpp conftest.$ac_ext"
41482 case "(($ac_try" in
41483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41484 *) ac_try_echo=$ac_try;;
41485 esac
41486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41488 ac_status=$?
41489 grep -v '^ *+' conftest.er1 >conftest.err
41490 rm -f conftest.er1
41491 cat conftest.err >&5
41492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41493 (exit $ac_status); } >/dev/null && {
41494 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41495 test ! -s conftest.err
41496 }; then
41497 ac_header_preproc=yes
41498 else
41499 echo "$as_me: failed program was:" >&5
41500 sed 's/^/| /' conftest.$ac_ext >&5
41502 ac_header_preproc=no
41505 rm -f conftest.err conftest.$ac_ext
41506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41507 echo "${ECHO_T}$ac_header_preproc" >&6; }
41509 # So? What about this header?
41510 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41511 yes:no: )
41512 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41513 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41514 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
41515 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
41516 ac_header_preproc=yes
41518 no:yes:* )
41519 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
41520 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
41521 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
41522 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
41523 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
41524 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
41525 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
41526 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41527 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
41528 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
41529 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
41530 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
41531 ( cat <<\_ASBOX
41532 ## ------------------------------- ##
41533 ## Report this to www.asterisk.org ##
41534 ## ------------------------------- ##
41535 _ASBOX
41536 ) | sed "s/^/$as_me: WARNING: /" >&2
41538 esac
41539 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41540 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41542 echo $ECHO_N "(cached) $ECHO_C" >&6
41543 else
41544 eval "$as_ac_Header=\$ac_header_preproc"
41546 ac_res=`eval echo '${'$as_ac_Header'}'`
41547 { echo "$as_me:$LINENO: result: $ac_res" >&5
41548 echo "${ECHO_T}$ac_res" >&6; }
41551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41552 HAS_OPENH323=1
41557 if test "${HAS_OPENH323:-unset}" = "unset" ; then
41558 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
41559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41560 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41561 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41563 echo $ECHO_N "(cached) $ECHO_C" >&6
41565 ac_res=`eval echo '${'$as_ac_Header'}'`
41566 { echo "$as_me:$LINENO: result: $ac_res" >&5
41567 echo "${ECHO_T}$ac_res" >&6; }
41568 else
41569 # Is the header compilable?
41570 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
41571 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
41572 cat >conftest.$ac_ext <<_ACEOF
41573 /* confdefs.h. */
41574 _ACEOF
41575 cat confdefs.h >>conftest.$ac_ext
41576 cat >>conftest.$ac_ext <<_ACEOF
41577 /* end confdefs.h. */
41578 $ac_includes_default
41579 #include <${PWLIBDIR}/../openh323/version.h>
41580 _ACEOF
41581 rm -f conftest.$ac_objext
41582 if { (ac_try="$ac_compile"
41583 case "(($ac_try" in
41584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41585 *) ac_try_echo=$ac_try;;
41586 esac
41587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41588 (eval "$ac_compile") 2>conftest.er1
41589 ac_status=$?
41590 grep -v '^ *+' conftest.er1 >conftest.err
41591 rm -f conftest.er1
41592 cat conftest.err >&5
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); } && {
41595 test -z "$ac_cxx_werror_flag" ||
41596 test ! -s conftest.err
41597 } && test -s conftest.$ac_objext; then
41598 ac_header_compiler=yes
41599 else
41600 echo "$as_me: failed program was:" >&5
41601 sed 's/^/| /' conftest.$ac_ext >&5
41603 ac_header_compiler=no
41606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41608 echo "${ECHO_T}$ac_header_compiler" >&6; }
41610 # Is the header present?
41611 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
41612 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
41613 cat >conftest.$ac_ext <<_ACEOF
41614 /* confdefs.h. */
41615 _ACEOF
41616 cat confdefs.h >>conftest.$ac_ext
41617 cat >>conftest.$ac_ext <<_ACEOF
41618 /* end confdefs.h. */
41619 #include <${PWLIBDIR}/../openh323/version.h>
41620 _ACEOF
41621 if { (ac_try="$ac_cpp conftest.$ac_ext"
41622 case "(($ac_try" in
41623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41624 *) ac_try_echo=$ac_try;;
41625 esac
41626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41628 ac_status=$?
41629 grep -v '^ *+' conftest.er1 >conftest.err
41630 rm -f conftest.er1
41631 cat conftest.err >&5
41632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633 (exit $ac_status); } >/dev/null && {
41634 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41635 test ! -s conftest.err
41636 }; then
41637 ac_header_preproc=yes
41638 else
41639 echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41642 ac_header_preproc=no
41645 rm -f conftest.err conftest.$ac_ext
41646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41647 echo "${ECHO_T}$ac_header_preproc" >&6; }
41649 # So? What about this header?
41650 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41651 yes:no: )
41652 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41653 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41654 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
41655 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
41656 ac_header_preproc=yes
41658 no:yes:* )
41659 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
41660 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
41661 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
41662 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
41663 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
41664 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
41665 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
41666 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41667 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
41668 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
41669 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
41670 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
41671 ( cat <<\_ASBOX
41672 ## ------------------------------- ##
41673 ## Report this to www.asterisk.org ##
41674 ## ------------------------------- ##
41675 _ASBOX
41676 ) | sed "s/^/$as_me: WARNING: /" >&2
41678 esac
41679 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41680 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41682 echo $ECHO_N "(cached) $ECHO_C" >&6
41683 else
41684 eval "$as_ac_Header=\$ac_header_preproc"
41686 ac_res=`eval echo '${'$as_ac_Header'}'`
41687 { echo "$as_me:$LINENO: result: $ac_res" >&5
41688 echo "${ECHO_T}$ac_res" >&6; }
41691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41692 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
41696 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41697 OPENH323DIR="${PWLIBDIR}/../openh323"
41698 saved_cppflags="${CPPFLAGS}"
41699 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
41700 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
41701 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
41702 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
41703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41704 echo $ECHO_N "(cached) $ECHO_C" >&6
41705 else
41706 cat >conftest.$ac_ext <<_ACEOF
41707 /* confdefs.h. */
41708 _ACEOF
41709 cat confdefs.h >>conftest.$ac_ext
41710 cat >>conftest.$ac_ext <<_ACEOF
41711 /* end confdefs.h. */
41712 #include <ptlib.h>
41714 #include <${OPENH323DIR}/include/h323.h>
41715 _ACEOF
41716 rm -f conftest.$ac_objext
41717 if { (ac_try="$ac_compile"
41718 case "(($ac_try" in
41719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41720 *) ac_try_echo=$ac_try;;
41721 esac
41722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41723 (eval "$ac_compile") 2>conftest.er1
41724 ac_status=$?
41725 grep -v '^ *+' conftest.er1 >conftest.err
41726 rm -f conftest.er1
41727 cat conftest.err >&5
41728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729 (exit $ac_status); } && {
41730 test -z "$ac_cxx_werror_flag" ||
41731 test ! -s conftest.err
41732 } && test -s conftest.$ac_objext; then
41733 eval "$as_ac_Header=yes"
41734 else
41735 echo "$as_me: failed program was:" >&5
41736 sed 's/^/| /' conftest.$ac_ext >&5
41738 eval "$as_ac_Header=no"
41741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41743 ac_res=`eval echo '${'$as_ac_Header'}'`
41744 { echo "$as_me:$LINENO: result: $ac_res" >&5
41745 echo "${ECHO_T}$ac_res" >&6; }
41746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41748 else
41749 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
41753 CPPFLAGS="${saved_cppflags}"
41754 else
41755 saved_cppflags="${CPPFLAGS}"
41756 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
41757 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
41758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41759 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41760 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41762 echo $ECHO_N "(cached) $ECHO_C" >&6
41764 ac_res=`eval echo '${'$as_ac_Header'}'`
41765 { echo "$as_me:$LINENO: result: $ac_res" >&5
41766 echo "${ECHO_T}$ac_res" >&6; }
41767 else
41768 # Is the header compilable?
41769 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
41770 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
41771 cat >conftest.$ac_ext <<_ACEOF
41772 /* confdefs.h. */
41773 _ACEOF
41774 cat confdefs.h >>conftest.$ac_ext
41775 cat >>conftest.$ac_ext <<_ACEOF
41776 /* end confdefs.h. */
41777 $ac_includes_default
41778 #include <${HOME}/openh323/include/h323.h>
41779 _ACEOF
41780 rm -f conftest.$ac_objext
41781 if { (ac_try="$ac_compile"
41782 case "(($ac_try" in
41783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41784 *) ac_try_echo=$ac_try;;
41785 esac
41786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41787 (eval "$ac_compile") 2>conftest.er1
41788 ac_status=$?
41789 grep -v '^ *+' conftest.er1 >conftest.err
41790 rm -f conftest.er1
41791 cat conftest.err >&5
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); } && {
41794 test -z "$ac_cxx_werror_flag" ||
41795 test ! -s conftest.err
41796 } && test -s conftest.$ac_objext; then
41797 ac_header_compiler=yes
41798 else
41799 echo "$as_me: failed program was:" >&5
41800 sed 's/^/| /' conftest.$ac_ext >&5
41802 ac_header_compiler=no
41805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41807 echo "${ECHO_T}$ac_header_compiler" >&6; }
41809 # Is the header present?
41810 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41811 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41812 cat >conftest.$ac_ext <<_ACEOF
41813 /* confdefs.h. */
41814 _ACEOF
41815 cat confdefs.h >>conftest.$ac_ext
41816 cat >>conftest.$ac_ext <<_ACEOF
41817 /* end confdefs.h. */
41818 #include <${HOME}/openh323/include/h323.h>
41819 _ACEOF
41820 if { (ac_try="$ac_cpp conftest.$ac_ext"
41821 case "(($ac_try" in
41822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41823 *) ac_try_echo=$ac_try;;
41824 esac
41825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41827 ac_status=$?
41828 grep -v '^ *+' conftest.er1 >conftest.err
41829 rm -f conftest.er1
41830 cat conftest.err >&5
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); } >/dev/null && {
41833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41834 test ! -s conftest.err
41835 }; then
41836 ac_header_preproc=yes
41837 else
41838 echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41841 ac_header_preproc=no
41844 rm -f conftest.err conftest.$ac_ext
41845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41846 echo "${ECHO_T}$ac_header_preproc" >&6; }
41848 # So? What about this header?
41849 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41850 yes:no: )
41851 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41852 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41853 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41854 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41855 ac_header_preproc=yes
41857 no:yes:* )
41858 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41859 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41860 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41861 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41862 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41863 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41864 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41865 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41866 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41867 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41868 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41869 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41870 ( cat <<\_ASBOX
41871 ## ------------------------------- ##
41872 ## Report this to www.asterisk.org ##
41873 ## ------------------------------- ##
41874 _ASBOX
41875 ) | sed "s/^/$as_me: WARNING: /" >&2
41877 esac
41878 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41879 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41881 echo $ECHO_N "(cached) $ECHO_C" >&6
41882 else
41883 eval "$as_ac_Header=\$ac_header_preproc"
41885 ac_res=`eval echo '${'$as_ac_Header'}'`
41886 { echo "$as_me:$LINENO: result: $ac_res" >&5
41887 echo "${ECHO_T}$ac_res" >&6; }
41890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41891 HAS_OPENH323=1
41895 CPPFLAGS="${saved_cppflags}"
41896 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41897 OPENH323DIR="${HOME}/openh323"
41898 else
41899 saved_cppflags="${CPPFLAGS}"
41900 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41901 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41902 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41903 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41904 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41905 echo $ECHO_N "(cached) $ECHO_C" >&6
41907 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41908 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41909 else
41910 # Is the header compilable?
41911 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41912 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41913 cat >conftest.$ac_ext <<_ACEOF
41914 /* confdefs.h. */
41915 _ACEOF
41916 cat confdefs.h >>conftest.$ac_ext
41917 cat >>conftest.$ac_ext <<_ACEOF
41918 /* end confdefs.h. */
41919 $ac_includes_default
41920 #include </usr/local/include/openh323/h323.h>
41921 _ACEOF
41922 rm -f conftest.$ac_objext
41923 if { (ac_try="$ac_compile"
41924 case "(($ac_try" in
41925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41926 *) ac_try_echo=$ac_try;;
41927 esac
41928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41929 (eval "$ac_compile") 2>conftest.er1
41930 ac_status=$?
41931 grep -v '^ *+' conftest.er1 >conftest.err
41932 rm -f conftest.er1
41933 cat conftest.err >&5
41934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41935 (exit $ac_status); } && {
41936 test -z "$ac_cxx_werror_flag" ||
41937 test ! -s conftest.err
41938 } && test -s conftest.$ac_objext; then
41939 ac_header_compiler=yes
41940 else
41941 echo "$as_me: failed program was:" >&5
41942 sed 's/^/| /' conftest.$ac_ext >&5
41944 ac_header_compiler=no
41947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41949 echo "${ECHO_T}$ac_header_compiler" >&6; }
41951 # Is the header present?
41952 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41953 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41954 cat >conftest.$ac_ext <<_ACEOF
41955 /* confdefs.h. */
41956 _ACEOF
41957 cat confdefs.h >>conftest.$ac_ext
41958 cat >>conftest.$ac_ext <<_ACEOF
41959 /* end confdefs.h. */
41960 #include </usr/local/include/openh323/h323.h>
41961 _ACEOF
41962 if { (ac_try="$ac_cpp conftest.$ac_ext"
41963 case "(($ac_try" in
41964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41965 *) ac_try_echo=$ac_try;;
41966 esac
41967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41969 ac_status=$?
41970 grep -v '^ *+' conftest.er1 >conftest.err
41971 rm -f conftest.er1
41972 cat conftest.err >&5
41973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41974 (exit $ac_status); } >/dev/null && {
41975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41976 test ! -s conftest.err
41977 }; then
41978 ac_header_preproc=yes
41979 else
41980 echo "$as_me: failed program was:" >&5
41981 sed 's/^/| /' conftest.$ac_ext >&5
41983 ac_header_preproc=no
41986 rm -f conftest.err conftest.$ac_ext
41987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41988 echo "${ECHO_T}$ac_header_preproc" >&6; }
41990 # So? What about this header?
41991 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41992 yes:no: )
41993 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41994 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41995 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41996 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41997 ac_header_preproc=yes
41999 no:yes:* )
42000 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
42001 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
42002 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
42003 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
42004 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
42005 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
42006 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
42007 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
42008 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
42009 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
42010 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
42011 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
42012 ( cat <<\_ASBOX
42013 ## ------------------------------- ##
42014 ## Report this to www.asterisk.org ##
42015 ## ------------------------------- ##
42016 _ASBOX
42017 ) | sed "s/^/$as_me: WARNING: /" >&2
42019 esac
42020 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
42021 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
42022 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
42023 echo $ECHO_N "(cached) $ECHO_C" >&6
42024 else
42025 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
42027 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
42028 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
42031 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
42032 HAS_OPENH323=1
42036 CPPFLAGS="${saved_cppflags}"
42037 if test "${HAS_OPENH323:-unset}" != "unset" ; then
42038 OPENH323DIR="/usr/local/share/openh323"
42039 OPENH323_INCDIR="/usr/local/include/openh323"
42040 if test "x$LIB64" != "x"; then
42041 OPENH323_LIBDIR="/usr/local/lib64"
42042 else
42043 OPENH323_LIBDIR="/usr/local/lib"
42045 else
42046 saved_cppflags="${CPPFLAGS}"
42047 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
42048 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
42049 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
42050 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
42051 echo $ECHO_N "(cached) $ECHO_C" >&6
42052 else
42053 cat >conftest.$ac_ext <<_ACEOF
42054 /* confdefs.h. */
42055 _ACEOF
42056 cat confdefs.h >>conftest.$ac_ext
42057 cat >>conftest.$ac_ext <<_ACEOF
42058 /* end confdefs.h. */
42059 #include <ptlib.h>
42061 #include </usr/include/openh323/h323.h>
42062 _ACEOF
42063 rm -f conftest.$ac_objext
42064 if { (ac_try="$ac_compile"
42065 case "(($ac_try" in
42066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42067 *) ac_try_echo=$ac_try;;
42068 esac
42069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42070 (eval "$ac_compile") 2>conftest.er1
42071 ac_status=$?
42072 grep -v '^ *+' conftest.er1 >conftest.err
42073 rm -f conftest.er1
42074 cat conftest.err >&5
42075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42076 (exit $ac_status); } && {
42077 test -z "$ac_cxx_werror_flag" ||
42078 test ! -s conftest.err
42079 } && test -s conftest.$ac_objext; then
42080 ac_cv_header__usr_include_openh323_h323_h=yes
42081 else
42082 echo "$as_me: failed program was:" >&5
42083 sed 's/^/| /' conftest.$ac_ext >&5
42085 ac_cv_header__usr_include_openh323_h323_h=no
42088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42090 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
42091 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
42092 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
42093 HAS_OPENH323=1
42097 CPPFLAGS="${saved_cppflags}"
42098 if test "${HAS_OPENH323:-unset}" != "unset" ; then
42099 OPENH323DIR="/usr/share/openh323"
42100 OPENH323_INCDIR="/usr/include/openh323"
42101 if test "x$LIB64" != "x"; then
42102 OPENH323_LIBDIR="/usr/lib64"
42103 else
42104 OPENH323_LIBDIR="/usr/lib"
42112 if test "${HAS_OPENH323:-unset}" != "unset" ; then
42113 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
42114 OPENH323_INCDIR="${OPENH323DIR}/include"
42116 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
42117 OPENH323_LIBDIR="${OPENH323DIR}/lib"
42120 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
42121 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
42122 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
42128 ac_ext=c
42129 ac_cpp='$CPP $CPPFLAGS'
42130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42136 if test "${HAS_OPENH323:-unset}" != "unset"; then
42137 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
42138 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
42139 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
42140 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
42141 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
42142 let OPENH323_REQ=1*10000+17*100+3
42144 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
42145 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
42146 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
42147 { echo "$as_me:$LINENO: result: no" >&5
42148 echo "${ECHO_T}no" >&6; }
42149 unset HAS_OPENH323
42150 else
42151 { echo "$as_me:$LINENO: result: yes" >&5
42152 echo "${ECHO_T}yes" >&6; }
42157 if test "${HAS_OPENH323:-unset}" != "unset"; then
42158 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
42159 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
42160 OPENH323_SUFFIX=
42161 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
42162 for pfx in $prefixes; do
42163 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
42164 libfile=
42165 if test -n "$files"; then
42166 for f in $files; do
42167 if test -f $f -a ! -L $f; then
42168 libfile=`basename $f`
42169 break;
42171 done
42173 if test -n "$libfile"; then
42174 OPENH323_PREFIX=$pfx
42175 break;
42177 done
42178 if test "${libfile:-unset}" != "unset"; then
42179 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
42181 case "${OPENH323_SUFFIX}" in
42183 OPENH323_BUILD="notrace";;
42185 OPENH323_BUILD="opt";;
42187 OPENH323_BUILD="debug";;
42189 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
42190 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
42191 if test "x$notrace" = "x"; then
42192 notrace="0"
42194 if test "$notrace" -ne 0; then
42195 OPENH323_BUILD="notrace"
42196 else
42197 OPENH323_BUILD="opt"
42199 OPENH323_LIB="-l${OPENH323_PREFIX}"
42200 else
42201 OPENH323_BUILD="notrace"
42204 esac
42205 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
42206 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
42212 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
42214 if test "${HAS_OPENH323:-unset}" != "unset"; then
42215 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
42216 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
42218 saved_cppflags="${CPPFLAGS}"
42219 saved_libs="${LIBS}"
42220 if test "${OPENH323_LIB:-unset}" != "unset"; then
42221 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
42222 else
42223 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
42225 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
42227 ac_ext=cpp
42228 ac_cpp='$CXXCPP $CPPFLAGS'
42229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42234 cat >conftest.$ac_ext <<_ACEOF
42235 /* confdefs.h. */
42236 _ACEOF
42237 cat confdefs.h >>conftest.$ac_ext
42238 cat >>conftest.$ac_ext <<_ACEOF
42239 /* end confdefs.h. */
42240 #include "ptlib.h"
42241 #include "h323.h"
42242 #include "h323ep.h"
42244 main ()
42246 H323EndPoint ep = H323EndPoint();
42248 return 0;
42250 _ACEOF
42251 rm -f conftest.$ac_objext conftest$ac_exeext
42252 if { (ac_try="$ac_link"
42253 case "(($ac_try" in
42254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42255 *) ac_try_echo=$ac_try;;
42256 esac
42257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42258 (eval "$ac_link") 2>conftest.er1
42259 ac_status=$?
42260 grep -v '^ *+' conftest.er1 >conftest.err
42261 rm -f conftest.er1
42262 cat conftest.err >&5
42263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264 (exit $ac_status); } && {
42265 test -z "$ac_cxx_werror_flag" ||
42266 test ! -s conftest.err
42267 } && test -s conftest$ac_exeext &&
42268 $as_test_x conftest$ac_exeext; then
42269 { echo "$as_me:$LINENO: result: yes" >&5
42270 echo "${ECHO_T}yes" >&6; }
42271 ac_cv_lib_OPENH323="yes"
42273 else
42274 echo "$as_me: failed program was:" >&5
42275 sed 's/^/| /' conftest.$ac_ext >&5
42277 { echo "$as_me:$LINENO: result: no" >&5
42278 echo "${ECHO_T}no" >&6; }
42279 ac_cv_lib_OPENH323="no"
42284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42285 conftest$ac_exeext conftest.$ac_ext
42287 ac_ext=c
42288 ac_cpp='$CPP $CPPFLAGS'
42289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42294 LIBS="${saved_libs}"
42295 CPPFLAGS="${saved_cppflags}"
42297 if test "${ac_cv_lib_OPENH323}" = "yes"; then
42298 if test "${OPENH323_LIB:-undef}" = "undef"; then
42299 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
42300 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
42301 else
42302 OPENH323_LIB="-l${PLATFORM_OPENH323}"
42305 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
42306 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
42308 PBX_OPENH323=1
42310 cat >>confdefs.h <<\_ACEOF
42311 #define HAVE_OPENH323 1
42312 _ACEOF
42320 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
42321 pbxlibdir=""
42322 # if --with-LUA=DIR has been specified, use it.
42323 if test "x${LUA_DIR}" != "x"; then
42324 if test -d ${LUA_DIR}/lib; then
42325 pbxlibdir="-L${LUA_DIR}/lib"
42326 else
42327 pbxlibdir="-L${LUA_DIR}"
42330 pbxfuncname="luaL_newstate"
42331 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42332 AST_LUA_FOUND=yes
42333 else
42334 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
42335 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
42336 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
42337 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42338 echo $ECHO_N "(cached) $ECHO_C" >&6
42339 else
42340 ac_check_lib_save_LIBS=$LIBS
42341 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
42342 cat >conftest.$ac_ext <<_ACEOF
42343 /* confdefs.h. */
42344 _ACEOF
42345 cat confdefs.h >>conftest.$ac_ext
42346 cat >>conftest.$ac_ext <<_ACEOF
42347 /* end confdefs.h. */
42349 /* Override any GCC internal prototype to avoid an error.
42350 Use char because int might match the return type of a GCC
42351 builtin and then its argument prototype would still apply. */
42352 #ifdef __cplusplus
42353 extern "C"
42354 #endif
42355 char ${pbxfuncname} ();
42357 main ()
42359 return ${pbxfuncname} ();
42361 return 0;
42363 _ACEOF
42364 rm -f conftest.$ac_objext conftest$ac_exeext
42365 if { (ac_try="$ac_link"
42366 case "(($ac_try" in
42367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42368 *) ac_try_echo=$ac_try;;
42369 esac
42370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42371 (eval "$ac_link") 2>conftest.er1
42372 ac_status=$?
42373 grep -v '^ *+' conftest.er1 >conftest.err
42374 rm -f conftest.er1
42375 cat conftest.err >&5
42376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42377 (exit $ac_status); } && {
42378 test -z "$ac_c_werror_flag" ||
42379 test ! -s conftest.err
42380 } && test -s conftest$ac_exeext &&
42381 $as_test_x conftest$ac_exeext; then
42382 eval "$as_ac_Lib=yes"
42383 else
42384 echo "$as_me: failed program was:" >&5
42385 sed 's/^/| /' conftest.$ac_ext >&5
42387 eval "$as_ac_Lib=no"
42390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42391 conftest$ac_exeext conftest.$ac_ext
42392 LIBS=$ac_check_lib_save_LIBS
42394 ac_res=`eval echo '${'$as_ac_Lib'}'`
42395 { echo "$as_me:$LINENO: result: $ac_res" >&5
42396 echo "${ECHO_T}$ac_res" >&6; }
42397 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42398 AST_LUA_FOUND=yes
42399 else
42400 AST_LUA_FOUND=no
42405 # now check for the header.
42406 if test "${AST_LUA_FOUND}" = "yes"; then
42407 LUA_LIB="${pbxlibdir} -llua5.1 "
42408 # if --with-LUA=DIR has been specified, use it.
42409 if test "x${LUA_DIR}" != "x"; then
42410 LUA_INCLUDE="-I${LUA_DIR}/include"
42412 LUA_INCLUDE="${LUA_INCLUDE} "
42413 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
42414 LUA_HEADER_FOUND="1"
42415 else # check for the header
42416 saved_cppflags="${CPPFLAGS}"
42417 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
42418 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42419 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42420 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42421 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42422 echo $ECHO_N "(cached) $ECHO_C" >&6
42424 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42425 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42426 else
42427 # Is the header compilable?
42428 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
42429 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
42430 cat >conftest.$ac_ext <<_ACEOF
42431 /* confdefs.h. */
42432 _ACEOF
42433 cat confdefs.h >>conftest.$ac_ext
42434 cat >>conftest.$ac_ext <<_ACEOF
42435 /* end confdefs.h. */
42436 $ac_includes_default
42437 #include <lua5.1/lua.h>
42438 _ACEOF
42439 rm -f conftest.$ac_objext
42440 if { (ac_try="$ac_compile"
42441 case "(($ac_try" in
42442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42443 *) ac_try_echo=$ac_try;;
42444 esac
42445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42446 (eval "$ac_compile") 2>conftest.er1
42447 ac_status=$?
42448 grep -v '^ *+' conftest.er1 >conftest.err
42449 rm -f conftest.er1
42450 cat conftest.err >&5
42451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42452 (exit $ac_status); } && {
42453 test -z "$ac_c_werror_flag" ||
42454 test ! -s conftest.err
42455 } && test -s conftest.$ac_objext; then
42456 ac_header_compiler=yes
42457 else
42458 echo "$as_me: failed program was:" >&5
42459 sed 's/^/| /' conftest.$ac_ext >&5
42461 ac_header_compiler=no
42464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42466 echo "${ECHO_T}$ac_header_compiler" >&6; }
42468 # Is the header present?
42469 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
42470 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
42471 cat >conftest.$ac_ext <<_ACEOF
42472 /* confdefs.h. */
42473 _ACEOF
42474 cat confdefs.h >>conftest.$ac_ext
42475 cat >>conftest.$ac_ext <<_ACEOF
42476 /* end confdefs.h. */
42477 #include <lua5.1/lua.h>
42478 _ACEOF
42479 if { (ac_try="$ac_cpp conftest.$ac_ext"
42480 case "(($ac_try" in
42481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42482 *) ac_try_echo=$ac_try;;
42483 esac
42484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42486 ac_status=$?
42487 grep -v '^ *+' conftest.er1 >conftest.err
42488 rm -f conftest.er1
42489 cat conftest.err >&5
42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491 (exit $ac_status); } >/dev/null && {
42492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42493 test ! -s conftest.err
42494 }; then
42495 ac_header_preproc=yes
42496 else
42497 echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42500 ac_header_preproc=no
42503 rm -f conftest.err conftest.$ac_ext
42504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42505 echo "${ECHO_T}$ac_header_preproc" >&6; }
42507 # So? What about this header?
42508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42509 yes:no: )
42510 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
42511 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42512 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
42513 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
42514 ac_header_preproc=yes
42516 no:yes:* )
42517 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
42518 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
42519 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
42520 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
42521 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
42522 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
42523 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
42524 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
42525 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
42526 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
42527 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
42528 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
42529 ( cat <<\_ASBOX
42530 ## ------------------------------- ##
42531 ## Report this to www.asterisk.org ##
42532 ## ------------------------------- ##
42533 _ASBOX
42534 ) | sed "s/^/$as_me: WARNING: /" >&2
42536 esac
42537 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42538 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42539 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42540 echo $ECHO_N "(cached) $ECHO_C" >&6
42541 else
42542 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
42544 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42545 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42548 if test $ac_cv_header_lua5_1_lua_h = yes; then
42549 LUA_HEADER_FOUND=1
42550 else
42551 LUA_HEADER_FOUND=0
42555 CPPFLAGS="${saved_cppflags}"
42557 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
42558 LUA_LIB=""
42559 LUA_INCLUDE=""
42560 else
42561 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42562 LUA_LIB=""
42564 PBX_LUA=1
42565 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42567 cat >>confdefs.h <<_ACEOF
42568 #define HAVE_LUA 1
42569 _ACEOF
42572 cat >>confdefs.h <<_ACEOF
42573 #define HAVE_LUA_VERSION
42574 _ACEOF
42582 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
42583 pbxlibdir=""
42584 # if --with-RADIUS=DIR has been specified, use it.
42585 if test "x${RADIUS_DIR}" != "x"; then
42586 if test -d ${RADIUS_DIR}/lib; then
42587 pbxlibdir="-L${RADIUS_DIR}/lib"
42588 else
42589 pbxlibdir="-L${RADIUS_DIR}"
42592 pbxfuncname="rc_read_config"
42593 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42594 AST_RADIUS_FOUND=yes
42595 else
42596 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
42597 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
42598 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
42599 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42600 echo $ECHO_N "(cached) $ECHO_C" >&6
42601 else
42602 ac_check_lib_save_LIBS=$LIBS
42603 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
42604 cat >conftest.$ac_ext <<_ACEOF
42605 /* confdefs.h. */
42606 _ACEOF
42607 cat confdefs.h >>conftest.$ac_ext
42608 cat >>conftest.$ac_ext <<_ACEOF
42609 /* end confdefs.h. */
42611 /* Override any GCC internal prototype to avoid an error.
42612 Use char because int might match the return type of a GCC
42613 builtin and then its argument prototype would still apply. */
42614 #ifdef __cplusplus
42615 extern "C"
42616 #endif
42617 char ${pbxfuncname} ();
42619 main ()
42621 return ${pbxfuncname} ();
42623 return 0;
42625 _ACEOF
42626 rm -f conftest.$ac_objext conftest$ac_exeext
42627 if { (ac_try="$ac_link"
42628 case "(($ac_try" in
42629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42630 *) ac_try_echo=$ac_try;;
42631 esac
42632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42633 (eval "$ac_link") 2>conftest.er1
42634 ac_status=$?
42635 grep -v '^ *+' conftest.er1 >conftest.err
42636 rm -f conftest.er1
42637 cat conftest.err >&5
42638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42639 (exit $ac_status); } && {
42640 test -z "$ac_c_werror_flag" ||
42641 test ! -s conftest.err
42642 } && test -s conftest$ac_exeext &&
42643 $as_test_x conftest$ac_exeext; then
42644 eval "$as_ac_Lib=yes"
42645 else
42646 echo "$as_me: failed program was:" >&5
42647 sed 's/^/| /' conftest.$ac_ext >&5
42649 eval "$as_ac_Lib=no"
42652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42653 conftest$ac_exeext conftest.$ac_ext
42654 LIBS=$ac_check_lib_save_LIBS
42656 ac_res=`eval echo '${'$as_ac_Lib'}'`
42657 { echo "$as_me:$LINENO: result: $ac_res" >&5
42658 echo "${ECHO_T}$ac_res" >&6; }
42659 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42660 AST_RADIUS_FOUND=yes
42661 else
42662 AST_RADIUS_FOUND=no
42667 # now check for the header.
42668 if test "${AST_RADIUS_FOUND}" = "yes"; then
42669 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
42670 # if --with-RADIUS=DIR has been specified, use it.
42671 if test "x${RADIUS_DIR}" != "x"; then
42672 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
42674 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
42675 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
42676 RADIUS_HEADER_FOUND="1"
42677 else # check for the header
42678 saved_cppflags="${CPPFLAGS}"
42679 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
42680 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42681 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42682 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42683 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42684 echo $ECHO_N "(cached) $ECHO_C" >&6
42686 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42687 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42688 else
42689 # Is the header compilable?
42690 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
42691 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
42692 cat >conftest.$ac_ext <<_ACEOF
42693 /* confdefs.h. */
42694 _ACEOF
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h. */
42698 $ac_includes_default
42699 #include <radiusclient-ng.h>
42700 _ACEOF
42701 rm -f conftest.$ac_objext
42702 if { (ac_try="$ac_compile"
42703 case "(($ac_try" in
42704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42705 *) ac_try_echo=$ac_try;;
42706 esac
42707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42708 (eval "$ac_compile") 2>conftest.er1
42709 ac_status=$?
42710 grep -v '^ *+' conftest.er1 >conftest.err
42711 rm -f conftest.er1
42712 cat conftest.err >&5
42713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42714 (exit $ac_status); } && {
42715 test -z "$ac_c_werror_flag" ||
42716 test ! -s conftest.err
42717 } && test -s conftest.$ac_objext; then
42718 ac_header_compiler=yes
42719 else
42720 echo "$as_me: failed program was:" >&5
42721 sed 's/^/| /' conftest.$ac_ext >&5
42723 ac_header_compiler=no
42726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42728 echo "${ECHO_T}$ac_header_compiler" >&6; }
42730 # Is the header present?
42731 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
42732 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
42733 cat >conftest.$ac_ext <<_ACEOF
42734 /* confdefs.h. */
42735 _ACEOF
42736 cat confdefs.h >>conftest.$ac_ext
42737 cat >>conftest.$ac_ext <<_ACEOF
42738 /* end confdefs.h. */
42739 #include <radiusclient-ng.h>
42740 _ACEOF
42741 if { (ac_try="$ac_cpp conftest.$ac_ext"
42742 case "(($ac_try" in
42743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42744 *) ac_try_echo=$ac_try;;
42745 esac
42746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42748 ac_status=$?
42749 grep -v '^ *+' conftest.er1 >conftest.err
42750 rm -f conftest.er1
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } >/dev/null && {
42754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42755 test ! -s conftest.err
42756 }; then
42757 ac_header_preproc=yes
42758 else
42759 echo "$as_me: failed program was:" >&5
42760 sed 's/^/| /' conftest.$ac_ext >&5
42762 ac_header_preproc=no
42765 rm -f conftest.err conftest.$ac_ext
42766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42767 echo "${ECHO_T}$ac_header_preproc" >&6; }
42769 # So? What about this header?
42770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42771 yes:no: )
42772 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
42773 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42774 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
42775 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
42776 ac_header_preproc=yes
42778 no:yes:* )
42779 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
42780 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
42781 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
42782 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
42783 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
42784 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
42785 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
42786 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
42787 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42788 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42789 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42790 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42791 ( cat <<\_ASBOX
42792 ## ------------------------------- ##
42793 ## Report this to www.asterisk.org ##
42794 ## ------------------------------- ##
42795 _ASBOX
42796 ) | sed "s/^/$as_me: WARNING: /" >&2
42798 esac
42799 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42800 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42801 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42802 echo $ECHO_N "(cached) $ECHO_C" >&6
42803 else
42804 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42806 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42807 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42810 if test $ac_cv_header_radiusclient_ng_h = yes; then
42811 RADIUS_HEADER_FOUND=1
42812 else
42813 RADIUS_HEADER_FOUND=0
42817 CPPFLAGS="${saved_cppflags}"
42819 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42820 RADIUS_LIB=""
42821 RADIUS_INCLUDE=""
42822 else
42823 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42824 RADIUS_LIB=""
42826 PBX_RADIUS=1
42827 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42829 cat >>confdefs.h <<_ACEOF
42830 #define HAVE_RADIUS 1
42831 _ACEOF
42834 cat >>confdefs.h <<_ACEOF
42835 #define HAVE_RADIUS_VERSION
42836 _ACEOF
42843 # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
42844 # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
42845 # to know the specifics of each possible implementation, and then represent the one
42846 # that was found as 'AIS'.
42848 PBX_AIS=0
42850 # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
42853 if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
42854 pbxlibdir=""
42855 # if --with-OPENAIS=DIR has been specified, use it.
42856 if test "x${OPENAIS_DIR}" != "x"; then
42857 if test -d ${OPENAIS_DIR}/lib; then
42858 pbxlibdir="-L${OPENAIS_DIR}/lib"
42859 else
42860 pbxlibdir="-L${OPENAIS_DIR}"
42863 pbxfuncname="saClmInitialize"
42864 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42865 AST_OPENAIS_FOUND=yes
42866 else
42867 as_ac_Lib=`echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
42868 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
42869 echo $ECHO_N "checking for ${pbxfuncname} in -lSaClm... $ECHO_C" >&6; }
42870 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42871 echo $ECHO_N "(cached) $ECHO_C" >&6
42872 else
42873 ac_check_lib_save_LIBS=$LIBS
42874 LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais $LIBS"
42875 cat >conftest.$ac_ext <<_ACEOF
42876 /* confdefs.h. */
42877 _ACEOF
42878 cat confdefs.h >>conftest.$ac_ext
42879 cat >>conftest.$ac_ext <<_ACEOF
42880 /* end confdefs.h. */
42882 /* Override any GCC internal prototype to avoid an error.
42883 Use char because int might match the return type of a GCC
42884 builtin and then its argument prototype would still apply. */
42885 #ifdef __cplusplus
42886 extern "C"
42887 #endif
42888 char ${pbxfuncname} ();
42890 main ()
42892 return ${pbxfuncname} ();
42894 return 0;
42896 _ACEOF
42897 rm -f conftest.$ac_objext conftest$ac_exeext
42898 if { (ac_try="$ac_link"
42899 case "(($ac_try" in
42900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42901 *) ac_try_echo=$ac_try;;
42902 esac
42903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42904 (eval "$ac_link") 2>conftest.er1
42905 ac_status=$?
42906 grep -v '^ *+' conftest.er1 >conftest.err
42907 rm -f conftest.er1
42908 cat conftest.err >&5
42909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42910 (exit $ac_status); } && {
42911 test -z "$ac_c_werror_flag" ||
42912 test ! -s conftest.err
42913 } && test -s conftest$ac_exeext &&
42914 $as_test_x conftest$ac_exeext; then
42915 eval "$as_ac_Lib=yes"
42916 else
42917 echo "$as_me: failed program was:" >&5
42918 sed 's/^/| /' conftest.$ac_ext >&5
42920 eval "$as_ac_Lib=no"
42923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42924 conftest$ac_exeext conftest.$ac_ext
42925 LIBS=$ac_check_lib_save_LIBS
42927 ac_res=`eval echo '${'$as_ac_Lib'}'`
42928 { echo "$as_me:$LINENO: result: $ac_res" >&5
42929 echo "${ECHO_T}$ac_res" >&6; }
42930 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42931 AST_OPENAIS_FOUND=yes
42932 else
42933 AST_OPENAIS_FOUND=no
42938 # now check for the header.
42939 if test "${AST_OPENAIS_FOUND}" = "yes"; then
42940 OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais"
42941 # if --with-OPENAIS=DIR has been specified, use it.
42942 if test "x${OPENAIS_DIR}" != "x"; then
42943 OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
42945 OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
42946 if test "xopenais/saClm.h" = "x" ; then # no header, assume found
42947 OPENAIS_HEADER_FOUND="1"
42948 else # check for the header
42949 saved_cppflags="${CPPFLAGS}"
42950 CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
42951 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42952 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42953 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42954 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42955 echo $ECHO_N "(cached) $ECHO_C" >&6
42957 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42958 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42959 else
42960 # Is the header compilable?
42961 { echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
42962 echo $ECHO_N "checking openais/saClm.h usability... $ECHO_C" >&6; }
42963 cat >conftest.$ac_ext <<_ACEOF
42964 /* confdefs.h. */
42965 _ACEOF
42966 cat confdefs.h >>conftest.$ac_ext
42967 cat >>conftest.$ac_ext <<_ACEOF
42968 /* end confdefs.h. */
42969 $ac_includes_default
42970 #include <openais/saClm.h>
42971 _ACEOF
42972 rm -f conftest.$ac_objext
42973 if { (ac_try="$ac_compile"
42974 case "(($ac_try" in
42975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42976 *) ac_try_echo=$ac_try;;
42977 esac
42978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42979 (eval "$ac_compile") 2>conftest.er1
42980 ac_status=$?
42981 grep -v '^ *+' conftest.er1 >conftest.err
42982 rm -f conftest.er1
42983 cat conftest.err >&5
42984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985 (exit $ac_status); } && {
42986 test -z "$ac_c_werror_flag" ||
42987 test ! -s conftest.err
42988 } && test -s conftest.$ac_objext; then
42989 ac_header_compiler=yes
42990 else
42991 echo "$as_me: failed program was:" >&5
42992 sed 's/^/| /' conftest.$ac_ext >&5
42994 ac_header_compiler=no
42997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42999 echo "${ECHO_T}$ac_header_compiler" >&6; }
43001 # Is the header present?
43002 { echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
43003 echo $ECHO_N "checking openais/saClm.h presence... $ECHO_C" >&6; }
43004 cat >conftest.$ac_ext <<_ACEOF
43005 /* confdefs.h. */
43006 _ACEOF
43007 cat confdefs.h >>conftest.$ac_ext
43008 cat >>conftest.$ac_ext <<_ACEOF
43009 /* end confdefs.h. */
43010 #include <openais/saClm.h>
43011 _ACEOF
43012 if { (ac_try="$ac_cpp conftest.$ac_ext"
43013 case "(($ac_try" in
43014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43015 *) ac_try_echo=$ac_try;;
43016 esac
43017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43019 ac_status=$?
43020 grep -v '^ *+' conftest.er1 >conftest.err
43021 rm -f conftest.er1
43022 cat conftest.err >&5
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); } >/dev/null && {
43025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43026 test ! -s conftest.err
43027 }; then
43028 ac_header_preproc=yes
43029 else
43030 echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43033 ac_header_preproc=no
43036 rm -f conftest.err conftest.$ac_ext
43037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43038 echo "${ECHO_T}$ac_header_preproc" >&6; }
43040 # So? What about this header?
43041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43042 yes:no: )
43043 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
43044 echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43045 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
43046 echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
43047 ac_header_preproc=yes
43049 no:yes:* )
43050 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
43051 echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
43052 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
43053 echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
43054 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
43055 echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
43056 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
43057 echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
43058 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
43059 echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
43060 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
43061 echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
43062 ( cat <<\_ASBOX
43063 ## ------------------------------- ##
43064 ## Report this to www.asterisk.org ##
43065 ## ------------------------------- ##
43066 _ASBOX
43067 ) | sed "s/^/$as_me: WARNING: /" >&2
43069 esac
43070 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
43071 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
43072 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
43073 echo $ECHO_N "(cached) $ECHO_C" >&6
43074 else
43075 ac_cv_header_openais_saClm_h=$ac_header_preproc
43077 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
43078 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
43081 if test $ac_cv_header_openais_saClm_h = yes; then
43082 OPENAIS_HEADER_FOUND=1
43083 else
43084 OPENAIS_HEADER_FOUND=0
43088 CPPFLAGS="${saved_cppflags}"
43090 if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
43091 OPENAIS_LIB=""
43092 OPENAIS_INCLUDE=""
43093 else
43094 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43095 OPENAIS_LIB=""
43097 PBX_OPENAIS=1
43098 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43100 cat >>confdefs.h <<_ACEOF
43101 #define HAVE_OPENAIS 1
43102 _ACEOF
43105 cat >>confdefs.h <<_ACEOF
43106 #define HAVE_OPENAIS_VERSION
43107 _ACEOF
43114 if test "${PBX_OPENAIS}" = 1; then
43115 PBX_AIS=1
43116 if test -n "${OPENAIS_DIR}"; then
43117 AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
43118 AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
43119 else
43120 AIS_INCLUDE="-I/usr/include/openais"
43121 AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais"
43130 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
43131 pbxlibdir=""
43132 # if --with-SPEEX=DIR has been specified, use it.
43133 if test "x${SPEEX_DIR}" != "x"; then
43134 if test -d ${SPEEX_DIR}/lib; then
43135 pbxlibdir="-L${SPEEX_DIR}/lib"
43136 else
43137 pbxlibdir="-L${SPEEX_DIR}"
43140 pbxfuncname="speex_encode"
43141 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43142 AST_SPEEX_FOUND=yes
43143 else
43144 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43145 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43146 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43147 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43148 echo $ECHO_N "(cached) $ECHO_C" >&6
43149 else
43150 ac_check_lib_save_LIBS=$LIBS
43151 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43152 cat >conftest.$ac_ext <<_ACEOF
43153 /* confdefs.h. */
43154 _ACEOF
43155 cat confdefs.h >>conftest.$ac_ext
43156 cat >>conftest.$ac_ext <<_ACEOF
43157 /* end confdefs.h. */
43159 /* Override any GCC internal prototype to avoid an error.
43160 Use char because int might match the return type of a GCC
43161 builtin and then its argument prototype would still apply. */
43162 #ifdef __cplusplus
43163 extern "C"
43164 #endif
43165 char ${pbxfuncname} ();
43167 main ()
43169 return ${pbxfuncname} ();
43171 return 0;
43173 _ACEOF
43174 rm -f conftest.$ac_objext conftest$ac_exeext
43175 if { (ac_try="$ac_link"
43176 case "(($ac_try" in
43177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43178 *) ac_try_echo=$ac_try;;
43179 esac
43180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43181 (eval "$ac_link") 2>conftest.er1
43182 ac_status=$?
43183 grep -v '^ *+' conftest.er1 >conftest.err
43184 rm -f conftest.er1
43185 cat conftest.err >&5
43186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187 (exit $ac_status); } && {
43188 test -z "$ac_c_werror_flag" ||
43189 test ! -s conftest.err
43190 } && test -s conftest$ac_exeext &&
43191 $as_test_x conftest$ac_exeext; then
43192 eval "$as_ac_Lib=yes"
43193 else
43194 echo "$as_me: failed program was:" >&5
43195 sed 's/^/| /' conftest.$ac_ext >&5
43197 eval "$as_ac_Lib=no"
43200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43201 conftest$ac_exeext conftest.$ac_ext
43202 LIBS=$ac_check_lib_save_LIBS
43204 ac_res=`eval echo '${'$as_ac_Lib'}'`
43205 { echo "$as_me:$LINENO: result: $ac_res" >&5
43206 echo "${ECHO_T}$ac_res" >&6; }
43207 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43208 AST_SPEEX_FOUND=yes
43209 else
43210 AST_SPEEX_FOUND=no
43215 # now check for the header.
43216 if test "${AST_SPEEX_FOUND}" = "yes"; then
43217 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
43218 # if --with-SPEEX=DIR has been specified, use it.
43219 if test "x${SPEEX_DIR}" != "x"; then
43220 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
43222 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
43223 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43224 SPEEX_HEADER_FOUND="1"
43225 else # check for the header
43226 saved_cppflags="${CPPFLAGS}"
43227 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
43228 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43229 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43230 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43231 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43232 echo $ECHO_N "(cached) $ECHO_C" >&6
43234 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43235 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43236 else
43237 # Is the header compilable?
43238 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43239 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43240 cat >conftest.$ac_ext <<_ACEOF
43241 /* confdefs.h. */
43242 _ACEOF
43243 cat confdefs.h >>conftest.$ac_ext
43244 cat >>conftest.$ac_ext <<_ACEOF
43245 /* end confdefs.h. */
43246 $ac_includes_default
43247 #include <speex/speex.h>
43248 _ACEOF
43249 rm -f conftest.$ac_objext
43250 if { (ac_try="$ac_compile"
43251 case "(($ac_try" in
43252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43253 *) ac_try_echo=$ac_try;;
43254 esac
43255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43256 (eval "$ac_compile") 2>conftest.er1
43257 ac_status=$?
43258 grep -v '^ *+' conftest.er1 >conftest.err
43259 rm -f conftest.er1
43260 cat conftest.err >&5
43261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262 (exit $ac_status); } && {
43263 test -z "$ac_c_werror_flag" ||
43264 test ! -s conftest.err
43265 } && test -s conftest.$ac_objext; then
43266 ac_header_compiler=yes
43267 else
43268 echo "$as_me: failed program was:" >&5
43269 sed 's/^/| /' conftest.$ac_ext >&5
43271 ac_header_compiler=no
43274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43276 echo "${ECHO_T}$ac_header_compiler" >&6; }
43278 # Is the header present?
43279 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43280 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43281 cat >conftest.$ac_ext <<_ACEOF
43282 /* confdefs.h. */
43283 _ACEOF
43284 cat confdefs.h >>conftest.$ac_ext
43285 cat >>conftest.$ac_ext <<_ACEOF
43286 /* end confdefs.h. */
43287 #include <speex/speex.h>
43288 _ACEOF
43289 if { (ac_try="$ac_cpp conftest.$ac_ext"
43290 case "(($ac_try" in
43291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43292 *) ac_try_echo=$ac_try;;
43293 esac
43294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43296 ac_status=$?
43297 grep -v '^ *+' conftest.er1 >conftest.err
43298 rm -f conftest.er1
43299 cat conftest.err >&5
43300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 (exit $ac_status); } >/dev/null && {
43302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43303 test ! -s conftest.err
43304 }; then
43305 ac_header_preproc=yes
43306 else
43307 echo "$as_me: failed program was:" >&5
43308 sed 's/^/| /' conftest.$ac_ext >&5
43310 ac_header_preproc=no
43313 rm -f conftest.err conftest.$ac_ext
43314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43315 echo "${ECHO_T}$ac_header_preproc" >&6; }
43317 # So? What about this header?
43318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43319 yes:no: )
43320 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43321 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43322 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43323 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43324 ac_header_preproc=yes
43326 no:yes:* )
43327 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43328 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43329 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43330 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43331 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43332 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43333 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43334 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43335 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43336 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43337 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43338 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43339 ( cat <<\_ASBOX
43340 ## ------------------------------- ##
43341 ## Report this to www.asterisk.org ##
43342 ## ------------------------------- ##
43343 _ASBOX
43344 ) | sed "s/^/$as_me: WARNING: /" >&2
43346 esac
43347 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43348 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43349 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43350 echo $ECHO_N "(cached) $ECHO_C" >&6
43351 else
43352 ac_cv_header_speex_speex_h=$ac_header_preproc
43354 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43355 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43358 if test $ac_cv_header_speex_speex_h = yes; then
43359 SPEEX_HEADER_FOUND=1
43360 else
43361 SPEEX_HEADER_FOUND=0
43365 CPPFLAGS="${saved_cppflags}"
43367 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
43368 SPEEX_LIB=""
43369 SPEEX_INCLUDE=""
43370 else
43371 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43372 SPEEX_LIB=""
43374 PBX_SPEEX=1
43375 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43377 cat >>confdefs.h <<_ACEOF
43378 #define HAVE_SPEEX 1
43379 _ACEOF
43382 cat >>confdefs.h <<_ACEOF
43383 #define HAVE_SPEEX_VERSION
43384 _ACEOF
43391 # See if the main speex library contains the preprocess functions
43393 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
43394 pbxlibdir=""
43395 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43396 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43397 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
43398 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
43399 else
43400 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
43403 pbxfuncname="speex_preprocess_ctl"
43404 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43405 AST_SPEEX_PREPROCESS_FOUND=yes
43406 else
43407 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43408 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43409 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43410 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43411 echo $ECHO_N "(cached) $ECHO_C" >&6
43412 else
43413 ac_check_lib_save_LIBS=$LIBS
43414 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43415 cat >conftest.$ac_ext <<_ACEOF
43416 /* confdefs.h. */
43417 _ACEOF
43418 cat confdefs.h >>conftest.$ac_ext
43419 cat >>conftest.$ac_ext <<_ACEOF
43420 /* end confdefs.h. */
43422 /* Override any GCC internal prototype to avoid an error.
43423 Use char because int might match the return type of a GCC
43424 builtin and then its argument prototype would still apply. */
43425 #ifdef __cplusplus
43426 extern "C"
43427 #endif
43428 char ${pbxfuncname} ();
43430 main ()
43432 return ${pbxfuncname} ();
43434 return 0;
43436 _ACEOF
43437 rm -f conftest.$ac_objext conftest$ac_exeext
43438 if { (ac_try="$ac_link"
43439 case "(($ac_try" in
43440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43441 *) ac_try_echo=$ac_try;;
43442 esac
43443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43444 (eval "$ac_link") 2>conftest.er1
43445 ac_status=$?
43446 grep -v '^ *+' conftest.er1 >conftest.err
43447 rm -f conftest.er1
43448 cat conftest.err >&5
43449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43450 (exit $ac_status); } && {
43451 test -z "$ac_c_werror_flag" ||
43452 test ! -s conftest.err
43453 } && test -s conftest$ac_exeext &&
43454 $as_test_x conftest$ac_exeext; then
43455 eval "$as_ac_Lib=yes"
43456 else
43457 echo "$as_me: failed program was:" >&5
43458 sed 's/^/| /' conftest.$ac_ext >&5
43460 eval "$as_ac_Lib=no"
43463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43464 conftest$ac_exeext conftest.$ac_ext
43465 LIBS=$ac_check_lib_save_LIBS
43467 ac_res=`eval echo '${'$as_ac_Lib'}'`
43468 { echo "$as_me:$LINENO: result: $ac_res" >&5
43469 echo "${ECHO_T}$ac_res" >&6; }
43470 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43471 AST_SPEEX_PREPROCESS_FOUND=yes
43472 else
43473 AST_SPEEX_PREPROCESS_FOUND=no
43478 # now check for the header.
43479 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
43480 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
43481 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43482 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43483 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
43485 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
43486 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43487 SPEEX_PREPROCESS_HEADER_FOUND="1"
43488 else # check for the header
43489 saved_cppflags="${CPPFLAGS}"
43490 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
43491 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43492 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43493 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43494 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43495 echo $ECHO_N "(cached) $ECHO_C" >&6
43497 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43498 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43499 else
43500 # Is the header compilable?
43501 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43502 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43503 cat >conftest.$ac_ext <<_ACEOF
43504 /* confdefs.h. */
43505 _ACEOF
43506 cat confdefs.h >>conftest.$ac_ext
43507 cat >>conftest.$ac_ext <<_ACEOF
43508 /* end confdefs.h. */
43509 $ac_includes_default
43510 #include <speex/speex.h>
43511 _ACEOF
43512 rm -f conftest.$ac_objext
43513 if { (ac_try="$ac_compile"
43514 case "(($ac_try" in
43515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43516 *) ac_try_echo=$ac_try;;
43517 esac
43518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43519 (eval "$ac_compile") 2>conftest.er1
43520 ac_status=$?
43521 grep -v '^ *+' conftest.er1 >conftest.err
43522 rm -f conftest.er1
43523 cat conftest.err >&5
43524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525 (exit $ac_status); } && {
43526 test -z "$ac_c_werror_flag" ||
43527 test ! -s conftest.err
43528 } && test -s conftest.$ac_objext; then
43529 ac_header_compiler=yes
43530 else
43531 echo "$as_me: failed program was:" >&5
43532 sed 's/^/| /' conftest.$ac_ext >&5
43534 ac_header_compiler=no
43537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43539 echo "${ECHO_T}$ac_header_compiler" >&6; }
43541 # Is the header present?
43542 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43543 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43544 cat >conftest.$ac_ext <<_ACEOF
43545 /* confdefs.h. */
43546 _ACEOF
43547 cat confdefs.h >>conftest.$ac_ext
43548 cat >>conftest.$ac_ext <<_ACEOF
43549 /* end confdefs.h. */
43550 #include <speex/speex.h>
43551 _ACEOF
43552 if { (ac_try="$ac_cpp conftest.$ac_ext"
43553 case "(($ac_try" in
43554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43555 *) ac_try_echo=$ac_try;;
43556 esac
43557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43559 ac_status=$?
43560 grep -v '^ *+' conftest.er1 >conftest.err
43561 rm -f conftest.er1
43562 cat conftest.err >&5
43563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43564 (exit $ac_status); } >/dev/null && {
43565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43566 test ! -s conftest.err
43567 }; then
43568 ac_header_preproc=yes
43569 else
43570 echo "$as_me: failed program was:" >&5
43571 sed 's/^/| /' conftest.$ac_ext >&5
43573 ac_header_preproc=no
43576 rm -f conftest.err conftest.$ac_ext
43577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43578 echo "${ECHO_T}$ac_header_preproc" >&6; }
43580 # So? What about this header?
43581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43582 yes:no: )
43583 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43584 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43585 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43586 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43587 ac_header_preproc=yes
43589 no:yes:* )
43590 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43591 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43592 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43593 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43594 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43595 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43596 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43597 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43598 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43599 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43600 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43601 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43602 ( cat <<\_ASBOX
43603 ## ------------------------------- ##
43604 ## Report this to www.asterisk.org ##
43605 ## ------------------------------- ##
43606 _ASBOX
43607 ) | sed "s/^/$as_me: WARNING: /" >&2
43609 esac
43610 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43611 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43612 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43613 echo $ECHO_N "(cached) $ECHO_C" >&6
43614 else
43615 ac_cv_header_speex_speex_h=$ac_header_preproc
43617 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43618 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43621 if test $ac_cv_header_speex_speex_h = yes; then
43622 SPEEX_PREPROCESS_HEADER_FOUND=1
43623 else
43624 SPEEX_PREPROCESS_HEADER_FOUND=0
43628 CPPFLAGS="${saved_cppflags}"
43630 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
43631 SPEEX_PREPROCESS_LIB=""
43632 SPEEX_PREPROCESS_INCLUDE=""
43633 else
43634 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43635 SPEEX_PREPROCESS_LIB=""
43637 PBX_SPEEX_PREPROCESS=1
43638 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43640 cat >>confdefs.h <<_ACEOF
43641 #define HAVE_SPEEX_PREPROCESS 1
43642 _ACEOF
43645 cat >>confdefs.h <<_ACEOF
43646 #define HAVE_SPEEX_PREPROCESS_VERSION
43647 _ACEOF
43653 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
43654 PBX_SPEEX_PREPROCESS=1
43658 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
43659 pbxlibdir=""
43660 # if --with-SPEEXDSP=DIR has been specified, use it.
43661 if test "x${SPEEXDSP_DIR}" != "x"; then
43662 if test -d ${SPEEXDSP_DIR}/lib; then
43663 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
43664 else
43665 pbxlibdir="-L${SPEEXDSP_DIR}"
43668 pbxfuncname="speex_preprocess_ctl"
43669 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43670 AST_SPEEXDSP_FOUND=yes
43671 else
43672 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
43673 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
43674 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
43675 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43676 echo $ECHO_N "(cached) $ECHO_C" >&6
43677 else
43678 ac_check_lib_save_LIBS=$LIBS
43679 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
43680 cat >conftest.$ac_ext <<_ACEOF
43681 /* confdefs.h. */
43682 _ACEOF
43683 cat confdefs.h >>conftest.$ac_ext
43684 cat >>conftest.$ac_ext <<_ACEOF
43685 /* end confdefs.h. */
43687 /* Override any GCC internal prototype to avoid an error.
43688 Use char because int might match the return type of a GCC
43689 builtin and then its argument prototype would still apply. */
43690 #ifdef __cplusplus
43691 extern "C"
43692 #endif
43693 char ${pbxfuncname} ();
43695 main ()
43697 return ${pbxfuncname} ();
43699 return 0;
43701 _ACEOF
43702 rm -f conftest.$ac_objext conftest$ac_exeext
43703 if { (ac_try="$ac_link"
43704 case "(($ac_try" in
43705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43706 *) ac_try_echo=$ac_try;;
43707 esac
43708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43709 (eval "$ac_link") 2>conftest.er1
43710 ac_status=$?
43711 grep -v '^ *+' conftest.er1 >conftest.err
43712 rm -f conftest.er1
43713 cat conftest.err >&5
43714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715 (exit $ac_status); } && {
43716 test -z "$ac_c_werror_flag" ||
43717 test ! -s conftest.err
43718 } && test -s conftest$ac_exeext &&
43719 $as_test_x conftest$ac_exeext; then
43720 eval "$as_ac_Lib=yes"
43721 else
43722 echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43725 eval "$as_ac_Lib=no"
43728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43729 conftest$ac_exeext conftest.$ac_ext
43730 LIBS=$ac_check_lib_save_LIBS
43732 ac_res=`eval echo '${'$as_ac_Lib'}'`
43733 { echo "$as_me:$LINENO: result: $ac_res" >&5
43734 echo "${ECHO_T}$ac_res" >&6; }
43735 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43736 AST_SPEEXDSP_FOUND=yes
43737 else
43738 AST_SPEEXDSP_FOUND=no
43743 # now check for the header.
43744 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
43745 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
43746 # if --with-SPEEXDSP=DIR has been specified, use it.
43747 if test "x${SPEEXDSP_DIR}" != "x"; then
43748 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
43750 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
43751 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43752 SPEEXDSP_HEADER_FOUND="1"
43753 else # check for the header
43754 saved_cppflags="${CPPFLAGS}"
43755 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
43756 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43757 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43758 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43759 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43760 echo $ECHO_N "(cached) $ECHO_C" >&6
43762 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43763 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43764 else
43765 # Is the header compilable?
43766 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43767 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43768 cat >conftest.$ac_ext <<_ACEOF
43769 /* confdefs.h. */
43770 _ACEOF
43771 cat confdefs.h >>conftest.$ac_ext
43772 cat >>conftest.$ac_ext <<_ACEOF
43773 /* end confdefs.h. */
43774 $ac_includes_default
43775 #include <speex/speex.h>
43776 _ACEOF
43777 rm -f conftest.$ac_objext
43778 if { (ac_try="$ac_compile"
43779 case "(($ac_try" in
43780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43781 *) ac_try_echo=$ac_try;;
43782 esac
43783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43784 (eval "$ac_compile") 2>conftest.er1
43785 ac_status=$?
43786 grep -v '^ *+' conftest.er1 >conftest.err
43787 rm -f conftest.er1
43788 cat conftest.err >&5
43789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790 (exit $ac_status); } && {
43791 test -z "$ac_c_werror_flag" ||
43792 test ! -s conftest.err
43793 } && test -s conftest.$ac_objext; then
43794 ac_header_compiler=yes
43795 else
43796 echo "$as_me: failed program was:" >&5
43797 sed 's/^/| /' conftest.$ac_ext >&5
43799 ac_header_compiler=no
43802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43804 echo "${ECHO_T}$ac_header_compiler" >&6; }
43806 # Is the header present?
43807 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43808 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43809 cat >conftest.$ac_ext <<_ACEOF
43810 /* confdefs.h. */
43811 _ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h. */
43815 #include <speex/speex.h>
43816 _ACEOF
43817 if { (ac_try="$ac_cpp conftest.$ac_ext"
43818 case "(($ac_try" in
43819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43820 *) ac_try_echo=$ac_try;;
43821 esac
43822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43824 ac_status=$?
43825 grep -v '^ *+' conftest.er1 >conftest.err
43826 rm -f conftest.er1
43827 cat conftest.err >&5
43828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43829 (exit $ac_status); } >/dev/null && {
43830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43831 test ! -s conftest.err
43832 }; then
43833 ac_header_preproc=yes
43834 else
43835 echo "$as_me: failed program was:" >&5
43836 sed 's/^/| /' conftest.$ac_ext >&5
43838 ac_header_preproc=no
43841 rm -f conftest.err conftest.$ac_ext
43842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43843 echo "${ECHO_T}$ac_header_preproc" >&6; }
43845 # So? What about this header?
43846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43847 yes:no: )
43848 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43849 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43850 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43851 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43852 ac_header_preproc=yes
43854 no:yes:* )
43855 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43856 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43857 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43858 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43859 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43860 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43861 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43862 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43863 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43864 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43865 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43866 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43867 ( cat <<\_ASBOX
43868 ## ------------------------------- ##
43869 ## Report this to www.asterisk.org ##
43870 ## ------------------------------- ##
43871 _ASBOX
43872 ) | sed "s/^/$as_me: WARNING: /" >&2
43874 esac
43875 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43876 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43877 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43878 echo $ECHO_N "(cached) $ECHO_C" >&6
43879 else
43880 ac_cv_header_speex_speex_h=$ac_header_preproc
43882 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43883 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43886 if test $ac_cv_header_speex_speex_h = yes; then
43887 SPEEXDSP_HEADER_FOUND=1
43888 else
43889 SPEEXDSP_HEADER_FOUND=0
43893 CPPFLAGS="${saved_cppflags}"
43895 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
43896 SPEEXDSP_LIB=""
43897 SPEEXDSP_INCLUDE=""
43898 else
43899 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43900 SPEEXDSP_LIB=""
43902 PBX_SPEEXDSP=1
43903 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43905 cat >>confdefs.h <<_ACEOF
43906 #define HAVE_SPEEXDSP 1
43907 _ACEOF
43910 cat >>confdefs.h <<_ACEOF
43911 #define HAVE_SPEEXDSP_VERSION
43912 _ACEOF
43918 if test "${PBX_SPEEXDSP}" = 1; then
43919 PBX_SPEEX_PREPROCESS=1
43925 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
43926 pbxlibdir=""
43927 # if --with-SQLITE=DIR has been specified, use it.
43928 if test "x${SQLITE_DIR}" != "x"; then
43929 if test -d ${SQLITE_DIR}/lib; then
43930 pbxlibdir="-L${SQLITE_DIR}/lib"
43931 else
43932 pbxlibdir="-L${SQLITE_DIR}"
43935 pbxfuncname="sqlite_exec"
43936 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43937 AST_SQLITE_FOUND=yes
43938 else
43939 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
43940 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
43941 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
43942 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43943 echo $ECHO_N "(cached) $ECHO_C" >&6
43944 else
43945 ac_check_lib_save_LIBS=$LIBS
43946 LIBS="-lsqlite ${pbxlibdir} $LIBS"
43947 cat >conftest.$ac_ext <<_ACEOF
43948 /* confdefs.h. */
43949 _ACEOF
43950 cat confdefs.h >>conftest.$ac_ext
43951 cat >>conftest.$ac_ext <<_ACEOF
43952 /* end confdefs.h. */
43954 /* Override any GCC internal prototype to avoid an error.
43955 Use char because int might match the return type of a GCC
43956 builtin and then its argument prototype would still apply. */
43957 #ifdef __cplusplus
43958 extern "C"
43959 #endif
43960 char ${pbxfuncname} ();
43962 main ()
43964 return ${pbxfuncname} ();
43966 return 0;
43968 _ACEOF
43969 rm -f conftest.$ac_objext conftest$ac_exeext
43970 if { (ac_try="$ac_link"
43971 case "(($ac_try" in
43972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43973 *) ac_try_echo=$ac_try;;
43974 esac
43975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43976 (eval "$ac_link") 2>conftest.er1
43977 ac_status=$?
43978 grep -v '^ *+' conftest.er1 >conftest.err
43979 rm -f conftest.er1
43980 cat conftest.err >&5
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); } && {
43983 test -z "$ac_c_werror_flag" ||
43984 test ! -s conftest.err
43985 } && test -s conftest$ac_exeext &&
43986 $as_test_x conftest$ac_exeext; then
43987 eval "$as_ac_Lib=yes"
43988 else
43989 echo "$as_me: failed program was:" >&5
43990 sed 's/^/| /' conftest.$ac_ext >&5
43992 eval "$as_ac_Lib=no"
43995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43996 conftest$ac_exeext conftest.$ac_ext
43997 LIBS=$ac_check_lib_save_LIBS
43999 ac_res=`eval echo '${'$as_ac_Lib'}'`
44000 { echo "$as_me:$LINENO: result: $ac_res" >&5
44001 echo "${ECHO_T}$ac_res" >&6; }
44002 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44003 AST_SQLITE_FOUND=yes
44004 else
44005 AST_SQLITE_FOUND=no
44010 # now check for the header.
44011 if test "${AST_SQLITE_FOUND}" = "yes"; then
44012 SQLITE_LIB="${pbxlibdir} -lsqlite "
44013 # if --with-SQLITE=DIR has been specified, use it.
44014 if test "x${SQLITE_DIR}" != "x"; then
44015 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
44017 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
44018 if test "xsqlite.h" = "x" ; then # no header, assume found
44019 SQLITE_HEADER_FOUND="1"
44020 else # check for the header
44021 saved_cppflags="${CPPFLAGS}"
44022 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
44023 if test "${ac_cv_header_sqlite_h+set}" = set; then
44024 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
44025 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
44026 if test "${ac_cv_header_sqlite_h+set}" = set; then
44027 echo $ECHO_N "(cached) $ECHO_C" >&6
44029 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
44030 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
44031 else
44032 # Is the header compilable?
44033 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
44034 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
44035 cat >conftest.$ac_ext <<_ACEOF
44036 /* confdefs.h. */
44037 _ACEOF
44038 cat confdefs.h >>conftest.$ac_ext
44039 cat >>conftest.$ac_ext <<_ACEOF
44040 /* end confdefs.h. */
44041 $ac_includes_default
44042 #include <sqlite.h>
44043 _ACEOF
44044 rm -f conftest.$ac_objext
44045 if { (ac_try="$ac_compile"
44046 case "(($ac_try" in
44047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44048 *) ac_try_echo=$ac_try;;
44049 esac
44050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44051 (eval "$ac_compile") 2>conftest.er1
44052 ac_status=$?
44053 grep -v '^ *+' conftest.er1 >conftest.err
44054 rm -f conftest.er1
44055 cat conftest.err >&5
44056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057 (exit $ac_status); } && {
44058 test -z "$ac_c_werror_flag" ||
44059 test ! -s conftest.err
44060 } && test -s conftest.$ac_objext; then
44061 ac_header_compiler=yes
44062 else
44063 echo "$as_me: failed program was:" >&5
44064 sed 's/^/| /' conftest.$ac_ext >&5
44066 ac_header_compiler=no
44069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44071 echo "${ECHO_T}$ac_header_compiler" >&6; }
44073 # Is the header present?
44074 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
44075 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
44076 cat >conftest.$ac_ext <<_ACEOF
44077 /* confdefs.h. */
44078 _ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h. */
44082 #include <sqlite.h>
44083 _ACEOF
44084 if { (ac_try="$ac_cpp conftest.$ac_ext"
44085 case "(($ac_try" in
44086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44087 *) ac_try_echo=$ac_try;;
44088 esac
44089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44091 ac_status=$?
44092 grep -v '^ *+' conftest.er1 >conftest.err
44093 rm -f conftest.er1
44094 cat conftest.err >&5
44095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); } >/dev/null && {
44097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44098 test ! -s conftest.err
44099 }; then
44100 ac_header_preproc=yes
44101 else
44102 echo "$as_me: failed program was:" >&5
44103 sed 's/^/| /' conftest.$ac_ext >&5
44105 ac_header_preproc=no
44108 rm -f conftest.err conftest.$ac_ext
44109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44110 echo "${ECHO_T}$ac_header_preproc" >&6; }
44112 # So? What about this header?
44113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44114 yes:no: )
44115 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
44116 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44117 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
44118 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
44119 ac_header_preproc=yes
44121 no:yes:* )
44122 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
44123 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
44124 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
44125 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
44126 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
44127 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
44128 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
44129 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
44130 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
44131 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
44132 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
44133 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
44134 ( cat <<\_ASBOX
44135 ## ------------------------------- ##
44136 ## Report this to www.asterisk.org ##
44137 ## ------------------------------- ##
44138 _ASBOX
44139 ) | sed "s/^/$as_me: WARNING: /" >&2
44141 esac
44142 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
44143 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
44144 if test "${ac_cv_header_sqlite_h+set}" = set; then
44145 echo $ECHO_N "(cached) $ECHO_C" >&6
44146 else
44147 ac_cv_header_sqlite_h=$ac_header_preproc
44149 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
44150 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
44153 if test $ac_cv_header_sqlite_h = yes; then
44154 SQLITE_HEADER_FOUND=1
44155 else
44156 SQLITE_HEADER_FOUND=0
44160 CPPFLAGS="${saved_cppflags}"
44162 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
44163 SQLITE_LIB=""
44164 SQLITE_INCLUDE=""
44165 else
44166 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44167 SQLITE_LIB=""
44169 PBX_SQLITE=1
44170 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44172 cat >>confdefs.h <<_ACEOF
44173 #define HAVE_SQLITE 1
44174 _ACEOF
44177 cat >>confdefs.h <<_ACEOF
44178 #define HAVE_SQLITE_VERSION
44179 _ACEOF
44187 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
44188 pbxlibdir=""
44189 # if --with-SQLITE3=DIR has been specified, use it.
44190 if test "x${SQLITE3_DIR}" != "x"; then
44191 if test -d ${SQLITE3_DIR}/lib; then
44192 pbxlibdir="-L${SQLITE3_DIR}/lib"
44193 else
44194 pbxlibdir="-L${SQLITE3_DIR}"
44197 pbxfuncname="sqlite3_open"
44198 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44199 AST_SQLITE3_FOUND=yes
44200 else
44201 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
44202 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
44203 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
44204 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44205 echo $ECHO_N "(cached) $ECHO_C" >&6
44206 else
44207 ac_check_lib_save_LIBS=$LIBS
44208 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
44209 cat >conftest.$ac_ext <<_ACEOF
44210 /* confdefs.h. */
44211 _ACEOF
44212 cat confdefs.h >>conftest.$ac_ext
44213 cat >>conftest.$ac_ext <<_ACEOF
44214 /* end confdefs.h. */
44216 /* Override any GCC internal prototype to avoid an error.
44217 Use char because int might match the return type of a GCC
44218 builtin and then its argument prototype would still apply. */
44219 #ifdef __cplusplus
44220 extern "C"
44221 #endif
44222 char ${pbxfuncname} ();
44224 main ()
44226 return ${pbxfuncname} ();
44228 return 0;
44230 _ACEOF
44231 rm -f conftest.$ac_objext conftest$ac_exeext
44232 if { (ac_try="$ac_link"
44233 case "(($ac_try" in
44234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44235 *) ac_try_echo=$ac_try;;
44236 esac
44237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44238 (eval "$ac_link") 2>conftest.er1
44239 ac_status=$?
44240 grep -v '^ *+' conftest.er1 >conftest.err
44241 rm -f conftest.er1
44242 cat conftest.err >&5
44243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44244 (exit $ac_status); } && {
44245 test -z "$ac_c_werror_flag" ||
44246 test ! -s conftest.err
44247 } && test -s conftest$ac_exeext &&
44248 $as_test_x conftest$ac_exeext; then
44249 eval "$as_ac_Lib=yes"
44250 else
44251 echo "$as_me: failed program was:" >&5
44252 sed 's/^/| /' conftest.$ac_ext >&5
44254 eval "$as_ac_Lib=no"
44257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44258 conftest$ac_exeext conftest.$ac_ext
44259 LIBS=$ac_check_lib_save_LIBS
44261 ac_res=`eval echo '${'$as_ac_Lib'}'`
44262 { echo "$as_me:$LINENO: result: $ac_res" >&5
44263 echo "${ECHO_T}$ac_res" >&6; }
44264 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44265 AST_SQLITE3_FOUND=yes
44266 else
44267 AST_SQLITE3_FOUND=no
44272 # now check for the header.
44273 if test "${AST_SQLITE3_FOUND}" = "yes"; then
44274 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
44275 # if --with-SQLITE3=DIR has been specified, use it.
44276 if test "x${SQLITE3_DIR}" != "x"; then
44277 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
44279 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
44280 if test "xsqlite3.h" = "x" ; then # no header, assume found
44281 SQLITE3_HEADER_FOUND="1"
44282 else # check for the header
44283 saved_cppflags="${CPPFLAGS}"
44284 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
44285 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44286 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44287 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44288 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44289 echo $ECHO_N "(cached) $ECHO_C" >&6
44291 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44292 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44293 else
44294 # Is the header compilable?
44295 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
44296 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
44297 cat >conftest.$ac_ext <<_ACEOF
44298 /* confdefs.h. */
44299 _ACEOF
44300 cat confdefs.h >>conftest.$ac_ext
44301 cat >>conftest.$ac_ext <<_ACEOF
44302 /* end confdefs.h. */
44303 $ac_includes_default
44304 #include <sqlite3.h>
44305 _ACEOF
44306 rm -f conftest.$ac_objext
44307 if { (ac_try="$ac_compile"
44308 case "(($ac_try" in
44309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44310 *) ac_try_echo=$ac_try;;
44311 esac
44312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44313 (eval "$ac_compile") 2>conftest.er1
44314 ac_status=$?
44315 grep -v '^ *+' conftest.er1 >conftest.err
44316 rm -f conftest.er1
44317 cat conftest.err >&5
44318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44319 (exit $ac_status); } && {
44320 test -z "$ac_c_werror_flag" ||
44321 test ! -s conftest.err
44322 } && test -s conftest.$ac_objext; then
44323 ac_header_compiler=yes
44324 else
44325 echo "$as_me: failed program was:" >&5
44326 sed 's/^/| /' conftest.$ac_ext >&5
44328 ac_header_compiler=no
44331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44333 echo "${ECHO_T}$ac_header_compiler" >&6; }
44335 # Is the header present?
44336 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
44337 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
44338 cat >conftest.$ac_ext <<_ACEOF
44339 /* confdefs.h. */
44340 _ACEOF
44341 cat confdefs.h >>conftest.$ac_ext
44342 cat >>conftest.$ac_ext <<_ACEOF
44343 /* end confdefs.h. */
44344 #include <sqlite3.h>
44345 _ACEOF
44346 if { (ac_try="$ac_cpp conftest.$ac_ext"
44347 case "(($ac_try" in
44348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44349 *) ac_try_echo=$ac_try;;
44350 esac
44351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44353 ac_status=$?
44354 grep -v '^ *+' conftest.er1 >conftest.err
44355 rm -f conftest.er1
44356 cat conftest.err >&5
44357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358 (exit $ac_status); } >/dev/null && {
44359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44360 test ! -s conftest.err
44361 }; then
44362 ac_header_preproc=yes
44363 else
44364 echo "$as_me: failed program was:" >&5
44365 sed 's/^/| /' conftest.$ac_ext >&5
44367 ac_header_preproc=no
44370 rm -f conftest.err conftest.$ac_ext
44371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44372 echo "${ECHO_T}$ac_header_preproc" >&6; }
44374 # So? What about this header?
44375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44376 yes:no: )
44377 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
44378 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44379 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
44380 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
44381 ac_header_preproc=yes
44383 no:yes:* )
44384 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
44385 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
44386 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
44387 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
44388 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
44389 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
44390 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
44391 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
44392 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
44393 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
44394 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
44395 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
44396 ( cat <<\_ASBOX
44397 ## ------------------------------- ##
44398 ## Report this to www.asterisk.org ##
44399 ## ------------------------------- ##
44400 _ASBOX
44401 ) | sed "s/^/$as_me: WARNING: /" >&2
44403 esac
44404 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44405 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44406 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44407 echo $ECHO_N "(cached) $ECHO_C" >&6
44408 else
44409 ac_cv_header_sqlite3_h=$ac_header_preproc
44411 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44412 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44415 if test $ac_cv_header_sqlite3_h = yes; then
44416 SQLITE3_HEADER_FOUND=1
44417 else
44418 SQLITE3_HEADER_FOUND=0
44422 CPPFLAGS="${saved_cppflags}"
44424 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
44425 SQLITE3_LIB=""
44426 SQLITE3_INCLUDE=""
44427 else
44428 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44429 SQLITE3_LIB=""
44431 PBX_SQLITE3=1
44432 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44434 cat >>confdefs.h <<_ACEOF
44435 #define HAVE_SQLITE3 1
44436 _ACEOF
44439 cat >>confdefs.h <<_ACEOF
44440 #define HAVE_SQLITE3_VERSION
44441 _ACEOF
44449 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
44450 pbxlibdir=""
44451 # if --with-CRYPTO=DIR has been specified, use it.
44452 if test "x${CRYPTO_DIR}" != "x"; then
44453 if test -d ${CRYPTO_DIR}/lib; then
44454 pbxlibdir="-L${CRYPTO_DIR}/lib"
44455 else
44456 pbxlibdir="-L${CRYPTO_DIR}"
44459 pbxfuncname="AES_encrypt"
44460 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44461 AST_CRYPTO_FOUND=yes
44462 else
44463 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
44464 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
44465 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
44466 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44467 echo $ECHO_N "(cached) $ECHO_C" >&6
44468 else
44469 ac_check_lib_save_LIBS=$LIBS
44470 LIBS="-lcrypto ${pbxlibdir} $LIBS"
44471 cat >conftest.$ac_ext <<_ACEOF
44472 /* confdefs.h. */
44473 _ACEOF
44474 cat confdefs.h >>conftest.$ac_ext
44475 cat >>conftest.$ac_ext <<_ACEOF
44476 /* end confdefs.h. */
44478 /* Override any GCC internal prototype to avoid an error.
44479 Use char because int might match the return type of a GCC
44480 builtin and then its argument prototype would still apply. */
44481 #ifdef __cplusplus
44482 extern "C"
44483 #endif
44484 char ${pbxfuncname} ();
44486 main ()
44488 return ${pbxfuncname} ();
44490 return 0;
44492 _ACEOF
44493 rm -f conftest.$ac_objext conftest$ac_exeext
44494 if { (ac_try="$ac_link"
44495 case "(($ac_try" in
44496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44497 *) ac_try_echo=$ac_try;;
44498 esac
44499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44500 (eval "$ac_link") 2>conftest.er1
44501 ac_status=$?
44502 grep -v '^ *+' conftest.er1 >conftest.err
44503 rm -f conftest.er1
44504 cat conftest.err >&5
44505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44506 (exit $ac_status); } && {
44507 test -z "$ac_c_werror_flag" ||
44508 test ! -s conftest.err
44509 } && test -s conftest$ac_exeext &&
44510 $as_test_x conftest$ac_exeext; then
44511 eval "$as_ac_Lib=yes"
44512 else
44513 echo "$as_me: failed program was:" >&5
44514 sed 's/^/| /' conftest.$ac_ext >&5
44516 eval "$as_ac_Lib=no"
44519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44520 conftest$ac_exeext conftest.$ac_ext
44521 LIBS=$ac_check_lib_save_LIBS
44523 ac_res=`eval echo '${'$as_ac_Lib'}'`
44524 { echo "$as_me:$LINENO: result: $ac_res" >&5
44525 echo "${ECHO_T}$ac_res" >&6; }
44526 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44527 AST_CRYPTO_FOUND=yes
44528 else
44529 AST_CRYPTO_FOUND=no
44534 # now check for the header.
44535 if test "${AST_CRYPTO_FOUND}" = "yes"; then
44536 CRYPTO_LIB="${pbxlibdir} -lcrypto "
44537 # if --with-CRYPTO=DIR has been specified, use it.
44538 if test "x${CRYPTO_DIR}" != "x"; then
44539 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
44541 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
44542 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
44543 CRYPTO_HEADER_FOUND="1"
44544 else # check for the header
44545 saved_cppflags="${CPPFLAGS}"
44546 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
44547 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44548 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44549 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44550 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44551 echo $ECHO_N "(cached) $ECHO_C" >&6
44553 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44554 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44555 else
44556 # Is the header compilable?
44557 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
44558 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
44559 cat >conftest.$ac_ext <<_ACEOF
44560 /* confdefs.h. */
44561 _ACEOF
44562 cat confdefs.h >>conftest.$ac_ext
44563 cat >>conftest.$ac_ext <<_ACEOF
44564 /* end confdefs.h. */
44565 $ac_includes_default
44566 #include <openssl/aes.h>
44567 _ACEOF
44568 rm -f conftest.$ac_objext
44569 if { (ac_try="$ac_compile"
44570 case "(($ac_try" in
44571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44572 *) ac_try_echo=$ac_try;;
44573 esac
44574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44575 (eval "$ac_compile") 2>conftest.er1
44576 ac_status=$?
44577 grep -v '^ *+' conftest.er1 >conftest.err
44578 rm -f conftest.er1
44579 cat conftest.err >&5
44580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44581 (exit $ac_status); } && {
44582 test -z "$ac_c_werror_flag" ||
44583 test ! -s conftest.err
44584 } && test -s conftest.$ac_objext; then
44585 ac_header_compiler=yes
44586 else
44587 echo "$as_me: failed program was:" >&5
44588 sed 's/^/| /' conftest.$ac_ext >&5
44590 ac_header_compiler=no
44593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44595 echo "${ECHO_T}$ac_header_compiler" >&6; }
44597 # Is the header present?
44598 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
44599 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
44600 cat >conftest.$ac_ext <<_ACEOF
44601 /* confdefs.h. */
44602 _ACEOF
44603 cat confdefs.h >>conftest.$ac_ext
44604 cat >>conftest.$ac_ext <<_ACEOF
44605 /* end confdefs.h. */
44606 #include <openssl/aes.h>
44607 _ACEOF
44608 if { (ac_try="$ac_cpp conftest.$ac_ext"
44609 case "(($ac_try" in
44610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44611 *) ac_try_echo=$ac_try;;
44612 esac
44613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44615 ac_status=$?
44616 grep -v '^ *+' conftest.er1 >conftest.err
44617 rm -f conftest.er1
44618 cat conftest.err >&5
44619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44620 (exit $ac_status); } >/dev/null && {
44621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44622 test ! -s conftest.err
44623 }; then
44624 ac_header_preproc=yes
44625 else
44626 echo "$as_me: failed program was:" >&5
44627 sed 's/^/| /' conftest.$ac_ext >&5
44629 ac_header_preproc=no
44632 rm -f conftest.err conftest.$ac_ext
44633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44634 echo "${ECHO_T}$ac_header_preproc" >&6; }
44636 # So? What about this header?
44637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44638 yes:no: )
44639 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
44640 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44641 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
44642 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
44643 ac_header_preproc=yes
44645 no:yes:* )
44646 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
44647 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
44648 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
44649 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
44650 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
44651 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
44652 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
44653 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
44654 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
44655 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
44656 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
44657 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
44658 ( cat <<\_ASBOX
44659 ## ------------------------------- ##
44660 ## Report this to www.asterisk.org ##
44661 ## ------------------------------- ##
44662 _ASBOX
44663 ) | sed "s/^/$as_me: WARNING: /" >&2
44665 esac
44666 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44667 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44668 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44669 echo $ECHO_N "(cached) $ECHO_C" >&6
44670 else
44671 ac_cv_header_openssl_aes_h=$ac_header_preproc
44673 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44674 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44677 if test $ac_cv_header_openssl_aes_h = yes; then
44678 CRYPTO_HEADER_FOUND=1
44679 else
44680 CRYPTO_HEADER_FOUND=0
44684 CPPFLAGS="${saved_cppflags}"
44686 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
44687 CRYPTO_LIB=""
44688 CRYPTO_INCLUDE=""
44689 else
44690 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44691 CRYPTO_LIB=""
44693 PBX_CRYPTO=1
44694 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44696 cat >>confdefs.h <<_ACEOF
44697 #define HAVE_CRYPTO 1
44698 _ACEOF
44701 cat >>confdefs.h <<_ACEOF
44702 #define HAVE_CRYPTO_VERSION
44703 _ACEOF
44710 if test "$PBX_CRYPTO" = "1";
44711 then
44713 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
44714 pbxlibdir=""
44715 # if --with-OPENSSL=DIR has been specified, use it.
44716 if test "x${OPENSSL_DIR}" != "x"; then
44717 if test -d ${OPENSSL_DIR}/lib; then
44718 pbxlibdir="-L${OPENSSL_DIR}/lib"
44719 else
44720 pbxlibdir="-L${OPENSSL_DIR}"
44723 pbxfuncname="ssl2_connect"
44724 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44725 AST_OPENSSL_FOUND=yes
44726 else
44727 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
44728 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
44729 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
44730 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44731 echo $ECHO_N "(cached) $ECHO_C" >&6
44732 else
44733 ac_check_lib_save_LIBS=$LIBS
44734 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
44735 cat >conftest.$ac_ext <<_ACEOF
44736 /* confdefs.h. */
44737 _ACEOF
44738 cat confdefs.h >>conftest.$ac_ext
44739 cat >>conftest.$ac_ext <<_ACEOF
44740 /* end confdefs.h. */
44742 /* Override any GCC internal prototype to avoid an error.
44743 Use char because int might match the return type of a GCC
44744 builtin and then its argument prototype would still apply. */
44745 #ifdef __cplusplus
44746 extern "C"
44747 #endif
44748 char ${pbxfuncname} ();
44750 main ()
44752 return ${pbxfuncname} ();
44754 return 0;
44756 _ACEOF
44757 rm -f conftest.$ac_objext conftest$ac_exeext
44758 if { (ac_try="$ac_link"
44759 case "(($ac_try" in
44760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44761 *) ac_try_echo=$ac_try;;
44762 esac
44763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44764 (eval "$ac_link") 2>conftest.er1
44765 ac_status=$?
44766 grep -v '^ *+' conftest.er1 >conftest.err
44767 rm -f conftest.er1
44768 cat conftest.err >&5
44769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44770 (exit $ac_status); } && {
44771 test -z "$ac_c_werror_flag" ||
44772 test ! -s conftest.err
44773 } && test -s conftest$ac_exeext &&
44774 $as_test_x conftest$ac_exeext; then
44775 eval "$as_ac_Lib=yes"
44776 else
44777 echo "$as_me: failed program was:" >&5
44778 sed 's/^/| /' conftest.$ac_ext >&5
44780 eval "$as_ac_Lib=no"
44783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44784 conftest$ac_exeext conftest.$ac_ext
44785 LIBS=$ac_check_lib_save_LIBS
44787 ac_res=`eval echo '${'$as_ac_Lib'}'`
44788 { echo "$as_me:$LINENO: result: $ac_res" >&5
44789 echo "${ECHO_T}$ac_res" >&6; }
44790 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44791 AST_OPENSSL_FOUND=yes
44792 else
44793 AST_OPENSSL_FOUND=no
44798 # now check for the header.
44799 if test "${AST_OPENSSL_FOUND}" = "yes"; then
44800 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
44801 # if --with-OPENSSL=DIR has been specified, use it.
44802 if test "x${OPENSSL_DIR}" != "x"; then
44803 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
44805 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
44806 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
44807 OPENSSL_HEADER_FOUND="1"
44808 else # check for the header
44809 saved_cppflags="${CPPFLAGS}"
44810 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
44811 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44812 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44813 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44814 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44815 echo $ECHO_N "(cached) $ECHO_C" >&6
44817 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44818 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44819 else
44820 # Is the header compilable?
44821 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
44822 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
44823 cat >conftest.$ac_ext <<_ACEOF
44824 /* confdefs.h. */
44825 _ACEOF
44826 cat confdefs.h >>conftest.$ac_ext
44827 cat >>conftest.$ac_ext <<_ACEOF
44828 /* end confdefs.h. */
44829 $ac_includes_default
44830 #include <openssl/ssl.h>
44831 _ACEOF
44832 rm -f conftest.$ac_objext
44833 if { (ac_try="$ac_compile"
44834 case "(($ac_try" in
44835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44836 *) ac_try_echo=$ac_try;;
44837 esac
44838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44839 (eval "$ac_compile") 2>conftest.er1
44840 ac_status=$?
44841 grep -v '^ *+' conftest.er1 >conftest.err
44842 rm -f conftest.er1
44843 cat conftest.err >&5
44844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44845 (exit $ac_status); } && {
44846 test -z "$ac_c_werror_flag" ||
44847 test ! -s conftest.err
44848 } && test -s conftest.$ac_objext; then
44849 ac_header_compiler=yes
44850 else
44851 echo "$as_me: failed program was:" >&5
44852 sed 's/^/| /' conftest.$ac_ext >&5
44854 ac_header_compiler=no
44857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44859 echo "${ECHO_T}$ac_header_compiler" >&6; }
44861 # Is the header present?
44862 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
44863 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
44864 cat >conftest.$ac_ext <<_ACEOF
44865 /* confdefs.h. */
44866 _ACEOF
44867 cat confdefs.h >>conftest.$ac_ext
44868 cat >>conftest.$ac_ext <<_ACEOF
44869 /* end confdefs.h. */
44870 #include <openssl/ssl.h>
44871 _ACEOF
44872 if { (ac_try="$ac_cpp conftest.$ac_ext"
44873 case "(($ac_try" in
44874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44875 *) ac_try_echo=$ac_try;;
44876 esac
44877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44879 ac_status=$?
44880 grep -v '^ *+' conftest.er1 >conftest.err
44881 rm -f conftest.er1
44882 cat conftest.err >&5
44883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44884 (exit $ac_status); } >/dev/null && {
44885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44886 test ! -s conftest.err
44887 }; then
44888 ac_header_preproc=yes
44889 else
44890 echo "$as_me: failed program was:" >&5
44891 sed 's/^/| /' conftest.$ac_ext >&5
44893 ac_header_preproc=no
44896 rm -f conftest.err conftest.$ac_ext
44897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44898 echo "${ECHO_T}$ac_header_preproc" >&6; }
44900 # So? What about this header?
44901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44902 yes:no: )
44903 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
44904 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44905 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
44906 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
44907 ac_header_preproc=yes
44909 no:yes:* )
44910 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
44911 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
44912 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
44913 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
44914 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
44915 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
44916 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
44917 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
44918 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
44919 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
44920 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
44921 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
44922 ( cat <<\_ASBOX
44923 ## ------------------------------- ##
44924 ## Report this to www.asterisk.org ##
44925 ## ------------------------------- ##
44926 _ASBOX
44927 ) | sed "s/^/$as_me: WARNING: /" >&2
44929 esac
44930 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44931 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44932 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44933 echo $ECHO_N "(cached) $ECHO_C" >&6
44934 else
44935 ac_cv_header_openssl_ssl_h=$ac_header_preproc
44937 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44938 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44941 if test $ac_cv_header_openssl_ssl_h = yes; then
44942 OPENSSL_HEADER_FOUND=1
44943 else
44944 OPENSSL_HEADER_FOUND=0
44948 CPPFLAGS="${saved_cppflags}"
44950 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
44951 OPENSSL_LIB=""
44952 OPENSSL_INCLUDE=""
44953 else
44954 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44955 OPENSSL_LIB=""
44957 PBX_OPENSSL=1
44958 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44960 cat >>confdefs.h <<_ACEOF
44961 #define HAVE_OPENSSL 1
44962 _ACEOF
44965 cat >>confdefs.h <<_ACEOF
44966 #define HAVE_OPENSSL_VERSION
44967 _ACEOF
44975 if test "$PBX_OPENSSL" = "1";
44976 then
44978 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
44979 pbxlibdir=""
44980 # if --with-OSPTK=DIR has been specified, use it.
44981 if test "x${OSPTK_DIR}" != "x"; then
44982 if test -d ${OSPTK_DIR}/lib; then
44983 pbxlibdir="-L${OSPTK_DIR}/lib"
44984 else
44985 pbxlibdir="-L${OSPTK_DIR}"
44988 pbxfuncname="OSPPCryptoDecrypt"
44989 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44990 AST_OSPTK_FOUND=yes
44991 else
44992 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
44993 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
44994 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
44995 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44996 echo $ECHO_N "(cached) $ECHO_C" >&6
44997 else
44998 ac_check_lib_save_LIBS=$LIBS
44999 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
45000 cat >conftest.$ac_ext <<_ACEOF
45001 /* confdefs.h. */
45002 _ACEOF
45003 cat confdefs.h >>conftest.$ac_ext
45004 cat >>conftest.$ac_ext <<_ACEOF
45005 /* end confdefs.h. */
45007 /* Override any GCC internal prototype to avoid an error.
45008 Use char because int might match the return type of a GCC
45009 builtin and then its argument prototype would still apply. */
45010 #ifdef __cplusplus
45011 extern "C"
45012 #endif
45013 char ${pbxfuncname} ();
45015 main ()
45017 return ${pbxfuncname} ();
45019 return 0;
45021 _ACEOF
45022 rm -f conftest.$ac_objext conftest$ac_exeext
45023 if { (ac_try="$ac_link"
45024 case "(($ac_try" in
45025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45026 *) ac_try_echo=$ac_try;;
45027 esac
45028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45029 (eval "$ac_link") 2>conftest.er1
45030 ac_status=$?
45031 grep -v '^ *+' conftest.er1 >conftest.err
45032 rm -f conftest.er1
45033 cat conftest.err >&5
45034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035 (exit $ac_status); } && {
45036 test -z "$ac_c_werror_flag" ||
45037 test ! -s conftest.err
45038 } && test -s conftest$ac_exeext &&
45039 $as_test_x conftest$ac_exeext; then
45040 eval "$as_ac_Lib=yes"
45041 else
45042 echo "$as_me: failed program was:" >&5
45043 sed 's/^/| /' conftest.$ac_ext >&5
45045 eval "$as_ac_Lib=no"
45048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45049 conftest$ac_exeext conftest.$ac_ext
45050 LIBS=$ac_check_lib_save_LIBS
45052 ac_res=`eval echo '${'$as_ac_Lib'}'`
45053 { echo "$as_me:$LINENO: result: $ac_res" >&5
45054 echo "${ECHO_T}$ac_res" >&6; }
45055 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45056 AST_OSPTK_FOUND=yes
45057 else
45058 AST_OSPTK_FOUND=no
45063 # now check for the header.
45064 if test "${AST_OSPTK_FOUND}" = "yes"; then
45065 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
45066 # if --with-OSPTK=DIR has been specified, use it.
45067 if test "x${OSPTK_DIR}" != "x"; then
45068 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
45070 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
45071 if test "xosp/osp.h" = "x" ; then # no header, assume found
45072 OSPTK_HEADER_FOUND="1"
45073 else # check for the header
45074 saved_cppflags="${CPPFLAGS}"
45075 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
45076 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45077 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
45078 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
45079 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45080 echo $ECHO_N "(cached) $ECHO_C" >&6
45082 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
45083 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
45084 else
45085 # Is the header compilable?
45086 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
45087 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
45088 cat >conftest.$ac_ext <<_ACEOF
45089 /* confdefs.h. */
45090 _ACEOF
45091 cat confdefs.h >>conftest.$ac_ext
45092 cat >>conftest.$ac_ext <<_ACEOF
45093 /* end confdefs.h. */
45094 $ac_includes_default
45095 #include <osp/osp.h>
45096 _ACEOF
45097 rm -f conftest.$ac_objext
45098 if { (ac_try="$ac_compile"
45099 case "(($ac_try" in
45100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45101 *) ac_try_echo=$ac_try;;
45102 esac
45103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45104 (eval "$ac_compile") 2>conftest.er1
45105 ac_status=$?
45106 grep -v '^ *+' conftest.er1 >conftest.err
45107 rm -f conftest.er1
45108 cat conftest.err >&5
45109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45110 (exit $ac_status); } && {
45111 test -z "$ac_c_werror_flag" ||
45112 test ! -s conftest.err
45113 } && test -s conftest.$ac_objext; then
45114 ac_header_compiler=yes
45115 else
45116 echo "$as_me: failed program was:" >&5
45117 sed 's/^/| /' conftest.$ac_ext >&5
45119 ac_header_compiler=no
45122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45124 echo "${ECHO_T}$ac_header_compiler" >&6; }
45126 # Is the header present?
45127 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
45128 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
45129 cat >conftest.$ac_ext <<_ACEOF
45130 /* confdefs.h. */
45131 _ACEOF
45132 cat confdefs.h >>conftest.$ac_ext
45133 cat >>conftest.$ac_ext <<_ACEOF
45134 /* end confdefs.h. */
45135 #include <osp/osp.h>
45136 _ACEOF
45137 if { (ac_try="$ac_cpp conftest.$ac_ext"
45138 case "(($ac_try" in
45139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45140 *) ac_try_echo=$ac_try;;
45141 esac
45142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45144 ac_status=$?
45145 grep -v '^ *+' conftest.er1 >conftest.err
45146 rm -f conftest.er1
45147 cat conftest.err >&5
45148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45149 (exit $ac_status); } >/dev/null && {
45150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45151 test ! -s conftest.err
45152 }; then
45153 ac_header_preproc=yes
45154 else
45155 echo "$as_me: failed program was:" >&5
45156 sed 's/^/| /' conftest.$ac_ext >&5
45158 ac_header_preproc=no
45161 rm -f conftest.err conftest.$ac_ext
45162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45163 echo "${ECHO_T}$ac_header_preproc" >&6; }
45165 # So? What about this header?
45166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45167 yes:no: )
45168 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
45169 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45170 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
45171 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
45172 ac_header_preproc=yes
45174 no:yes:* )
45175 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
45176 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
45177 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
45178 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
45179 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
45180 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
45181 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
45182 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
45183 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
45184 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
45185 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
45186 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
45187 ( cat <<\_ASBOX
45188 ## ------------------------------- ##
45189 ## Report this to www.asterisk.org ##
45190 ## ------------------------------- ##
45191 _ASBOX
45192 ) | sed "s/^/$as_me: WARNING: /" >&2
45194 esac
45195 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
45196 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
45197 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45198 echo $ECHO_N "(cached) $ECHO_C" >&6
45199 else
45200 ac_cv_header_osp_osp_h=$ac_header_preproc
45202 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
45203 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
45206 if test $ac_cv_header_osp_osp_h = yes; then
45207 OSPTK_HEADER_FOUND=1
45208 else
45209 OSPTK_HEADER_FOUND=0
45213 CPPFLAGS="${saved_cppflags}"
45215 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
45216 OSPTK_LIB=""
45217 OSPTK_INCLUDE=""
45218 else
45219 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45220 OSPTK_LIB=""
45222 PBX_OSPTK=1
45223 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45225 cat >>confdefs.h <<_ACEOF
45226 #define HAVE_OSPTK 1
45227 _ACEOF
45230 cat >>confdefs.h <<_ACEOF
45231 #define HAVE_OSPTK_VERSION
45232 _ACEOF
45241 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
45242 PBX_GMIME=0
45243 if test -n "$ac_tool_prefix"; then
45244 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
45245 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
45246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45248 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
45249 echo $ECHO_N "(cached) $ECHO_C" >&6
45250 else
45251 if test -n "$CONFIG_GMIME"; then
45252 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
45253 else
45254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45255 for as_dir in $PATH
45257 IFS=$as_save_IFS
45258 test -z "$as_dir" && as_dir=.
45259 for ac_exec_ext in '' $ac_executable_extensions; do
45260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45261 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
45262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45263 break 2
45265 done
45266 done
45267 IFS=$as_save_IFS
45271 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
45272 if test -n "$CONFIG_GMIME"; then
45273 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
45274 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
45275 else
45276 { echo "$as_me:$LINENO: result: no" >&5
45277 echo "${ECHO_T}no" >&6; }
45282 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
45283 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
45284 # Extract the first word of "gmime-config", so it can be a program name with args.
45285 set dummy gmime-config; ac_word=$2
45286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45288 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
45289 echo $ECHO_N "(cached) $ECHO_C" >&6
45290 else
45291 if test -n "$ac_ct_CONFIG_GMIME"; then
45292 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
45293 else
45294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45295 for as_dir in $PATH
45297 IFS=$as_save_IFS
45298 test -z "$as_dir" && as_dir=.
45299 for ac_exec_ext in '' $ac_executable_extensions; do
45300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45301 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
45302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45303 break 2
45305 done
45306 done
45307 IFS=$as_save_IFS
45311 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
45312 if test -n "$ac_ct_CONFIG_GMIME"; then
45313 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
45314 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
45315 else
45316 { echo "$as_me:$LINENO: result: no" >&5
45317 echo "${ECHO_T}no" >&6; }
45320 if test "x$ac_ct_CONFIG_GMIME" = x; then
45321 CONFIG_GMIME="No"
45322 else
45323 case $cross_compiling:$ac_tool_warned in
45324 yes:)
45325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45326 whose name does not start with the host triplet. If you think this
45327 configuration is useful to you, please write to autoconf@gnu.org." >&5
45328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45329 whose name does not start with the host triplet. If you think this
45330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45331 ac_tool_warned=yes ;;
45332 esac
45333 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
45335 else
45336 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
45339 if test ! "x${CONFIG_GMIME}" = xNo; then
45340 if test x"" = x ; then A=--cflags ; else A="" ; fi
45341 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
45342 if test x"" = x ; then A=--libs ; else A="" ; fi
45343 GMIME_LIB=$(${CONFIG_GMIME} $A)
45344 if test x"" != x ; then
45345 saved_cppflags="${CPPFLAGS}"
45346 if test "x${GMIME_DIR}" != "x"; then
45347 GMIME_INCLUDE="-I${GMIME_DIR}/include"
45349 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
45351 saved_ldflags="${LDFLAGS}"
45352 LDFLAGS="${GMIME_LIB}"
45354 cat >conftest.$ac_ext <<_ACEOF
45355 /* confdefs.h. */
45356 _ACEOF
45357 cat confdefs.h >>conftest.$ac_ext
45358 cat >>conftest.$ac_ext <<_ACEOF
45359 /* end confdefs.h. */
45362 main ()
45367 return 0;
45369 _ACEOF
45370 rm -f conftest.$ac_objext conftest$ac_exeext
45371 if { (ac_try="$ac_link"
45372 case "(($ac_try" in
45373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45374 *) ac_try_echo=$ac_try;;
45375 esac
45376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45377 (eval "$ac_link") 2>conftest.er1
45378 ac_status=$?
45379 grep -v '^ *+' conftest.er1 >conftest.err
45380 rm -f conftest.er1
45381 cat conftest.err >&5
45382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45383 (exit $ac_status); } && {
45384 test -z "$ac_c_werror_flag" ||
45385 test ! -s conftest.err
45386 } && test -s conftest$ac_exeext &&
45387 $as_test_x conftest$ac_exeext; then
45388 PBX_GMIME=1
45390 cat >>confdefs.h <<\_ACEOF
45391 #define HAVE_GMIME 1
45392 _ACEOF
45395 else
45396 echo "$as_me: failed program was:" >&5
45397 sed 's/^/| /' conftest.$ac_ext >&5
45403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45404 conftest$ac_exeext conftest.$ac_ext
45405 CPPFLAGS="${saved_cppflags}"
45406 LDFLAGS="${saved_ldflags}"
45407 else
45408 PBX_GMIME=1
45410 cat >>confdefs.h <<\_ACEOF
45411 #define HAVE_GMIME 1
45412 _ACEOF
45420 if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
45421 pbxlibdir=""
45422 # if --with-HOARD=DIR has been specified, use it.
45423 if test "x${HOARD_DIR}" != "x"; then
45424 if test -d ${HOARD_DIR}/lib; then
45425 pbxlibdir="-L${HOARD_DIR}/lib"
45426 else
45427 pbxlibdir="-L${HOARD_DIR}"
45430 pbxfuncname="malloc"
45431 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45432 AST_HOARD_FOUND=yes
45433 else
45434 as_ac_Lib=`echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
45435 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lhoard" >&5
45436 echo $ECHO_N "checking for ${pbxfuncname} in -lhoard... $ECHO_C" >&6; }
45437 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45438 echo $ECHO_N "(cached) $ECHO_C" >&6
45439 else
45440 ac_check_lib_save_LIBS=$LIBS
45441 LIBS="-lhoard ${pbxlibdir} $LIBS"
45442 cat >conftest.$ac_ext <<_ACEOF
45443 /* confdefs.h. */
45444 _ACEOF
45445 cat confdefs.h >>conftest.$ac_ext
45446 cat >>conftest.$ac_ext <<_ACEOF
45447 /* end confdefs.h. */
45449 /* Override any GCC internal prototype to avoid an error.
45450 Use char because int might match the return type of a GCC
45451 builtin and then its argument prototype would still apply. */
45452 #ifdef __cplusplus
45453 extern "C"
45454 #endif
45455 char ${pbxfuncname} ();
45457 main ()
45459 return ${pbxfuncname} ();
45461 return 0;
45463 _ACEOF
45464 rm -f conftest.$ac_objext conftest$ac_exeext
45465 if { (ac_try="$ac_link"
45466 case "(($ac_try" in
45467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45468 *) ac_try_echo=$ac_try;;
45469 esac
45470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45471 (eval "$ac_link") 2>conftest.er1
45472 ac_status=$?
45473 grep -v '^ *+' conftest.er1 >conftest.err
45474 rm -f conftest.er1
45475 cat conftest.err >&5
45476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45477 (exit $ac_status); } && {
45478 test -z "$ac_c_werror_flag" ||
45479 test ! -s conftest.err
45480 } && test -s conftest$ac_exeext &&
45481 $as_test_x conftest$ac_exeext; then
45482 eval "$as_ac_Lib=yes"
45483 else
45484 echo "$as_me: failed program was:" >&5
45485 sed 's/^/| /' conftest.$ac_ext >&5
45487 eval "$as_ac_Lib=no"
45490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45491 conftest$ac_exeext conftest.$ac_ext
45492 LIBS=$ac_check_lib_save_LIBS
45494 ac_res=`eval echo '${'$as_ac_Lib'}'`
45495 { echo "$as_me:$LINENO: result: $ac_res" >&5
45496 echo "${ECHO_T}$ac_res" >&6; }
45497 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45498 AST_HOARD_FOUND=yes
45499 else
45500 AST_HOARD_FOUND=no
45505 # now check for the header.
45506 if test "${AST_HOARD_FOUND}" = "yes"; then
45507 HOARD_LIB="${pbxlibdir} -lhoard "
45508 # if --with-HOARD=DIR has been specified, use it.
45509 if test "x${HOARD_DIR}" != "x"; then
45510 HOARD_INCLUDE="-I${HOARD_DIR}/include"
45512 HOARD_INCLUDE="${HOARD_INCLUDE} "
45513 if test "x" = "x" ; then # no header, assume found
45514 HOARD_HEADER_FOUND="1"
45515 else # check for the header
45516 saved_cppflags="${CPPFLAGS}"
45517 CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
45518 if test "${ac_cv_header_+set}" = set; then
45519 { echo "$as_me:$LINENO: checking for " >&5
45520 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45521 if test "${ac_cv_header_+set}" = set; then
45522 echo $ECHO_N "(cached) $ECHO_C" >&6
45524 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45525 echo "${ECHO_T}$ac_cv_header_" >&6; }
45526 else
45527 # Is the header compilable?
45528 { echo "$as_me:$LINENO: checking usability" >&5
45529 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45530 cat >conftest.$ac_ext <<_ACEOF
45531 /* confdefs.h. */
45532 _ACEOF
45533 cat confdefs.h >>conftest.$ac_ext
45534 cat >>conftest.$ac_ext <<_ACEOF
45535 /* end confdefs.h. */
45536 $ac_includes_default
45537 #include <>
45538 _ACEOF
45539 rm -f conftest.$ac_objext
45540 if { (ac_try="$ac_compile"
45541 case "(($ac_try" in
45542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45543 *) ac_try_echo=$ac_try;;
45544 esac
45545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45546 (eval "$ac_compile") 2>conftest.er1
45547 ac_status=$?
45548 grep -v '^ *+' conftest.er1 >conftest.err
45549 rm -f conftest.er1
45550 cat conftest.err >&5
45551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45552 (exit $ac_status); } && {
45553 test -z "$ac_c_werror_flag" ||
45554 test ! -s conftest.err
45555 } && test -s conftest.$ac_objext; then
45556 ac_header_compiler=yes
45557 else
45558 echo "$as_me: failed program was:" >&5
45559 sed 's/^/| /' conftest.$ac_ext >&5
45561 ac_header_compiler=no
45564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45566 echo "${ECHO_T}$ac_header_compiler" >&6; }
45568 # Is the header present?
45569 { echo "$as_me:$LINENO: checking presence" >&5
45570 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45571 cat >conftest.$ac_ext <<_ACEOF
45572 /* confdefs.h. */
45573 _ACEOF
45574 cat confdefs.h >>conftest.$ac_ext
45575 cat >>conftest.$ac_ext <<_ACEOF
45576 /* end confdefs.h. */
45577 #include <>
45578 _ACEOF
45579 if { (ac_try="$ac_cpp conftest.$ac_ext"
45580 case "(($ac_try" in
45581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45582 *) ac_try_echo=$ac_try;;
45583 esac
45584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45586 ac_status=$?
45587 grep -v '^ *+' conftest.er1 >conftest.err
45588 rm -f conftest.er1
45589 cat conftest.err >&5
45590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45591 (exit $ac_status); } >/dev/null && {
45592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45593 test ! -s conftest.err
45594 }; then
45595 ac_header_preproc=yes
45596 else
45597 echo "$as_me: failed program was:" >&5
45598 sed 's/^/| /' conftest.$ac_ext >&5
45600 ac_header_preproc=no
45603 rm -f conftest.err conftest.$ac_ext
45604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45605 echo "${ECHO_T}$ac_header_preproc" >&6; }
45607 # So? What about this header?
45608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45609 yes:no: )
45610 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45611 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45612 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45613 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45614 ac_header_preproc=yes
45616 no:yes:* )
45617 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45618 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45619 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45620 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45621 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45622 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45623 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45624 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45625 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45626 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45627 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45628 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45629 ( cat <<\_ASBOX
45630 ## ------------------------------- ##
45631 ## Report this to www.asterisk.org ##
45632 ## ------------------------------- ##
45633 _ASBOX
45634 ) | sed "s/^/$as_me: WARNING: /" >&2
45636 esac
45637 { echo "$as_me:$LINENO: checking for " >&5
45638 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45639 if test "${ac_cv_header_+set}" = set; then
45640 echo $ECHO_N "(cached) $ECHO_C" >&6
45641 else
45642 ac_cv_header_=$ac_header_preproc
45644 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45645 echo "${ECHO_T}$ac_cv_header_" >&6; }
45648 if test $ac_cv_header_ = yes; then
45649 HOARD_HEADER_FOUND=1
45650 else
45651 HOARD_HEADER_FOUND=0
45655 CPPFLAGS="${saved_cppflags}"
45657 if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
45658 HOARD_LIB=""
45659 HOARD_INCLUDE=""
45660 else
45661 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45662 HOARD_LIB=""
45664 PBX_HOARD=1
45665 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45667 cat >>confdefs.h <<_ACEOF
45668 #define HAVE_HOARD 1
45669 _ACEOF
45672 cat >>confdefs.h <<_ACEOF
45673 #define HAVE_HOARD_VERSION
45674 _ACEOF
45682 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
45683 pbxlibdir=""
45684 # if --with-FREETDS=DIR has been specified, use it.
45685 if test "x${FREETDS_DIR}" != "x"; then
45686 if test -d ${FREETDS_DIR}/lib; then
45687 pbxlibdir="-L${FREETDS_DIR}/lib"
45688 else
45689 pbxlibdir="-L${FREETDS_DIR}"
45692 pbxfuncname="dbinit"
45693 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45694 AST_FREETDS_FOUND=yes
45695 else
45696 as_ac_Lib=`echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
45697 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsybdb" >&5
45698 echo $ECHO_N "checking for ${pbxfuncname} in -lsybdb... $ECHO_C" >&6; }
45699 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45700 echo $ECHO_N "(cached) $ECHO_C" >&6
45701 else
45702 ac_check_lib_save_LIBS=$LIBS
45703 LIBS="-lsybdb ${pbxlibdir} $LIBS"
45704 cat >conftest.$ac_ext <<_ACEOF
45705 /* confdefs.h. */
45706 _ACEOF
45707 cat confdefs.h >>conftest.$ac_ext
45708 cat >>conftest.$ac_ext <<_ACEOF
45709 /* end confdefs.h. */
45711 /* Override any GCC internal prototype to avoid an error.
45712 Use char because int might match the return type of a GCC
45713 builtin and then its argument prototype would still apply. */
45714 #ifdef __cplusplus
45715 extern "C"
45716 #endif
45717 char ${pbxfuncname} ();
45719 main ()
45721 return ${pbxfuncname} ();
45723 return 0;
45725 _ACEOF
45726 rm -f conftest.$ac_objext conftest$ac_exeext
45727 if { (ac_try="$ac_link"
45728 case "(($ac_try" in
45729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45730 *) ac_try_echo=$ac_try;;
45731 esac
45732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45733 (eval "$ac_link") 2>conftest.er1
45734 ac_status=$?
45735 grep -v '^ *+' conftest.er1 >conftest.err
45736 rm -f conftest.er1
45737 cat conftest.err >&5
45738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 (exit $ac_status); } && {
45740 test -z "$ac_c_werror_flag" ||
45741 test ! -s conftest.err
45742 } && test -s conftest$ac_exeext &&
45743 $as_test_x conftest$ac_exeext; then
45744 eval "$as_ac_Lib=yes"
45745 else
45746 echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45749 eval "$as_ac_Lib=no"
45752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45753 conftest$ac_exeext conftest.$ac_ext
45754 LIBS=$ac_check_lib_save_LIBS
45756 ac_res=`eval echo '${'$as_ac_Lib'}'`
45757 { echo "$as_me:$LINENO: result: $ac_res" >&5
45758 echo "${ECHO_T}$ac_res" >&6; }
45759 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45760 AST_FREETDS_FOUND=yes
45761 else
45762 AST_FREETDS_FOUND=no
45767 # now check for the header.
45768 if test "${AST_FREETDS_FOUND}" = "yes"; then
45769 FREETDS_LIB="${pbxlibdir} -lsybdb "
45770 # if --with-FREETDS=DIR has been specified, use it.
45771 if test "x${FREETDS_DIR}" != "x"; then
45772 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
45774 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
45775 if test "xsybdb.h" = "x" ; then # no header, assume found
45776 FREETDS_HEADER_FOUND="1"
45777 else # check for the header
45778 saved_cppflags="${CPPFLAGS}"
45779 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
45780 if test "${ac_cv_header_sybdb_h+set}" = set; then
45781 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45782 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45783 if test "${ac_cv_header_sybdb_h+set}" = set; then
45784 echo $ECHO_N "(cached) $ECHO_C" >&6
45786 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45787 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45788 else
45789 # Is the header compilable?
45790 { echo "$as_me:$LINENO: checking sybdb.h usability" >&5
45791 echo $ECHO_N "checking sybdb.h usability... $ECHO_C" >&6; }
45792 cat >conftest.$ac_ext <<_ACEOF
45793 /* confdefs.h. */
45794 _ACEOF
45795 cat confdefs.h >>conftest.$ac_ext
45796 cat >>conftest.$ac_ext <<_ACEOF
45797 /* end confdefs.h. */
45798 $ac_includes_default
45799 #include <sybdb.h>
45800 _ACEOF
45801 rm -f conftest.$ac_objext
45802 if { (ac_try="$ac_compile"
45803 case "(($ac_try" in
45804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45805 *) ac_try_echo=$ac_try;;
45806 esac
45807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45808 (eval "$ac_compile") 2>conftest.er1
45809 ac_status=$?
45810 grep -v '^ *+' conftest.er1 >conftest.err
45811 rm -f conftest.er1
45812 cat conftest.err >&5
45813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45814 (exit $ac_status); } && {
45815 test -z "$ac_c_werror_flag" ||
45816 test ! -s conftest.err
45817 } && test -s conftest.$ac_objext; then
45818 ac_header_compiler=yes
45819 else
45820 echo "$as_me: failed program was:" >&5
45821 sed 's/^/| /' conftest.$ac_ext >&5
45823 ac_header_compiler=no
45826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45828 echo "${ECHO_T}$ac_header_compiler" >&6; }
45830 # Is the header present?
45831 { echo "$as_me:$LINENO: checking sybdb.h presence" >&5
45832 echo $ECHO_N "checking sybdb.h presence... $ECHO_C" >&6; }
45833 cat >conftest.$ac_ext <<_ACEOF
45834 /* confdefs.h. */
45835 _ACEOF
45836 cat confdefs.h >>conftest.$ac_ext
45837 cat >>conftest.$ac_ext <<_ACEOF
45838 /* end confdefs.h. */
45839 #include <sybdb.h>
45840 _ACEOF
45841 if { (ac_try="$ac_cpp conftest.$ac_ext"
45842 case "(($ac_try" in
45843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45844 *) ac_try_echo=$ac_try;;
45845 esac
45846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45848 ac_status=$?
45849 grep -v '^ *+' conftest.er1 >conftest.err
45850 rm -f conftest.er1
45851 cat conftest.err >&5
45852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45853 (exit $ac_status); } >/dev/null && {
45854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45855 test ! -s conftest.err
45856 }; then
45857 ac_header_preproc=yes
45858 else
45859 echo "$as_me: failed program was:" >&5
45860 sed 's/^/| /' conftest.$ac_ext >&5
45862 ac_header_preproc=no
45865 rm -f conftest.err conftest.$ac_ext
45866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45867 echo "${ECHO_T}$ac_header_preproc" >&6; }
45869 # So? What about this header?
45870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45871 yes:no: )
45872 { echo "$as_me:$LINENO: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45873 echo "$as_me: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45874 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the compiler's result" >&5
45875 echo "$as_me: WARNING: sybdb.h: proceeding with the compiler's result" >&2;}
45876 ac_header_preproc=yes
45878 no:yes:* )
45879 { echo "$as_me:$LINENO: WARNING: sybdb.h: present but cannot be compiled" >&5
45880 echo "$as_me: WARNING: sybdb.h: present but cannot be compiled" >&2;}
45881 { echo "$as_me:$LINENO: WARNING: sybdb.h: check for missing prerequisite headers?" >&5
45882 echo "$as_me: WARNING: sybdb.h: check for missing prerequisite headers?" >&2;}
45883 { echo "$as_me:$LINENO: WARNING: sybdb.h: see the Autoconf documentation" >&5
45884 echo "$as_me: WARNING: sybdb.h: see the Autoconf documentation" >&2;}
45885 { echo "$as_me:$LINENO: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&5
45886 echo "$as_me: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45887 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the preprocessor's result" >&5
45888 echo "$as_me: WARNING: sybdb.h: proceeding with the preprocessor's result" >&2;}
45889 { echo "$as_me:$LINENO: WARNING: sybdb.h: in the future, the compiler will take precedence" >&5
45890 echo "$as_me: WARNING: sybdb.h: in the future, the compiler will take precedence" >&2;}
45891 ( cat <<\_ASBOX
45892 ## ------------------------------- ##
45893 ## Report this to www.asterisk.org ##
45894 ## ------------------------------- ##
45895 _ASBOX
45896 ) | sed "s/^/$as_me: WARNING: /" >&2
45898 esac
45899 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45900 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45901 if test "${ac_cv_header_sybdb_h+set}" = set; then
45902 echo $ECHO_N "(cached) $ECHO_C" >&6
45903 else
45904 ac_cv_header_sybdb_h=$ac_header_preproc
45906 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45907 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45910 if test $ac_cv_header_sybdb_h = yes; then
45911 FREETDS_HEADER_FOUND=1
45912 else
45913 FREETDS_HEADER_FOUND=0
45917 CPPFLAGS="${saved_cppflags}"
45919 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
45920 FREETDS_LIB=""
45921 FREETDS_INCLUDE=""
45922 else
45923 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45924 FREETDS_LIB=""
45926 PBX_FREETDS=1
45927 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45929 cat >>confdefs.h <<_ACEOF
45930 #define HAVE_FREETDS 1
45931 _ACEOF
45934 cat >>confdefs.h <<_ACEOF
45935 #define HAVE_FREETDS_VERSION
45936 _ACEOF
45944 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
45945 pbxlibdir=""
45946 # if --with-TERMCAP=DIR has been specified, use it.
45947 if test "x${TERMCAP_DIR}" != "x"; then
45948 if test -d ${TERMCAP_DIR}/lib; then
45949 pbxlibdir="-L${TERMCAP_DIR}/lib"
45950 else
45951 pbxlibdir="-L${TERMCAP_DIR}"
45954 pbxfuncname="tgetent"
45955 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45956 AST_TERMCAP_FOUND=yes
45957 else
45958 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
45959 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
45960 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
45961 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45962 echo $ECHO_N "(cached) $ECHO_C" >&6
45963 else
45964 ac_check_lib_save_LIBS=$LIBS
45965 LIBS="-ltermcap ${pbxlibdir} $LIBS"
45966 cat >conftest.$ac_ext <<_ACEOF
45967 /* confdefs.h. */
45968 _ACEOF
45969 cat confdefs.h >>conftest.$ac_ext
45970 cat >>conftest.$ac_ext <<_ACEOF
45971 /* end confdefs.h. */
45973 /* Override any GCC internal prototype to avoid an error.
45974 Use char because int might match the return type of a GCC
45975 builtin and then its argument prototype would still apply. */
45976 #ifdef __cplusplus
45977 extern "C"
45978 #endif
45979 char ${pbxfuncname} ();
45981 main ()
45983 return ${pbxfuncname} ();
45985 return 0;
45987 _ACEOF
45988 rm -f conftest.$ac_objext conftest$ac_exeext
45989 if { (ac_try="$ac_link"
45990 case "(($ac_try" in
45991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45992 *) ac_try_echo=$ac_try;;
45993 esac
45994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45995 (eval "$ac_link") 2>conftest.er1
45996 ac_status=$?
45997 grep -v '^ *+' conftest.er1 >conftest.err
45998 rm -f conftest.er1
45999 cat conftest.err >&5
46000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46001 (exit $ac_status); } && {
46002 test -z "$ac_c_werror_flag" ||
46003 test ! -s conftest.err
46004 } && test -s conftest$ac_exeext &&
46005 $as_test_x conftest$ac_exeext; then
46006 eval "$as_ac_Lib=yes"
46007 else
46008 echo "$as_me: failed program was:" >&5
46009 sed 's/^/| /' conftest.$ac_ext >&5
46011 eval "$as_ac_Lib=no"
46014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46015 conftest$ac_exeext conftest.$ac_ext
46016 LIBS=$ac_check_lib_save_LIBS
46018 ac_res=`eval echo '${'$as_ac_Lib'}'`
46019 { echo "$as_me:$LINENO: result: $ac_res" >&5
46020 echo "${ECHO_T}$ac_res" >&6; }
46021 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46022 AST_TERMCAP_FOUND=yes
46023 else
46024 AST_TERMCAP_FOUND=no
46029 # now check for the header.
46030 if test "${AST_TERMCAP_FOUND}" = "yes"; then
46031 TERMCAP_LIB="${pbxlibdir} -ltermcap "
46032 # if --with-TERMCAP=DIR has been specified, use it.
46033 if test "x${TERMCAP_DIR}" != "x"; then
46034 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
46036 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
46037 if test "x" = "x" ; then # no header, assume found
46038 TERMCAP_HEADER_FOUND="1"
46039 else # check for the header
46040 saved_cppflags="${CPPFLAGS}"
46041 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
46042 if test "${ac_cv_header_+set}" = set; then
46043 { echo "$as_me:$LINENO: checking for " >&5
46044 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46045 if test "${ac_cv_header_+set}" = set; then
46046 echo $ECHO_N "(cached) $ECHO_C" >&6
46048 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46049 echo "${ECHO_T}$ac_cv_header_" >&6; }
46050 else
46051 # Is the header compilable?
46052 { echo "$as_me:$LINENO: checking usability" >&5
46053 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
46054 cat >conftest.$ac_ext <<_ACEOF
46055 /* confdefs.h. */
46056 _ACEOF
46057 cat confdefs.h >>conftest.$ac_ext
46058 cat >>conftest.$ac_ext <<_ACEOF
46059 /* end confdefs.h. */
46060 $ac_includes_default
46061 #include <>
46062 _ACEOF
46063 rm -f conftest.$ac_objext
46064 if { (ac_try="$ac_compile"
46065 case "(($ac_try" in
46066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46067 *) ac_try_echo=$ac_try;;
46068 esac
46069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46070 (eval "$ac_compile") 2>conftest.er1
46071 ac_status=$?
46072 grep -v '^ *+' conftest.er1 >conftest.err
46073 rm -f conftest.er1
46074 cat conftest.err >&5
46075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46076 (exit $ac_status); } && {
46077 test -z "$ac_c_werror_flag" ||
46078 test ! -s conftest.err
46079 } && test -s conftest.$ac_objext; then
46080 ac_header_compiler=yes
46081 else
46082 echo "$as_me: failed program was:" >&5
46083 sed 's/^/| /' conftest.$ac_ext >&5
46085 ac_header_compiler=no
46088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46090 echo "${ECHO_T}$ac_header_compiler" >&6; }
46092 # Is the header present?
46093 { echo "$as_me:$LINENO: checking presence" >&5
46094 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
46095 cat >conftest.$ac_ext <<_ACEOF
46096 /* confdefs.h. */
46097 _ACEOF
46098 cat confdefs.h >>conftest.$ac_ext
46099 cat >>conftest.$ac_ext <<_ACEOF
46100 /* end confdefs.h. */
46101 #include <>
46102 _ACEOF
46103 if { (ac_try="$ac_cpp conftest.$ac_ext"
46104 case "(($ac_try" in
46105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46106 *) ac_try_echo=$ac_try;;
46107 esac
46108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46110 ac_status=$?
46111 grep -v '^ *+' conftest.er1 >conftest.err
46112 rm -f conftest.er1
46113 cat conftest.err >&5
46114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46115 (exit $ac_status); } >/dev/null && {
46116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46117 test ! -s conftest.err
46118 }; then
46119 ac_header_preproc=yes
46120 else
46121 echo "$as_me: failed program was:" >&5
46122 sed 's/^/| /' conftest.$ac_ext >&5
46124 ac_header_preproc=no
46127 rm -f conftest.err conftest.$ac_ext
46128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46129 echo "${ECHO_T}$ac_header_preproc" >&6; }
46131 # So? What about this header?
46132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46133 yes:no: )
46134 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
46135 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
46136 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
46137 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
46138 ac_header_preproc=yes
46140 no:yes:* )
46141 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
46142 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
46143 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
46144 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
46145 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
46146 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
46147 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
46148 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
46149 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
46150 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
46151 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
46152 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
46153 ( cat <<\_ASBOX
46154 ## ------------------------------- ##
46155 ## Report this to www.asterisk.org ##
46156 ## ------------------------------- ##
46157 _ASBOX
46158 ) | sed "s/^/$as_me: WARNING: /" >&2
46160 esac
46161 { echo "$as_me:$LINENO: checking for " >&5
46162 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46163 if test "${ac_cv_header_+set}" = set; then
46164 echo $ECHO_N "(cached) $ECHO_C" >&6
46165 else
46166 ac_cv_header_=$ac_header_preproc
46168 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46169 echo "${ECHO_T}$ac_cv_header_" >&6; }
46172 if test $ac_cv_header_ = yes; then
46173 TERMCAP_HEADER_FOUND=1
46174 else
46175 TERMCAP_HEADER_FOUND=0
46179 CPPFLAGS="${saved_cppflags}"
46181 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
46182 TERMCAP_LIB=""
46183 TERMCAP_INCLUDE=""
46184 else
46185 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46186 TERMCAP_LIB=""
46188 PBX_TERMCAP=1
46189 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46191 cat >>confdefs.h <<_ACEOF
46192 #define HAVE_TERMCAP 1
46193 _ACEOF
46196 cat >>confdefs.h <<_ACEOF
46197 #define HAVE_TERMCAP_VERSION
46198 _ACEOF
46206 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
46207 pbxlibdir=""
46208 # if --with-TINFO=DIR has been specified, use it.
46209 if test "x${TINFO_DIR}" != "x"; then
46210 if test -d ${TINFO_DIR}/lib; then
46211 pbxlibdir="-L${TINFO_DIR}/lib"
46212 else
46213 pbxlibdir="-L${TINFO_DIR}"
46216 pbxfuncname="tgetent"
46217 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46218 AST_TINFO_FOUND=yes
46219 else
46220 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
46221 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
46222 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
46223 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46224 echo $ECHO_N "(cached) $ECHO_C" >&6
46225 else
46226 ac_check_lib_save_LIBS=$LIBS
46227 LIBS="-ltinfo ${pbxlibdir} $LIBS"
46228 cat >conftest.$ac_ext <<_ACEOF
46229 /* confdefs.h. */
46230 _ACEOF
46231 cat confdefs.h >>conftest.$ac_ext
46232 cat >>conftest.$ac_ext <<_ACEOF
46233 /* end confdefs.h. */
46235 /* Override any GCC internal prototype to avoid an error.
46236 Use char because int might match the return type of a GCC
46237 builtin and then its argument prototype would still apply. */
46238 #ifdef __cplusplus
46239 extern "C"
46240 #endif
46241 char ${pbxfuncname} ();
46243 main ()
46245 return ${pbxfuncname} ();
46247 return 0;
46249 _ACEOF
46250 rm -f conftest.$ac_objext conftest$ac_exeext
46251 if { (ac_try="$ac_link"
46252 case "(($ac_try" in
46253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46254 *) ac_try_echo=$ac_try;;
46255 esac
46256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46257 (eval "$ac_link") 2>conftest.er1
46258 ac_status=$?
46259 grep -v '^ *+' conftest.er1 >conftest.err
46260 rm -f conftest.er1
46261 cat conftest.err >&5
46262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46263 (exit $ac_status); } && {
46264 test -z "$ac_c_werror_flag" ||
46265 test ! -s conftest.err
46266 } && test -s conftest$ac_exeext &&
46267 $as_test_x conftest$ac_exeext; then
46268 eval "$as_ac_Lib=yes"
46269 else
46270 echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46273 eval "$as_ac_Lib=no"
46276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46277 conftest$ac_exeext conftest.$ac_ext
46278 LIBS=$ac_check_lib_save_LIBS
46280 ac_res=`eval echo '${'$as_ac_Lib'}'`
46281 { echo "$as_me:$LINENO: result: $ac_res" >&5
46282 echo "${ECHO_T}$ac_res" >&6; }
46283 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46284 AST_TINFO_FOUND=yes
46285 else
46286 AST_TINFO_FOUND=no
46291 # now check for the header.
46292 if test "${AST_TINFO_FOUND}" = "yes"; then
46293 TINFO_LIB="${pbxlibdir} -ltinfo "
46294 # if --with-TINFO=DIR has been specified, use it.
46295 if test "x${TINFO_DIR}" != "x"; then
46296 TINFO_INCLUDE="-I${TINFO_DIR}/include"
46298 TINFO_INCLUDE="${TINFO_INCLUDE} "
46299 if test "x" = "x" ; then # no header, assume found
46300 TINFO_HEADER_FOUND="1"
46301 else # check for the header
46302 saved_cppflags="${CPPFLAGS}"
46303 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
46304 if test "${ac_cv_header_+set}" = set; then
46305 { echo "$as_me:$LINENO: checking for " >&5
46306 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46307 if test "${ac_cv_header_+set}" = set; then
46308 echo $ECHO_N "(cached) $ECHO_C" >&6
46310 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46311 echo "${ECHO_T}$ac_cv_header_" >&6; }
46312 else
46313 # Is the header compilable?
46314 { echo "$as_me:$LINENO: checking usability" >&5
46315 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
46316 cat >conftest.$ac_ext <<_ACEOF
46317 /* confdefs.h. */
46318 _ACEOF
46319 cat confdefs.h >>conftest.$ac_ext
46320 cat >>conftest.$ac_ext <<_ACEOF
46321 /* end confdefs.h. */
46322 $ac_includes_default
46323 #include <>
46324 _ACEOF
46325 rm -f conftest.$ac_objext
46326 if { (ac_try="$ac_compile"
46327 case "(($ac_try" in
46328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46329 *) ac_try_echo=$ac_try;;
46330 esac
46331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46332 (eval "$ac_compile") 2>conftest.er1
46333 ac_status=$?
46334 grep -v '^ *+' conftest.er1 >conftest.err
46335 rm -f conftest.er1
46336 cat conftest.err >&5
46337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338 (exit $ac_status); } && {
46339 test -z "$ac_c_werror_flag" ||
46340 test ! -s conftest.err
46341 } && test -s conftest.$ac_objext; then
46342 ac_header_compiler=yes
46343 else
46344 echo "$as_me: failed program was:" >&5
46345 sed 's/^/| /' conftest.$ac_ext >&5
46347 ac_header_compiler=no
46350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46352 echo "${ECHO_T}$ac_header_compiler" >&6; }
46354 # Is the header present?
46355 { echo "$as_me:$LINENO: checking presence" >&5
46356 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
46357 cat >conftest.$ac_ext <<_ACEOF
46358 /* confdefs.h. */
46359 _ACEOF
46360 cat confdefs.h >>conftest.$ac_ext
46361 cat >>conftest.$ac_ext <<_ACEOF
46362 /* end confdefs.h. */
46363 #include <>
46364 _ACEOF
46365 if { (ac_try="$ac_cpp conftest.$ac_ext"
46366 case "(($ac_try" in
46367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46368 *) ac_try_echo=$ac_try;;
46369 esac
46370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46372 ac_status=$?
46373 grep -v '^ *+' conftest.er1 >conftest.err
46374 rm -f conftest.er1
46375 cat conftest.err >&5
46376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46377 (exit $ac_status); } >/dev/null && {
46378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46379 test ! -s conftest.err
46380 }; then
46381 ac_header_preproc=yes
46382 else
46383 echo "$as_me: failed program was:" >&5
46384 sed 's/^/| /' conftest.$ac_ext >&5
46386 ac_header_preproc=no
46389 rm -f conftest.err conftest.$ac_ext
46390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46391 echo "${ECHO_T}$ac_header_preproc" >&6; }
46393 # So? What about this header?
46394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46395 yes:no: )
46396 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
46397 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
46398 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
46399 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
46400 ac_header_preproc=yes
46402 no:yes:* )
46403 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
46404 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
46405 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
46406 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
46407 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
46408 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
46409 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
46410 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
46411 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
46412 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
46413 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
46414 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
46415 ( cat <<\_ASBOX
46416 ## ------------------------------- ##
46417 ## Report this to www.asterisk.org ##
46418 ## ------------------------------- ##
46419 _ASBOX
46420 ) | sed "s/^/$as_me: WARNING: /" >&2
46422 esac
46423 { echo "$as_me:$LINENO: checking for " >&5
46424 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46425 if test "${ac_cv_header_+set}" = set; then
46426 echo $ECHO_N "(cached) $ECHO_C" >&6
46427 else
46428 ac_cv_header_=$ac_header_preproc
46430 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46431 echo "${ECHO_T}$ac_cv_header_" >&6; }
46434 if test $ac_cv_header_ = yes; then
46435 TINFO_HEADER_FOUND=1
46436 else
46437 TINFO_HEADER_FOUND=0
46441 CPPFLAGS="${saved_cppflags}"
46443 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
46444 TINFO_LIB=""
46445 TINFO_INCLUDE=""
46446 else
46447 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46448 TINFO_LIB=""
46450 PBX_TINFO=1
46451 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46453 cat >>confdefs.h <<_ACEOF
46454 #define HAVE_TINFO 1
46455 _ACEOF
46458 cat >>confdefs.h <<_ACEOF
46459 #define HAVE_TINFO_VERSION
46460 _ACEOF
46467 if test "${host_os}" != "linux-gnu" ; then
46468 tonezone_extra="-lm"
46472 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
46473 pbxlibdir=""
46474 # if --with-TONEZONE=DIR has been specified, use it.
46475 if test "x${TONEZONE_DIR}" != "x"; then
46476 if test -d ${TONEZONE_DIR}/lib; then
46477 pbxlibdir="-L${TONEZONE_DIR}/lib"
46478 else
46479 pbxlibdir="-L${TONEZONE_DIR}"
46482 pbxfuncname="tone_zone_find"
46483 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46484 AST_TONEZONE_FOUND=yes
46485 else
46486 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
46487 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
46488 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
46489 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46490 echo $ECHO_N "(cached) $ECHO_C" >&6
46491 else
46492 ac_check_lib_save_LIBS=$LIBS
46493 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
46494 cat >conftest.$ac_ext <<_ACEOF
46495 /* confdefs.h. */
46496 _ACEOF
46497 cat confdefs.h >>conftest.$ac_ext
46498 cat >>conftest.$ac_ext <<_ACEOF
46499 /* end confdefs.h. */
46501 /* Override any GCC internal prototype to avoid an error.
46502 Use char because int might match the return type of a GCC
46503 builtin and then its argument prototype would still apply. */
46504 #ifdef __cplusplus
46505 extern "C"
46506 #endif
46507 char ${pbxfuncname} ();
46509 main ()
46511 return ${pbxfuncname} ();
46513 return 0;
46515 _ACEOF
46516 rm -f conftest.$ac_objext conftest$ac_exeext
46517 if { (ac_try="$ac_link"
46518 case "(($ac_try" in
46519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46520 *) ac_try_echo=$ac_try;;
46521 esac
46522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46523 (eval "$ac_link") 2>conftest.er1
46524 ac_status=$?
46525 grep -v '^ *+' conftest.er1 >conftest.err
46526 rm -f conftest.er1
46527 cat conftest.err >&5
46528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46529 (exit $ac_status); } && {
46530 test -z "$ac_c_werror_flag" ||
46531 test ! -s conftest.err
46532 } && test -s conftest$ac_exeext &&
46533 $as_test_x conftest$ac_exeext; then
46534 eval "$as_ac_Lib=yes"
46535 else
46536 echo "$as_me: failed program was:" >&5
46537 sed 's/^/| /' conftest.$ac_ext >&5
46539 eval "$as_ac_Lib=no"
46542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46543 conftest$ac_exeext conftest.$ac_ext
46544 LIBS=$ac_check_lib_save_LIBS
46546 ac_res=`eval echo '${'$as_ac_Lib'}'`
46547 { echo "$as_me:$LINENO: result: $ac_res" >&5
46548 echo "${ECHO_T}$ac_res" >&6; }
46549 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46550 AST_TONEZONE_FOUND=yes
46551 else
46552 AST_TONEZONE_FOUND=no
46557 # now check for the header.
46558 if test "${AST_TONEZONE_FOUND}" = "yes"; then
46559 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
46560 # if --with-TONEZONE=DIR has been specified, use it.
46561 if test "x${TONEZONE_DIR}" != "x"; then
46562 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
46564 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
46565 if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
46566 TONEZONE_HEADER_FOUND="1"
46567 else # check for the header
46568 saved_cppflags="${CPPFLAGS}"
46569 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
46570 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46571 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46572 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46573 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46574 echo $ECHO_N "(cached) $ECHO_C" >&6
46576 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46577 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46578 else
46579 # Is the header compilable?
46580 { echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
46581 echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; }
46582 cat >conftest.$ac_ext <<_ACEOF
46583 /* confdefs.h. */
46584 _ACEOF
46585 cat confdefs.h >>conftest.$ac_ext
46586 cat >>conftest.$ac_ext <<_ACEOF
46587 /* end confdefs.h. */
46588 $ac_includes_default
46589 #include <dahdi/tonezone.h>
46590 _ACEOF
46591 rm -f conftest.$ac_objext
46592 if { (ac_try="$ac_compile"
46593 case "(($ac_try" in
46594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46595 *) ac_try_echo=$ac_try;;
46596 esac
46597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46598 (eval "$ac_compile") 2>conftest.er1
46599 ac_status=$?
46600 grep -v '^ *+' conftest.er1 >conftest.err
46601 rm -f conftest.er1
46602 cat conftest.err >&5
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); } && {
46605 test -z "$ac_c_werror_flag" ||
46606 test ! -s conftest.err
46607 } && test -s conftest.$ac_objext; then
46608 ac_header_compiler=yes
46609 else
46610 echo "$as_me: failed program was:" >&5
46611 sed 's/^/| /' conftest.$ac_ext >&5
46613 ac_header_compiler=no
46616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46618 echo "${ECHO_T}$ac_header_compiler" >&6; }
46620 # Is the header present?
46621 { echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
46622 echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; }
46623 cat >conftest.$ac_ext <<_ACEOF
46624 /* confdefs.h. */
46625 _ACEOF
46626 cat confdefs.h >>conftest.$ac_ext
46627 cat >>conftest.$ac_ext <<_ACEOF
46628 /* end confdefs.h. */
46629 #include <dahdi/tonezone.h>
46630 _ACEOF
46631 if { (ac_try="$ac_cpp conftest.$ac_ext"
46632 case "(($ac_try" in
46633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46634 *) ac_try_echo=$ac_try;;
46635 esac
46636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46638 ac_status=$?
46639 grep -v '^ *+' conftest.er1 >conftest.err
46640 rm -f conftest.er1
46641 cat conftest.err >&5
46642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643 (exit $ac_status); } >/dev/null && {
46644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46645 test ! -s conftest.err
46646 }; then
46647 ac_header_preproc=yes
46648 else
46649 echo "$as_me: failed program was:" >&5
46650 sed 's/^/| /' conftest.$ac_ext >&5
46652 ac_header_preproc=no
46655 rm -f conftest.err conftest.$ac_ext
46656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46657 echo "${ECHO_T}$ac_header_preproc" >&6; }
46659 # So? What about this header?
46660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46661 yes:no: )
46662 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
46663 echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46664 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
46665 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
46666 ac_header_preproc=yes
46668 no:yes:* )
46669 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
46670 echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
46671 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
46672 echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
46673 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
46674 echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
46675 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
46676 echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
46677 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
46678 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
46679 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
46680 echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
46681 ( cat <<\_ASBOX
46682 ## ------------------------------- ##
46683 ## Report this to www.asterisk.org ##
46684 ## ------------------------------- ##
46685 _ASBOX
46686 ) | sed "s/^/$as_me: WARNING: /" >&2
46688 esac
46689 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46690 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46691 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46692 echo $ECHO_N "(cached) $ECHO_C" >&6
46693 else
46694 ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
46696 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46697 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46700 if test $ac_cv_header_dahdi_tonezone_h = yes; then
46701 TONEZONE_HEADER_FOUND=1
46702 else
46703 TONEZONE_HEADER_FOUND=0
46707 CPPFLAGS="${saved_cppflags}"
46709 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
46710 TONEZONE_LIB=""
46711 TONEZONE_INCLUDE=""
46712 else
46713 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46714 TONEZONE_LIB=""
46716 PBX_TONEZONE=1
46717 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46719 cat >>confdefs.h <<_ACEOF
46720 #define HAVE_TONEZONE 1
46721 _ACEOF
46724 cat >>confdefs.h <<_ACEOF
46725 #define HAVE_TONEZONE_VERSION
46726 _ACEOF
46734 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
46735 pbxlibdir=""
46736 # if --with-USB=DIR has been specified, use it.
46737 if test "x${USB_DIR}" != "x"; then
46738 if test -d ${USB_DIR}/lib; then
46739 pbxlibdir="-L${USB_DIR}/lib"
46740 else
46741 pbxlibdir="-L${USB_DIR}"
46744 pbxfuncname="usb_init"
46745 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46746 AST_USB_FOUND=yes
46747 else
46748 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
46749 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
46750 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
46751 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46752 echo $ECHO_N "(cached) $ECHO_C" >&6
46753 else
46754 ac_check_lib_save_LIBS=$LIBS
46755 LIBS="-lusb ${pbxlibdir} $LIBS"
46756 cat >conftest.$ac_ext <<_ACEOF
46757 /* confdefs.h. */
46758 _ACEOF
46759 cat confdefs.h >>conftest.$ac_ext
46760 cat >>conftest.$ac_ext <<_ACEOF
46761 /* end confdefs.h. */
46763 /* Override any GCC internal prototype to avoid an error.
46764 Use char because int might match the return type of a GCC
46765 builtin and then its argument prototype would still apply. */
46766 #ifdef __cplusplus
46767 extern "C"
46768 #endif
46769 char ${pbxfuncname} ();
46771 main ()
46773 return ${pbxfuncname} ();
46775 return 0;
46777 _ACEOF
46778 rm -f conftest.$ac_objext conftest$ac_exeext
46779 if { (ac_try="$ac_link"
46780 case "(($ac_try" in
46781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46782 *) ac_try_echo=$ac_try;;
46783 esac
46784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46785 (eval "$ac_link") 2>conftest.er1
46786 ac_status=$?
46787 grep -v '^ *+' conftest.er1 >conftest.err
46788 rm -f conftest.er1
46789 cat conftest.err >&5
46790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46791 (exit $ac_status); } && {
46792 test -z "$ac_c_werror_flag" ||
46793 test ! -s conftest.err
46794 } && test -s conftest$ac_exeext &&
46795 $as_test_x conftest$ac_exeext; then
46796 eval "$as_ac_Lib=yes"
46797 else
46798 echo "$as_me: failed program was:" >&5
46799 sed 's/^/| /' conftest.$ac_ext >&5
46801 eval "$as_ac_Lib=no"
46804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46805 conftest$ac_exeext conftest.$ac_ext
46806 LIBS=$ac_check_lib_save_LIBS
46808 ac_res=`eval echo '${'$as_ac_Lib'}'`
46809 { echo "$as_me:$LINENO: result: $ac_res" >&5
46810 echo "${ECHO_T}$ac_res" >&6; }
46811 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46812 AST_USB_FOUND=yes
46813 else
46814 AST_USB_FOUND=no
46819 # now check for the header.
46820 if test "${AST_USB_FOUND}" = "yes"; then
46821 USB_LIB="${pbxlibdir} -lusb "
46822 # if --with-USB=DIR has been specified, use it.
46823 if test "x${USB_DIR}" != "x"; then
46824 USB_INCLUDE="-I${USB_DIR}/include"
46826 USB_INCLUDE="${USB_INCLUDE} "
46827 if test "xusb.h" = "x" ; then # no header, assume found
46828 USB_HEADER_FOUND="1"
46829 else # check for the header
46830 saved_cppflags="${CPPFLAGS}"
46831 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
46832 if test "${ac_cv_header_usb_h+set}" = set; then
46833 { echo "$as_me:$LINENO: checking for usb.h" >&5
46834 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46835 if test "${ac_cv_header_usb_h+set}" = set; then
46836 echo $ECHO_N "(cached) $ECHO_C" >&6
46838 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46839 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46840 else
46841 # Is the header compilable?
46842 { echo "$as_me:$LINENO: checking usb.h usability" >&5
46843 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
46844 cat >conftest.$ac_ext <<_ACEOF
46845 /* confdefs.h. */
46846 _ACEOF
46847 cat confdefs.h >>conftest.$ac_ext
46848 cat >>conftest.$ac_ext <<_ACEOF
46849 /* end confdefs.h. */
46850 $ac_includes_default
46851 #include <usb.h>
46852 _ACEOF
46853 rm -f conftest.$ac_objext
46854 if { (ac_try="$ac_compile"
46855 case "(($ac_try" in
46856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46857 *) ac_try_echo=$ac_try;;
46858 esac
46859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46860 (eval "$ac_compile") 2>conftest.er1
46861 ac_status=$?
46862 grep -v '^ *+' conftest.er1 >conftest.err
46863 rm -f conftest.er1
46864 cat conftest.err >&5
46865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46866 (exit $ac_status); } && {
46867 test -z "$ac_c_werror_flag" ||
46868 test ! -s conftest.err
46869 } && test -s conftest.$ac_objext; then
46870 ac_header_compiler=yes
46871 else
46872 echo "$as_me: failed program was:" >&5
46873 sed 's/^/| /' conftest.$ac_ext >&5
46875 ac_header_compiler=no
46878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46880 echo "${ECHO_T}$ac_header_compiler" >&6; }
46882 # Is the header present?
46883 { echo "$as_me:$LINENO: checking usb.h presence" >&5
46884 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
46885 cat >conftest.$ac_ext <<_ACEOF
46886 /* confdefs.h. */
46887 _ACEOF
46888 cat confdefs.h >>conftest.$ac_ext
46889 cat >>conftest.$ac_ext <<_ACEOF
46890 /* end confdefs.h. */
46891 #include <usb.h>
46892 _ACEOF
46893 if { (ac_try="$ac_cpp conftest.$ac_ext"
46894 case "(($ac_try" in
46895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46896 *) ac_try_echo=$ac_try;;
46897 esac
46898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46900 ac_status=$?
46901 grep -v '^ *+' conftest.er1 >conftest.err
46902 rm -f conftest.er1
46903 cat conftest.err >&5
46904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46905 (exit $ac_status); } >/dev/null && {
46906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46907 test ! -s conftest.err
46908 }; then
46909 ac_header_preproc=yes
46910 else
46911 echo "$as_me: failed program was:" >&5
46912 sed 's/^/| /' conftest.$ac_ext >&5
46914 ac_header_preproc=no
46917 rm -f conftest.err conftest.$ac_ext
46918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46919 echo "${ECHO_T}$ac_header_preproc" >&6; }
46921 # So? What about this header?
46922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46923 yes:no: )
46924 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
46925 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46926 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
46927 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
46928 ac_header_preproc=yes
46930 no:yes:* )
46931 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
46932 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
46933 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
46934 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
46935 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
46936 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
46937 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
46938 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
46939 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
46940 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
46941 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
46942 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
46943 ( cat <<\_ASBOX
46944 ## ------------------------------- ##
46945 ## Report this to www.asterisk.org ##
46946 ## ------------------------------- ##
46947 _ASBOX
46948 ) | sed "s/^/$as_me: WARNING: /" >&2
46950 esac
46951 { echo "$as_me:$LINENO: checking for usb.h" >&5
46952 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46953 if test "${ac_cv_header_usb_h+set}" = set; then
46954 echo $ECHO_N "(cached) $ECHO_C" >&6
46955 else
46956 ac_cv_header_usb_h=$ac_header_preproc
46958 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46959 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46962 if test $ac_cv_header_usb_h = yes; then
46963 USB_HEADER_FOUND=1
46964 else
46965 USB_HEADER_FOUND=0
46969 CPPFLAGS="${saved_cppflags}"
46971 if test "x${USB_HEADER_FOUND}" = "x0" ; then
46972 USB_LIB=""
46973 USB_INCLUDE=""
46974 else
46975 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46976 USB_LIB=""
46978 PBX_USB=1
46979 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46981 cat >>confdefs.h <<_ACEOF
46982 #define HAVE_USB 1
46983 _ACEOF
46986 cat >>confdefs.h <<_ACEOF
46987 #define HAVE_USB_VERSION
46988 _ACEOF
46996 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
46997 pbxlibdir=""
46998 # if --with-VORBIS=DIR has been specified, use it.
46999 if test "x${VORBIS_DIR}" != "x"; then
47000 if test -d ${VORBIS_DIR}/lib; then
47001 pbxlibdir="-L${VORBIS_DIR}/lib"
47002 else
47003 pbxlibdir="-L${VORBIS_DIR}"
47006 pbxfuncname="vorbis_info_init"
47007 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47008 AST_VORBIS_FOUND=yes
47009 else
47010 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
47011 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
47012 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
47013 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47014 echo $ECHO_N "(cached) $ECHO_C" >&6
47015 else
47016 ac_check_lib_save_LIBS=$LIBS
47017 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
47018 cat >conftest.$ac_ext <<_ACEOF
47019 /* confdefs.h. */
47020 _ACEOF
47021 cat confdefs.h >>conftest.$ac_ext
47022 cat >>conftest.$ac_ext <<_ACEOF
47023 /* end confdefs.h. */
47025 /* Override any GCC internal prototype to avoid an error.
47026 Use char because int might match the return type of a GCC
47027 builtin and then its argument prototype would still apply. */
47028 #ifdef __cplusplus
47029 extern "C"
47030 #endif
47031 char ${pbxfuncname} ();
47033 main ()
47035 return ${pbxfuncname} ();
47037 return 0;
47039 _ACEOF
47040 rm -f conftest.$ac_objext conftest$ac_exeext
47041 if { (ac_try="$ac_link"
47042 case "(($ac_try" in
47043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47044 *) ac_try_echo=$ac_try;;
47045 esac
47046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47047 (eval "$ac_link") 2>conftest.er1
47048 ac_status=$?
47049 grep -v '^ *+' conftest.er1 >conftest.err
47050 rm -f conftest.er1
47051 cat conftest.err >&5
47052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47053 (exit $ac_status); } && {
47054 test -z "$ac_c_werror_flag" ||
47055 test ! -s conftest.err
47056 } && test -s conftest$ac_exeext &&
47057 $as_test_x conftest$ac_exeext; then
47058 eval "$as_ac_Lib=yes"
47059 else
47060 echo "$as_me: failed program was:" >&5
47061 sed 's/^/| /' conftest.$ac_ext >&5
47063 eval "$as_ac_Lib=no"
47066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47067 conftest$ac_exeext conftest.$ac_ext
47068 LIBS=$ac_check_lib_save_LIBS
47070 ac_res=`eval echo '${'$as_ac_Lib'}'`
47071 { echo "$as_me:$LINENO: result: $ac_res" >&5
47072 echo "${ECHO_T}$ac_res" >&6; }
47073 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47074 AST_VORBIS_FOUND=yes
47075 else
47076 AST_VORBIS_FOUND=no
47081 # now check for the header.
47082 if test "${AST_VORBIS_FOUND}" = "yes"; then
47083 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
47084 # if --with-VORBIS=DIR has been specified, use it.
47085 if test "x${VORBIS_DIR}" != "x"; then
47086 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
47088 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
47089 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
47090 VORBIS_HEADER_FOUND="1"
47091 else # check for the header
47092 saved_cppflags="${CPPFLAGS}"
47093 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
47094 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
47095 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
47096 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
47097 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
47098 echo $ECHO_N "(cached) $ECHO_C" >&6
47100 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
47101 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
47102 else
47103 # Is the header compilable?
47104 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
47105 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
47106 cat >conftest.$ac_ext <<_ACEOF
47107 /* confdefs.h. */
47108 _ACEOF
47109 cat confdefs.h >>conftest.$ac_ext
47110 cat >>conftest.$ac_ext <<_ACEOF
47111 /* end confdefs.h. */
47112 $ac_includes_default
47113 #include <vorbis/codec.h>
47114 _ACEOF
47115 rm -f conftest.$ac_objext
47116 if { (ac_try="$ac_compile"
47117 case "(($ac_try" in
47118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47119 *) ac_try_echo=$ac_try;;
47120 esac
47121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47122 (eval "$ac_compile") 2>conftest.er1
47123 ac_status=$?
47124 grep -v '^ *+' conftest.er1 >conftest.err
47125 rm -f conftest.er1
47126 cat conftest.err >&5
47127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47128 (exit $ac_status); } && {
47129 test -z "$ac_c_werror_flag" ||
47130 test ! -s conftest.err
47131 } && test -s conftest.$ac_objext; then
47132 ac_header_compiler=yes
47133 else
47134 echo "$as_me: failed program was:" >&5
47135 sed 's/^/| /' conftest.$ac_ext >&5
47137 ac_header_compiler=no
47140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47142 echo "${ECHO_T}$ac_header_compiler" >&6; }
47144 # Is the header present?
47145 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
47146 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
47147 cat >conftest.$ac_ext <<_ACEOF
47148 /* confdefs.h. */
47149 _ACEOF
47150 cat confdefs.h >>conftest.$ac_ext
47151 cat >>conftest.$ac_ext <<_ACEOF
47152 /* end confdefs.h. */
47153 #include <vorbis/codec.h>
47154 _ACEOF
47155 if { (ac_try="$ac_cpp conftest.$ac_ext"
47156 case "(($ac_try" in
47157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47158 *) ac_try_echo=$ac_try;;
47159 esac
47160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47162 ac_status=$?
47163 grep -v '^ *+' conftest.er1 >conftest.err
47164 rm -f conftest.er1
47165 cat conftest.err >&5
47166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47167 (exit $ac_status); } >/dev/null && {
47168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47169 test ! -s conftest.err
47170 }; then
47171 ac_header_preproc=yes
47172 else
47173 echo "$as_me: failed program was:" >&5
47174 sed 's/^/| /' conftest.$ac_ext >&5
47176 ac_header_preproc=no
47179 rm -f conftest.err conftest.$ac_ext
47180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47181 echo "${ECHO_T}$ac_header_preproc" >&6; }
47183 # So? What about this header?
47184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47185 yes:no: )
47186 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
47187 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47188 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
47189 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
47190 ac_header_preproc=yes
47192 no:yes:* )
47193 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
47194 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
47195 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
47196 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
47197 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
47198 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
47199 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
47200 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
47201 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
47202 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
47203 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
47204 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
47205 ( cat <<\_ASBOX
47206 ## ------------------------------- ##
47207 ## Report this to www.asterisk.org ##
47208 ## ------------------------------- ##
47209 _ASBOX
47210 ) | sed "s/^/$as_me: WARNING: /" >&2
47212 esac
47213 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
47214 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
47215 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
47216 echo $ECHO_N "(cached) $ECHO_C" >&6
47217 else
47218 ac_cv_header_vorbis_codec_h=$ac_header_preproc
47220 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
47221 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
47224 if test $ac_cv_header_vorbis_codec_h = yes; then
47225 VORBIS_HEADER_FOUND=1
47226 else
47227 VORBIS_HEADER_FOUND=0
47231 CPPFLAGS="${saved_cppflags}"
47233 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
47234 VORBIS_LIB=""
47235 VORBIS_INCLUDE=""
47236 else
47237 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47238 VORBIS_LIB=""
47240 PBX_VORBIS=1
47241 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47243 cat >>confdefs.h <<_ACEOF
47244 #define HAVE_VORBIS 1
47245 _ACEOF
47248 cat >>confdefs.h <<_ACEOF
47249 #define HAVE_VORBIS_VERSION
47250 _ACEOF
47257 ac_ext=cpp
47258 ac_cpp='$CXXCPP $CPPFLAGS'
47259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47264 if test "${USE_VPB}" != "no"; then
47265 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
47266 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
47267 saved_libs="${LIBS}"
47268 saved_cppflags="${CPPFLAGS}"
47269 if test "x${VPB_DIR}" != "x"; then
47270 if test -d ${VPB_DIR}/lib; then
47271 vpblibdir=${VPB_DIR}/lib
47272 else
47273 vpblibdir=${VPB_DIR}
47275 LIBS="${LIBS} -L${vpblibdir}"
47276 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
47278 LIBS="${LIBS} -lvpb -lpthread"
47279 cat >conftest.$ac_ext <<_ACEOF
47281 /* confdefs.h. */
47282 _ACEOF
47283 cat confdefs.h >>conftest.$ac_ext
47284 cat >>conftest.$ac_ext <<_ACEOF
47285 /* end confdefs.h. */
47286 #include <vpbapi.h>
47288 main ()
47290 int q = vpb_open(0,0);
47292 return 0;
47295 _ACEOF
47296 rm -f conftest.$ac_objext conftest$ac_exeext
47297 if { (ac_try="$ac_link"
47298 case "(($ac_try" in
47299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47300 *) ac_try_echo=$ac_try;;
47301 esac
47302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47303 (eval "$ac_link") 2>conftest.er1
47304 ac_status=$?
47305 grep -v '^ *+' conftest.er1 >conftest.err
47306 rm -f conftest.er1
47307 cat conftest.err >&5
47308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47309 (exit $ac_status); } && {
47310 test -z "$ac_cxx_werror_flag" ||
47311 test ! -s conftest.err
47312 } && test -s conftest$ac_exeext &&
47313 $as_test_x conftest$ac_exeext; then
47314 { echo "$as_me:$LINENO: result: yes" >&5
47315 echo "${ECHO_T}yes" >&6; }
47316 ac_cv_lib_vpb_vpb_open="yes"
47318 else
47319 echo "$as_me: failed program was:" >&5
47320 sed 's/^/| /' conftest.$ac_ext >&5
47322 { echo "$as_me:$LINENO: result: no" >&5
47323 echo "${ECHO_T}no" >&6; }
47324 ac_cv_lib_vpb_vpb_open="no"
47329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47330 conftest$ac_exeext conftest.$ac_ext
47331 LIBS="${saved_libs}"
47332 CPPFLAGS="${saved_cppflags}"
47333 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
47334 VPB_LIB="-lvpb"
47335 if test "${VPB_DIR}" != ""; then
47336 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
47337 VPB_INCLUDE="-I${VPB_DIR}/include"
47339 PBX_VPB=1
47341 cat >>confdefs.h <<\_ACEOF
47342 #define HAVE_VPB 1
47343 _ACEOF
47348 ac_ext=c
47349 ac_cpp='$CPP $CPPFLAGS'
47350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47356 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
47357 pbxlibdir=""
47358 # if --with-ZLIB=DIR has been specified, use it.
47359 if test "x${ZLIB_DIR}" != "x"; then
47360 if test -d ${ZLIB_DIR}/lib; then
47361 pbxlibdir="-L${ZLIB_DIR}/lib"
47362 else
47363 pbxlibdir="-L${ZLIB_DIR}"
47366 pbxfuncname="compress"
47367 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47368 AST_ZLIB_FOUND=yes
47369 else
47370 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
47371 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
47372 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
47373 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47374 echo $ECHO_N "(cached) $ECHO_C" >&6
47375 else
47376 ac_check_lib_save_LIBS=$LIBS
47377 LIBS="-lz ${pbxlibdir} $LIBS"
47378 cat >conftest.$ac_ext <<_ACEOF
47379 /* confdefs.h. */
47380 _ACEOF
47381 cat confdefs.h >>conftest.$ac_ext
47382 cat >>conftest.$ac_ext <<_ACEOF
47383 /* end confdefs.h. */
47385 /* Override any GCC internal prototype to avoid an error.
47386 Use char because int might match the return type of a GCC
47387 builtin and then its argument prototype would still apply. */
47388 #ifdef __cplusplus
47389 extern "C"
47390 #endif
47391 char ${pbxfuncname} ();
47393 main ()
47395 return ${pbxfuncname} ();
47397 return 0;
47399 _ACEOF
47400 rm -f conftest.$ac_objext conftest$ac_exeext
47401 if { (ac_try="$ac_link"
47402 case "(($ac_try" in
47403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47404 *) ac_try_echo=$ac_try;;
47405 esac
47406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47407 (eval "$ac_link") 2>conftest.er1
47408 ac_status=$?
47409 grep -v '^ *+' conftest.er1 >conftest.err
47410 rm -f conftest.er1
47411 cat conftest.err >&5
47412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413 (exit $ac_status); } && {
47414 test -z "$ac_c_werror_flag" ||
47415 test ! -s conftest.err
47416 } && test -s conftest$ac_exeext &&
47417 $as_test_x conftest$ac_exeext; then
47418 eval "$as_ac_Lib=yes"
47419 else
47420 echo "$as_me: failed program was:" >&5
47421 sed 's/^/| /' conftest.$ac_ext >&5
47423 eval "$as_ac_Lib=no"
47426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47427 conftest$ac_exeext conftest.$ac_ext
47428 LIBS=$ac_check_lib_save_LIBS
47430 ac_res=`eval echo '${'$as_ac_Lib'}'`
47431 { echo "$as_me:$LINENO: result: $ac_res" >&5
47432 echo "${ECHO_T}$ac_res" >&6; }
47433 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47434 AST_ZLIB_FOUND=yes
47435 else
47436 AST_ZLIB_FOUND=no
47441 # now check for the header.
47442 if test "${AST_ZLIB_FOUND}" = "yes"; then
47443 ZLIB_LIB="${pbxlibdir} -lz "
47444 # if --with-ZLIB=DIR has been specified, use it.
47445 if test "x${ZLIB_DIR}" != "x"; then
47446 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
47448 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
47449 if test "xzlib.h" = "x" ; then # no header, assume found
47450 ZLIB_HEADER_FOUND="1"
47451 else # check for the header
47452 saved_cppflags="${CPPFLAGS}"
47453 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
47454 if test "${ac_cv_header_zlib_h+set}" = set; then
47455 { echo "$as_me:$LINENO: checking for zlib.h" >&5
47456 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47457 if test "${ac_cv_header_zlib_h+set}" = set; then
47458 echo $ECHO_N "(cached) $ECHO_C" >&6
47460 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47461 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47462 else
47463 # Is the header compilable?
47464 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
47465 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
47466 cat >conftest.$ac_ext <<_ACEOF
47467 /* confdefs.h. */
47468 _ACEOF
47469 cat confdefs.h >>conftest.$ac_ext
47470 cat >>conftest.$ac_ext <<_ACEOF
47471 /* end confdefs.h. */
47472 $ac_includes_default
47473 #include <zlib.h>
47474 _ACEOF
47475 rm -f conftest.$ac_objext
47476 if { (ac_try="$ac_compile"
47477 case "(($ac_try" in
47478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47479 *) ac_try_echo=$ac_try;;
47480 esac
47481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47482 (eval "$ac_compile") 2>conftest.er1
47483 ac_status=$?
47484 grep -v '^ *+' conftest.er1 >conftest.err
47485 rm -f conftest.er1
47486 cat conftest.err >&5
47487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47488 (exit $ac_status); } && {
47489 test -z "$ac_c_werror_flag" ||
47490 test ! -s conftest.err
47491 } && test -s conftest.$ac_objext; then
47492 ac_header_compiler=yes
47493 else
47494 echo "$as_me: failed program was:" >&5
47495 sed 's/^/| /' conftest.$ac_ext >&5
47497 ac_header_compiler=no
47500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47502 echo "${ECHO_T}$ac_header_compiler" >&6; }
47504 # Is the header present?
47505 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
47506 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
47507 cat >conftest.$ac_ext <<_ACEOF
47508 /* confdefs.h. */
47509 _ACEOF
47510 cat confdefs.h >>conftest.$ac_ext
47511 cat >>conftest.$ac_ext <<_ACEOF
47512 /* end confdefs.h. */
47513 #include <zlib.h>
47514 _ACEOF
47515 if { (ac_try="$ac_cpp conftest.$ac_ext"
47516 case "(($ac_try" in
47517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47518 *) ac_try_echo=$ac_try;;
47519 esac
47520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47522 ac_status=$?
47523 grep -v '^ *+' conftest.er1 >conftest.err
47524 rm -f conftest.er1
47525 cat conftest.err >&5
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); } >/dev/null && {
47528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47529 test ! -s conftest.err
47530 }; then
47531 ac_header_preproc=yes
47532 else
47533 echo "$as_me: failed program was:" >&5
47534 sed 's/^/| /' conftest.$ac_ext >&5
47536 ac_header_preproc=no
47539 rm -f conftest.err conftest.$ac_ext
47540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47541 echo "${ECHO_T}$ac_header_preproc" >&6; }
47543 # So? What about this header?
47544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47545 yes:no: )
47546 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
47547 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47548 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
47549 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
47550 ac_header_preproc=yes
47552 no:yes:* )
47553 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
47554 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
47555 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
47556 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
47557 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
47558 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
47559 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
47560 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
47561 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
47562 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
47563 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
47564 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
47565 ( cat <<\_ASBOX
47566 ## ------------------------------- ##
47567 ## Report this to www.asterisk.org ##
47568 ## ------------------------------- ##
47569 _ASBOX
47570 ) | sed "s/^/$as_me: WARNING: /" >&2
47572 esac
47573 { echo "$as_me:$LINENO: checking for zlib.h" >&5
47574 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47575 if test "${ac_cv_header_zlib_h+set}" = set; then
47576 echo $ECHO_N "(cached) $ECHO_C" >&6
47577 else
47578 ac_cv_header_zlib_h=$ac_header_preproc
47580 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47581 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47584 if test $ac_cv_header_zlib_h = yes; then
47585 ZLIB_HEADER_FOUND=1
47586 else
47587 ZLIB_HEADER_FOUND=0
47591 CPPFLAGS="${saved_cppflags}"
47593 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
47594 ZLIB_LIB=""
47595 ZLIB_INCLUDE=""
47596 else
47597 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47598 ZLIB_LIB=""
47600 PBX_ZLIB=1
47601 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47603 cat >>confdefs.h <<_ACEOF
47604 #define HAVE_ZLIB 1
47605 _ACEOF
47608 cat >>confdefs.h <<_ACEOF
47609 #define HAVE_ZLIB_VERSION
47610 _ACEOF
47617 EDITLINE_LIB=""
47618 if test "x$TERMCAP_LIB" != "x" ; then
47619 EDITLINE_LIB="$TERMCAP_LIB"
47620 elif test "x$TINFO_LIB" != "x" ; then
47621 EDITLINE_LIB="$TINFO_LIB"
47622 elif test "x$CURSES_LIB" != "x" ; then
47623 EDITLINE_LIB="$CURSES_LIB"
47624 elif test "x$NCURSES_LIB" != "x" ; then
47625 EDITLINE_LIB="$NCURSES_LIB"
47626 else
47627 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47628 echo "$as_me: error: *** termcap support not found" >&2;}
47629 { (exit 1); exit 1; }; }
47633 if test "${ac_cv_header_h323_h+set}" = set; then
47634 { echo "$as_me:$LINENO: checking for h323.h" >&5
47635 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47636 if test "${ac_cv_header_h323_h+set}" = set; then
47637 echo $ECHO_N "(cached) $ECHO_C" >&6
47639 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47640 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47641 else
47642 # Is the header compilable?
47643 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47644 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47645 cat >conftest.$ac_ext <<_ACEOF
47646 /* confdefs.h. */
47647 _ACEOF
47648 cat confdefs.h >>conftest.$ac_ext
47649 cat >>conftest.$ac_ext <<_ACEOF
47650 /* end confdefs.h. */
47651 $ac_includes_default
47652 #include <h323.h>
47653 _ACEOF
47654 rm -f conftest.$ac_objext
47655 if { (ac_try="$ac_compile"
47656 case "(($ac_try" in
47657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47658 *) ac_try_echo=$ac_try;;
47659 esac
47660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47661 (eval "$ac_compile") 2>conftest.er1
47662 ac_status=$?
47663 grep -v '^ *+' conftest.er1 >conftest.err
47664 rm -f conftest.er1
47665 cat conftest.err >&5
47666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47667 (exit $ac_status); } && {
47668 test -z "$ac_c_werror_flag" ||
47669 test ! -s conftest.err
47670 } && test -s conftest.$ac_objext; then
47671 ac_header_compiler=yes
47672 else
47673 echo "$as_me: failed program was:" >&5
47674 sed 's/^/| /' conftest.$ac_ext >&5
47676 ac_header_compiler=no
47679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47681 echo "${ECHO_T}$ac_header_compiler" >&6; }
47683 # Is the header present?
47684 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47685 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47686 cat >conftest.$ac_ext <<_ACEOF
47687 /* confdefs.h. */
47688 _ACEOF
47689 cat confdefs.h >>conftest.$ac_ext
47690 cat >>conftest.$ac_ext <<_ACEOF
47691 /* end confdefs.h. */
47692 #include <h323.h>
47693 _ACEOF
47694 if { (ac_try="$ac_cpp conftest.$ac_ext"
47695 case "(($ac_try" in
47696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47697 *) ac_try_echo=$ac_try;;
47698 esac
47699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47701 ac_status=$?
47702 grep -v '^ *+' conftest.er1 >conftest.err
47703 rm -f conftest.er1
47704 cat conftest.err >&5
47705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47706 (exit $ac_status); } >/dev/null && {
47707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47708 test ! -s conftest.err
47709 }; then
47710 ac_header_preproc=yes
47711 else
47712 echo "$as_me: failed program was:" >&5
47713 sed 's/^/| /' conftest.$ac_ext >&5
47715 ac_header_preproc=no
47718 rm -f conftest.err conftest.$ac_ext
47719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47720 echo "${ECHO_T}$ac_header_preproc" >&6; }
47722 # So? What about this header?
47723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47724 yes:no: )
47725 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47726 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47727 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47728 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47729 ac_header_preproc=yes
47731 no:yes:* )
47732 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47733 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47734 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47735 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47736 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47737 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47738 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47739 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47740 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47741 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47742 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47743 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47744 ( cat <<\_ASBOX
47745 ## ------------------------------- ##
47746 ## Report this to www.asterisk.org ##
47747 ## ------------------------------- ##
47748 _ASBOX
47749 ) | sed "s/^/$as_me: WARNING: /" >&2
47751 esac
47752 { echo "$as_me:$LINENO: checking for h323.h" >&5
47753 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47754 if test "${ac_cv_header_h323_h+set}" = set; then
47755 echo $ECHO_N "(cached) $ECHO_C" >&6
47756 else
47757 ac_cv_header_h323_h=$ac_header_preproc
47759 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47760 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47763 if test $ac_cv_header_h323_h = yes; then
47764 PBX_H323=1
47765 else
47766 PBX_H323=0
47772 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47773 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47774 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47775 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47776 echo $ECHO_N "(cached) $ECHO_C" >&6
47778 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47779 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47780 else
47781 # Is the header compilable?
47782 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47783 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47784 cat >conftest.$ac_ext <<_ACEOF
47785 /* confdefs.h. */
47786 _ACEOF
47787 cat confdefs.h >>conftest.$ac_ext
47788 cat >>conftest.$ac_ext <<_ACEOF
47789 /* end confdefs.h. */
47790 $ac_includes_default
47791 #include <linux/compiler.h>
47792 _ACEOF
47793 rm -f conftest.$ac_objext
47794 if { (ac_try="$ac_compile"
47795 case "(($ac_try" in
47796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47797 *) ac_try_echo=$ac_try;;
47798 esac
47799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47800 (eval "$ac_compile") 2>conftest.er1
47801 ac_status=$?
47802 grep -v '^ *+' conftest.er1 >conftest.err
47803 rm -f conftest.er1
47804 cat conftest.err >&5
47805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806 (exit $ac_status); } && {
47807 test -z "$ac_c_werror_flag" ||
47808 test ! -s conftest.err
47809 } && test -s conftest.$ac_objext; then
47810 ac_header_compiler=yes
47811 else
47812 echo "$as_me: failed program was:" >&5
47813 sed 's/^/| /' conftest.$ac_ext >&5
47815 ac_header_compiler=no
47818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47820 echo "${ECHO_T}$ac_header_compiler" >&6; }
47822 # Is the header present?
47823 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47824 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47825 cat >conftest.$ac_ext <<_ACEOF
47826 /* confdefs.h. */
47827 _ACEOF
47828 cat confdefs.h >>conftest.$ac_ext
47829 cat >>conftest.$ac_ext <<_ACEOF
47830 /* end confdefs.h. */
47831 #include <linux/compiler.h>
47832 _ACEOF
47833 if { (ac_try="$ac_cpp conftest.$ac_ext"
47834 case "(($ac_try" in
47835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47836 *) ac_try_echo=$ac_try;;
47837 esac
47838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47840 ac_status=$?
47841 grep -v '^ *+' conftest.er1 >conftest.err
47842 rm -f conftest.er1
47843 cat conftest.err >&5
47844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47845 (exit $ac_status); } >/dev/null && {
47846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47847 test ! -s conftest.err
47848 }; then
47849 ac_header_preproc=yes
47850 else
47851 echo "$as_me: failed program was:" >&5
47852 sed 's/^/| /' conftest.$ac_ext >&5
47854 ac_header_preproc=no
47857 rm -f conftest.err conftest.$ac_ext
47858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47859 echo "${ECHO_T}$ac_header_preproc" >&6; }
47861 # So? What about this header?
47862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47863 yes:no: )
47864 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47865 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47866 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47867 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47868 ac_header_preproc=yes
47870 no:yes:* )
47871 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47872 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47873 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47874 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47875 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47876 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47877 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47878 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47879 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47880 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47881 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47882 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47883 ( cat <<\_ASBOX
47884 ## ------------------------------- ##
47885 ## Report this to www.asterisk.org ##
47886 ## ------------------------------- ##
47887 _ASBOX
47888 ) | sed "s/^/$as_me: WARNING: /" >&2
47890 esac
47891 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47892 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47893 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47894 echo $ECHO_N "(cached) $ECHO_C" >&6
47895 else
47896 ac_cv_header_linux_compiler_h=$ac_header_preproc
47898 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47899 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47902 if test $ac_cv_header_linux_compiler_h = yes; then
47904 cat >>confdefs.h <<_ACEOF
47905 #define HAVE_LINUX_COMPILER_H 1
47906 _ACEOF
47912 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47913 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47914 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47915 echo $ECHO_N "(cached) $ECHO_C" >&6
47916 else
47917 cat >conftest.$ac_ext <<_ACEOF
47918 /* confdefs.h. */
47919 _ACEOF
47920 cat confdefs.h >>conftest.$ac_ext
47921 cat >>conftest.$ac_ext <<_ACEOF
47922 /* end confdefs.h. */
47924 #include <linux/version.h>
47925 #ifdef HAVE_LINUX_COMPILER_H
47926 #include <linux/compiler.h>
47927 #endif
47930 #include <linux/ixjuser.h>
47931 _ACEOF
47932 rm -f conftest.$ac_objext
47933 if { (ac_try="$ac_compile"
47934 case "(($ac_try" in
47935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47936 *) ac_try_echo=$ac_try;;
47937 esac
47938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47939 (eval "$ac_compile") 2>conftest.er1
47940 ac_status=$?
47941 grep -v '^ *+' conftest.er1 >conftest.err
47942 rm -f conftest.er1
47943 cat conftest.err >&5
47944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47945 (exit $ac_status); } && {
47946 test -z "$ac_c_werror_flag" ||
47947 test ! -s conftest.err
47948 } && test -s conftest.$ac_objext; then
47949 ac_cv_header_linux_ixjuser_h=yes
47950 else
47951 echo "$as_me: failed program was:" >&5
47952 sed 's/^/| /' conftest.$ac_ext >&5
47954 ac_cv_header_linux_ixjuser_h=no
47957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47959 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
47960 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
47961 if test $ac_cv_header_linux_ixjuser_h = yes; then
47962 PBX_IXJUSER=1
47963 else
47964 PBX_IXJUSER=0
47971 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
47972 PBX_SDL=0
47973 if test -n "$ac_tool_prefix"; then
47974 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
47975 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
47976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47978 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
47979 echo $ECHO_N "(cached) $ECHO_C" >&6
47980 else
47981 if test -n "$CONFIG_SDL"; then
47982 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
47983 else
47984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47985 for as_dir in $PATH
47987 IFS=$as_save_IFS
47988 test -z "$as_dir" && as_dir=.
47989 for ac_exec_ext in '' $ac_executable_extensions; do
47990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47991 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
47992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47993 break 2
47995 done
47996 done
47997 IFS=$as_save_IFS
48001 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
48002 if test -n "$CONFIG_SDL"; then
48003 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
48004 echo "${ECHO_T}$CONFIG_SDL" >&6; }
48005 else
48006 { echo "$as_me:$LINENO: result: no" >&5
48007 echo "${ECHO_T}no" >&6; }
48012 if test -z "$ac_cv_prog_CONFIG_SDL"; then
48013 ac_ct_CONFIG_SDL=$CONFIG_SDL
48014 # Extract the first word of "sdl-config", so it can be a program name with args.
48015 set dummy sdl-config; ac_word=$2
48016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48018 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
48019 echo $ECHO_N "(cached) $ECHO_C" >&6
48020 else
48021 if test -n "$ac_ct_CONFIG_SDL"; then
48022 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
48023 else
48024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48025 for as_dir in $PATH
48027 IFS=$as_save_IFS
48028 test -z "$as_dir" && as_dir=.
48029 for ac_exec_ext in '' $ac_executable_extensions; do
48030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48031 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
48032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48033 break 2
48035 done
48036 done
48037 IFS=$as_save_IFS
48041 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
48042 if test -n "$ac_ct_CONFIG_SDL"; then
48043 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
48044 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
48045 else
48046 { echo "$as_me:$LINENO: result: no" >&5
48047 echo "${ECHO_T}no" >&6; }
48050 if test "x$ac_ct_CONFIG_SDL" = x; then
48051 CONFIG_SDL="No"
48052 else
48053 case $cross_compiling:$ac_tool_warned in
48054 yes:)
48055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48056 whose name does not start with the host triplet. If you think this
48057 configuration is useful to you, please write to autoconf@gnu.org." >&5
48058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48059 whose name does not start with the host triplet. If you think this
48060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48061 ac_tool_warned=yes ;;
48062 esac
48063 CONFIG_SDL=$ac_ct_CONFIG_SDL
48065 else
48066 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
48069 if test ! "x${CONFIG_SDL}" = xNo; then
48070 if test x"" = x ; then A=--cflags ; else A="" ; fi
48071 SDL_INCLUDE=$(${CONFIG_SDL} $A)
48072 if test x"" = x ; then A=--libs ; else A="" ; fi
48073 SDL_LIB=$(${CONFIG_SDL} $A)
48074 if test x"" != x ; then
48075 saved_cppflags="${CPPFLAGS}"
48076 if test "x${SDL_DIR}" != "x"; then
48077 SDL_INCLUDE="-I${SDL_DIR}/include"
48079 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
48081 saved_ldflags="${LDFLAGS}"
48082 LDFLAGS="${SDL_LIB}"
48084 cat >conftest.$ac_ext <<_ACEOF
48085 /* confdefs.h. */
48086 _ACEOF
48087 cat confdefs.h >>conftest.$ac_ext
48088 cat >>conftest.$ac_ext <<_ACEOF
48089 /* end confdefs.h. */
48092 main ()
48097 return 0;
48099 _ACEOF
48100 rm -f conftest.$ac_objext conftest$ac_exeext
48101 if { (ac_try="$ac_link"
48102 case "(($ac_try" in
48103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48104 *) ac_try_echo=$ac_try;;
48105 esac
48106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48107 (eval "$ac_link") 2>conftest.er1
48108 ac_status=$?
48109 grep -v '^ *+' conftest.er1 >conftest.err
48110 rm -f conftest.er1
48111 cat conftest.err >&5
48112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113 (exit $ac_status); } && {
48114 test -z "$ac_c_werror_flag" ||
48115 test ! -s conftest.err
48116 } && test -s conftest$ac_exeext &&
48117 $as_test_x conftest$ac_exeext; then
48118 PBX_SDL=1
48120 cat >>confdefs.h <<\_ACEOF
48121 #define HAVE_SDL 1
48122 _ACEOF
48125 else
48126 echo "$as_me: failed program was:" >&5
48127 sed 's/^/| /' conftest.$ac_ext >&5
48133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48134 conftest$ac_exeext conftest.$ac_ext
48135 CPPFLAGS="${saved_cppflags}"
48136 LDFLAGS="${saved_ldflags}"
48137 else
48138 PBX_SDL=1
48140 cat >>confdefs.h <<\_ACEOF
48141 #define HAVE_SDL 1
48142 _ACEOF
48149 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
48150 pbxlibdir=""
48151 # if --with-SDL_IMAGE=DIR has been specified, use it.
48152 if test "x${SDL_IMAGE_DIR}" != "x"; then
48153 if test -d ${SDL_IMAGE_DIR}/lib; then
48154 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
48155 else
48156 pbxlibdir="-L${SDL_IMAGE_DIR}"
48159 pbxfuncname="IMG_Load"
48160 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48161 AST_SDL_IMAGE_FOUND=yes
48162 else
48163 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
48164 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
48165 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
48166 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48167 echo $ECHO_N "(cached) $ECHO_C" >&6
48168 else
48169 ac_check_lib_save_LIBS=$LIBS
48170 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
48171 cat >conftest.$ac_ext <<_ACEOF
48172 /* confdefs.h. */
48173 _ACEOF
48174 cat confdefs.h >>conftest.$ac_ext
48175 cat >>conftest.$ac_ext <<_ACEOF
48176 /* end confdefs.h. */
48178 /* Override any GCC internal prototype to avoid an error.
48179 Use char because int might match the return type of a GCC
48180 builtin and then its argument prototype would still apply. */
48181 #ifdef __cplusplus
48182 extern "C"
48183 #endif
48184 char ${pbxfuncname} ();
48186 main ()
48188 return ${pbxfuncname} ();
48190 return 0;
48192 _ACEOF
48193 rm -f conftest.$ac_objext conftest$ac_exeext
48194 if { (ac_try="$ac_link"
48195 case "(($ac_try" in
48196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48197 *) ac_try_echo=$ac_try;;
48198 esac
48199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48200 (eval "$ac_link") 2>conftest.er1
48201 ac_status=$?
48202 grep -v '^ *+' conftest.er1 >conftest.err
48203 rm -f conftest.er1
48204 cat conftest.err >&5
48205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48206 (exit $ac_status); } && {
48207 test -z "$ac_c_werror_flag" ||
48208 test ! -s conftest.err
48209 } && test -s conftest$ac_exeext &&
48210 $as_test_x conftest$ac_exeext; then
48211 eval "$as_ac_Lib=yes"
48212 else
48213 echo "$as_me: failed program was:" >&5
48214 sed 's/^/| /' conftest.$ac_ext >&5
48216 eval "$as_ac_Lib=no"
48219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48220 conftest$ac_exeext conftest.$ac_ext
48221 LIBS=$ac_check_lib_save_LIBS
48223 ac_res=`eval echo '${'$as_ac_Lib'}'`
48224 { echo "$as_me:$LINENO: result: $ac_res" >&5
48225 echo "${ECHO_T}$ac_res" >&6; }
48226 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48227 AST_SDL_IMAGE_FOUND=yes
48228 else
48229 AST_SDL_IMAGE_FOUND=no
48234 # now check for the header.
48235 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
48236 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
48237 # if --with-SDL_IMAGE=DIR has been specified, use it.
48238 if test "x${SDL_IMAGE_DIR}" != "x"; then
48239 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
48241 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
48242 if test "xSDL_image.h" = "x" ; then # no header, assume found
48243 SDL_IMAGE_HEADER_FOUND="1"
48244 else # check for the header
48245 saved_cppflags="${CPPFLAGS}"
48246 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
48247 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48248 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48249 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48250 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48251 echo $ECHO_N "(cached) $ECHO_C" >&6
48253 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48254 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48255 else
48256 # Is the header compilable?
48257 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
48258 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
48259 cat >conftest.$ac_ext <<_ACEOF
48260 /* confdefs.h. */
48261 _ACEOF
48262 cat confdefs.h >>conftest.$ac_ext
48263 cat >>conftest.$ac_ext <<_ACEOF
48264 /* end confdefs.h. */
48265 $ac_includes_default
48266 #include <SDL_image.h>
48267 _ACEOF
48268 rm -f conftest.$ac_objext
48269 if { (ac_try="$ac_compile"
48270 case "(($ac_try" in
48271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272 *) ac_try_echo=$ac_try;;
48273 esac
48274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48275 (eval "$ac_compile") 2>conftest.er1
48276 ac_status=$?
48277 grep -v '^ *+' conftest.er1 >conftest.err
48278 rm -f conftest.er1
48279 cat conftest.err >&5
48280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); } && {
48282 test -z "$ac_c_werror_flag" ||
48283 test ! -s conftest.err
48284 } && test -s conftest.$ac_objext; then
48285 ac_header_compiler=yes
48286 else
48287 echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48290 ac_header_compiler=no
48293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48295 echo "${ECHO_T}$ac_header_compiler" >&6; }
48297 # Is the header present?
48298 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
48299 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
48300 cat >conftest.$ac_ext <<_ACEOF
48301 /* confdefs.h. */
48302 _ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h. */
48306 #include <SDL_image.h>
48307 _ACEOF
48308 if { (ac_try="$ac_cpp conftest.$ac_ext"
48309 case "(($ac_try" in
48310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48311 *) ac_try_echo=$ac_try;;
48312 esac
48313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48315 ac_status=$?
48316 grep -v '^ *+' conftest.er1 >conftest.err
48317 rm -f conftest.er1
48318 cat conftest.err >&5
48319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48320 (exit $ac_status); } >/dev/null && {
48321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48322 test ! -s conftest.err
48323 }; then
48324 ac_header_preproc=yes
48325 else
48326 echo "$as_me: failed program was:" >&5
48327 sed 's/^/| /' conftest.$ac_ext >&5
48329 ac_header_preproc=no
48332 rm -f conftest.err conftest.$ac_ext
48333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48334 echo "${ECHO_T}$ac_header_preproc" >&6; }
48336 # So? What about this header?
48337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48338 yes:no: )
48339 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
48340 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48341 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
48342 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
48343 ac_header_preproc=yes
48345 no:yes:* )
48346 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
48347 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
48348 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
48349 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
48350 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
48351 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
48352 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
48353 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
48354 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
48355 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
48356 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
48357 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
48358 ( cat <<\_ASBOX
48359 ## ------------------------------- ##
48360 ## Report this to www.asterisk.org ##
48361 ## ------------------------------- ##
48362 _ASBOX
48363 ) | sed "s/^/$as_me: WARNING: /" >&2
48365 esac
48366 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48367 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48368 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48369 echo $ECHO_N "(cached) $ECHO_C" >&6
48370 else
48371 ac_cv_header_SDL_image_h=$ac_header_preproc
48373 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48374 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48377 if test $ac_cv_header_SDL_image_h = yes; then
48378 SDL_IMAGE_HEADER_FOUND=1
48379 else
48380 SDL_IMAGE_HEADER_FOUND=0
48384 CPPFLAGS="${saved_cppflags}"
48386 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
48387 SDL_IMAGE_LIB=""
48388 SDL_IMAGE_INCLUDE=""
48389 else
48390 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48391 SDL_IMAGE_LIB=""
48393 PBX_SDL_IMAGE=1
48394 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48396 cat >>confdefs.h <<_ACEOF
48397 #define HAVE_SDL_IMAGE 1
48398 _ACEOF
48401 cat >>confdefs.h <<_ACEOF
48402 #define HAVE_SDL_IMAGE_VERSION
48403 _ACEOF
48410 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
48411 pbxlibdir=""
48412 # if --with-FFMPEG=DIR has been specified, use it.
48413 if test "x${FFMPEG_DIR}" != "x"; then
48414 if test -d ${FFMPEG_DIR}/lib; then
48415 pbxlibdir="-L${FFMPEG_DIR}/lib"
48416 else
48417 pbxlibdir="-L${FFMPEG_DIR}"
48420 pbxfuncname="sws_getContext"
48421 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48422 AST_FFMPEG_FOUND=yes
48423 else
48424 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
48425 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
48426 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
48427 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48428 echo $ECHO_N "(cached) $ECHO_C" >&6
48429 else
48430 ac_check_lib_save_LIBS=$LIBS
48431 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
48432 cat >conftest.$ac_ext <<_ACEOF
48433 /* confdefs.h. */
48434 _ACEOF
48435 cat confdefs.h >>conftest.$ac_ext
48436 cat >>conftest.$ac_ext <<_ACEOF
48437 /* end confdefs.h. */
48439 /* Override any GCC internal prototype to avoid an error.
48440 Use char because int might match the return type of a GCC
48441 builtin and then its argument prototype would still apply. */
48442 #ifdef __cplusplus
48443 extern "C"
48444 #endif
48445 char ${pbxfuncname} ();
48447 main ()
48449 return ${pbxfuncname} ();
48451 return 0;
48453 _ACEOF
48454 rm -f conftest.$ac_objext conftest$ac_exeext
48455 if { (ac_try="$ac_link"
48456 case "(($ac_try" in
48457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48458 *) ac_try_echo=$ac_try;;
48459 esac
48460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48461 (eval "$ac_link") 2>conftest.er1
48462 ac_status=$?
48463 grep -v '^ *+' conftest.er1 >conftest.err
48464 rm -f conftest.er1
48465 cat conftest.err >&5
48466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48467 (exit $ac_status); } && {
48468 test -z "$ac_c_werror_flag" ||
48469 test ! -s conftest.err
48470 } && test -s conftest$ac_exeext &&
48471 $as_test_x conftest$ac_exeext; then
48472 eval "$as_ac_Lib=yes"
48473 else
48474 echo "$as_me: failed program was:" >&5
48475 sed 's/^/| /' conftest.$ac_ext >&5
48477 eval "$as_ac_Lib=no"
48480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48481 conftest$ac_exeext conftest.$ac_ext
48482 LIBS=$ac_check_lib_save_LIBS
48484 ac_res=`eval echo '${'$as_ac_Lib'}'`
48485 { echo "$as_me:$LINENO: result: $ac_res" >&5
48486 echo "${ECHO_T}$ac_res" >&6; }
48487 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48488 AST_FFMPEG_FOUND=yes
48489 else
48490 AST_FFMPEG_FOUND=no
48495 # now check for the header.
48496 if test "${AST_FFMPEG_FOUND}" = "yes"; then
48497 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
48498 # if --with-FFMPEG=DIR has been specified, use it.
48499 if test "x${FFMPEG_DIR}" != "x"; then
48500 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
48502 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
48503 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
48504 FFMPEG_HEADER_FOUND="1"
48505 else # check for the header
48506 saved_cppflags="${CPPFLAGS}"
48507 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
48508 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48509 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48510 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48511 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48512 echo $ECHO_N "(cached) $ECHO_C" >&6
48514 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48515 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48516 else
48517 # Is the header compilable?
48518 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
48519 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
48520 cat >conftest.$ac_ext <<_ACEOF
48521 /* confdefs.h. */
48522 _ACEOF
48523 cat confdefs.h >>conftest.$ac_ext
48524 cat >>conftest.$ac_ext <<_ACEOF
48525 /* end confdefs.h. */
48526 $ac_includes_default
48527 #include <ffmpeg/avcodec.h>
48528 _ACEOF
48529 rm -f conftest.$ac_objext
48530 if { (ac_try="$ac_compile"
48531 case "(($ac_try" in
48532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48533 *) ac_try_echo=$ac_try;;
48534 esac
48535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48536 (eval "$ac_compile") 2>conftest.er1
48537 ac_status=$?
48538 grep -v '^ *+' conftest.er1 >conftest.err
48539 rm -f conftest.er1
48540 cat conftest.err >&5
48541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48542 (exit $ac_status); } && {
48543 test -z "$ac_c_werror_flag" ||
48544 test ! -s conftest.err
48545 } && test -s conftest.$ac_objext; then
48546 ac_header_compiler=yes
48547 else
48548 echo "$as_me: failed program was:" >&5
48549 sed 's/^/| /' conftest.$ac_ext >&5
48551 ac_header_compiler=no
48554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48556 echo "${ECHO_T}$ac_header_compiler" >&6; }
48558 # Is the header present?
48559 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
48560 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
48561 cat >conftest.$ac_ext <<_ACEOF
48562 /* confdefs.h. */
48563 _ACEOF
48564 cat confdefs.h >>conftest.$ac_ext
48565 cat >>conftest.$ac_ext <<_ACEOF
48566 /* end confdefs.h. */
48567 #include <ffmpeg/avcodec.h>
48568 _ACEOF
48569 if { (ac_try="$ac_cpp conftest.$ac_ext"
48570 case "(($ac_try" in
48571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48572 *) ac_try_echo=$ac_try;;
48573 esac
48574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48576 ac_status=$?
48577 grep -v '^ *+' conftest.er1 >conftest.err
48578 rm -f conftest.er1
48579 cat conftest.err >&5
48580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48581 (exit $ac_status); } >/dev/null && {
48582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48583 test ! -s conftest.err
48584 }; then
48585 ac_header_preproc=yes
48586 else
48587 echo "$as_me: failed program was:" >&5
48588 sed 's/^/| /' conftest.$ac_ext >&5
48590 ac_header_preproc=no
48593 rm -f conftest.err conftest.$ac_ext
48594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48595 echo "${ECHO_T}$ac_header_preproc" >&6; }
48597 # So? What about this header?
48598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48599 yes:no: )
48600 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
48601 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48602 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
48603 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
48604 ac_header_preproc=yes
48606 no:yes:* )
48607 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
48608 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
48609 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
48610 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
48611 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
48612 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
48613 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
48614 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
48615 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
48616 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
48617 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
48618 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
48619 ( cat <<\_ASBOX
48620 ## ------------------------------- ##
48621 ## Report this to www.asterisk.org ##
48622 ## ------------------------------- ##
48623 _ASBOX
48624 ) | sed "s/^/$as_me: WARNING: /" >&2
48626 esac
48627 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48628 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48629 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48630 echo $ECHO_N "(cached) $ECHO_C" >&6
48631 else
48632 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48634 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48635 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48638 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48639 FFMPEG_HEADER_FOUND=1
48640 else
48641 FFMPEG_HEADER_FOUND=0
48645 CPPFLAGS="${saved_cppflags}"
48647 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48648 FFMPEG_LIB=""
48649 FFMPEG_INCLUDE=""
48650 else
48651 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48652 FFMPEG_LIB=""
48654 PBX_FFMPEG=1
48655 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48657 cat >>confdefs.h <<_ACEOF
48658 #define HAVE_FFMPEG 1
48659 _ACEOF
48662 cat >>confdefs.h <<_ACEOF
48663 #define HAVE_FFMPEG_VERSION
48664 _ACEOF
48671 # possible places for video4linux version 1
48672 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48673 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48674 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48675 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48676 echo $ECHO_N "(cached) $ECHO_C" >&6
48678 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48679 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48680 else
48681 # Is the header compilable?
48682 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48683 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48684 cat >conftest.$ac_ext <<_ACEOF
48685 /* confdefs.h. */
48686 _ACEOF
48687 cat confdefs.h >>conftest.$ac_ext
48688 cat >>conftest.$ac_ext <<_ACEOF
48689 /* end confdefs.h. */
48690 $ac_includes_default
48691 #include <linux/videodev.h>
48692 _ACEOF
48693 rm -f conftest.$ac_objext
48694 if { (ac_try="$ac_compile"
48695 case "(($ac_try" in
48696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48697 *) ac_try_echo=$ac_try;;
48698 esac
48699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48700 (eval "$ac_compile") 2>conftest.er1
48701 ac_status=$?
48702 grep -v '^ *+' conftest.er1 >conftest.err
48703 rm -f conftest.er1
48704 cat conftest.err >&5
48705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706 (exit $ac_status); } && {
48707 test -z "$ac_c_werror_flag" ||
48708 test ! -s conftest.err
48709 } && test -s conftest.$ac_objext; then
48710 ac_header_compiler=yes
48711 else
48712 echo "$as_me: failed program was:" >&5
48713 sed 's/^/| /' conftest.$ac_ext >&5
48715 ac_header_compiler=no
48718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48720 echo "${ECHO_T}$ac_header_compiler" >&6; }
48722 # Is the header present?
48723 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48724 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48725 cat >conftest.$ac_ext <<_ACEOF
48726 /* confdefs.h. */
48727 _ACEOF
48728 cat confdefs.h >>conftest.$ac_ext
48729 cat >>conftest.$ac_ext <<_ACEOF
48730 /* end confdefs.h. */
48731 #include <linux/videodev.h>
48732 _ACEOF
48733 if { (ac_try="$ac_cpp conftest.$ac_ext"
48734 case "(($ac_try" in
48735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48736 *) ac_try_echo=$ac_try;;
48737 esac
48738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48740 ac_status=$?
48741 grep -v '^ *+' conftest.er1 >conftest.err
48742 rm -f conftest.er1
48743 cat conftest.err >&5
48744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745 (exit $ac_status); } >/dev/null && {
48746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48747 test ! -s conftest.err
48748 }; then
48749 ac_header_preproc=yes
48750 else
48751 echo "$as_me: failed program was:" >&5
48752 sed 's/^/| /' conftest.$ac_ext >&5
48754 ac_header_preproc=no
48757 rm -f conftest.err conftest.$ac_ext
48758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48759 echo "${ECHO_T}$ac_header_preproc" >&6; }
48761 # So? What about this header?
48762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48763 yes:no: )
48764 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48765 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48766 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48767 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48768 ac_header_preproc=yes
48770 no:yes:* )
48771 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48772 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48773 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48774 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48775 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48776 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48777 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48778 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48779 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48780 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48781 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48782 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48783 ( cat <<\_ASBOX
48784 ## ------------------------------- ##
48785 ## Report this to www.asterisk.org ##
48786 ## ------------------------------- ##
48787 _ASBOX
48788 ) | sed "s/^/$as_me: WARNING: /" >&2
48790 esac
48791 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48792 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48793 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48794 echo $ECHO_N "(cached) $ECHO_C" >&6
48795 else
48796 ac_cv_header_linux_videodev_h=$ac_header_preproc
48798 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48799 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48802 if test $ac_cv_header_linux_videodev_h = yes; then
48804 cat >>confdefs.h <<_ACEOF
48805 #define HAVE_VIDEODEV_H 1
48806 _ACEOF
48812 # possible places for X11
48814 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48815 pbxlibdir=""
48816 # if --with-X11=DIR has been specified, use it.
48817 if test "x${X11_DIR}" != "x"; then
48818 if test -d ${X11_DIR}/lib; then
48819 pbxlibdir="-L${X11_DIR}/lib"
48820 else
48821 pbxlibdir="-L${X11_DIR}"
48824 pbxfuncname="XOpenDisplay"
48825 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48826 AST_X11_FOUND=yes
48827 else
48828 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48829 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48830 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48831 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48832 echo $ECHO_N "(cached) $ECHO_C" >&6
48833 else
48834 ac_check_lib_save_LIBS=$LIBS
48835 LIBS="-lX11 ${pbxlibdir} $LIBS"
48836 cat >conftest.$ac_ext <<_ACEOF
48837 /* confdefs.h. */
48838 _ACEOF
48839 cat confdefs.h >>conftest.$ac_ext
48840 cat >>conftest.$ac_ext <<_ACEOF
48841 /* end confdefs.h. */
48843 /* Override any GCC internal prototype to avoid an error.
48844 Use char because int might match the return type of a GCC
48845 builtin and then its argument prototype would still apply. */
48846 #ifdef __cplusplus
48847 extern "C"
48848 #endif
48849 char ${pbxfuncname} ();
48851 main ()
48853 return ${pbxfuncname} ();
48855 return 0;
48857 _ACEOF
48858 rm -f conftest.$ac_objext conftest$ac_exeext
48859 if { (ac_try="$ac_link"
48860 case "(($ac_try" in
48861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48862 *) ac_try_echo=$ac_try;;
48863 esac
48864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48865 (eval "$ac_link") 2>conftest.er1
48866 ac_status=$?
48867 grep -v '^ *+' conftest.er1 >conftest.err
48868 rm -f conftest.er1
48869 cat conftest.err >&5
48870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48871 (exit $ac_status); } && {
48872 test -z "$ac_c_werror_flag" ||
48873 test ! -s conftest.err
48874 } && test -s conftest$ac_exeext &&
48875 $as_test_x conftest$ac_exeext; then
48876 eval "$as_ac_Lib=yes"
48877 else
48878 echo "$as_me: failed program was:" >&5
48879 sed 's/^/| /' conftest.$ac_ext >&5
48881 eval "$as_ac_Lib=no"
48884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48885 conftest$ac_exeext conftest.$ac_ext
48886 LIBS=$ac_check_lib_save_LIBS
48888 ac_res=`eval echo '${'$as_ac_Lib'}'`
48889 { echo "$as_me:$LINENO: result: $ac_res" >&5
48890 echo "${ECHO_T}$ac_res" >&6; }
48891 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48892 AST_X11_FOUND=yes
48893 else
48894 AST_X11_FOUND=no
48899 # now check for the header.
48900 if test "${AST_X11_FOUND}" = "yes"; then
48901 X11_LIB="${pbxlibdir} -lX11 "
48902 # if --with-X11=DIR has been specified, use it.
48903 if test "x${X11_DIR}" != "x"; then
48904 X11_INCLUDE="-I${X11_DIR}/include"
48906 X11_INCLUDE="${X11_INCLUDE} "
48907 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48908 X11_HEADER_FOUND="1"
48909 else # check for the header
48910 saved_cppflags="${CPPFLAGS}"
48911 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
48912 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48913 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48914 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48915 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48916 echo $ECHO_N "(cached) $ECHO_C" >&6
48918 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48919 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48920 else
48921 # Is the header compilable?
48922 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48923 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48924 cat >conftest.$ac_ext <<_ACEOF
48925 /* confdefs.h. */
48926 _ACEOF
48927 cat confdefs.h >>conftest.$ac_ext
48928 cat >>conftest.$ac_ext <<_ACEOF
48929 /* end confdefs.h. */
48930 $ac_includes_default
48931 #include <X11/Xlib.h>
48932 _ACEOF
48933 rm -f conftest.$ac_objext
48934 if { (ac_try="$ac_compile"
48935 case "(($ac_try" in
48936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48937 *) ac_try_echo=$ac_try;;
48938 esac
48939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48940 (eval "$ac_compile") 2>conftest.er1
48941 ac_status=$?
48942 grep -v '^ *+' conftest.er1 >conftest.err
48943 rm -f conftest.er1
48944 cat conftest.err >&5
48945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48946 (exit $ac_status); } && {
48947 test -z "$ac_c_werror_flag" ||
48948 test ! -s conftest.err
48949 } && test -s conftest.$ac_objext; then
48950 ac_header_compiler=yes
48951 else
48952 echo "$as_me: failed program was:" >&5
48953 sed 's/^/| /' conftest.$ac_ext >&5
48955 ac_header_compiler=no
48958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48960 echo "${ECHO_T}$ac_header_compiler" >&6; }
48962 # Is the header present?
48963 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48964 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48965 cat >conftest.$ac_ext <<_ACEOF
48966 /* confdefs.h. */
48967 _ACEOF
48968 cat confdefs.h >>conftest.$ac_ext
48969 cat >>conftest.$ac_ext <<_ACEOF
48970 /* end confdefs.h. */
48971 #include <X11/Xlib.h>
48972 _ACEOF
48973 if { (ac_try="$ac_cpp conftest.$ac_ext"
48974 case "(($ac_try" in
48975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48976 *) ac_try_echo=$ac_try;;
48977 esac
48978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48980 ac_status=$?
48981 grep -v '^ *+' conftest.er1 >conftest.err
48982 rm -f conftest.er1
48983 cat conftest.err >&5
48984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48985 (exit $ac_status); } >/dev/null && {
48986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48987 test ! -s conftest.err
48988 }; then
48989 ac_header_preproc=yes
48990 else
48991 echo "$as_me: failed program was:" >&5
48992 sed 's/^/| /' conftest.$ac_ext >&5
48994 ac_header_preproc=no
48997 rm -f conftest.err conftest.$ac_ext
48998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48999 echo "${ECHO_T}$ac_header_preproc" >&6; }
49001 # So? What about this header?
49002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49003 yes:no: )
49004 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49005 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49006 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49007 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49008 ac_header_preproc=yes
49010 no:yes:* )
49011 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49012 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49013 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49014 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49015 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49016 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49017 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49018 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49019 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49020 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49021 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49022 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49023 ( cat <<\_ASBOX
49024 ## ------------------------------- ##
49025 ## Report this to www.asterisk.org ##
49026 ## ------------------------------- ##
49027 _ASBOX
49028 ) | sed "s/^/$as_me: WARNING: /" >&2
49030 esac
49031 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49032 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49033 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49034 echo $ECHO_N "(cached) $ECHO_C" >&6
49035 else
49036 ac_cv_header_X11_Xlib_h=$ac_header_preproc
49038 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49039 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49042 if test $ac_cv_header_X11_Xlib_h = yes; then
49043 X11_HEADER_FOUND=1
49044 else
49045 X11_HEADER_FOUND=0
49049 CPPFLAGS="${saved_cppflags}"
49051 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49052 X11_LIB=""
49053 X11_INCLUDE=""
49054 else
49055 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49056 X11_LIB=""
49058 PBX_X11=1
49059 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49061 cat >>confdefs.h <<_ACEOF
49062 #define HAVE_X11 1
49063 _ACEOF
49066 cat >>confdefs.h <<_ACEOF
49067 #define HAVE_X11_VERSION standard_path
49068 _ACEOF
49075 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
49076 pbxlibdir=""
49077 # if --with-X11=DIR has been specified, use it.
49078 if test "x${X11_DIR}" != "x"; then
49079 if test -d ${X11_DIR}/lib; then
49080 pbxlibdir="-L${X11_DIR}/lib"
49081 else
49082 pbxlibdir="-L${X11_DIR}"
49085 pbxfuncname="XOpenDisplay"
49086 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49087 AST_X11_FOUND=yes
49088 else
49089 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
49090 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
49091 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
49092 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49093 echo $ECHO_N "(cached) $ECHO_C" >&6
49094 else
49095 ac_check_lib_save_LIBS=$LIBS
49096 LIBS="-lX11 ${pbxlibdir} $LIBS"
49097 cat >conftest.$ac_ext <<_ACEOF
49098 /* confdefs.h. */
49099 _ACEOF
49100 cat confdefs.h >>conftest.$ac_ext
49101 cat >>conftest.$ac_ext <<_ACEOF
49102 /* end confdefs.h. */
49104 /* Override any GCC internal prototype to avoid an error.
49105 Use char because int might match the return type of a GCC
49106 builtin and then its argument prototype would still apply. */
49107 #ifdef __cplusplus
49108 extern "C"
49109 #endif
49110 char ${pbxfuncname} ();
49112 main ()
49114 return ${pbxfuncname} ();
49116 return 0;
49118 _ACEOF
49119 rm -f conftest.$ac_objext conftest$ac_exeext
49120 if { (ac_try="$ac_link"
49121 case "(($ac_try" in
49122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49123 *) ac_try_echo=$ac_try;;
49124 esac
49125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49126 (eval "$ac_link") 2>conftest.er1
49127 ac_status=$?
49128 grep -v '^ *+' conftest.er1 >conftest.err
49129 rm -f conftest.er1
49130 cat conftest.err >&5
49131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49132 (exit $ac_status); } && {
49133 test -z "$ac_c_werror_flag" ||
49134 test ! -s conftest.err
49135 } && test -s conftest$ac_exeext &&
49136 $as_test_x conftest$ac_exeext; then
49137 eval "$as_ac_Lib=yes"
49138 else
49139 echo "$as_me: failed program was:" >&5
49140 sed 's/^/| /' conftest.$ac_ext >&5
49142 eval "$as_ac_Lib=no"
49145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49146 conftest$ac_exeext conftest.$ac_ext
49147 LIBS=$ac_check_lib_save_LIBS
49149 ac_res=`eval echo '${'$as_ac_Lib'}'`
49150 { echo "$as_me:$LINENO: result: $ac_res" >&5
49151 echo "${ECHO_T}$ac_res" >&6; }
49152 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49153 AST_X11_FOUND=yes
49154 else
49155 AST_X11_FOUND=no
49160 # now check for the header.
49161 if test "${AST_X11_FOUND}" = "yes"; then
49162 X11_LIB="${pbxlibdir} -lX11 "
49163 # if --with-X11=DIR has been specified, use it.
49164 if test "x${X11_DIR}" != "x"; then
49165 X11_INCLUDE="-I${X11_DIR}/include"
49167 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
49168 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
49169 X11_HEADER_FOUND="1"
49170 else # check for the header
49171 saved_cppflags="${CPPFLAGS}"
49172 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
49173 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49174 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49175 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49176 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49177 echo $ECHO_N "(cached) $ECHO_C" >&6
49179 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49180 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49181 else
49182 # Is the header compilable?
49183 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
49184 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
49185 cat >conftest.$ac_ext <<_ACEOF
49186 /* confdefs.h. */
49187 _ACEOF
49188 cat confdefs.h >>conftest.$ac_ext
49189 cat >>conftest.$ac_ext <<_ACEOF
49190 /* end confdefs.h. */
49191 $ac_includes_default
49192 #include <X11/Xlib.h>
49193 _ACEOF
49194 rm -f conftest.$ac_objext
49195 if { (ac_try="$ac_compile"
49196 case "(($ac_try" in
49197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49198 *) ac_try_echo=$ac_try;;
49199 esac
49200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49201 (eval "$ac_compile") 2>conftest.er1
49202 ac_status=$?
49203 grep -v '^ *+' conftest.er1 >conftest.err
49204 rm -f conftest.er1
49205 cat conftest.err >&5
49206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207 (exit $ac_status); } && {
49208 test -z "$ac_c_werror_flag" ||
49209 test ! -s conftest.err
49210 } && test -s conftest.$ac_objext; then
49211 ac_header_compiler=yes
49212 else
49213 echo "$as_me: failed program was:" >&5
49214 sed 's/^/| /' conftest.$ac_ext >&5
49216 ac_header_compiler=no
49219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49221 echo "${ECHO_T}$ac_header_compiler" >&6; }
49223 # Is the header present?
49224 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
49225 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
49226 cat >conftest.$ac_ext <<_ACEOF
49227 /* confdefs.h. */
49228 _ACEOF
49229 cat confdefs.h >>conftest.$ac_ext
49230 cat >>conftest.$ac_ext <<_ACEOF
49231 /* end confdefs.h. */
49232 #include <X11/Xlib.h>
49233 _ACEOF
49234 if { (ac_try="$ac_cpp conftest.$ac_ext"
49235 case "(($ac_try" in
49236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49237 *) ac_try_echo=$ac_try;;
49238 esac
49239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49241 ac_status=$?
49242 grep -v '^ *+' conftest.er1 >conftest.err
49243 rm -f conftest.er1
49244 cat conftest.err >&5
49245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49246 (exit $ac_status); } >/dev/null && {
49247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49248 test ! -s conftest.err
49249 }; then
49250 ac_header_preproc=yes
49251 else
49252 echo "$as_me: failed program was:" >&5
49253 sed 's/^/| /' conftest.$ac_ext >&5
49255 ac_header_preproc=no
49258 rm -f conftest.err conftest.$ac_ext
49259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49260 echo "${ECHO_T}$ac_header_preproc" >&6; }
49262 # So? What about this header?
49263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49264 yes:no: )
49265 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49266 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49267 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49268 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49269 ac_header_preproc=yes
49271 no:yes:* )
49272 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49273 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49274 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49275 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49276 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49277 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49278 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49279 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49280 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49281 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49282 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49283 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49284 ( cat <<\_ASBOX
49285 ## ------------------------------- ##
49286 ## Report this to www.asterisk.org ##
49287 ## ------------------------------- ##
49288 _ASBOX
49289 ) | sed "s/^/$as_me: WARNING: /" >&2
49291 esac
49292 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49293 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49294 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49295 echo $ECHO_N "(cached) $ECHO_C" >&6
49296 else
49297 ac_cv_header_X11_Xlib_h=$ac_header_preproc
49299 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49300 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49303 if test $ac_cv_header_X11_Xlib_h = yes; then
49304 X11_HEADER_FOUND=1
49305 else
49306 X11_HEADER_FOUND=0
49310 CPPFLAGS="${saved_cppflags}"
49312 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49313 X11_LIB=""
49314 X11_INCLUDE=""
49315 else
49316 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49317 X11_LIB=""
49319 PBX_X11=1
49320 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49322 cat >>confdefs.h <<_ACEOF
49323 #define HAVE_X11 1
49324 _ACEOF
49327 cat >>confdefs.h <<_ACEOF
49328 #define HAVE_X11_VERSION X11R6
49329 _ACEOF
49336 if test "${cross_compiling}" = "no";
49337 then
49338 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
49339 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
49340 if test "${ac_cv_file__sbin_launchd+set}" = set; then
49341 echo $ECHO_N "(cached) $ECHO_C" >&6
49342 else
49343 test "$cross_compiling" = yes &&
49344 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
49345 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
49346 { (exit 1); exit 1; }; }
49347 if test -r "/sbin/launchd"; then
49348 ac_cv_file__sbin_launchd=yes
49349 else
49350 ac_cv_file__sbin_launchd=no
49353 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
49354 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
49355 if test $ac_cv_file__sbin_launchd = yes; then
49357 cat >>confdefs.h <<\_ACEOF
49358 #define HAVE_SBIN_LAUNCHD 1
49359 _ACEOF
49365 PBX_GTK=0
49367 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
49368 PBX_GTK=0
49369 if test -n "$ac_tool_prefix"; then
49370 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
49371 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
49372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49374 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
49375 echo $ECHO_N "(cached) $ECHO_C" >&6
49376 else
49377 if test -n "$CONFIG_GTK"; then
49378 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
49379 else
49380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49381 for as_dir in $PATH
49383 IFS=$as_save_IFS
49384 test -z "$as_dir" && as_dir=.
49385 for ac_exec_ext in '' $ac_executable_extensions; do
49386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49387 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
49388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49389 break 2
49391 done
49392 done
49393 IFS=$as_save_IFS
49397 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
49398 if test -n "$CONFIG_GTK"; then
49399 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
49400 echo "${ECHO_T}$CONFIG_GTK" >&6; }
49401 else
49402 { echo "$as_me:$LINENO: result: no" >&5
49403 echo "${ECHO_T}no" >&6; }
49408 if test -z "$ac_cv_prog_CONFIG_GTK"; then
49409 ac_ct_CONFIG_GTK=$CONFIG_GTK
49410 # Extract the first word of "gtk-config", so it can be a program name with args.
49411 set dummy gtk-config; ac_word=$2
49412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49414 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
49415 echo $ECHO_N "(cached) $ECHO_C" >&6
49416 else
49417 if test -n "$ac_ct_CONFIG_GTK"; then
49418 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
49419 else
49420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49421 for as_dir in $PATH
49423 IFS=$as_save_IFS
49424 test -z "$as_dir" && as_dir=.
49425 for ac_exec_ext in '' $ac_executable_extensions; do
49426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49427 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
49428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49429 break 2
49431 done
49432 done
49433 IFS=$as_save_IFS
49437 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
49438 if test -n "$ac_ct_CONFIG_GTK"; then
49439 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
49440 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
49441 else
49442 { echo "$as_me:$LINENO: result: no" >&5
49443 echo "${ECHO_T}no" >&6; }
49446 if test "x$ac_ct_CONFIG_GTK" = x; then
49447 CONFIG_GTK="No"
49448 else
49449 case $cross_compiling:$ac_tool_warned in
49450 yes:)
49451 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49452 whose name does not start with the host triplet. If you think this
49453 configuration is useful to you, please write to autoconf@gnu.org." >&5
49454 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49455 whose name does not start with the host triplet. If you think this
49456 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49457 ac_tool_warned=yes ;;
49458 esac
49459 CONFIG_GTK=$ac_ct_CONFIG_GTK
49461 else
49462 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
49465 if test ! "x${CONFIG_GTK}" = xNo; then
49466 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
49467 GTK_INCLUDE=$(${CONFIG_GTK} $A)
49468 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
49469 GTK_LIB=$(${CONFIG_GTK} $A)
49470 if test x"" != x ; then
49471 saved_cppflags="${CPPFLAGS}"
49472 if test "x${GTK_DIR}" != "x"; then
49473 GTK_INCLUDE="-I${GTK_DIR}/include"
49475 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
49477 saved_ldflags="${LDFLAGS}"
49478 LDFLAGS="${GTK_LIB}"
49480 cat >conftest.$ac_ext <<_ACEOF
49481 /* confdefs.h. */
49482 _ACEOF
49483 cat confdefs.h >>conftest.$ac_ext
49484 cat >>conftest.$ac_ext <<_ACEOF
49485 /* end confdefs.h. */
49488 main ()
49493 return 0;
49495 _ACEOF
49496 rm -f conftest.$ac_objext conftest$ac_exeext
49497 if { (ac_try="$ac_link"
49498 case "(($ac_try" in
49499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49500 *) ac_try_echo=$ac_try;;
49501 esac
49502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49503 (eval "$ac_link") 2>conftest.er1
49504 ac_status=$?
49505 grep -v '^ *+' conftest.er1 >conftest.err
49506 rm -f conftest.er1
49507 cat conftest.err >&5
49508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49509 (exit $ac_status); } && {
49510 test -z "$ac_c_werror_flag" ||
49511 test ! -s conftest.err
49512 } && test -s conftest$ac_exeext &&
49513 $as_test_x conftest$ac_exeext; then
49514 PBX_GTK=1
49516 cat >>confdefs.h <<\_ACEOF
49517 #define HAVE_GTK 1
49518 _ACEOF
49521 else
49522 echo "$as_me: failed program was:" >&5
49523 sed 's/^/| /' conftest.$ac_ext >&5
49529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49530 conftest$ac_exeext conftest.$ac_ext
49531 CPPFLAGS="${saved_cppflags}"
49532 LDFLAGS="${saved_ldflags}"
49533 else
49534 PBX_GTK=1
49536 cat >>confdefs.h <<\_ACEOF
49537 #define HAVE_GTK 1
49538 _ACEOF
49545 PBX_GTK2=0
49546 if test -n "$ac_tool_prefix"; then
49547 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49548 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49551 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
49552 echo $ECHO_N "(cached) $ECHO_C" >&6
49553 else
49554 if test -n "$PKGCONFIG"; then
49555 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
49556 else
49557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49558 for as_dir in $PATH
49560 IFS=$as_save_IFS
49561 test -z "$as_dir" && as_dir=.
49562 for ac_exec_ext in '' $ac_executable_extensions; do
49563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49564 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
49565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49566 break 2
49568 done
49569 done
49570 IFS=$as_save_IFS
49574 PKGCONFIG=$ac_cv_prog_PKGCONFIG
49575 if test -n "$PKGCONFIG"; then
49576 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
49577 echo "${ECHO_T}$PKGCONFIG" >&6; }
49578 else
49579 { echo "$as_me:$LINENO: result: no" >&5
49580 echo "${ECHO_T}no" >&6; }
49585 if test -z "$ac_cv_prog_PKGCONFIG"; then
49586 ac_ct_PKGCONFIG=$PKGCONFIG
49587 # Extract the first word of "pkg-config", so it can be a program name with args.
49588 set dummy pkg-config; ac_word=$2
49589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49591 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
49592 echo $ECHO_N "(cached) $ECHO_C" >&6
49593 else
49594 if test -n "$ac_ct_PKGCONFIG"; then
49595 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
49596 else
49597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49598 for as_dir in $PATH
49600 IFS=$as_save_IFS
49601 test -z "$as_dir" && as_dir=.
49602 for ac_exec_ext in '' $ac_executable_extensions; do
49603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49604 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
49605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49606 break 2
49608 done
49609 done
49610 IFS=$as_save_IFS
49614 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
49615 if test -n "$ac_ct_PKGCONFIG"; then
49616 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
49617 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
49618 else
49619 { echo "$as_me:$LINENO: result: no" >&5
49620 echo "${ECHO_T}no" >&6; }
49623 if test "x$ac_ct_PKGCONFIG" = x; then
49624 PKGCONFIG="No"
49625 else
49626 case $cross_compiling:$ac_tool_warned in
49627 yes:)
49628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49629 whose name does not start with the host triplet. If you think this
49630 configuration is useful to you, please write to autoconf@gnu.org." >&5
49631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49632 whose name does not start with the host triplet. If you think this
49633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49634 ac_tool_warned=yes ;;
49635 esac
49636 PKGCONFIG=$ac_ct_PKGCONFIG
49638 else
49639 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49642 if test ! "x${PKGCONFIG}" = xNo; then
49643 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49644 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49645 PBX_GTK2=1
49647 cat >>confdefs.h <<\_ACEOF
49648 #define HAVE_GTK2 1
49649 _ACEOF
49656 if test "${USE_CURL}" != "no"; then
49657 if test -n "$ac_tool_prefix"; then
49658 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49659 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49662 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49663 echo $ECHO_N "(cached) $ECHO_C" >&6
49664 else
49665 case $CURL_CONFIG in
49666 [\\/]* | ?:[\\/]*)
49667 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49671 for as_dir in $PATH
49673 IFS=$as_save_IFS
49674 test -z "$as_dir" && as_dir=.
49675 for ac_exec_ext in '' $ac_executable_extensions; do
49676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49677 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49679 break 2
49681 done
49682 done
49683 IFS=$as_save_IFS
49686 esac
49688 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49689 if test -n "$CURL_CONFIG"; then
49690 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49691 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49692 else
49693 { echo "$as_me:$LINENO: result: no" >&5
49694 echo "${ECHO_T}no" >&6; }
49699 if test -z "$ac_cv_path_CURL_CONFIG"; then
49700 ac_pt_CURL_CONFIG=$CURL_CONFIG
49701 # Extract the first word of "curl-config", so it can be a program name with args.
49702 set dummy curl-config; ac_word=$2
49703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49705 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49706 echo $ECHO_N "(cached) $ECHO_C" >&6
49707 else
49708 case $ac_pt_CURL_CONFIG in
49709 [\\/]* | ?:[\\/]*)
49710 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49714 for as_dir in $PATH
49716 IFS=$as_save_IFS
49717 test -z "$as_dir" && as_dir=.
49718 for ac_exec_ext in '' $ac_executable_extensions; do
49719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49720 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49722 break 2
49724 done
49725 done
49726 IFS=$as_save_IFS
49729 esac
49731 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49732 if test -n "$ac_pt_CURL_CONFIG"; then
49733 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49734 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49735 else
49736 { echo "$as_me:$LINENO: result: no" >&5
49737 echo "${ECHO_T}no" >&6; }
49740 if test "x$ac_pt_CURL_CONFIG" = x; then
49741 CURL_CONFIG="No"
49742 else
49743 case $cross_compiling:$ac_tool_warned in
49744 yes:)
49745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49746 whose name does not start with the host triplet. If you think this
49747 configuration is useful to you, please write to autoconf@gnu.org." >&5
49748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49749 whose name does not start with the host triplet. If you think this
49750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49751 ac_tool_warned=yes ;;
49752 esac
49753 CURL_CONFIG=$ac_pt_CURL_CONFIG
49755 else
49756 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49759 if test ! x"${CURL_CONFIG}" = xNo; then
49760 # check for version
49761 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49762 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49763 CURL_LIB=$(${CURL_CONFIG} --libs)
49765 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49766 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49767 saved_cppflags="${CPPFLAGS}"
49768 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49769 cat >conftest.$ac_ext <<_ACEOF
49770 /* confdefs.h. */
49771 _ACEOF
49772 cat confdefs.h >>conftest.$ac_ext
49773 cat >>conftest.$ac_ext <<_ACEOF
49774 /* end confdefs.h. */
49775 #include <curl/curl.h>
49777 main ()
49779 curl_version();
49781 return 0;
49784 _ACEOF
49785 rm -f conftest.$ac_objext
49786 if { (ac_try="$ac_compile"
49787 case "(($ac_try" in
49788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49789 *) ac_try_echo=$ac_try;;
49790 esac
49791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49792 (eval "$ac_compile") 2>conftest.er1
49793 ac_status=$?
49794 grep -v '^ *+' conftest.er1 >conftest.err
49795 rm -f conftest.er1
49796 cat conftest.err >&5
49797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49798 (exit $ac_status); } && {
49799 test -z "$ac_c_werror_flag" ||
49800 test ! -s conftest.err
49801 } && test -s conftest.$ac_objext; then
49803 { echo "$as_me:$LINENO: result: yes" >&5
49804 echo "${ECHO_T}yes" >&6; }
49805 ac_cv_curl_h="yes"
49807 else
49808 echo "$as_me: failed program was:" >&5
49809 sed 's/^/| /' conftest.$ac_ext >&5
49812 { echo "$as_me:$LINENO: result: no" >&5
49813 echo "${ECHO_T}no" >&6; }
49814 ac_cv_curl_h="no"
49819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49820 CPPFLAGS="${saved_cppflags}"
49821 if test "${ac_cv_curl_h}" = "yes"; then
49822 PBX_CURL=1
49824 cat >>confdefs.h <<\_ACEOF
49825 #define HAVE_CURL 1
49826 _ACEOF
49833 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49836 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49837 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49838 err=0;
49839 for i in ${ac_mandatory_list}; do
49840 eval "a=\${PBX_$i}"
49841 if test "x${a}" = "x1" ; then continue; fi
49842 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49843 echo "${ECHO_T}fail" >&6; } ; fi
49844 { echo "$as_me:$LINENO: result: " >&5
49845 echo "${ECHO_T}" >&6; }
49846 eval "a=\${${i}_OPTION}"
49847 { echo "$as_me:$LINENO: ***" >&5
49848 echo "$as_me: ***" >&6;}
49849 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49850 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49851 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49852 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49853 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49854 echo "$as_me: *** including --without-${a}." >&6;}
49855 err=1
49856 done
49857 if test $err = 1 ; then exit 1; fi
49858 { echo "$as_me:$LINENO: result: ok" >&5
49859 echo "${ECHO_T}ok" >&6; }
49862 cat >confcache <<\_ACEOF
49863 # This file is a shell script that caches the results of configure
49864 # tests run on this system so they can be shared between configure
49865 # scripts and configure runs, see configure's option --config-cache.
49866 # It is not useful on other systems. If it contains results you don't
49867 # want to keep, you may remove or edit it.
49869 # config.status only pays attention to the cache file if you give it
49870 # the --recheck option to rerun configure.
49872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49874 # following values.
49876 _ACEOF
49878 # The following way of writing the cache mishandles newlines in values,
49879 # but we know of no workaround that is simple, portable, and efficient.
49880 # So, we kill variables containing newlines.
49881 # Ultrix sh set writes to stderr and can't be redirected directly,
49882 # and sets the high bit in the cache file unless we assign to the vars.
49884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49885 eval ac_val=\$$ac_var
49886 case $ac_val in #(
49887 *${as_nl}*)
49888 case $ac_var in #(
49889 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49890 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49891 esac
49892 case $ac_var in #(
49893 _ | IFS | as_nl) ;; #(
49894 *) $as_unset $ac_var ;;
49895 esac ;;
49896 esac
49897 done
49899 (set) 2>&1 |
49900 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49901 *${as_nl}ac_space=\ *)
49902 # `set' does not quote correctly, so add quotes (double-quote
49903 # substitution turns \\\\ into \\, and sed turns \\ into \).
49904 sed -n \
49905 "s/'/'\\\\''/g;
49906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49907 ;; #(
49909 # `set' quotes correctly as required by POSIX, so do not add quotes.
49910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49912 esac |
49913 sort
49915 sed '
49916 /^ac_cv_env_/b end
49917 t clear
49918 :clear
49919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49920 t end
49921 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49922 :end' >>confcache
49923 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49924 if test -w "$cache_file"; then
49925 test "x$cache_file" != "x/dev/null" &&
49926 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49927 echo "$as_me: updating cache $cache_file" >&6;}
49928 cat confcache >$cache_file
49929 else
49930 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49931 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49934 rm -f confcache
49936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49937 # Let make expand exec_prefix.
49938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49940 DEFS=-DHAVE_CONFIG_H
49942 ac_libobjs=
49943 ac_ltlibobjs=
49944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49945 # 1. Remove the extension, and $U if already installed.
49946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49947 ac_i=`echo "$ac_i" | sed "$ac_script"`
49948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49949 # will be set to the directory where LIBOBJS objects are built.
49950 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49951 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49952 done
49953 LIBOBJS=$ac_libobjs
49955 LTLIBOBJS=$ac_ltlibobjs
49959 : ${CONFIG_STATUS=./config.status}
49960 ac_clean_files_save=$ac_clean_files
49961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49962 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49963 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49964 cat >$CONFIG_STATUS <<_ACEOF
49965 #! $SHELL
49966 # Generated by $as_me.
49967 # Run this file to recreate the current configuration.
49968 # Compiler output produced by configure, useful for debugging
49969 # configure, is in config.log if it exists.
49971 debug=false
49972 ac_cs_recheck=false
49973 ac_cs_silent=false
49974 SHELL=\${CONFIG_SHELL-$SHELL}
49975 _ACEOF
49977 cat >>$CONFIG_STATUS <<\_ACEOF
49978 ## --------------------- ##
49979 ## M4sh Initialization. ##
49980 ## --------------------- ##
49982 # Be more Bourne compatible
49983 DUALCASE=1; export DUALCASE # for MKS sh
49984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49985 emulate sh
49986 NULLCMD=:
49987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49988 # is contrary to our usage. Disable this feature.
49989 alias -g '${1+"$@"}'='"$@"'
49990 setopt NO_GLOB_SUBST
49991 else
49992 case `(set -o) 2>/dev/null` in
49993 *posix*) set -o posix ;;
49994 esac
50001 # PATH needs CR
50002 # Avoid depending upon Character Ranges.
50003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50006 as_cr_digits='0123456789'
50007 as_cr_alnum=$as_cr_Letters$as_cr_digits
50009 # The user is always right.
50010 if test "${PATH_SEPARATOR+set}" != set; then
50011 echo "#! /bin/sh" >conf$$.sh
50012 echo "exit 0" >>conf$$.sh
50013 chmod +x conf$$.sh
50014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50015 PATH_SEPARATOR=';'
50016 else
50017 PATH_SEPARATOR=:
50019 rm -f conf$$.sh
50022 # Support unset when possible.
50023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50024 as_unset=unset
50025 else
50026 as_unset=false
50030 # IFS
50031 # We need space, tab and new line, in precisely that order. Quoting is
50032 # there to prevent editors from complaining about space-tab.
50033 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50034 # splitting by setting IFS to empty value.)
50035 as_nl='
50037 IFS=" "" $as_nl"
50039 # Find who we are. Look in the path if we contain no directory separator.
50040 case $0 in
50041 *[\\/]* ) as_myself=$0 ;;
50042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50043 for as_dir in $PATH
50045 IFS=$as_save_IFS
50046 test -z "$as_dir" && as_dir=.
50047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50048 done
50049 IFS=$as_save_IFS
50052 esac
50053 # We did not find ourselves, most probably we were run as `sh COMMAND'
50054 # in which case we are not to be found in the path.
50055 if test "x$as_myself" = x; then
50056 as_myself=$0
50058 if test ! -f "$as_myself"; then
50059 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50060 { (exit 1); exit 1; }
50063 # Work around bugs in pre-3.0 UWIN ksh.
50064 for as_var in ENV MAIL MAILPATH
50065 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50066 done
50067 PS1='$ '
50068 PS2='> '
50069 PS4='+ '
50071 # NLS nuisances.
50072 for as_var in \
50073 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50074 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50075 LC_TELEPHONE LC_TIME
50077 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50078 eval $as_var=C; export $as_var
50079 else
50080 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50082 done
50084 # Required to use basename.
50085 if expr a : '\(a\)' >/dev/null 2>&1 &&
50086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50087 as_expr=expr
50088 else
50089 as_expr=false
50092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50093 as_basename=basename
50094 else
50095 as_basename=false
50099 # Name of the executable.
50100 as_me=`$as_basename -- "$0" ||
50101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50102 X"$0" : 'X\(//\)$' \| \
50103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50104 echo X/"$0" |
50105 sed '/^.*\/\([^/][^/]*\)\/*$/{
50106 s//\1/
50109 /^X\/\(\/\/\)$/{
50110 s//\1/
50113 /^X\/\(\/\).*/{
50114 s//\1/
50117 s/.*/./; q'`
50119 # CDPATH.
50120 $as_unset CDPATH
50124 as_lineno_1=$LINENO
50125 as_lineno_2=$LINENO
50126 test "x$as_lineno_1" != "x$as_lineno_2" &&
50127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50130 # uniformly replaced by the line number. The first 'sed' inserts a
50131 # line-number line after each line using $LINENO; the second 'sed'
50132 # does the real work. The second script uses 'N' to pair each
50133 # line-number line with the line containing $LINENO, and appends
50134 # trailing '-' during substitution so that $LINENO is not a special
50135 # case at line end.
50136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50137 # scripts with optimization help from Paolo Bonzini. Blame Lee
50138 # E. McMahon (1931-1989) for sed's syntax. :-)
50139 sed -n '
50141 /[$]LINENO/=
50142 ' <$as_myself |
50143 sed '
50144 s/[$]LINENO.*/&-/
50145 t lineno
50147 :lineno
50149 :loop
50150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50151 t loop
50152 s/-\n.*//
50153 ' >$as_me.lineno &&
50154 chmod +x "$as_me.lineno" ||
50155 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50156 { (exit 1); exit 1; }; }
50158 # Don't try to exec as it changes $[0], causing all sort of problems
50159 # (the dirname of $[0] is not the place where we might find the
50160 # original and so on. Autoconf is especially sensitive to this).
50161 . "./$as_me.lineno"
50162 # Exit status is that of the last command.
50163 exit
50167 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50168 as_dirname=dirname
50169 else
50170 as_dirname=false
50173 ECHO_C= ECHO_N= ECHO_T=
50174 case `echo -n x` in
50175 -n*)
50176 case `echo 'x\c'` in
50177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
50178 *) ECHO_C='\c';;
50179 esac;;
50181 ECHO_N='-n';;
50182 esac
50184 if expr a : '\(a\)' >/dev/null 2>&1 &&
50185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50186 as_expr=expr
50187 else
50188 as_expr=false
50191 rm -f conf$$ conf$$.exe conf$$.file
50192 if test -d conf$$.dir; then
50193 rm -f conf$$.dir/conf$$.file
50194 else
50195 rm -f conf$$.dir
50196 mkdir conf$$.dir
50198 echo >conf$$.file
50199 if ln -s conf$$.file conf$$ 2>/dev/null; then
50200 as_ln_s='ln -s'
50201 # ... but there are two gotchas:
50202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50204 # In both cases, we have to default to `cp -p'.
50205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50206 as_ln_s='cp -p'
50207 elif ln conf$$.file conf$$ 2>/dev/null; then
50208 as_ln_s=ln
50209 else
50210 as_ln_s='cp -p'
50212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50213 rmdir conf$$.dir 2>/dev/null
50215 if mkdir -p . 2>/dev/null; then
50216 as_mkdir_p=:
50217 else
50218 test -d ./-p && rmdir ./-p
50219 as_mkdir_p=false
50222 if test -x / >/dev/null 2>&1; then
50223 as_test_x='test -x'
50224 else
50225 if ls -dL / >/dev/null 2>&1; then
50226 as_ls_L_option=L
50227 else
50228 as_ls_L_option=
50230 as_test_x='
50231 eval sh -c '\''
50232 if test -d "$1"; then
50233 test -d "$1/.";
50234 else
50235 case $1 in
50236 -*)set "./$1";;
50237 esac;
50238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50239 ???[sx]*):;;*)false;;esac;fi
50240 '\'' sh
50243 as_executable_p=$as_test_x
50245 # Sed expression to map a string onto a valid CPP name.
50246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50248 # Sed expression to map a string onto a valid variable name.
50249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50252 exec 6>&1
50254 # Save the log message, to keep $[0] and so on meaningful, and to
50255 # report actual input values of CONFIG_FILES etc. instead of their
50256 # values after options handling.
50257 ac_log="
50258 This file was extended by asterisk $as_me 1.6, which was
50259 generated by GNU Autoconf 2.61. Invocation command line was
50261 CONFIG_FILES = $CONFIG_FILES
50262 CONFIG_HEADERS = $CONFIG_HEADERS
50263 CONFIG_LINKS = $CONFIG_LINKS
50264 CONFIG_COMMANDS = $CONFIG_COMMANDS
50265 $ $0 $@
50267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50270 _ACEOF
50272 cat >>$CONFIG_STATUS <<_ACEOF
50273 # Files that config.status was made for.
50274 config_files="$ac_config_files"
50275 config_headers="$ac_config_headers"
50277 _ACEOF
50279 cat >>$CONFIG_STATUS <<\_ACEOF
50280 ac_cs_usage="\
50281 \`$as_me' instantiates files from templates according to the
50282 current configuration.
50284 Usage: $0 [OPTIONS] [FILE]...
50286 -h, --help print this help, then exit
50287 -V, --version print version number and configuration settings, then exit
50288 -q, --quiet do not print progress messages
50289 -d, --debug don't remove temporary files
50290 --recheck update $as_me by reconfiguring in the same conditions
50291 --file=FILE[:TEMPLATE]
50292 instantiate the configuration file FILE
50293 --header=FILE[:TEMPLATE]
50294 instantiate the configuration header FILE
50296 Configuration files:
50297 $config_files
50299 Configuration headers:
50300 $config_headers
50302 Report bugs to <bug-autoconf@gnu.org>."
50304 _ACEOF
50305 cat >>$CONFIG_STATUS <<_ACEOF
50306 ac_cs_version="\\
50307 asterisk config.status 1.6
50308 configured by $0, generated by GNU Autoconf 2.61,
50309 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50311 Copyright (C) 2006 Free Software Foundation, Inc.
50312 This config.status script is free software; the Free Software Foundation
50313 gives unlimited permission to copy, distribute and modify it."
50315 ac_pwd='$ac_pwd'
50316 srcdir='$srcdir'
50317 INSTALL='$INSTALL'
50318 _ACEOF
50320 cat >>$CONFIG_STATUS <<\_ACEOF
50321 # If no file are specified by the user, then we need to provide default
50322 # value. By we need to know if files were specified by the user.
50323 ac_need_defaults=:
50324 while test $# != 0
50326 case $1 in
50327 --*=*)
50328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50330 ac_shift=:
50333 ac_option=$1
50334 ac_optarg=$2
50335 ac_shift=shift
50337 esac
50339 case $ac_option in
50340 # Handling of the options.
50341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50342 ac_cs_recheck=: ;;
50343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50344 echo "$ac_cs_version"; exit ;;
50345 --debug | --debu | --deb | --de | --d | -d )
50346 debug=: ;;
50347 --file | --fil | --fi | --f )
50348 $ac_shift
50349 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50350 ac_need_defaults=false;;
50351 --header | --heade | --head | --hea )
50352 $ac_shift
50353 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50354 ac_need_defaults=false;;
50355 --he | --h)
50356 # Conflict between --help and --header
50357 { echo "$as_me: error: ambiguous option: $1
50358 Try \`$0 --help' for more information." >&2
50359 { (exit 1); exit 1; }; };;
50360 --help | --hel | -h )
50361 echo "$ac_cs_usage"; exit ;;
50362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50364 ac_cs_silent=: ;;
50366 # This is an error.
50367 -*) { echo "$as_me: error: unrecognized option: $1
50368 Try \`$0 --help' for more information." >&2
50369 { (exit 1); exit 1; }; } ;;
50371 *) ac_config_targets="$ac_config_targets $1"
50372 ac_need_defaults=false ;;
50374 esac
50375 shift
50376 done
50378 ac_configure_extra_args=
50380 if $ac_cs_silent; then
50381 exec 6>/dev/null
50382 ac_configure_extra_args="$ac_configure_extra_args --silent"
50385 _ACEOF
50386 cat >>$CONFIG_STATUS <<_ACEOF
50387 if \$ac_cs_recheck; then
50388 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50389 CONFIG_SHELL=$SHELL
50390 export CONFIG_SHELL
50391 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50394 _ACEOF
50395 cat >>$CONFIG_STATUS <<\_ACEOF
50396 exec 5>>config.log
50398 echo
50399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50400 ## Running $as_me. ##
50401 _ASBOX
50402 echo "$ac_log"
50403 } >&5
50405 _ACEOF
50406 cat >>$CONFIG_STATUS <<_ACEOF
50407 _ACEOF
50409 cat >>$CONFIG_STATUS <<\_ACEOF
50411 # Handling of arguments.
50412 for ac_config_target in $ac_config_targets
50414 case $ac_config_target in
50415 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
50416 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
50417 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
50418 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
50420 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50421 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50422 { (exit 1); exit 1; }; };;
50423 esac
50424 done
50427 # If the user did not use the arguments to specify the items to instantiate,
50428 # then the envvar interface is used. Set only those that are not.
50429 # We use the long form for the default assignment because of an extremely
50430 # bizarre bug on SunOS 4.1.3.
50431 if $ac_need_defaults; then
50432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50436 # Have a temporary directory for convenience. Make it in the build tree
50437 # simply because there is no reason against having it here, and in addition,
50438 # creating and moving files from /tmp can sometimes cause problems.
50439 # Hook for its removal unless debugging.
50440 # Note that there is a small window in which the directory will not be cleaned:
50441 # after its creation but before its name has been assigned to `$tmp'.
50442 $debug ||
50444 tmp=
50445 trap 'exit_status=$?
50446 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50448 trap '{ (exit 1); exit 1; }' 1 2 13 15
50450 # Create a (secure) tmp directory for tmp files.
50453 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50454 test -n "$tmp" && test -d "$tmp"
50455 } ||
50457 tmp=./conf$$-$RANDOM
50458 (umask 077 && mkdir "$tmp")
50459 } ||
50461 echo "$me: cannot create a temporary directory in ." >&2
50462 { (exit 1); exit 1; }
50466 # Set up the sed scripts for CONFIG_FILES section.
50469 # No need to generate the scripts if there are no CONFIG_FILES.
50470 # This happens for instance when ./config.status config.h
50471 if test -n "$CONFIG_FILES"; then
50473 _ACEOF
50477 ac_delim='%!_!# '
50478 for ac_last_try in false false false false false :; do
50479 cat >conf$$subs.sed <<_ACEOF
50480 SHELL!$SHELL$ac_delim
50481 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50482 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50483 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50484 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50485 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50486 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50487 exec_prefix!$exec_prefix$ac_delim
50488 prefix!$prefix$ac_delim
50489 program_transform_name!$program_transform_name$ac_delim
50490 bindir!$bindir$ac_delim
50491 sbindir!$sbindir$ac_delim
50492 libexecdir!$libexecdir$ac_delim
50493 datarootdir!$datarootdir$ac_delim
50494 datadir!$datadir$ac_delim
50495 sysconfdir!$sysconfdir$ac_delim
50496 sharedstatedir!$sharedstatedir$ac_delim
50497 localstatedir!$localstatedir$ac_delim
50498 includedir!$includedir$ac_delim
50499 oldincludedir!$oldincludedir$ac_delim
50500 docdir!$docdir$ac_delim
50501 infodir!$infodir$ac_delim
50502 htmldir!$htmldir$ac_delim
50503 dvidir!$dvidir$ac_delim
50504 pdfdir!$pdfdir$ac_delim
50505 psdir!$psdir$ac_delim
50506 libdir!$libdir$ac_delim
50507 localedir!$localedir$ac_delim
50508 mandir!$mandir$ac_delim
50509 DEFS!$DEFS$ac_delim
50510 ECHO_C!$ECHO_C$ac_delim
50511 ECHO_N!$ECHO_N$ac_delim
50512 ECHO_T!$ECHO_T$ac_delim
50513 LIBS!$LIBS$ac_delim
50514 build_alias!$build_alias$ac_delim
50515 host_alias!$host_alias$ac_delim
50516 target_alias!$target_alias$ac_delim
50517 build!$build$ac_delim
50518 build_cpu!$build_cpu$ac_delim
50519 build_vendor!$build_vendor$ac_delim
50520 build_os!$build_os$ac_delim
50521 host!$host$ac_delim
50522 host_cpu!$host_cpu$ac_delim
50523 host_vendor!$host_vendor$ac_delim
50524 host_os!$host_os$ac_delim
50525 CC!$CC$ac_delim
50526 CFLAGS!$CFLAGS$ac_delim
50527 LDFLAGS!$LDFLAGS$ac_delim
50528 CPPFLAGS!$CPPFLAGS$ac_delim
50529 ac_ct_CC!$ac_ct_CC$ac_delim
50530 EXEEXT!$EXEEXT$ac_delim
50531 OBJEXT!$OBJEXT$ac_delim
50532 CPP!$CPP$ac_delim
50533 GREP!$GREP$ac_delim
50534 EGREP!$EGREP$ac_delim
50535 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
50536 BUILD_CPU!$BUILD_CPU$ac_delim
50537 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
50538 BUILD_OS!$BUILD_OS$ac_delim
50539 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
50540 HOST_CPU!$HOST_CPU$ac_delim
50541 HOST_VENDOR!$HOST_VENDOR$ac_delim
50542 HOST_OS!$HOST_OS$ac_delim
50543 OSARCH!$OSARCH$ac_delim
50544 WINARCH!$WINARCH$ac_delim
50545 UNAME!$UNAME$ac_delim
50546 PBX_OSREV!$PBX_OSREV$ac_delim
50547 CXX!$CXX$ac_delim
50548 LD!$LD$ac_delim
50549 RANLIB!$RANLIB$ac_delim
50550 CXXFLAGS!$CXXFLAGS$ac_delim
50551 ac_ct_CXX!$ac_ct_CXX$ac_delim
50552 CXXCPP!$CXXCPP$ac_delim
50553 SED!$SED$ac_delim
50554 AWK!$AWK$ac_delim
50555 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50556 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50557 INSTALL_DATA!$INSTALL_DATA$ac_delim
50558 LN_S!$LN_S$ac_delim
50559 GNU_MAKE!$GNU_MAKE$ac_delim
50560 STRIP!$STRIP$ac_delim
50561 AR!$AR$ac_delim
50562 GNU_LD!$GNU_LD$ac_delim
50563 FIND!$FIND$ac_delim
50564 COMPRESS!$COMPRESS$ac_delim
50565 BASENAME!$BASENAME$ac_delim
50566 ID!$ID$ac_delim
50567 DIRNAME!$DIRNAME$ac_delim
50568 LN!$LN$ac_delim
50569 DOT!$DOT$ac_delim
50570 WGET!$WGET$ac_delim
50571 RUBBER!$RUBBER$ac_delim
50572 KPATHSEA!$KPATHSEA$ac_delim
50573 FETCH!$FETCH$ac_delim
50574 DOWNLOAD!$DOWNLOAD$ac_delim
50575 SOXMIX!$SOXMIX$ac_delim
50576 acx_pthread_config!$acx_pthread_config$ac_delim
50577 _ACEOF
50579 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50580 break
50581 elif $ac_last_try; then
50582 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50584 { (exit 1); exit 1; }; }
50585 else
50586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50588 done
50590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50591 if test -n "$ac_eof"; then
50592 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50593 ac_eof=`expr $ac_eof + 1`
50596 cat >>$CONFIG_STATUS <<_ACEOF
50597 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50599 _ACEOF
50600 sed '
50601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50602 s/^/s,@/; s/!/@,|#_!!_#|/
50605 s/'"$ac_delim"'$/,g/; t
50606 s/$/\\/; p
50607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50608 ' >>$CONFIG_STATUS <conf$$subs.sed
50609 rm -f conf$$subs.sed
50610 cat >>$CONFIG_STATUS <<_ACEOF
50611 CEOF$ac_eof
50612 _ACEOF
50615 ac_delim='%!_!# '
50616 for ac_last_try in false false false false false :; do
50617 cat >conf$$subs.sed <<_ACEOF
50618 PTHREAD_CC!$PTHREAD_CC$ac_delim
50619 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
50620 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
50621 AST_DEVMODE!$AST_DEVMODE$ac_delim
50622 ALSA_LIB!$ALSA_LIB$ac_delim
50623 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
50624 ALSA_DIR!$ALSA_DIR$ac_delim
50625 PBX_ALSA!$PBX_ALSA$ac_delim
50626 BKTR_LIB!$BKTR_LIB$ac_delim
50627 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50628 BKTR_DIR!$BKTR_DIR$ac_delim
50629 PBX_BKTR!$PBX_BKTR$ac_delim
50630 CAP_LIB!$CAP_LIB$ac_delim
50631 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50632 CAP_DIR!$CAP_DIR$ac_delim
50633 PBX_CAP!$PBX_CAP$ac_delim
50634 CURL_LIB!$CURL_LIB$ac_delim
50635 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50636 CURL_DIR!$CURL_DIR$ac_delim
50637 PBX_CURL!$PBX_CURL$ac_delim
50638 CURSES_LIB!$CURSES_LIB$ac_delim
50639 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50640 CURSES_DIR!$CURSES_DIR$ac_delim
50641 PBX_CURSES!$PBX_CURSES$ac_delim
50642 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50643 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50644 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50645 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50646 DAHDI_LIB!$DAHDI_LIB$ac_delim
50647 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
50648 DAHDI_DIR!$DAHDI_DIR$ac_delim
50649 PBX_DAHDI!$PBX_DAHDI$ac_delim
50650 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50651 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50652 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50653 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50654 GSM_LIB!$GSM_LIB$ac_delim
50655 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50656 GSM_DIR!$GSM_DIR$ac_delim
50657 PBX_GSM!$PBX_GSM$ac_delim
50658 GTK_LIB!$GTK_LIB$ac_delim
50659 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50660 GTK_DIR!$GTK_DIR$ac_delim
50661 PBX_GTK!$PBX_GTK$ac_delim
50662 GTK2_LIB!$GTK2_LIB$ac_delim
50663 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50664 GTK2_DIR!$GTK2_DIR$ac_delim
50665 PBX_GTK2!$PBX_GTK2$ac_delim
50666 GMIME_LIB!$GMIME_LIB$ac_delim
50667 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50668 GMIME_DIR!$GMIME_DIR$ac_delim
50669 PBX_GMIME!$PBX_GMIME$ac_delim
50670 HOARD_LIB!$HOARD_LIB$ac_delim
50671 HOARD_INCLUDE!$HOARD_INCLUDE$ac_delim
50672 HOARD_DIR!$HOARD_DIR$ac_delim
50673 PBX_HOARD!$PBX_HOARD$ac_delim
50674 ICONV_LIB!$ICONV_LIB$ac_delim
50675 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50676 ICONV_DIR!$ICONV_DIR$ac_delim
50677 PBX_ICONV!$PBX_ICONV$ac_delim
50678 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50679 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50680 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50681 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50682 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50683 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50684 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50685 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50686 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50687 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50688 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50689 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50690 JACK_LIB!$JACK_LIB$ac_delim
50691 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50692 JACK_DIR!$JACK_DIR$ac_delim
50693 PBX_JACK!$PBX_JACK$ac_delim
50694 LDAP_LIB!$LDAP_LIB$ac_delim
50695 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50696 LDAP_DIR!$LDAP_DIR$ac_delim
50697 PBX_LDAP!$PBX_LDAP$ac_delim
50698 LTDL_LIB!$LTDL_LIB$ac_delim
50699 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50700 LTDL_DIR!$LTDL_DIR$ac_delim
50701 PBX_LTDL!$PBX_LTDL$ac_delim
50702 LUA_LIB!$LUA_LIB$ac_delim
50703 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50704 LUA_DIR!$LUA_DIR$ac_delim
50705 PBX_LUA!$PBX_LUA$ac_delim
50706 MISDN_LIB!$MISDN_LIB$ac_delim
50707 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50708 MISDN_DIR!$MISDN_DIR$ac_delim
50709 PBX_MISDN!$PBX_MISDN$ac_delim
50710 NBS_LIB!$NBS_LIB$ac_delim
50711 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50712 NBS_DIR!$NBS_DIR$ac_delim
50713 PBX_NBS!$PBX_NBS$ac_delim
50714 NCURSES_LIB!$NCURSES_LIB$ac_delim
50715 _ACEOF
50717 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50718 break
50719 elif $ac_last_try; then
50720 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50721 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50722 { (exit 1); exit 1; }; }
50723 else
50724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50726 done
50728 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50729 if test -n "$ac_eof"; then
50730 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50731 ac_eof=`expr $ac_eof + 1`
50734 cat >>$CONFIG_STATUS <<_ACEOF
50735 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50737 _ACEOF
50738 sed '
50739 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50740 s/^/s,@/; s/!/@,|#_!!_#|/
50743 s/'"$ac_delim"'$/,g/; t
50744 s/$/\\/; p
50745 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50746 ' >>$CONFIG_STATUS <conf$$subs.sed
50747 rm -f conf$$subs.sed
50748 cat >>$CONFIG_STATUS <<_ACEOF
50749 CEOF$ac_eof
50750 _ACEOF
50753 ac_delim='%!_!# '
50754 for ac_last_try in false false false false false :; do
50755 cat >conf$$subs.sed <<_ACEOF
50756 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50757 NCURSES_DIR!$NCURSES_DIR$ac_delim
50758 PBX_NCURSES!$PBX_NCURSES$ac_delim
50759 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50760 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50761 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50762 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50763 NEWT_LIB!$NEWT_LIB$ac_delim
50764 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50765 NEWT_DIR!$NEWT_DIR$ac_delim
50766 PBX_NEWT!$PBX_NEWT$ac_delim
50767 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50768 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50769 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50770 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50771 OGG_LIB!$OGG_LIB$ac_delim
50772 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50773 OGG_DIR!$OGG_DIR$ac_delim
50774 PBX_OGG!$PBX_OGG$ac_delim
50775 OSPTK_LIB!$OSPTK_LIB$ac_delim
50776 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50777 OSPTK_DIR!$OSPTK_DIR$ac_delim
50778 PBX_OSPTK!$PBX_OSPTK$ac_delim
50779 OSS_LIB!$OSS_LIB$ac_delim
50780 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50781 OSS_DIR!$OSS_DIR$ac_delim
50782 PBX_OSS!$PBX_OSS$ac_delim
50783 PGSQL_LIB!$PGSQL_LIB$ac_delim
50784 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50785 PGSQL_DIR!$PGSQL_DIR$ac_delim
50786 PBX_PGSQL!$PBX_PGSQL$ac_delim
50787 POPT_LIB!$POPT_LIB$ac_delim
50788 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50789 POPT_DIR!$POPT_DIR$ac_delim
50790 PBX_POPT!$PBX_POPT$ac_delim
50791 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50792 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50793 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50794 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50795 PRI_LIB!$PRI_LIB$ac_delim
50796 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50797 PRI_DIR!$PRI_DIR$ac_delim
50798 PBX_PRI!$PBX_PRI$ac_delim
50799 RESAMPLE_LIB!$RESAMPLE_LIB$ac_delim
50800 RESAMPLE_INCLUDE!$RESAMPLE_INCLUDE$ac_delim
50801 RESAMPLE_DIR!$RESAMPLE_DIR$ac_delim
50802 PBX_RESAMPLE!$PBX_RESAMPLE$ac_delim
50803 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
50804 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
50805 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
50806 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
50807 SS7_LIB!$SS7_LIB$ac_delim
50808 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50809 SS7_DIR!$SS7_DIR$ac_delim
50810 PBX_SS7!$PBX_SS7$ac_delim
50811 PWLIB_LIB!$PWLIB_LIB$ac_delim
50812 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50813 PWLIB_DIR!$PWLIB_DIR$ac_delim
50814 PBX_PWLIB!$PBX_PWLIB$ac_delim
50815 OPENH323_LIB!$OPENH323_LIB$ac_delim
50816 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50817 OPENH323_DIR!$OPENH323_DIR$ac_delim
50818 PBX_OPENH323!$PBX_OPENH323$ac_delim
50819 RADIUS_LIB!$RADIUS_LIB$ac_delim
50820 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50821 RADIUS_DIR!$RADIUS_DIR$ac_delim
50822 PBX_RADIUS!$PBX_RADIUS$ac_delim
50823 SDL_LIB!$SDL_LIB$ac_delim
50824 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50825 SDL_DIR!$SDL_DIR$ac_delim
50826 PBX_SDL!$PBX_SDL$ac_delim
50827 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50828 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50829 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50830 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50831 OPENAIS_LIB!$OPENAIS_LIB$ac_delim
50832 OPENAIS_INCLUDE!$OPENAIS_INCLUDE$ac_delim
50833 OPENAIS_DIR!$OPENAIS_DIR$ac_delim
50834 PBX_OPENAIS!$PBX_OPENAIS$ac_delim
50835 SPEEX_LIB!$SPEEX_LIB$ac_delim
50836 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50837 SPEEX_DIR!$SPEEX_DIR$ac_delim
50838 PBX_SPEEX!$PBX_SPEEX$ac_delim
50839 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50840 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50841 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50842 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50843 SQLITE_LIB!$SQLITE_LIB$ac_delim
50844 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50845 SQLITE_DIR!$SQLITE_DIR$ac_delim
50846 PBX_SQLITE!$PBX_SQLITE$ac_delim
50847 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50848 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50849 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50850 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50851 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50852 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50853 _ACEOF
50855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50856 break
50857 elif $ac_last_try; then
50858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50860 { (exit 1); exit 1; }; }
50861 else
50862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50864 done
50866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50867 if test -n "$ac_eof"; then
50868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50869 ac_eof=`expr $ac_eof + 1`
50872 cat >>$CONFIG_STATUS <<_ACEOF
50873 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50875 _ACEOF
50876 sed '
50877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50878 s/^/s,@/; s/!/@,|#_!!_#|/
50881 s/'"$ac_delim"'$/,g/; t
50882 s/$/\\/; p
50883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50884 ' >>$CONFIG_STATUS <conf$$subs.sed
50885 rm -f conf$$subs.sed
50886 cat >>$CONFIG_STATUS <<_ACEOF
50887 CEOF$ac_eof
50888 _ACEOF
50891 ac_delim='%!_!# '
50892 for ac_last_try in false false false false false :; do
50893 cat >conf$$subs.sed <<_ACEOF
50894 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50895 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50896 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50897 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50898 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50899 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50900 FREETDS_LIB!$FREETDS_LIB$ac_delim
50901 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50902 FREETDS_DIR!$FREETDS_DIR$ac_delim
50903 PBX_FREETDS!$PBX_FREETDS$ac_delim
50904 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50905 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50906 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50907 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50908 TINFO_LIB!$TINFO_LIB$ac_delim
50909 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50910 TINFO_DIR!$TINFO_DIR$ac_delim
50911 PBX_TINFO!$PBX_TINFO$ac_delim
50912 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50913 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50914 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50915 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50916 USB_LIB!$USB_LIB$ac_delim
50917 USB_INCLUDE!$USB_INCLUDE$ac_delim
50918 USB_DIR!$USB_DIR$ac_delim
50919 PBX_USB!$PBX_USB$ac_delim
50920 VORBIS_LIB!$VORBIS_LIB$ac_delim
50921 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50922 VORBIS_DIR!$VORBIS_DIR$ac_delim
50923 PBX_VORBIS!$PBX_VORBIS$ac_delim
50924 VPB_LIB!$VPB_LIB$ac_delim
50925 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50926 VPB_DIR!$VPB_DIR$ac_delim
50927 PBX_VPB!$PBX_VPB$ac_delim
50928 X11_LIB!$X11_LIB$ac_delim
50929 X11_INCLUDE!$X11_INCLUDE$ac_delim
50930 X11_DIR!$X11_DIR$ac_delim
50931 PBX_X11!$PBX_X11$ac_delim
50932 ZLIB_LIB!$ZLIB_LIB$ac_delim
50933 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50934 ZLIB_DIR!$ZLIB_DIR$ac_delim
50935 PBX_ZLIB!$PBX_ZLIB$ac_delim
50936 ALLOCA!$ALLOCA$ac_delim
50937 LIBOBJS!$LIBOBJS$ac_delim
50938 POW_LIB!$POW_LIB$ac_delim
50939 HAS_POLL!$HAS_POLL$ac_delim
50940 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50941 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50942 GC_CFLAGS!$GC_CFLAGS$ac_delim
50943 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50944 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50945 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50946 AST_SHADOW_WARNINGS!$AST_SHADOW_WARNINGS$ac_delim
50947 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50948 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50949 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50950 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50951 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50952 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50953 PG_CONFIG!$PG_CONFIG$ac_delim
50954 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50955 PWLIBDIR!$PWLIBDIR$ac_delim
50956 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50957 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50958 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50959 OPENH323DIR!$OPENH323DIR$ac_delim
50960 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50961 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
50962 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
50963 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
50964 PBX_AIS!$PBX_AIS$ac_delim
50965 AIS_INCLUDE!$AIS_INCLUDE$ac_delim
50966 AIS_LIB!$AIS_LIB$ac_delim
50967 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
50968 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
50969 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
50970 PBX_H323!$PBX_H323$ac_delim
50971 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
50972 CONFIG_SDL!$CONFIG_SDL$ac_delim
50973 CONFIG_GTK!$CONFIG_GTK$ac_delim
50974 PKGCONFIG!$PKGCONFIG$ac_delim
50975 CURL_CONFIG!$CURL_CONFIG$ac_delim
50976 LTLIBOBJS!$LTLIBOBJS$ac_delim
50977 _ACEOF
50979 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
50980 break
50981 elif $ac_last_try; then
50982 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50983 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50984 { (exit 1); exit 1; }; }
50985 else
50986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50988 done
50990 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50991 if test -n "$ac_eof"; then
50992 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50993 ac_eof=`expr $ac_eof + 1`
50996 cat >>$CONFIG_STATUS <<_ACEOF
50997 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
50999 _ACEOF
51000 sed '
51001 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51002 s/^/s,@/; s/!/@,|#_!!_#|/
51005 s/'"$ac_delim"'$/,g/; t
51006 s/$/\\/; p
51007 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51008 ' >>$CONFIG_STATUS <conf$$subs.sed
51009 rm -f conf$$subs.sed
51010 cat >>$CONFIG_STATUS <<_ACEOF
51011 :end
51012 s/|#_!!_#|//g
51013 CEOF$ac_eof
51014 _ACEOF
51017 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51018 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51019 # trailing colons and then remove the whole line if VPATH becomes empty
51020 # (actually we leave an empty line to preserve line numbers).
51021 if test "x$srcdir" = x.; then
51022 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51023 s/:*\$(srcdir):*/:/
51024 s/:*\${srcdir}:*/:/
51025 s/:*@srcdir@:*/:/
51026 s/^\([^=]*=[ ]*\):*/\1/
51027 s/:*$//
51028 s/^[^=]*=[ ]*$//
51032 cat >>$CONFIG_STATUS <<\_ACEOF
51033 fi # test -n "$CONFIG_FILES"
51036 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
51038 case $ac_tag in
51039 :[FHLC]) ac_mode=$ac_tag; continue;;
51040 esac
51041 case $ac_mode$ac_tag in
51042 :[FHL]*:*);;
51043 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51044 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51045 { (exit 1); exit 1; }; };;
51046 :[FH]-) ac_tag=-:-;;
51047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51048 esac
51049 ac_save_IFS=$IFS
51050 IFS=:
51051 set x $ac_tag
51052 IFS=$ac_save_IFS
51053 shift
51054 ac_file=$1
51055 shift
51057 case $ac_mode in
51058 :L) ac_source=$1;;
51059 :[FH])
51060 ac_file_inputs=
51061 for ac_f
51063 case $ac_f in
51064 -) ac_f="$tmp/stdin";;
51065 *) # Look for the file first in the build tree, then in the source tree
51066 # (if the path is not absolute). The absolute path cannot be DOS-style,
51067 # because $ac_f cannot contain `:'.
51068 test -f "$ac_f" ||
51069 case $ac_f in
51070 [\\/$]*) false;;
51071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51072 esac ||
51073 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51074 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51075 { (exit 1); exit 1; }; };;
51076 esac
51077 ac_file_inputs="$ac_file_inputs $ac_f"
51078 done
51080 # Let's still pretend it is `configure' which instantiates (i.e., don't
51081 # use $as_me), people would be surprised to read:
51082 # /* config.h. Generated by config.status. */
51083 configure_input="Generated from "`IFS=:
51084 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51085 if test x"$ac_file" != x-; then
51086 configure_input="$ac_file. $configure_input"
51087 { echo "$as_me:$LINENO: creating $ac_file" >&5
51088 echo "$as_me: creating $ac_file" >&6;}
51091 case $ac_tag in
51092 *:-:* | *:-) cat >"$tmp/stdin";;
51093 esac
51095 esac
51097 ac_dir=`$as_dirname -- "$ac_file" ||
51098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51099 X"$ac_file" : 'X\(//\)[^/]' \| \
51100 X"$ac_file" : 'X\(//\)$' \| \
51101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51102 echo X"$ac_file" |
51103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51104 s//\1/
51107 /^X\(\/\/\)[^/].*/{
51108 s//\1/
51111 /^X\(\/\/\)$/{
51112 s//\1/
51115 /^X\(\/\).*/{
51116 s//\1/
51119 s/.*/./; q'`
51120 { as_dir="$ac_dir"
51121 case $as_dir in #(
51122 -*) as_dir=./$as_dir;;
51123 esac
51124 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51125 as_dirs=
51126 while :; do
51127 case $as_dir in #(
51128 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51129 *) as_qdir=$as_dir;;
51130 esac
51131 as_dirs="'$as_qdir' $as_dirs"
51132 as_dir=`$as_dirname -- "$as_dir" ||
51133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51134 X"$as_dir" : 'X\(//\)[^/]' \| \
51135 X"$as_dir" : 'X\(//\)$' \| \
51136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51137 echo X"$as_dir" |
51138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51139 s//\1/
51142 /^X\(\/\/\)[^/].*/{
51143 s//\1/
51146 /^X\(\/\/\)$/{
51147 s//\1/
51150 /^X\(\/\).*/{
51151 s//\1/
51154 s/.*/./; q'`
51155 test -d "$as_dir" && break
51156 done
51157 test -z "$as_dirs" || eval "mkdir $as_dirs"
51158 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51159 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51160 { (exit 1); exit 1; }; }; }
51161 ac_builddir=.
51163 case "$ac_dir" in
51164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51167 # A ".." for each directory in $ac_dir_suffix.
51168 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51169 case $ac_top_builddir_sub in
51170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51172 esac ;;
51173 esac
51174 ac_abs_top_builddir=$ac_pwd
51175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51176 # for backward compatibility:
51177 ac_top_builddir=$ac_top_build_prefix
51179 case $srcdir in
51180 .) # We are building in place.
51181 ac_srcdir=.
51182 ac_top_srcdir=$ac_top_builddir_sub
51183 ac_abs_top_srcdir=$ac_pwd ;;
51184 [\\/]* | ?:[\\/]* ) # Absolute name.
51185 ac_srcdir=$srcdir$ac_dir_suffix;
51186 ac_top_srcdir=$srcdir
51187 ac_abs_top_srcdir=$srcdir ;;
51188 *) # Relative name.
51189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51190 ac_top_srcdir=$ac_top_build_prefix$srcdir
51191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51192 esac
51193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51196 case $ac_mode in
51199 # CONFIG_FILE
51202 case $INSTALL in
51203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51204 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51205 esac
51206 _ACEOF
51208 cat >>$CONFIG_STATUS <<\_ACEOF
51209 # If the template does not know about datarootdir, expand it.
51210 # FIXME: This hack should be removed a few years after 2.60.
51211 ac_datarootdir_hack=; ac_datarootdir_seen=
51213 case `sed -n '/datarootdir/ {
51217 /@datadir@/p
51218 /@docdir@/p
51219 /@infodir@/p
51220 /@localedir@/p
51221 /@mandir@/p
51222 ' $ac_file_inputs` in
51223 *datarootdir*) ac_datarootdir_seen=yes;;
51224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51225 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51226 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51227 _ACEOF
51228 cat >>$CONFIG_STATUS <<_ACEOF
51229 ac_datarootdir_hack='
51230 s&@datadir@&$datadir&g
51231 s&@docdir@&$docdir&g
51232 s&@infodir@&$infodir&g
51233 s&@localedir@&$localedir&g
51234 s&@mandir@&$mandir&g
51235 s&\\\${datarootdir}&$datarootdir&g' ;;
51236 esac
51237 _ACEOF
51239 # Neutralize VPATH when `$srcdir' = `.'.
51240 # Shell code in configure.ac might set extrasub.
51241 # FIXME: do we really want to maintain this feature?
51242 cat >>$CONFIG_STATUS <<_ACEOF
51243 sed "$ac_vpsub
51244 $extrasub
51245 _ACEOF
51246 cat >>$CONFIG_STATUS <<\_ACEOF
51248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51249 s&@configure_input@&$configure_input&;t t
51250 s&@top_builddir@&$ac_top_builddir_sub&;t t
51251 s&@srcdir@&$ac_srcdir&;t t
51252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51253 s&@top_srcdir@&$ac_top_srcdir&;t t
51254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51255 s&@builddir@&$ac_builddir&;t t
51256 s&@abs_builddir@&$ac_abs_builddir&;t t
51257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51258 s&@INSTALL@&$ac_INSTALL&;t t
51259 $ac_datarootdir_hack
51260 " $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
51262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51263 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51265 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51266 which seems to be undefined. Please make sure it is defined." >&5
51267 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51268 which seems to be undefined. Please make sure it is defined." >&2;}
51270 rm -f "$tmp/stdin"
51271 case $ac_file in
51272 -) cat "$tmp/out"; rm -f "$tmp/out";;
51273 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51274 esac
51278 # CONFIG_HEADER
51280 _ACEOF
51282 # Transform confdefs.h into a sed script `conftest.defines', that
51283 # substitutes the proper values into config.h.in to produce config.h.
51284 rm -f conftest.defines conftest.tail
51285 # First, append a space to every undef/define line, to ease matching.
51286 echo 's/$/ /' >conftest.defines
51287 # Then, protect against being on the right side of a sed subst, or in
51288 # an unquoted here document, in config.status. If some macros were
51289 # called several times there might be several #defines for the same
51290 # symbol, which is useless. But do not sort them, since the last
51291 # AC_DEFINE must be honored.
51292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51293 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51294 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51295 # PARAMS is the parameter list in the macro definition--in most cases, it's
51296 # just an empty string.
51297 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
51298 ac_dB='\\)[ (].*,\\1define\\2'
51299 ac_dC=' '
51300 ac_dD=' ,'
51302 uniq confdefs.h |
51303 sed -n '
51304 t rset
51305 :rset
51306 s/^[ ]*#[ ]*define[ ][ ]*//
51307 t ok
51310 s/[\\&,]/\\&/g
51311 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51312 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51313 ' >>conftest.defines
51315 # Remove the space that was appended to ease matching.
51316 # Then replace #undef with comments. This is necessary, for
51317 # example, in the case of _POSIX_SOURCE, which is predefined and required
51318 # on some systems where configure will not decide to define it.
51319 # (The regexp can be short, since the line contains either #define or #undef.)
51320 echo 's/ $//
51321 s,^[ #]*u.*,/* & */,' >>conftest.defines
51323 # Break up conftest.defines:
51324 ac_max_sed_lines=50
51326 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51327 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51328 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51329 # et cetera.
51330 ac_in='$ac_file_inputs'
51331 ac_out='"$tmp/out1"'
51332 ac_nxt='"$tmp/out2"'
51334 while :
51336 # Write a here document:
51337 cat >>$CONFIG_STATUS <<_ACEOF
51338 # First, check the format of the line:
51339 cat >"\$tmp/defines.sed" <<\\CEOF
51340 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
51341 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
51343 :def
51344 _ACEOF
51345 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51346 echo 'CEOF
51347 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51348 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51349 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51350 grep . conftest.tail >/dev/null || break
51351 rm -f conftest.defines
51352 mv conftest.tail conftest.defines
51353 done
51354 rm -f conftest.defines conftest.tail
51356 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51357 cat >>$CONFIG_STATUS <<\_ACEOF
51358 if test x"$ac_file" != x-; then
51359 echo "/* $configure_input */" >"$tmp/config.h"
51360 cat "$ac_result" >>"$tmp/config.h"
51361 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51363 echo "$as_me: $ac_file is unchanged" >&6;}
51364 else
51365 rm -f $ac_file
51366 mv "$tmp/config.h" $ac_file
51368 else
51369 echo "/* $configure_input */"
51370 cat "$ac_result"
51372 rm -f "$tmp/out12"
51376 esac
51378 done # for ac_tag
51381 { (exit 0); exit 0; }
51382 _ACEOF
51383 chmod +x $CONFIG_STATUS
51384 ac_clean_files=$ac_clean_files_save
51387 # configure is writing to config.log, and then calls config.status.
51388 # config.status does its own redirection, appending to config.log.
51389 # Unfortunately, on DOS this fails, as config.log is still kept open
51390 # by configure, so config.status won't be able to write to it; its
51391 # output is simply discarded. So we exec the FD to /dev/null,
51392 # effectively closing config.log, so it can be properly (re)opened and
51393 # appended to by config.status. When coming back to configure, we
51394 # need to make the FD available again.
51395 if test "$no_create" != yes; then
51396 ac_cs_success=:
51397 ac_config_status_args=
51398 test "$silent" = yes &&
51399 ac_config_status_args="$ac_config_status_args --quiet"
51400 exec 5>/dev/null
51401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51402 exec 5>>config.log
51403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51404 # would make configure fail if this is the last instruction.
51405 $ac_cs_success || { (exit 1); exit 1; }
51409 if test "x${silent}" != "xyes" ; then
51410 echo
51411 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
51412 echo " .\$7\$7.. .7\$\$7:. "
51413 echo " .\$\$:. ,\$7.7 "
51414 echo " .\$7. 7\$\$\$\$ .\$\$77 "
51415 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
51416 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
51417 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
51418 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
51419 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
51420 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
51421 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
51422 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
51423 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
51424 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
51425 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
51426 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
51427 echo " \$\$\$\$\$ \$\$\$ "
51428 echo " \$\$\$\$7. \$\$ (TM) "
51429 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
51430 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
51431 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
51432 echo
51435 { echo "$as_me:$LINENO: Package configured for: " >&5
51436 echo "$as_me: Package configured for: " >&6;}
51437 { echo "$as_me:$LINENO: OS type : $host_os" >&5
51438 echo "$as_me: OS type : $host_os" >&6;}
51439 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
51440 echo "$as_me: Host CPU : $host_cpu" >&6;}
51441 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
51442 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
51443 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
51444 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
51445 if test "${cross_compiling}" = "yes"; then
51446 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
51447 echo "$as_me: Cross Compilation = YES" >&6;}